78 lines
2.4 KiB
C#
78 lines
2.4 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Infrastructure;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
namespace QRCodeService.Migrations
|
|
{
|
|
[DbContext(typeof(AppDbContext))]
|
|
[Migration("20210224065420_init")]
|
|
partial class init
|
|
{
|
|
protected override void BuildTargetModel(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
|
|
}
|
|
}
|
|
}
|