// using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using _2021_backend.Data; namespace _2021_backend.Migrations { [DbContext(typeof(BackendContext))] partial class BackendContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("ProductVersion", "5.0.9") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); modelBuilder.Entity("_2021_backend.Models.Comment", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AddTime") .HasColumnType("timestamp without time zone"); b.Property("Content") .IsRequired() .HasColumnType("text"); b.Property("Operator") .HasColumnType("uuid"); b.Property("Student") .HasColumnType("uuid"); b.HasKey("Guid"); b.ToTable("Comments"); }); modelBuilder.Entity("_2021_backend.Models.SMS", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property>("Data") .HasColumnType("text[]"); b.Property("Host") .HasColumnType("uuid"); b.Property("SendTime") .HasColumnType("timestamp without time zone"); b.Property("Sender") .HasColumnType("text"); b.Property("Tel") .HasColumnType("text"); b.Property("Type") .HasColumnType("integer"); b.HasKey("Guid"); b.ToTable("SMS"); }); modelBuilder.Entity("_2021_backend.Models.Session", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("BeginTime") .HasColumnType("timestamp without time zone"); b.Property("Capacity") .HasColumnType("integer"); b.Property>("Chiefs") .HasColumnType("uuid[]"); b.Property("Day") .HasColumnType("timestamp without time zone"); b.Property("Place") .IsRequired() .HasColumnType("text"); b.Property("SendSMS") .HasColumnType("boolean"); b.Property>("Students") .HasColumnType("uuid[]"); b.HasKey("Guid"); b.ToTable("Sessions"); }); modelBuilder.Entity("_2021_backend.Models.Student", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property>("Comments") .HasColumnType("uuid[]"); b.Property("Email") .HasColumnType("text"); b.Property("Exp") .HasColumnType("integer"); b.Property("Grade") .HasColumnType("integer"); b.Property("InterviewTime") .HasColumnType("uuid"); b.Property("LastSubmission") .HasColumnType("timestamp without time zone"); b.Property("Major") .HasColumnType("text"); b.Property>("Messages") .HasColumnType("uuid[]"); b.Property("Name") .HasColumnType("text"); b.Property("RegisterTime") .HasColumnType("timestamp without time zone"); b.Property("Score") .HasColumnType("integer"); b.Property("Sex") .HasColumnType("integer"); b.Property("Status") .HasColumnType("integer"); b.Property("Stuid") .HasColumnType("text"); b.Property>("Submissions") .HasColumnType("uuid[]"); b.Property("Tel") .HasColumnType("text"); b.Property>("Timelist") .HasColumnType("uuid[]"); b.Property("Yard") .HasColumnType("integer"); b.HasKey("Guid"); b.ToTable("Students"); }); modelBuilder.Entity("_2021_backend.Models.Submission", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Address") .HasColumnType("text"); b.Property("Email") .HasColumnType("text"); b.Property("Exp") .HasColumnType("integer"); b.Property("Grade") .HasColumnType("integer"); b.Property("Host") .HasColumnType("uuid"); b.Property("Major") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Sex") .HasColumnType("integer"); b.Property("Stuid") .HasColumnType("text"); b.Property("SubmitTime") .HasColumnType("timestamp without time zone"); b.Property("Tel") .HasColumnType("text"); b.Property>("Timelist") .HasColumnType("uuid[]"); b.Property("Yard") .HasColumnType("integer"); b.HasKey("Guid"); b.ToTable("Submissions"); }); modelBuilder.Entity("_2021_backend.Models.User", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Name") .HasColumnType("text"); b.Property("Secret") .HasColumnType("text"); b.Property("isManager") .HasColumnType("boolean"); b.Property("stuID") .HasColumnType("text"); b.HasKey("Guid"); b.ToTable("Users"); }); #pragma warning restore 612, 618 } } }