using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Moshaverino.Core.Migrations { public partial class init : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Students", columns: table => new { StudentId = table.Column(nullable: false) .Annotation("SqlServer:Identity", "1, 1"), CreationTime = table.Column(nullable: false), RemoveTime = table.Column(nullable: false), IsRemoved = table.Column(nullable: false), PhoneNumber = table.Column(nullable: true), Code = table.Column(nullable: true), HumenSex = table.Column(nullable: false), FullName = table.Column(nullable: true), StudyField = table.Column(nullable: true), StudyGrade = table.Column(nullable: true), AverageNumber = table.Column(nullable: true), FavoriteLesson = table.Column(nullable: true), UnFavoriteLesson = table.Column(nullable: true), FavoriteExam = table.Column(nullable: true), AverageTaraz = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Students", x => x.StudentId); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Students"); } } }