16 lines
657 B
Go
16 lines
657 B
Go
package entity
|
|
|
|
import "time"
|
|
|
|
type Agent struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
AgentID string `gorm:"type:varchar(100);uniqueIndex" json:"agent_id"`
|
|
Name string `gorm:"type:varchar(255)" json:"name"`
|
|
Description string `gorm:"type:text" json:"description"`
|
|
Instructions string `gorm:"type:text" json:"instructions"`
|
|
Type string `gorm:"type:varchar(100)" json:"type"`
|
|
Status bool `gorm:"default:true" json:"status"`
|
|
IsActive bool `gorm:"default:true" json:"is_active"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
} |