// using System; using HN.Infrastructure; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Infrastructure.Migrations { [DbContext(typeof(HNDbContext))] [Migration("20201204103112_CreateLink")] partial class CreateLink { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "5.0.0"); modelBuilder.Entity("HN.Domain.Link", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("Url") .IsRequired() .HasMaxLength(500) .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("Url") .IsUnique(); b.ToTable("links"); }); #pragma warning restore 612, 618 } } }