package models import "time" type MkUser struct { // ================================================== // ๐Ÿ”‘ PRIMARY ID (mk_dfusr.id) // ================================================== ID int64 `json:"id"` // mk_dfusr.id RoleID int64 `json:"role_id"` // ================================================== // ๐Ÿ” LEGACY DFUSR (opsiyonel โ€“ migrate/debug) // ================================================== LegacyDfUsrID *int64 `json:"legacy_dfusr_id,omitempty"` // ================================================== // ๐Ÿ‘ค CORE // ================================================== Username string `json:"username"` FullName string `json:"full_name"` Email string `json:"email"` Mobile string `json:"mobile"` IsActive bool `json:"is_active"` // ================================================== // ๐Ÿ” AUTH // ================================================== PasswordHash string `json:"-"` ForcePasswordChange bool `json:"force_password_change"` PasswordUpdatedAt *time.Time `json:"password_updated_at,omitempty"` SessionID string `json:"session_id"` // ================================================== // ๐Ÿงฉ ROLE // ================================================== RoleCode string `json:"role_code"` // ================================================== // ๐Ÿงพ NEBIM // ================================================== V3Username string `json:"v3_username"` V3UserGroup string `json:"v3_usergroup"` // ================================================== // ๐Ÿญ RUNTIME SCOPES // ================================================== DepartmentCodes []string `json:"departments"` PiyasaCodes []string `json:"piyasalar"` // ================================================== // โฑ AUDIT // ================================================== CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` LastLoginAt *time.Time `json:"last_login_at,omitempty"` }