//
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("20210224015439_AddConfiguration")]
partial class AddConfiguration
{
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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("AppKey")
.HasColumnType("longtext");
b.Property("BaseUrl")
.HasColumnType("longtext");
b.Property("Remarks")
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("App");
});
modelBuilder.Entity("Domain.AggregateModel.LinkAggregate.Link", b =>
{
b.Property("ShortCode")
.HasColumnType("varchar(255)");
b.Property("AppId")
.HasColumnType("int");
b.Property("BaseUrl")
.HasColumnType("longtext");
b.Property("FullUrl")
.HasColumnType("longtext");
b.Property("Id")
.HasColumnType("int");
b.Property("SuffixUrl")
.HasColumnType("longtext");
b.Property("Time")
.HasColumnType("datetime(6)");
b.HasKey("ShortCode");
b.ToTable("Link");
});
#pragma warning restore 612, 618
}
}
}