Versions in this module Expand all Collapse all v3 v3.11.1 Feb 28, 2026 Changes in this version type InventoryData + CreateId uint64 + CreateName string + UpdateId uint64 + UpdateName string type InventoryIn + CreateId uint64 + CreateName string + UpdateId uint64 + UpdateName string type InventoryOut + CreateId uint64 + CreateName string + UpdateId uint64 + UpdateName string v3.11.0 Feb 28, 2026 Changes in this version + const FrozenState_False + const FrozenState_Ture + const INVENTORY_DATA_COLUMN_CREATED_AT + const INVENTORY_DATA_COLUMN_ID + const INVENTORY_DATA_COLUMN_IS_FROZEN + const INVENTORY_DATA_COLUMN_LOCATION + const INVENTORY_DATA_COLUMN_NAME + const INVENTORY_DATA_COLUMN_PRICE + const INVENTORY_DATA_COLUMN_PRODUCT_EXTRA + const INVENTORY_DATA_COLUMN_QUANTITY + const INVENTORY_DATA_COLUMN_SERIAL_NO + const INVENTORY_DATA_COLUMN_UPDATED_AT + const INVENTORY_IN_COLUMN_CREATED_AT + const INVENTORY_IN_COLUMN_DELETE_TIME + const INVENTORY_IN_COLUMN_ID + const INVENTORY_IN_COLUMN_IS_DELETED + const INVENTORY_IN_COLUMN_ORDER_NO + const INVENTORY_IN_COLUMN_PRODUCT_ID + const INVENTORY_IN_COLUMN_QUANTITY + const INVENTORY_IN_COLUMN_REMARK + const INVENTORY_IN_COLUMN_UPDATED_AT + const INVENTORY_IN_COLUMN_USER_ID + const INVENTORY_IN_COLUMN_USER_NAME + const INVENTORY_IN_COLUMN_WEIGHT + const INVENTORY_OUT_COLUMN_CREATED_AT + const INVENTORY_OUT_COLUMN_DELETE_TIME + const INVENTORY_OUT_COLUMN_ID + const INVENTORY_OUT_COLUMN_IS_DELETED + const INVENTORY_OUT_COLUMN_ORDER_NO + const INVENTORY_OUT_COLUMN_PRODUCT_ID + const INVENTORY_OUT_COLUMN_QUANTITY + const INVENTORY_OUT_COLUMN_REMARK + const INVENTORY_OUT_COLUMN_UPDATED_AT + const INVENTORY_OUT_COLUMN_USER_ID + const INVENTORY_OUT_COLUMN_USER_NAME + const INVENTORY_OUT_COLUMN_WEIGHT + const ROLES_COLUMN_CREATED_AT + const ROLES_COLUMN_ID + const ROLES_COLUMN_NAME + const ROLES_COLUMN_UPDATED_AT + const TableNameInventoryData + const TableNameInventoryIn + const TableNameInventoryOut + const TableNameRoles + const TableNameUserProfiles + const TableNameUserRoles + const TableNameUsers + const USERS_COLUMN_CREATED_AT + const USERS_COLUMN_EMAIL + const USERS_COLUMN_ID + const USERS_COLUMN_UPDATED_AT + const USERS_COLUMN_USER_NAME + const USER_PROFILES_COLUMN_ADDRESS + const USER_PROFILES_COLUMN_AVATAR + const USER_PROFILES_COLUMN_CREATED_AT + const USER_PROFILES_COLUMN_ID + const USER_PROFILES_COLUMN_UPDATED_AT + const USER_PROFILES_COLUMN_USER_ID + const USER_ROLES_COLUMN_ROLE_ID + const USER_ROLES_COLUMN_USER_ID + func NowTime() time.Time + type BaseModel struct + CreatedAt time.Time + UpdatedAt time.Time + func (b BaseModel) IsExist() bool + func (b BaseModel) IsNew() bool + func (do *BaseModel) AfterCreateData(db *sqlca.Engine) error + func (do *BaseModel) AfterQueryData(db *sqlca.Engine) error + func (do *BaseModel) AfterUpdateData(db *sqlca.Engine) error + func (do *BaseModel) BeforeCreateData(db *sqlca.Engine) error + func (do *BaseModel) BeforeDeleteData(db *sqlca.Engine) error + func (do *BaseModel) BeforeQueryData(db *sqlca.Engine) error + func (do *BaseModel) BeforeUpdateData(db *sqlca.Engine) error + type FrozenState int + func (s FrozenState) String() string + type InventoryData struct + Id uint64 + IsFrozen FrozenState + Location sqlca.Point + Name string + Price *float64 + ProductExtra *ProductExtraData + Quantity float64 + SerialNo string + func (do *InventoryData) AfterDeleteData(db *sqlca.Engine) error + func (do *InventoryData) SetCreatedAt(v time.Time) + func (do *InventoryData) SetId(v uint64) + func (do *InventoryData) SetIsFrozen(v FrozenState) + func (do *InventoryData) SetLocation(v sqlca.Point) + func (do *InventoryData) SetName(v string) + func (do *InventoryData) SetPrice(v *float64) + func (do *InventoryData) SetProductExtra(v *ProductExtraData) + func (do *InventoryData) SetQuantity(v float64) + func (do *InventoryData) SetSerialNo(v string) + func (do *InventoryData) SetUpdatedAt(v time.Time) + func (do InventoryData) GetCreatedAt() time.Time + func (do InventoryData) GetId() uint64 + func (do InventoryData) GetIsFrozen() FrozenState + func (do InventoryData) GetLocation() sqlca.Point + func (do InventoryData) GetName() string + func (do InventoryData) GetPrice() *float64 + func (do InventoryData) GetProductExtra() *ProductExtraData + func (do InventoryData) GetQuantity() float64 + func (do InventoryData) GetSerialNo() string + func (do InventoryData) GetUpdatedAt() time.Time + func (do InventoryData) TableName() string + type InventoryIn struct + DeleteTime time.Time + Id uint64 + IsDeleted int8 + OrderNo string + ProductId uint64 + Quantity float64 + Remark string + UserId uint64 + UserName string + Weight sqlca.Decimal + func (do *InventoryIn) SetCreatedAt(v time.Time) + func (do *InventoryIn) SetDeleteTime(v time.Time) + func (do *InventoryIn) SetId(v uint64) + func (do *InventoryIn) SetIsDeleted(v int8) + func (do *InventoryIn) SetOrderNo(v string) + func (do *InventoryIn) SetProductId(v uint64) + func (do *InventoryIn) SetQuantity(v float64) + func (do *InventoryIn) SetRemark(v string) + func (do *InventoryIn) SetUpdatedAt(v time.Time) + func (do *InventoryIn) SetUserId(v uint64) + func (do *InventoryIn) SetUserName(v string) + func (do *InventoryIn) SetWeight(v sqlca.Decimal) + func (do InventoryIn) GetCreatedAt() time.Time + func (do InventoryIn) GetDeleteTime() time.Time + func (do InventoryIn) GetId() uint64 + func (do InventoryIn) GetIsDeleted() int8 + func (do InventoryIn) GetOrderNo() string + func (do InventoryIn) GetProductId() uint64 + func (do InventoryIn) GetQuantity() float64 + func (do InventoryIn) GetRemark() string + func (do InventoryIn) GetUpdatedAt() time.Time + func (do InventoryIn) GetUserId() uint64 + func (do InventoryIn) GetUserName() string + func (do InventoryIn) GetWeight() sqlca.Decimal + func (do InventoryIn) TableName() string + type InventoryOut struct + DeleteTime time.Time + Id uint64 + IsDeleted int8 + OrderNo string + ProductId uint64 + Quantity float64 + Remark string + UserId uint64 + UserName string + Weight sqlca.Decimal + func (do *InventoryOut) SetCreatedAt(v time.Time) + func (do *InventoryOut) SetDeleteTime(v time.Time) + func (do *InventoryOut) SetId(v uint64) + func (do *InventoryOut) SetIsDeleted(v int8) + func (do *InventoryOut) SetOrderNo(v string) + func (do *InventoryOut) SetProductId(v uint64) + func (do *InventoryOut) SetQuantity(v float64) + func (do *InventoryOut) SetRemark(v string) + func (do *InventoryOut) SetUpdatedAt(v time.Time) + func (do *InventoryOut) SetUserId(v uint64) + func (do *InventoryOut) SetUserName(v string) + func (do *InventoryOut) SetWeight(v sqlca.Decimal) + func (do InventoryOut) GetCreatedAt() time.Time + func (do InventoryOut) GetDeleteTime() time.Time + func (do InventoryOut) GetId() uint64 + func (do InventoryOut) GetIsDeleted() int8 + func (do InventoryOut) GetOrderNo() string + func (do InventoryOut) GetProductId() uint64 + func (do InventoryOut) GetQuantity() float64 + func (do InventoryOut) GetRemark() string + func (do InventoryOut) GetUpdatedAt() time.Time + func (do InventoryOut) GetUserId() uint64 + func (do InventoryOut) GetUserName() string + func (do InventoryOut) GetWeight() sqlca.Decimal + func (do InventoryOut) TableName() string + type ProductExtraData struct + AvgPrice sqlca.Decimal + SpecsValue string + type Role struct + Id uint64 + Name string + func (do *Role) SetCreatedAt(v time.Time) + func (do *Role) SetId(v uint64) + func (do *Role) SetName(v string) + func (do *Role) SetUpdatedAt(v time.Time) + func (do Role) GetCreatedAt() time.Time + func (do Role) GetId() uint64 + func (do Role) GetName() string + func (do Role) GetUpdatedAt() time.Time + func (do Role) TableName() string + type User struct + Email string + Id uint64 + Profile UserProfile + Roles []*Role + UserName string + func (do *User) AfterQueryData(db *sqlca.Engine, ok bool) error + func (do *User) SetCreatedAt(v time.Time) + func (do *User) SetEmail(v string) + func (do *User) SetId(v uint64) + func (do *User) SetUpdatedAt(v time.Time) + func (do *User) SetUserName(v string) + func (do User) GetCreatedAt() time.Time + func (do User) GetEmail() string + func (do User) GetId() uint64 + func (do User) GetUpdatedAt() time.Time + func (do User) GetUserName() string + func (do User) TableName() string + type UserProfile struct + Address string + Avatar string + Id uint64 + UserId uint64 + func (do *UserProfile) SetAddress(v string) + func (do *UserProfile) SetAvatar(v string) + func (do *UserProfile) SetCreatedAt(v time.Time) + func (do *UserProfile) SetId(v uint64) + func (do *UserProfile) SetUpdatedAt(v time.Time) + func (do *UserProfile) SetUserId(v uint64) + func (do UserProfile) GetAddress() string + func (do UserProfile) GetAvatar() string + func (do UserProfile) GetCreatedAt() time.Time + func (do UserProfile) GetId() uint64 + func (do UserProfile) GetUpdatedAt() time.Time + func (do UserProfile) GetUserId() uint64 + func (do UserProfile) TableName() string + type UserRole struct + RoleId uint64 + UserId uint64 + func (do *UserRole) SetRoleId(v uint64) + func (do *UserRole) SetUserId(v uint64) + func (do UserRole) GetRoleId() uint64 + func (do UserRole) GetUserId() uint64 + func (do UserRole) TableName() string