Discover Packages
github.com/tama-jp/basee_web
internal
domain
entities
package
Version:
v0.0.0-...-cd8c0a5
Opens a new window with list of versions in this module.
Published: Sep 4, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Model struct {
ID uint `gorm:"primary_key;comment:id"`
CreatedAt time .Time `gorm:"index;comment:作成日"`
UpdatedAt time .Time `gorm:"index;comment:更新日"`
DeletedAt gorm .DeletedAt `gorm:"index;comment:削除日"`
CreatedBy string `gorm:"index;comment:作成者"`
UpdatedBy string `gorm:"index;comment:更新者"`
}
type User struct {
Model
UserName string `gorm:"index:idx_name,unique; comment:ユーザ名"`
LastName string `gorm:"comment:性"`
FirstName string `gorm:"comment:名"`
EmployeeNumber string `gorm:"index:idx_user_employee_number;default:'no_number';comment:社員番号"`
Password string `gorm:"comment:パスワード"`
LastLoginAt *time .Time `gorm:"comment:最終ログイン日時"`
RoleBitCode uint64 `gorm:"comment:ユーザ権限"`
}
type UserAuth struct {
Model
UserID uint `gorm:"index;comment:ユーザID"`
User User `gorm:"comment:ユーザ"`
AccessToken string `gorm:"index:unique;comment:アクセストークン"`
}
type UserRole struct {
Model
Name string `gorm:"comment:和名"`
RoleName string `gorm:"comment:権限名"`
BitCode uint64 `gorm:"comment:ビットコード"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.