package models

import "github.com/a-h/templ"

type UserGroup struct {
	UserGroupID   int    `json:"user_group_id"`
	UserGroupKode string `json:"user_group_kode"`
	UserGroupName string `json:"user_group_name"`
}

type UserGroupV1 struct {
	Nomor                        string `db:"nomor"`
	M_UserGroupID                int    `db:"M_UserGroupID"`
	M_UserGroupCode              string `db:"M_UserGroupCode"`
	M_UserGroupName              string `db:"M_UserGroupName"`
	M_UserGroupCreated           string `db:"M_UserGroupCreated"`
	M_UserGroupLastUpdated       string `db:"M_UserGroupLastUpdated"`
	M_UserGroupIsActive          string `db:"M_UserGroupIsActive"`
	M_UserGroupCreatedUserID     string `db:"M_UserGroupCreatedUserID"`
	M_UserGroupLastUpdatedUserID string `db:"M_UserGroupLastUpdatedUserID"`
	M_UserGroupDeleted           string `db:"M_UserGroupDeleted"`
	M_UserGroupDeletedUserID     string `db:"M_UserGroupDeletedUserID"`
}

type UserGroupFormComponent struct {
	IDComponent  string
	Link         string
	HxTarget     string
	HxSwap       string
	HxInclude    string
	ModalID      string
	ModalTitle   string
	InputName    CustomTextFieldv2Prm
	InputCode    CustomTextFieldv2Prm
	InputID      CustomTextFieldv2Prm
	DialogBody   templ.Component
	DialogAction templ.Component
	ButtonCLose  templ.Component
}
type UserGroupFormConfirmation struct {
	IDComponent  string
	Link         string
	HxTarget     string
	HxSwap       string
	HxInclude    string
	ModalID      string
	ModalTitle   string
	DialogBody   templ.Component
	DialogAction templ.Component
	ButtonCLose  templ.Component
}
