chore: seed migration objects batch 5

This commit is contained in:
dev
2026-10-18 13:37:24 +08:00
parent 53c9c0afd8
commit c8c40b1dd2
239 changed files with 16941 additions and 1544 deletions
@@ -0,0 +1,39 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ImMessageCurfewRules is the golang structure of table im_message_curfew_rules for DAO operations like Where/Data.
type ImMessageCurfewRules struct {
g.Meta `orm:"table:im_message_curfew_rules, do:true"`
Id any //
TenantId any //
PolicyId any //
RuleCode any //
RuleName any //
DateType any // daily, weekday, weekend, custom
CustomDates *gjson.Json // YYYY-MM-DD values for custom date type
Weekdays *gjson.Json // ISO weekdays 1 through 7
Timezone any //
StartTime *gtime.Time //
EndTime *gtime.Time // Less than start_time means crossing midnight
Scope any // private_message or group_message
WhitelistUserIds *gjson.Json //
WhitelistGroupIds *gjson.Json //
Message any //
Status any // 1 enabled, 2 disabled
Sort any //
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
DeletedAt *gtime.Time //
DeletedBy any //
}
@@ -0,0 +1,32 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ImSecurityIpRules is the golang structure of table im_security_ip_rules for DAO operations like Where/Data.
type ImSecurityIpRules struct {
g.Meta `orm:"table:im_security_ip_rules, do:true"`
Id any //
TenantId any //
RuleType any // whitelist or blacklist
IpCidr any // IPv4, IPv6 or CIDR
Action any // allow, challenge, block, audit_only
SceneJson *gjson.Json // login, register, message, upload and other scenes
RiskLevel any //
Status any // 1 enabled, 2 disabled
ExpiresAt *gtime.Time //
Remark any //
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
DeletedAt *gtime.Time //
DeletedBy any //
}
@@ -0,0 +1,39 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ImSecurityPolicy is the golang structure of table im_security_policy for DAO operations like Where/Data.
type ImSecurityPolicy struct {
g.Meta `orm:"table:im_security_policy, do:true"`
Id any //
TenantId any // 0 means global fallback policy
PolicyVersion any //
PolicyName any //
PublishStatus any //
PasswordPolicy *gjson.Json //
LoginRateLimit *gjson.Json //
SensitiveWordPolicy *gjson.Json //
FileReviewPolicy *gjson.Json //
RealnamePolicy *gjson.Json //
RiskChallengePolicy *gjson.Json //
GlobalFriendEnabled any // Backend master switch for every add-friend entry
FriendDisabledPolicy *gjson.Json // Profile masking, QR and group-member restrictions
MessageCurfewEnabled any // Backend master switch for message curfew
Remark any //
PublishedAt *gtime.Time //
PublishedBy any //
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
DeletedAt *gtime.Time //
DeletedBy any //
}
@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ImSensitiveWordGroups is the golang structure of table im_sensitive_word_groups for DAO operations like Where/Data.
type ImSensitiveWordGroups struct {
g.Meta `orm:"table:im_sensitive_word_groups, do:true"`
Id any //
TenantId any // 0 means global dictionary
GroupCode any //
GroupName any //
Priority any //
Status any // 1 enabled, 2 disabled
Remark any //
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
DeletedAt *gtime.Time //
DeletedBy any //
}
@@ -0,0 +1,35 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ImSensitiveWords is the golang structure of table im_sensitive_words for DAO operations like Where/Data.
type ImSensitiveWords struct {
g.Meta `orm:"table:im_sensitive_words, do:true"`
Id any //
TenantId any // 0 means global dictionary
GroupId any //
Word any //
WordHash any // SHA-256 of normalized word
MatchType any //
SceneJson *gjson.Json // Enabled scenes
Action any //
Replacement any //
RiskLevel any //
Priority any //
Status any // 1 enabled, 2 disabled
Remark any //
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
DeletedAt *gtime.Time //
DeletedBy any //
}
+14 -10
View File
@@ -11,14 +11,18 @@ import (
// ImTenantConfig is the golang structure of table im_tenant_config for DAO operations like Where/Data.
type ImTenantConfig struct {
g.Meta `orm:"table:im_tenant_config, do:true"`
Id any //
TenantId any //
MaxUsers any // 0 means unlimited
MaxGroups any // 0 means unlimited
MaxGroupMembers any // 0 means unlimited
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
g.Meta `orm:"table:im_tenant_config, do:true"`
Id any //
TenantId any //
MaxUsers any // 0 means unlimited
MaxGroups any // 0 means unlimited
MaxGroupMembers any // 0 means unlimited
DefaultPolicyGroupId any // Default user policy group
SecurityPolicyVersion any // Published security policy version
GlobalFriendEnabled any // Published global friend switch
MessageCurfewEnabled any // Published message curfew switch
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
}
@@ -0,0 +1,29 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ImUserPolicyGroupMembers is the golang structure of table im_user_policy_group_members for DAO operations like Where/Data.
type ImUserPolicyGroupMembers struct {
g.Meta `orm:"table:im_user_policy_group_members, do:true"`
Id any //
TenantId any //
GroupId any //
UserId any // User ID in the tenant database
Status any // 1 enabled, 2 disabled
ValidFrom *gtime.Time //
ValidUntil *gtime.Time //
Remark any //
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
DeletedAt *gtime.Time //
DeletedBy any //
}
@@ -0,0 +1,33 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ImUserPolicyGroups is the golang structure of table im_user_policy_groups for DAO operations like Where/Data.
type ImUserPolicyGroups struct {
g.Meta `orm:"table:im_user_policy_groups, do:true"`
Id any //
TenantId any // 0 means global default
GroupCode any // Stable policy group code
GroupName any // Policy group name
Priority any // Higher value has higher priority
Status any // 1 enabled, 2 disabled
PolicyJson *gjson.Json // Login, friend, message, group and file policies
IpWhitelist *gjson.Json // IPv4/IPv6 or CIDR list
IpBlacklist *gjson.Json // IPv4/IPv6 or CIDR list
Version any // Optimistic-lock/config version
Remark any //
CreatedAt *gtime.Time //
CreatedBy any //
UpdatedAt *gtime.Time //
UpdatedBy any //
DeletedAt *gtime.Time //
DeletedBy any //
}