package model import ( "next-terminal/server/common" ) type SessionCommand struct { ID string `gorm:"primary_key,type:varchar(36)" json:"id"` SessionId string `gorm:"index,type:varchar(36)" json:"sessionId"` RiskLevel int `json:"riskLevel"` Command string `gorm:"type:text" json:"command"` Output string `gorm:"type:text" json:"output"` Created common.JsonTime `gorm:"type:datetime;index" json:"createdAt"` } func (r *SessionCommand) TableName() string { return "session_commands" }