using Khaemhat.Data.Migrations; using Khaemhat.Data.Schema; namespace Khaemhat.Data.SystemDatabase.Migrations; /// The interface preferences of the instance accounts (SPEC ยง10.6). [Migration(20261111_012, "create_sys_user_settings", Target = MigrationTarget.System)] public sealed class M20261111_012_CreateSysUserSettings : IMigration { /// public void Up(ISchemaBuilder schema) { ArgumentNullException.ThrowIfNull(schema); schema.CreateTable("sys_user_settings", t => { t.Id(); t.Int64("user_id").NotNull(); t.String("key", 200).NotNull(); t.Text("value"); t.AuditColumns(); t.Unique("ux_sys_user_settings_user_id_key", "user_id", "key"); }); } }