You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.6 KiB
54 lines
1.6 KiB
// <auto-generated /> |
|
using BuaaLocationServer.Middlewares.Db; |
|
using Microsoft.EntityFrameworkCore; |
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
#nullable disable |
|
|
|
namespace BuaaLocationServer.Migrations |
|
{ |
|
[DbContext(typeof(BuaaDbContext))] |
|
[Migration("20221209072737_Init")] |
|
partial class Init |
|
{ |
|
/// <inheritdoc /> |
|
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|
{ |
|
#pragma warning disable 612, 618 |
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.0"); |
|
|
|
modelBuilder.Entity("BuaaLocationServer.Models.Company", b => |
|
{ |
|
b.Property<string>("Name") |
|
.HasColumnType("TEXT"); |
|
|
|
b.Property<string>("Content") |
|
.HasColumnType("TEXT"); |
|
|
|
b.HasKey("Name"); |
|
|
|
b.ToTable("Companies"); |
|
}); |
|
|
|
modelBuilder.Entity("BuaaLocationServer.Models.User", b => |
|
{ |
|
b.Property<string>("UserName") |
|
.HasColumnType("TEXT"); |
|
|
|
b.Property<string>("Password") |
|
.IsRequired() |
|
.HasColumnType("TEXT"); |
|
|
|
b.Property<int>("RoleType") |
|
.HasColumnType("INTEGER"); |
|
|
|
b.HasKey("UserName"); |
|
|
|
b.ToTable("Users"); |
|
}); |
|
#pragma warning restore 612, 618 |
|
} |
|
} |
|
}
|
|
|