19 lines
824 B
Go
19 lines
824 B
Go
package entity
|
|
|
|
import "time"
|
|
|
|
type MasterMenus struct {
|
|
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
|
|
Name string `json:"name" gorm:"type:varchar"`
|
|
Description string `json:"description" gorm:"type:varchar"`
|
|
ModuleId int `json:"module_id" gorm:"type:int4"`
|
|
ParentMenuId *int `json:"parent_menu_id" gorm:"type:int4"`
|
|
Icon *string `json:"icon" gorm:"type:varchar"`
|
|
Group string `json:"group" gorm:"type:varchar"`
|
|
Position *int `json:"position" gorm:"type:int4"`
|
|
StatusId int `json:"status_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()"`
|
|
}
|