chore: seed migration objects batch 5
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImMessageCurfewRules is the golang structure for table im_message_curfew_rules.
|
||||
type ImMessageCurfewRules struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:""`
|
||||
PolicyId int64 `json:"policyId" orm:"policy_id" description:""`
|
||||
RuleCode string `json:"ruleCode" orm:"rule_code" description:""`
|
||||
RuleName string `json:"ruleName" orm:"rule_name" description:""`
|
||||
DateType string `json:"dateType" orm:"date_type" description:"daily, weekday, weekend, custom"`
|
||||
CustomDates *gjson.Json `json:"customDates" orm:"custom_dates" description:"YYYY-MM-DD values for custom date type"`
|
||||
Weekdays *gjson.Json `json:"weekdays" orm:"weekdays" description:"ISO weekdays 1 through 7"`
|
||||
Timezone string `json:"timezone" orm:"timezone" description:""`
|
||||
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:""`
|
||||
EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"Less than start_time means crossing midnight"`
|
||||
Scope string `json:"scope" orm:"scope" description:"private_message or group_message"`
|
||||
WhitelistUserIds *gjson.Json `json:"whitelistUserIds" orm:"whitelist_user_ids" description:""`
|
||||
WhitelistGroupIds *gjson.Json `json:"whitelistGroupIds" orm:"whitelist_group_ids" description:""`
|
||||
Message string `json:"message" orm:"message" description:""`
|
||||
Status int `json:"status" orm:"status" description:"1 enabled, 2 disabled"`
|
||||
Sort int `json:"sort" orm:"sort" description:""`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""`
|
||||
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:""`
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImSecurityIpRules is the golang structure for table im_security_ip_rules.
|
||||
type ImSecurityIpRules struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:""`
|
||||
RuleType string `json:"ruleType" orm:"rule_type" description:"whitelist or blacklist"`
|
||||
IpCidr string `json:"ipCidr" orm:"ip_cidr" description:"IPv4, IPv6 or CIDR"`
|
||||
Action string `json:"action" orm:"action" description:"allow, challenge, block, audit_only"`
|
||||
SceneJson *gjson.Json `json:"sceneJson" orm:"scene_json" description:"login, register, message, upload and other scenes"`
|
||||
RiskLevel string `json:"riskLevel" orm:"risk_level" description:""`
|
||||
Status int `json:"status" orm:"status" description:"1 enabled, 2 disabled"`
|
||||
ExpiresAt *gtime.Time `json:"expiresAt" orm:"expires_at" description:""`
|
||||
Remark string `json:"remark" orm:"remark" description:""`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""`
|
||||
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:""`
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImSecurityPolicy is the golang structure for table im_security_policy.
|
||||
type ImSecurityPolicy struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:"0 means global fallback policy"`
|
||||
PolicyVersion uint `json:"policyVersion" orm:"policy_version" description:""`
|
||||
PolicyName string `json:"policyName" orm:"policy_name" description:""`
|
||||
PublishStatus string `json:"publishStatus" orm:"publish_status" description:""`
|
||||
PasswordPolicy *gjson.Json `json:"passwordPolicy" orm:"password_policy" description:""`
|
||||
LoginRateLimit *gjson.Json `json:"loginRateLimit" orm:"login_rate_limit" description:""`
|
||||
SensitiveWordPolicy *gjson.Json `json:"sensitiveWordPolicy" orm:"sensitive_word_policy" description:""`
|
||||
FileReviewPolicy *gjson.Json `json:"fileReviewPolicy" orm:"file_review_policy" description:""`
|
||||
RealnamePolicy *gjson.Json `json:"realnamePolicy" orm:"realname_policy" description:""`
|
||||
RiskChallengePolicy *gjson.Json `json:"riskChallengePolicy" orm:"risk_challenge_policy" description:""`
|
||||
GlobalFriendEnabled int `json:"globalFriendEnabled" orm:"global_friend_enabled" description:"Backend master switch for every add-friend entry"`
|
||||
FriendDisabledPolicy *gjson.Json `json:"friendDisabledPolicy" orm:"friend_disabled_policy" description:"Profile masking, QR and group-member restrictions"`
|
||||
MessageCurfewEnabled int `json:"messageCurfewEnabled" orm:"message_curfew_enabled" description:"Backend master switch for message curfew"`
|
||||
Remark string `json:"remark" orm:"remark" description:""`
|
||||
PublishedAt *gtime.Time `json:"publishedAt" orm:"published_at" description:""`
|
||||
PublishedBy int64 `json:"publishedBy" orm:"published_by" description:""`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""`
|
||||
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:""`
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImSensitiveWordGroups is the golang structure for table im_sensitive_word_groups.
|
||||
type ImSensitiveWordGroups struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:"0 means global dictionary"`
|
||||
GroupCode string `json:"groupCode" orm:"group_code" description:""`
|
||||
GroupName string `json:"groupName" orm:"group_name" description:""`
|
||||
Priority int `json:"priority" orm:"priority" description:""`
|
||||
Status int `json:"status" orm:"status" description:"1 enabled, 2 disabled"`
|
||||
Remark string `json:"remark" orm:"remark" description:""`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""`
|
||||
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:""`
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImSensitiveWords is the golang structure for table im_sensitive_words.
|
||||
type ImSensitiveWords struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:"0 means global dictionary"`
|
||||
GroupId int64 `json:"groupId" orm:"group_id" description:""`
|
||||
Word string `json:"word" orm:"word" description:""`
|
||||
WordHash string `json:"wordHash" orm:"word_hash" description:"SHA-256 of normalized word"`
|
||||
MatchType string `json:"matchType" orm:"match_type" description:""`
|
||||
SceneJson *gjson.Json `json:"sceneJson" orm:"scene_json" description:"Enabled scenes"`
|
||||
Action string `json:"action" orm:"action" description:""`
|
||||
Replacement string `json:"replacement" orm:"replacement" description:""`
|
||||
RiskLevel string `json:"riskLevel" orm:"risk_level" description:""`
|
||||
Priority int `json:"priority" orm:"priority" description:""`
|
||||
Status int `json:"status" orm:"status" description:"1 enabled, 2 disabled"`
|
||||
Remark string `json:"remark" orm:"remark" description:""`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""`
|
||||
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:""`
|
||||
}
|
||||
@@ -10,13 +10,17 @@ import (
|
||||
|
||||
// ImTenantConfig is the golang structure for table im_tenant_config.
|
||||
type ImTenantConfig struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:""`
|
||||
MaxUsers uint64 `json:"maxUsers" orm:"max_users" description:"0 means unlimited"`
|
||||
MaxGroups uint64 `json:"maxGroups" orm:"max_groups" description:"0 means unlimited"`
|
||||
MaxGroupMembers uint `json:"maxGroupMembers" orm:"max_group_members" description:"0 means unlimited"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:""`
|
||||
MaxUsers uint64 `json:"maxUsers" orm:"max_users" description:"0 means unlimited"`
|
||||
MaxGroups uint64 `json:"maxGroups" orm:"max_groups" description:"0 means unlimited"`
|
||||
MaxGroupMembers uint `json:"maxGroupMembers" orm:"max_group_members" description:"0 means unlimited"`
|
||||
DefaultPolicyGroupId int64 `json:"defaultPolicyGroupId" orm:"default_policy_group_id" description:"Default user policy group"`
|
||||
SecurityPolicyVersion uint `json:"securityPolicyVersion" orm:"security_policy_version" description:"Published security policy version"`
|
||||
GlobalFriendEnabled int `json:"globalFriendEnabled" orm:"global_friend_enabled" description:"Published global friend switch"`
|
||||
MessageCurfewEnabled int `json:"messageCurfewEnabled" orm:"message_curfew_enabled" description:"Published message curfew switch"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImUserPolicyGroupMembers is the golang structure for table im_user_policy_group_members.
|
||||
type ImUserPolicyGroupMembers struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:""`
|
||||
GroupId int64 `json:"groupId" orm:"group_id" description:""`
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"User ID in the tenant database"`
|
||||
Status int `json:"status" orm:"status" description:"1 enabled, 2 disabled"`
|
||||
ValidFrom *gtime.Time `json:"validFrom" orm:"valid_from" description:""`
|
||||
ValidUntil *gtime.Time `json:"validUntil" orm:"valid_until" description:""`
|
||||
Remark string `json:"remark" orm:"remark" description:""`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""`
|
||||
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:""`
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImUserPolicyGroups is the golang structure for table im_user_policy_groups.
|
||||
type ImUserPolicyGroups struct {
|
||||
Id int64 `json:"id" orm:"id" description:""`
|
||||
TenantId int64 `json:"tenantId" orm:"tenant_id" description:"0 means global default"`
|
||||
GroupCode string `json:"groupCode" orm:"group_code" description:"Stable policy group code"`
|
||||
GroupName string `json:"groupName" orm:"group_name" description:"Policy group name"`
|
||||
Priority int `json:"priority" orm:"priority" description:"Higher value has higher priority"`
|
||||
Status int `json:"status" orm:"status" description:"1 enabled, 2 disabled"`
|
||||
PolicyJson *gjson.Json `json:"policyJson" orm:"policy_json" description:"Login, friend, message, group and file policies"`
|
||||
IpWhitelist *gjson.Json `json:"ipWhitelist" orm:"ip_whitelist" description:"IPv4/IPv6 or CIDR list"`
|
||||
IpBlacklist *gjson.Json `json:"ipBlacklist" orm:"ip_blacklist" description:"IPv4/IPv6 or CIDR list"`
|
||||
Version uint `json:"version" orm:"version" description:"Optimistic-lock/config version"`
|
||||
Remark string `json:"remark" orm:"remark" description:""`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:""`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:""`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""`
|
||||
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:""`
|
||||
}
|
||||
Reference in New Issue
Block a user