添加数据库迁移
This commit is contained in:
75
QRCodeService/Migrations/AppDbContextModelSnapshot.cs
Normal file
75
QRCodeService/Migrations/AppDbContextModelSnapshot.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
namespace QRCodeService.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
partial class AppDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64)
|
||||
.HasAnnotation("ProductVersion", "5.0.3");
|
||||
|
||||
modelBuilder.Entity("Domain.AggregateModel.AppAggregate.App", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AppKey")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("BaseUrl")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("Remarks")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("App");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Domain.AggregateModel.LinkAggregate.Link", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("AppId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("BaseUrl")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("FullUrl")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("ShortCode")
|
||||
.HasMaxLength(11)
|
||||
.HasColumnType("varchar(11)");
|
||||
|
||||
b.Property<string>("SuffixUrl")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<DateTime>("Time")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ShortCode")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Link");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user