package entity

import "time"

type UserRoleAccesses struct {
	ID                uint      `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
	UserRoleId        int       `json:"userRoleId" gorm:"type:int4"`
	MenuId            int       `json:"menuId" gorm:"type:int4"`
	IsViewEnabled     bool      `json:"isViewEnabled" gorm:"type:bool"`
	IsInsertEnabled   bool      `json:"isInsertEnabled" gorm:"type:bool"`
	IsUpdateEnabled   bool      `json:"isUpdateEnabled" gorm:"type:bool"`
	IsDeleteEnabled   bool      `json:"isDeleteEnabled" gorm:"type:bool"`
	IsApprovalEnabled bool      `json:"isApprovalEnabled" gorm:"type:bool"`
	IsAdminEnabled    bool      `json:"isAdminEnabled" gorm:"type:bool"`
	IsActive          bool      `json:"isActive" gorm:"type:bool"`
	CreatedAt         time.Time `json:"createdAt" gorm:"default:now()"`
	UpdatedAt         time.Time `json:"updatedAt" gorm:"default:now()"`
}
