using LINGYUN.Abp.MessageService.Chat; using LINGYUN.Abp.MessageService.EntityFrameworkCore; using LINGYUN.Abp.MessageService.Groups; using LINGYUN.Abp.Notifications; using LINGYUN.Abp.Notifications.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; namespace LINGYUN.Abp.MicroService.MessageService; [ConnectionStringName("Default")] public class MessageServiceMigrationsDbContext : AbpDbContext, INotificationsDbContext, INotificationsDefinitionDbContext, IMessageServiceDbContext { public DbSet UserMessages { get; set; } public DbSet GroupMessages { get; set; } public DbSet UserChatFriends { get; set; } public DbSet UserChatSettings { get; set; } public DbSet GroupChatBlacks { get; set; } public DbSet ChatGroups { get; set; } public DbSet UserChatGroups { get; set; } public DbSet UserChatCards { get; set; } public DbSet UserGroupCards { get; set; } public DbSet NotificationDefinitionGroupRecords { get; set; } public DbSet NotificationDefinitionRecords { get; set; } public DbSet Notifications { get; set; } public DbSet UserNotifications { get; set; } public DbSet UserSubscribes { get; set; } public MessageServiceMigrationsDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.ConfigureNotifications(); modelBuilder.ConfigureNotificationsDefinition(); modelBuilder.ConfigureMessageService(); } }