sync: soul-api 后端 | 原因: 后端代码修改

This commit is contained in:
卡若
2026-03-08 08:24:51 +08:00
parent 48009850dc
commit e0e6298a2d

View File

@@ -0,0 +1,17 @@
package model
import "time"
// UserRule 用户旅程引导规则匹配后填写头像、付款1980需填写信息等
type UserRule struct {
ID uint `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
Title string `gorm:"column:title;size:200;not null" json:"title"`
Description string `gorm:"column:description;type:text" json:"description"`
Trigger string `gorm:"column:trigger;size:100" json:"trigger"`
Sort int `gorm:"column:sort;default:0" json:"sort"`
Enabled bool `gorm:"column:enabled;default:true" json:"enabled"`
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"`
}
func (UserRule) TableName() string { return "user_rules" }