mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-15 05:25:36 +08:00
65 lines
2.1 KiB
C#
65 lines
2.1 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using BuildingBlocks.PersistMessageProcessor.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace BuildingBlocks.PersistMessageProcessor.Data.Migrations
|
|
{
|
|
[DbContext(typeof(PersistMessageDbContext))]
|
|
[Migration("20221206184130_initial")]
|
|
partial class initial
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("BuildingBlocks.PersistMessageProcessor.PersistMessage", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Data")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("DataType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("DeliveryType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.IsUnicode(false)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("MessageStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.IsUnicode(false)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<int>("RetryCount")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PersistMessage", "dbo");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|