Files
IM_NEW/GroupService.Infrastructure/Migrations/20260419115121_InitGroupDb.Designer.cs
T
2026-04-30 21:08:28 +08:00

127 lines
4.2 KiB
C#

// <auto-generated />
using System;
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("20260419115121_InitGroupDb")]
partial class InitGroupDb
{
/// <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.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
}
}
}