Skip to content

Instantly share code, notes, and snippets.

@nishanc
Created May 3, 2021 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/298bcbcbdc17f0a13da3034595148fe3 to your computer and use it in GitHub Desktop.
Save nishanc/298bcbcbdc17f0a13da3034595148fe3 to your computer and use it in GitHub Desktop.
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TPHUsers",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Username = table.Column<string>(type: "nvarchar(max)", nullable: true),
Email = table.Column<string>(type: "nvarchar(max)", nullable: true),
UserType = table.Column<string>(type: "nvarchar(max)", nullable: false),
CGPA = table.Column<string>(type: "nvarchar(max)", nullable: true),
Major = table.Column<string>(type: "nvarchar(max)", nullable: true),
Designation = table.Column<string>(type: "nvarchar(max)", nullable: true),
Speciality = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_TPHUsers", x => x.Id);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment