3d165447f5
+ added intern + updated employee + updated user
23 lines
1.0 KiB
Go
23 lines
1.0 KiB
Go
package user
|
|
|
|
import (
|
|
"time"
|
|
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
erc "simrs-vx/internal/domain/references/common"
|
|
ero "simrs-vx/internal/domain/references/organization"
|
|
)
|
|
|
|
type User struct {
|
|
ecore.Main // adjust this according to the needs
|
|
Name string `json:"name" gorm:"unique;not null;size:25"`
|
|
Password string `json:"password" gorm:"not null;size:255"`
|
|
Status_Code erc.UserStatusCode `json:"status_code" gorm:"not null;size:10"`
|
|
FailedLoginCount uint8 `json:"failedLoginCount" gorm:"type:smallint"`
|
|
// Position_Code ero.EmployeePosisitionCode `json:"position_code" gorm:"not null;size:20"`
|
|
ContractPosition_Code ero.ContractPositionCode `json:"contractPosition_Code" gorm:"not null;size:20"`
|
|
LoginAttemptCount int `json:"-"`
|
|
LastSuccessLogin *time.Time `json:"lastSuccessLogin,omitempty"`
|
|
LastAllowdLogin *time.Time `json:"lastAllowdLogin,omitempty"`
|
|
}
|