package entity

import "time"

type UserLevels struct {
	ID               uint      `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
	Name             string    `json:"name" gorm:"type:varchar"`
	AliasName        string    `json:"alias_name" gorm:"type:varchar"`
	LevelNumber      int       `json:"level_number" gorm:"type:int4"`
	ParentLevelId    *int      `json:"parent_level_id" gorm:"type:int4"`
	ProvinceId       *int      `json:"province_id" gorm:"type:int4"`
	Group            *string   `json:"group" gorm:"type:varchar"`
	IsApprovalActive *bool     `json:"is_approval_active" gorm:"type:bool;default:false"`
	IsActive         *bool     `json:"is_active" gorm:"type:bool"`
	CreatedAt        time.Time `json:"created_at" gorm:"default:now()"`
	UpdatedAt        time.Time `json:"updated_at" gorm:"default:now()"`
}
