//
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("20210224014442_InitialCreate")]
partial class InitialCreate
{
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("Apps");
});
modelBuilder.Entity("Domain.AggregateModel.LinkAggregate.Link", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("AppId")
.HasColumnType("int");
b.Property("BaseUrl")
.HasColumnType("longtext");
b.Property("FullUrl")
.HasColumnType("longtext");
b.Property("ShortCode")
.HasColumnType("longtext");
b.Property("SuffixUrl")
.HasColumnType("longtext");
b.Property("Time")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.ToTable("Links");
});
#pragma warning restore 612, 618
}
}
}