feat: 部署初版测试
This commit is contained in:
18
server/internal/model/generated_reply.go
Normal file
18
server/internal/model/generated_reply.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type GeneratedReply struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
|
||||
UserID uuid.UUID `gorm:"type:uuid;not null;index:idx_generated_replies_user_id" json:"user_id"`
|
||||
TweetID uuid.UUID `gorm:"type:uuid;not null;index:idx_generated_replies_tweet_id" json:"tweet_id"`
|
||||
StrategyType string `gorm:"type:varchar(100);not null" json:"strategy_type"`
|
||||
Content string `gorm:"type:text;not null" json:"content"`
|
||||
Status string `gorm:"type:varchar(50);default:'draft'" json:"status"` // draft, copied, posted
|
||||
Language string `gorm:"type:varchar(10);default:'en'" json:"language"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user