mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
905 lines
34 KiB
905 lines
34 KiB
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Volo.Abp.EntityFrameworkCore;
|
|
using Volo.CmsKit.EntityFrameworkCore;
|
|
|
|
namespace Volo.CmsKit.Migrations
|
|
{
|
|
[DbContext(typeof(CmsKitHttpApiHostMigrationsDbContext))]
|
|
[Migration("20210609081519_Initial")]
|
|
partial class Initial
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
.HasAnnotation("ProductVersion", "5.0.7")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<Guid>("ContainerId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<byte[]>("Content")
|
|
.HasMaxLength(2147483647)
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ContainerId");
|
|
|
|
b.HasIndex("TenantId", "ContainerId", "Name");
|
|
|
|
b.ToTable("AbpBlobs");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name");
|
|
|
|
b.ToTable("AbpBlobContainers");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Blogs.Blog", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("CmsBlogs");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Blogs.BlogFeature", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BlogId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FeatureName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("CmsBlogFeatures");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Blogs.BlogPost", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("AuthorId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BlogId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("Content")
|
|
.HasMaxLength(2147483647)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("CoverImageMediaId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("ShortDescription")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AuthorId");
|
|
|
|
b.HasIndex("Slug", "BlogId");
|
|
|
|
b.ToTable("CmsBlogPosts");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Comments.Comment", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("EntityId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("EntityType")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("RepliedCommentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("Text")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "RepliedCommentId");
|
|
|
|
b.HasIndex("TenantId", "EntityType", "EntityId");
|
|
|
|
b.ToTable("CmsComments");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.MediaDescriptors.MediaDescriptor", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("EntityType")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MimeType")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<long>("Size")
|
|
.HasMaxLength(2147483647)
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("CmsMediaDescriptors");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Menus.Menu", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("CmsMenus");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Menus.MenuItem", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CssClass")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ElementId")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Icon")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MenuId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<int>("Order")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("PageId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("RequiredPermissionName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Target")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Url")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MenuId");
|
|
|
|
b.ToTable("CmsMenuItems");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Pages.Page", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("Content")
|
|
.HasMaxLength(2147483647)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Script")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("Style")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Slug");
|
|
|
|
b.ToTable("CmsPages");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Ratings.Rating", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("EntityId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("EntityType")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<short>("StarCount")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "EntityType", "EntityId", "CreatorId");
|
|
|
|
b.ToTable("CmsRatings");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Reactions.UserReaction", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("EntityId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("EntityType")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ReactionName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "EntityType", "EntityId", "ReactionName");
|
|
|
|
b.HasIndex("TenantId", "CreatorId", "EntityType", "EntityId", "ReactionName");
|
|
|
|
b.ToTable("CmsUserReactions");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Tags.EntityTag", b =>
|
|
{
|
|
b.Property<string>("EntityId")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid>("TagId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("EntityId", "TagId");
|
|
|
|
b.HasIndex("TenantId", "EntityId", "TagId");
|
|
|
|
b.ToTable("CmsEntityTags");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Tags.Tag", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("EntityType")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name");
|
|
|
|
b.ToTable("CmsTags");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Users.CmsUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)")
|
|
.HasColumnName("Email");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("EmailConfirmed");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Name");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("nvarchar(16)")
|
|
.HasColumnName("PhoneNumber");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("PhoneNumberConfirmed");
|
|
|
|
b.Property<string>("Surname")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Surname");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)")
|
|
.HasColumnName("UserName");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Email");
|
|
|
|
b.HasIndex("TenantId", "UserName");
|
|
|
|
b.ToTable("CmsUsers");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", null)
|
|
.WithMany()
|
|
.HasForeignKey("ContainerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Blogs.BlogPost", b =>
|
|
{
|
|
b.HasOne("Volo.CmsKit.Users.CmsUser", "Author")
|
|
.WithMany()
|
|
.HasForeignKey("AuthorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Author");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Menus.MenuItem", b =>
|
|
{
|
|
b.HasOne("Volo.CmsKit.Menus.Menu", null)
|
|
.WithMany("Items")
|
|
.HasForeignKey("MenuId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Menus.Menu", b =>
|
|
{
|
|
b.Navigation("Items");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|