using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Gateway.POS.Migrations { public partial class AddOperatorModel : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Operators", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Name = table.Column(type: "TEXT", nullable: true), Password = table.Column(type: "TEXT", nullable: true), Description = table.Column(type: "TEXT", nullable: true), CreatedTimestamp = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Operators", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Operators"); } } }