16 lines
469 B
Go
16 lines
469 B
Go
|
|
package entity
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/google/uuid"
|
||
|
|
"time"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Clients struct {
|
||
|
|
ID uuid.UUID `json:"id" gorm:"primaryKey;type:UUID"`
|
||
|
|
Name string `json:"name" gorm:"type:varchar"`
|
||
|
|
CreatedById *uint `json:"created_by_id" gorm:"type:int4"`
|
||
|
|
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()"`
|
||
|
|
}
|