| 123456789101112131415161718192021222324252627282930313233 |
- 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<int>(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- Name = table.Column<string>(type: "TEXT", nullable: true),
- Password = table.Column<string>(type: "TEXT", nullable: true),
- Description = table.Column<string>(type: "TEXT", nullable: true),
- CreatedTimestamp = table.Column<DateTime>(type: "TEXT", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Operators", x => x.Id);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Operators");
- }
- }
- }
|