278 lines
10 KiB
C#
278 lines
10 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using GroupService.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace GroupService.Infrastructure.Migrations
|
|
{
|
|
[DbContext(typeof(GroupDbContext))]
|
|
[Migration("20260429103435_removeGroupRequestOperatorProfile")]
|
|
partial class removeGroupRequestOperatorProfile
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("GroupService.Domain.Entities.Group", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<bool>("AllMembersBanned")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Announcement")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("Authority")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Avatar")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTimeOffset>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTimeOffset?>("Deletion")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid>("GroupMaster")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("LastMessage")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("LastSenderName")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<long>("MaxSequenceId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTimeOffset?>("ModificationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("groups", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GroupService.Domain.Entities.GroupInvitation", b =>
|
|
{
|
|
b.Property<Guid>("GroupId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<DateTimeOffset>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTimeOffset?>("Deletion")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTimeOffset?>("ModificationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid>("OperatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.ComplexProperty<Dictionary<string, object>>("GroupProfile", "GroupService.Domain.Entities.GroupInvitation.GroupProfile#GroupProfile", b1 =>
|
|
{
|
|
b1.IsRequired();
|
|
|
|
b1.Property<string>("Avatar")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b1.Property<string>("GroupName")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("varchar(20)");
|
|
});
|
|
|
|
b.ComplexProperty<Dictionary<string, object>>("OperatorProfile", "GroupService.Domain.Entities.GroupInvitation.OperatorProfile#UserProfile", b1 =>
|
|
{
|
|
b1.IsRequired();
|
|
|
|
b1.Property<string>("Avatar")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b1.Property<string>("NickName")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("varchar(20)");
|
|
});
|
|
|
|
b.ComplexProperty<Dictionary<string, object>>("UserProfile", "GroupService.Domain.Entities.GroupInvitation.UserProfile#UserProfile", b1 =>
|
|
{
|
|
b1.IsRequired();
|
|
|
|
b1.Property<string>("Avatar")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b1.Property<string>("NickName")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("varchar(20)");
|
|
});
|
|
|
|
b.HasKey("GroupId", "UserId");
|
|
|
|
b.ToTable("group_invitations", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GroupService.Domain.Entities.GroupJoinRequest", b =>
|
|
{
|
|
b.Property<Guid>("GroupId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<DateTimeOffset>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTimeOffset?>("Deletion")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTimeOffset?>("ModificationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("OperatorAvatar")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<Guid?>("OperatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("OperatorName")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.ComplexProperty<Dictionary<string, object>>("GroupProfile", "GroupService.Domain.Entities.GroupJoinRequest.GroupProfile#GroupProfile", b1 =>
|
|
{
|
|
b1.IsRequired();
|
|
|
|
b1.Property<string>("Avatar")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b1.Property<string>("GroupName")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("varchar(20)");
|
|
});
|
|
|
|
b.ComplexProperty<Dictionary<string, object>>("UserProfile", "GroupService.Domain.Entities.GroupJoinRequest.UserProfile#UserProfile", b1 =>
|
|
{
|
|
b1.IsRequired();
|
|
|
|
b1.Property<string>("Avatar")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b1.Property<string>("NickName")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("varchar(20)");
|
|
});
|
|
|
|
b.HasKey("GroupId", "UserId");
|
|
|
|
b.ToTable("group_join_requests", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GroupService.Domain.Entities.GroupMember", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("Avatar")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTimeOffset>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTimeOffset?>("Deletion")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid>("GroupId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("GroupNickName")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTimeOffset?>("ModificationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Role")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("group_members", (string)null);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|