feat(tenant): 隔离客服通知文件与后台任务
This commit is contained in:
@@ -4,6 +4,7 @@ import "time"
|
||||
|
||||
type Notification struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
TenantID uint64 `gorm:"not null;default:0;index:idx_notifications_tenant_user_read" json:"tenant_id"`
|
||||
UserID uint64 `gorm:"not null;index" json:"user_id"`
|
||||
Type string `gorm:"size:32;not null" json:"type"`
|
||||
Title string `gorm:"size:128;not null" json:"title"`
|
||||
@@ -21,6 +22,7 @@ func (Notification) TableName() string {
|
||||
|
||||
type AdminNotification struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
TenantID uint64 `gorm:"not null;default:0;index:idx_admin_notifications_tenant_user_read" json:"tenant_id"`
|
||||
AdminUserID uint64 `gorm:"not null;index" json:"admin_user_id"`
|
||||
Type string `gorm:"size:32;not null" json:"type"`
|
||||
Title string `gorm:"size:128;not null" json:"title"`
|
||||
|
||||
Reference in New Issue
Block a user