jaecoo-be/app/database/entity/sales_agents.entity.go

18 lines
743 B
Go

package entity
import (
"time"
)
type SalesAgents struct {
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
Name string `json:"name" gorm:"type:varchar"`
JobTitle *string `json:"job_title" gorm:"type:varchar"`
Phone *string `json:"phone" gorm:"type:varchar"`
AgentType *string `json:"agent_type" gorm:"type:text"` // JSON array stored as text
ProfilePicturePath *string `json:"profile_picture_path" gorm:"type:varchar"`
IsActive *bool `json:"is_active" gorm:"type:bool;default:true"`
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"`
}