58 lines
1.9 KiB
C#
58 lines
1.9 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using System;
|
|||
|
|
using JiShe.CollectBus.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.EntityFrameworkCore.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(CollectBusDbContext))]
|
|||
|
|
partial class CollectBusDbContextModelSnapshot : ModelSnapshot
|
|||
|
|
{
|
|||
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder
|
|||
|
|
.HasAnnotation("ProductVersion", "8.0.10")
|
|||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|||
|
|
|
|||
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.CollectBus.EntityFrameworkCore.Device", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<long?>("CreatorId")
|
|||
|
|
.HasColumnType("bigint");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceNo")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext");
|
|||
|
|
|
|||
|
|
b.Property<int>("DeviceStatus")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<long?>("LastModifierId")
|
|||
|
|
.HasColumnType("bigint");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("Devices");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|