myhn/Infrastructure/Migrations/20210104111104_CreateLinkEntity.Designer.cs
2021-01-08 16:26:19 +01:00

43 lines
1.2 KiB
C#

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using MyHN.Infrastructure;
namespace Infrastructure.Migrations
{
[DbContext(typeof(MyHNDbContext))]
[Migration("20210104111104_CreateLinkEntity")]
partial class CreateLinkEntity
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "5.0.1");
modelBuilder.Entity("MyHN.Domain.Link", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property<DateTime>("CreatedAt")
.HasColumnType("TEXT");
b.Property<string>("Url")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("links");
});
#pragma warning restore 612, 618
}
}
}