removed migration ,altered Guid to int
This commit is contained in:
Generated
+93
-78
@@ -8,58 +8,100 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
using _2021_backend.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace _2021_backend.Migrations
|
||||
{
|
||||
[DbContext(typeof(BackendContext))]
|
||||
[Migration("20211018220015_Initial")]
|
||||
partial class Initial
|
||||
[Migration("20220222090619_initial")]
|
||||
partial class initial
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63)
|
||||
.HasAnnotation("ProductVersion", "5.0.9")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.HasAnnotation("ProductVersion", "6.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Comment", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("AddTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Content")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<Guid>("Operator")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Operator")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("Student")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Student")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Comments");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Session", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("BeginTime")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int>("Capacity")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<List<int>>("Chiefs")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<DateTime>("Day")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Place")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("SendSMS")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<List<int>>("Students")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Sessions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.SMS", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<List<string>>("Data")
|
||||
.HasColumnType("text[]");
|
||||
|
||||
b.Property<Guid>("Host")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Host")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("SendTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Sender")
|
||||
.HasColumnType("text");
|
||||
@@ -70,52 +112,21 @@ namespace _2021_backend.Migrations
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("SMS");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Session", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTime>("BeginTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<int>("Capacity")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<List<Guid>>("Chiefs")
|
||||
.HasColumnType("uuid[]");
|
||||
|
||||
b.Property<DateTime>("Day")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("Place")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("SendSMS")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<List<Guid>>("Students")
|
||||
.HasColumnType("uuid[]");
|
||||
|
||||
b.HasKey("Guid");
|
||||
|
||||
b.ToTable("Sessions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Student", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<List<Guid>>("Comments")
|
||||
.HasColumnType("uuid[]");
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<List<int>>("Comments")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasColumnType("text");
|
||||
@@ -126,23 +137,23 @@ namespace _2021_backend.Migrations
|
||||
b.Property<int>("Grade")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("InterviewTime")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("InterviewTime")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("LastSubmission")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Major")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Messages")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Messages")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("RegisterTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int>("Score")
|
||||
.HasColumnType("integer");
|
||||
@@ -156,28 +167,30 @@ namespace _2021_backend.Migrations
|
||||
b.Property<string>("Stuid")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Submissions")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Submissions")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("Tel")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Timelist")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Timelist")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<int>("Yard")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Students");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Submission", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Address")
|
||||
.HasColumnType("text");
|
||||
@@ -191,8 +204,8 @@ namespace _2021_backend.Migrations
|
||||
b.Property<int>("Grade")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("Host")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Host")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Major")
|
||||
.HasColumnType("text");
|
||||
@@ -207,27 +220,29 @@ namespace _2021_backend.Migrations
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("SubmitTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Tel")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Timelist")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Timelist")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<int>("Yard")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Submissions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.User", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("text");
|
||||
@@ -241,7 +256,7 @@ namespace _2021_backend.Migrations
|
||||
b.Property<string>("stuID")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Users");
|
||||
});
|
||||
@@ -1,10 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace _2021_backend.Migrations
|
||||
{
|
||||
public partial class Initial : Migration
|
||||
public partial class initial : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
@@ -12,57 +15,61 @@ namespace _2021_backend.Migrations
|
||||
name: "Comments",
|
||||
columns: table => new
|
||||
{
|
||||
Guid = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Operator = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Operator = table.Column<int>(type: "integer", nullable: false),
|
||||
Content = table.Column<string>(type: "text", nullable: false),
|
||||
AddTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
Student = table.Column<Guid>(type: "uuid", nullable: false)
|
||||
AddTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||
Student = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Comments", x => x.Guid);
|
||||
table.PrimaryKey("PK_Comments", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Sessions",
|
||||
columns: table => new
|
||||
{
|
||||
Guid = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Day = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
BeginTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Day = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||
BeginTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||
Place = table.Column<string>(type: "text", nullable: false),
|
||||
Chiefs = table.Column<List<Guid>>(type: "uuid[]", nullable: true),
|
||||
Chiefs = table.Column<List<int>>(type: "integer[]", nullable: true),
|
||||
Capacity = table.Column<int>(type: "integer", nullable: false),
|
||||
SendSMS = table.Column<bool>(type: "boolean", nullable: false),
|
||||
Students = table.Column<List<Guid>>(type: "uuid[]", nullable: true)
|
||||
Students = table.Column<List<int>>(type: "integer[]", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Sessions", x => x.Guid);
|
||||
table.PrimaryKey("PK_Sessions", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "SMS",
|
||||
columns: table => new
|
||||
{
|
||||
Guid = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Host = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Host = table.Column<int>(type: "integer", nullable: false),
|
||||
Tel = table.Column<string>(type: "text", nullable: true),
|
||||
Data = table.Column<List<string>>(type: "text[]", nullable: true),
|
||||
Type = table.Column<int>(type: "integer", nullable: false),
|
||||
Sender = table.Column<string>(type: "text", nullable: true),
|
||||
SendTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
||||
SendTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_SMS", x => x.Guid);
|
||||
table.PrimaryKey("PK_SMS", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Students",
|
||||
columns: table => new
|
||||
{
|
||||
Guid = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Name = table.Column<string>(type: "text", nullable: true),
|
||||
Stuid = table.Column<string>(type: "text", nullable: true),
|
||||
Sex = table.Column<int>(type: "integer", nullable: false),
|
||||
@@ -72,27 +79,28 @@ namespace _2021_backend.Migrations
|
||||
Email = table.Column<string>(type: "text", nullable: true),
|
||||
Tel = table.Column<string>(type: "text", nullable: true),
|
||||
Exp = table.Column<int>(type: "integer", nullable: false),
|
||||
InterviewTime = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Submissions = table.Column<List<Guid>>(type: "uuid[]", nullable: true),
|
||||
Messages = table.Column<List<Guid>>(type: "uuid[]", nullable: true),
|
||||
Timelist = table.Column<List<Guid>>(type: "uuid[]", nullable: true),
|
||||
Comments = table.Column<List<Guid>>(type: "uuid[]", nullable: true),
|
||||
InterviewTime = table.Column<int>(type: "integer", nullable: false),
|
||||
Submissions = table.Column<List<int>>(type: "integer[]", nullable: true),
|
||||
Messages = table.Column<List<int>>(type: "integer[]", nullable: true),
|
||||
Timelist = table.Column<List<int>>(type: "integer[]", nullable: true),
|
||||
Comments = table.Column<List<int>>(type: "integer[]", nullable: true),
|
||||
Score = table.Column<int>(type: "integer", nullable: false),
|
||||
Status = table.Column<int>(type: "integer", nullable: false),
|
||||
LastSubmission = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
RegisterTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
||||
LastSubmission = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||
RegisterTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Students", x => x.Guid);
|
||||
table.PrimaryKey("PK_Students", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Submissions",
|
||||
columns: table => new
|
||||
{
|
||||
Guid = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Host = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Host = table.Column<int>(type: "integer", nullable: false),
|
||||
Name = table.Column<string>(type: "text", nullable: true),
|
||||
Stuid = table.Column<string>(type: "text", nullable: true),
|
||||
Sex = table.Column<int>(type: "integer", nullable: false),
|
||||
@@ -102,20 +110,21 @@ namespace _2021_backend.Migrations
|
||||
Email = table.Column<string>(type: "text", nullable: true),
|
||||
Tel = table.Column<string>(type: "text", nullable: true),
|
||||
Exp = table.Column<int>(type: "integer", nullable: false),
|
||||
Timelist = table.Column<List<Guid>>(type: "uuid[]", nullable: true),
|
||||
Timelist = table.Column<List<int>>(type: "integer[]", nullable: true),
|
||||
Address = table.Column<string>(type: "text", nullable: true),
|
||||
SubmitTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
||||
SubmitTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Submissions", x => x.Guid);
|
||||
table.PrimaryKey("PK_Submissions", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Users",
|
||||
columns: table => new
|
||||
{
|
||||
Guid = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
stuID = table.Column<string>(type: "text", nullable: true),
|
||||
Name = table.Column<string>(type: "text", nullable: true),
|
||||
Secret = table.Column<string>(type: "text", nullable: true),
|
||||
@@ -123,7 +132,7 @@ namespace _2021_backend.Migrations
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Users", x => x.Guid);
|
||||
table.PrimaryKey("PK_Users", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
using _2021_backend.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace _2021_backend.Migrations
|
||||
{
|
||||
[DbContext(typeof(BackendContext))]
|
||||
@@ -16,48 +18,88 @@ namespace _2021_backend.Migrations
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63)
|
||||
.HasAnnotation("ProductVersion", "5.0.9")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.HasAnnotation("ProductVersion", "6.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Comment", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("AddTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Content")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<Guid>("Operator")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Operator")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("Student")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Student")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Comments");
|
||||
b.ToTable("Comments", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Session", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("BeginTime")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int>("Capacity")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<List<int>>("Chiefs")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<DateTime>("Day")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Place")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("SendSMS")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<List<int>>("Students")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Sessions", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.SMS", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<List<string>>("Data")
|
||||
.HasColumnType("text[]");
|
||||
|
||||
b.Property<Guid>("Host")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Host")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("SendTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Sender")
|
||||
.HasColumnType("text");
|
||||
@@ -68,52 +110,21 @@ namespace _2021_backend.Migrations
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("SMS");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Session", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTime>("BeginTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<int>("Capacity")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<List<Guid>>("Chiefs")
|
||||
.HasColumnType("uuid[]");
|
||||
|
||||
b.Property<DateTime>("Day")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("Place")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("SendSMS")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<List<Guid>>("Students")
|
||||
.HasColumnType("uuid[]");
|
||||
|
||||
b.HasKey("Guid");
|
||||
|
||||
b.ToTable("Sessions");
|
||||
b.ToTable("SMS", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Student", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<List<Guid>>("Comments")
|
||||
.HasColumnType("uuid[]");
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<List<int>>("Comments")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasColumnType("text");
|
||||
@@ -124,23 +135,23 @@ namespace _2021_backend.Migrations
|
||||
b.Property<int>("Grade")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("InterviewTime")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("InterviewTime")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("LastSubmission")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Major")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Messages")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Messages")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("RegisterTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int>("Score")
|
||||
.HasColumnType("integer");
|
||||
@@ -154,28 +165,30 @@ namespace _2021_backend.Migrations
|
||||
b.Property<string>("Stuid")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Submissions")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Submissions")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("Tel")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Timelist")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Timelist")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<int>("Yard")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Students");
|
||||
b.ToTable("Students", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.Submission", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Address")
|
||||
.HasColumnType("text");
|
||||
@@ -189,8 +202,8 @@ namespace _2021_backend.Migrations
|
||||
b.Property<int>("Grade")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("Host")
|
||||
.HasColumnType("uuid");
|
||||
b.Property<int>("Host")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Major")
|
||||
.HasColumnType("text");
|
||||
@@ -205,27 +218,29 @@ namespace _2021_backend.Migrations
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("SubmitTime")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Tel")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<List<Guid>>("Timelist")
|
||||
.HasColumnType("uuid[]");
|
||||
b.Property<List<int>>("Timelist")
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<int>("Yard")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Submissions");
|
||||
b.ToTable("Submissions", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("_2021_backend.Models.User", b =>
|
||||
{
|
||||
b.Property<Guid>("Guid")
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("text");
|
||||
@@ -239,9 +254,9 @@ namespace _2021_backend.Migrations
|
||||
b.Property<string>("stuID")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Guid");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Users");
|
||||
b.ToTable("Users", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user