HuanMengAdmin/admin-generate-ef-seed-data/codes/MigrationsTUserChatModelBuilderExtensions.cs
2025-11-08 00:02:14 +08:00

13 lines
3.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace MiaoYu.Repository.EntityFramework.Admin.Migrations.SeedsDatas.Datas;
public static class MigrationsTUserChatModelBuilderExtensions
{
public static void Seed(this ModelBuilder modelBuilder)
{
// ===============================================表T_User_Chat 种子数据=============================================
modelBuilder.Entity<TUserChat>().HasData(new TUserChat(){Id=1,CharacterId=1,CreateAt=DateTime.Parse("2024/7/15 18:30:08"),IsDelete=bool.Parse("False"),ModelConfigId=1,SessionId=Guid.Parse("2d72d7b5-6d8f-4a72-81f5-2eb40797607e"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 14:28:57"),UserId=2},new TUserChat(){Id=2,CharacterId=1,CreateAt=DateTime.Parse("2024/7/16 18:29:37"),IsDelete=bool.Parse("False"),ModelConfigId=1,SessionId=Guid.Parse("b4e98a18-f095-43de-a16e-24e0902e0478"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/16 18:29:37"),UserId=0},new TUserChat(){Id=3,CharacterId=2,CreateAt=DateTime.Parse("2024/7/17 14:57:51"),IsDelete=bool.Parse("True"),ModelConfigId=1,SessionId=Guid.Parse("49a8c5a7-1c4f-4b7f-adb4-d834873d82ef"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 15:12:42"),UserId=3},new TUserChat(){Id=4,CharacterId=3,CreateAt=DateTime.Parse("2024/7/17 15:01:49"),IsDelete=bool.Parse("True"),ModelConfigId=1,SessionId=Guid.Parse("8fe3f1a9-a437-4d01-ae6e-0bd9c5a8bd65"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 15:28:13"),UserId=3},new TUserChat(){Id=5,CharacterId=1,CreateAt=DateTime.Parse("2024/7/17 15:31:56"),IsDelete=bool.Parse("True"),ModelConfigId=1,SessionId=Guid.Parse("d91c0bb8-7af9-4dfb-a435-065f7d63d3a5"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 16:08:47"),UserId=3},new TUserChat(){Id=6,CharacterId=3,CreateAt=DateTime.Parse("2024/7/17 15:34:45"),IsDelete=bool.Parse("False"),ModelConfigId=1,SessionId=Guid.Parse("b3531adb-d937-486d-b35b-8e90d988831a"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 15:53:48"),UserId=2},new TUserChat(){Id=7,CharacterId=3,CreateAt=DateTime.Parse("2024/7/17 16:06:56"),IsDelete=bool.Parse("False"),ModelConfigId=1,SessionId=Guid.Parse("7f02d66a-47f5-4043-a8d2-f23d3d473427"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 19:50:32"),UserId=3},new TUserChat(){Id=8,CharacterId=2,CreateAt=DateTime.Parse("2024/7/17 16:08:01"),IsDelete=bool.Parse("False"),ModelConfigId=1,SessionId=Guid.Parse("30903563-b410-4133-9369-fd67848f3822"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 16:08:01"),UserId=3},new TUserChat(){Id=9,CharacterId=1,CreateAt=DateTime.Parse("2024/7/17 16:08:53"),IsDelete=bool.Parse("True"),ModelConfigId=1,SessionId=Guid.Parse("5cfbe41d-8e29-4787-951b-be57465a27f2"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 16:09:14"),UserId=3},new TUserChat(){Id=10,CharacterId=1,CreateAt=DateTime.Parse("2024/7/17 16:09:19"),IsDelete=bool.Parse("False"),ModelConfigId=1,SessionId=Guid.Parse("9c839ba0-2c09-44cd-8ab7-8bdd39e28b65"),SessionName="新会话",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateAt=DateTime.Parse("2024/7/17 16:09:19"),UserId=3});
}
}