2025-09-19 04:08:42 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type AIChatMessages struct {
|
2025-09-20 02:45:59 +00:00
|
|
|
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
|
|
|
|
|
SessionID string `json:"session_id" gorm:"type:varchar;not null;index"`
|
|
|
|
|
MessageType string `json:"message_type" gorm:"type:varchar;not null"`
|
|
|
|
|
Content string `json:"content" gorm:"type:text;not null"`
|
|
|
|
|
IsActive bool `json:"is_active" gorm:"type:bool;default:true"`
|
|
|
|
|
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
|
2025-09-19 04:08:42 +00:00
|
|
|
}
|