Created
May 4, 2021 12:23
-
-
Save nishanc/5c9ecca409f8d239a35ac2d59e40be2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void Up(MigrationBuilder migrationBuilder) | |
{ | |
migrationBuilder.CreateTable( | |
name: "TPCStudents", | |
columns: table => new | |
{ | |
Id = table.Column<int>(type: "int", nullable: false) | |
.Annotation("SqlServer:Identity", "1, 1"), | |
CGPA = table.Column<string>(type: "nvarchar(max)", nullable: true), | |
Major = table.Column<string>(type: "nvarchar(max)", nullable: true), | |
Username = table.Column<string>(type: "nvarchar(max)", nullable: false), | |
Email = table.Column<string>(type: "nvarchar(max)", nullable: false) | |
}, | |
constraints: table => | |
{ | |
table.PrimaryKey("PK_TPCStudents", x => x.Id); | |
}); | |
migrationBuilder.CreateTable( | |
name: "TPCTeachers", | |
columns: table => new | |
{ | |
Id = table.Column<int>(type: "int", nullable: false) | |
.Annotation("SqlServer:Identity", "1, 1"), | |
Designation = table.Column<string>(type: "nvarchar(max)", nullable: true), | |
Speciality = table.Column<string>(type: "nvarchar(max)", nullable: true), | |
Username = table.Column<string>(type: "nvarchar(max)", nullable: false), | |
Email = table.Column<string>(type: "nvarchar(max)", nullable: false) | |
}, | |
constraints: table => | |
{ | |
table.PrimaryKey("PK_TPCTeachers", x => x.Id); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment