Documentation ¶
Index ¶
- Variables
- func DbConnect() (*gorm.DB, *gorm.DB, error)
- func GetColumnName(db *gorm.DB, model []interface{}) *gorm.DB
- type ActiveUserModel
- type BloodTypeModel
- type CityModel
- type CountryModel
- type CountryModelPreload
- type CustomerLevelByParentForm
- type CustomerLevelData
- type CustomerLevelInfoForm
- type CustomerLevelModel
- type CustomerLevelModelChild
- type CustomerLevelModelInfo
- type CustomerLevelSaveForm
- type CustomerLevelUpdateForm
- type DataPlatformDetailData
- type DataPlatformInfoForm
- type DataPlatformModel
- type DataPlatformModelPreload
- type DataPlatformSaveForm
- type DataPlatformUpdateForm
- type DepartmentDetailData
- type DepartmentInfoForm
- type DepartmentModel
- type DepartmentPreloadModel
- type DepartmentSaveForm
- type DepartmentUpdateForm
- type DepartmentWarehouseModel
- type DistrictModel
- type EmployeeModel
- type InventoryLibraryData
- type InventoryLibraryDataModel
- type InventoryLibraryDataModelPreload
- type InventoryLibraryInfo
- type InventoryLibraryInput
- type InventoryLibraryModel
- func (p *InventoryLibraryModel) AfterDelete(tx *gorm.DB) (err error)
- func (p *InventoryLibraryModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *InventoryLibraryModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *InventoryLibraryModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *InventoryLibraryModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *InventoryLibraryModel) TableName() string
- type InventoryLibraryUpdate
- type InventoryMaterialPackagingModel
- func (p *InventoryMaterialPackagingModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *InventoryMaterialPackagingModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *InventoryMaterialPackagingModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *InventoryMaterialPackagingModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *InventoryMaterialPackagingModel) TableName() string
- type InventoryMaterialPackagingModelInfo
- type InventoryMaterialPackagingModelInput
- type InventoryMaterialPackagingModelUpdate
- type InventoryMaterialPackagingPreloadModel
- type InventoryRecipeData
- type InventoryRecipeInfo
- type InventoryRecipeIngredientData
- type InventoryRecipeIngredientInfo
- type InventoryRecipeIngredientInput
- type InventoryRecipeIngredientModel
- func (p *InventoryRecipeIngredientModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeIngredientModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeIngredientModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *InventoryRecipeIngredientModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeIngredientModel) TableName() string
- type InventoryRecipeIngredientModelPreload
- type InventoryRecipeIngredientUpdate
- type InventoryRecipeInput
- type InventoryRecipeLibraryData
- type InventoryRecipeLibraryInfo
- type InventoryRecipeLibraryInput
- type InventoryRecipeLibraryModel
- func (p *InventoryRecipeLibraryModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeLibraryModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeLibraryModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *InventoryRecipeLibraryModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeLibraryModel) TableName() string
- type InventoryRecipeLibraryModelPreload
- type InventoryRecipeLibraryUpdate
- type InventoryRecipeMaterialPackagingData
- type InventoryRecipeMaterialPackagingInfo
- type InventoryRecipeMaterialPackagingInput
- type InventoryRecipeMaterialPackagingModel
- func (p *InventoryRecipeMaterialPackagingModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeMaterialPackagingModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeMaterialPackagingModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *InventoryRecipeMaterialPackagingModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeMaterialPackagingModel) TableName() string
- type InventoryRecipeMaterialPackagingModelPreload
- type InventoryRecipeMaterialPackagingUpdate
- type InventoryRecipeModel
- func (p *InventoryRecipeModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *InventoryRecipeModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *InventoryRecipeModel) TableName() string
- type InventoryRecipeModelPreload
- type InventoryRecipeUpdate
- type InventoryUnitData
- type InventoryUnitInfo
- type InventoryUnitInput
- type InventoryUnitModel
- func (p *InventoryUnitModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *InventoryUnitModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *InventoryUnitModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *InventoryUnitModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *InventoryUnitModel) TableName() string
- type InventoryUnitModelPreload
- type InventoryUnitUpdate
- type JobLevelInfoForm
- type JobLevelModel
- type JobLevelSaveForm
- type JobLevelUpdateForm
- type LanguageTableModel
- type LanguageTableModelPreload
- type NullDateTime
- type NullInt64
- type NullString
- type ProductLibraryCategoryModel
- func (p *ProductLibraryCategoryModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *ProductLibraryCategoryModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *ProductLibraryCategoryModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *ProductLibraryCategoryModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *ProductLibraryCategoryModel) TableName() string
- type ProductLibraryCategoryModelInfo
- type ProductLibraryCategoryModelInput
- type ProductLibraryCategoryModelPreload
- type ProductLibraryCategoryModelUpdate
- type ProductLibraryPropertyModel
- func (p *ProductLibraryPropertyModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *ProductLibraryPropertyModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *ProductLibraryPropertyModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *ProductLibraryPropertyModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *ProductLibraryPropertyModel) TableName() string
- type ProductLibraryPropertyModelInfo
- type ProductLibraryPropertyModelInput
- type ProductLibraryPropertyModelPreload
- type ProductLibraryPropertyModelUpdate
- type ProductLibraryTitleModel
- func (p *ProductLibraryTitleModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *ProductLibraryTitleModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *ProductLibraryTitleModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *ProductLibraryTitleModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *ProductLibraryTitleModel) TableName() string
- type ProductLibraryTitleModelInfo
- type ProductLibraryTitleModelInput
- type ProductLibraryTitleModelPreload
- type ProductLibraryTitleModelUpdate
- type ProductModel
- type ProductModelDataModel
- func (p *ProductModelDataModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *ProductModelDataModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *ProductModelDataModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *ProductModelDataModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *ProductModelDataModel) TableName() string
- type ProductModelDataModelInfo
- type ProductModelDataModelInput
- type ProductModelDataModelUpdate
- type ProductModelDataPreload
- type ProductModelInfo
- type ProductModelInput
- type ProductModelModel
- func (p *ProductModelModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *ProductModelModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *ProductModelModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *ProductModelModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *ProductModelModel) TableName() string
- type ProductModelModelInfo
- type ProductModelModelInput
- type ProductModelModelPreload
- type ProductModelModelUpdate
- type ProductModelPreload
- type ProductModelUpdate
- type ProductPlatformModel
- func (p *ProductPlatformModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *ProductPlatformModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *ProductPlatformModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *ProductPlatformModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *ProductPlatformModel) TableName() string
- type ProductPlatformModelInput
- type ProductPlatformModelPreload
- type ProductPlatformModelUpdate
- type ProductPlatformModellInfo
- type ProductPricingModel
- func (p *ProductPricingModel) AfterUpdate(tx *gorm.DB) (err error)
- func (p *ProductPricingModel) BeforeCreate(tx *gorm.DB) (err error)
- func (p *ProductPricingModel) BeforeDelete(tx *gorm.DB) (err error)
- func (p *ProductPricingModel) BeforeUpdate(tx *gorm.DB) (err error)
- func (p *ProductPricingModel) TableName() string
- type ProductPricingModelInput
- type ProductPricingModelPreload
- type ProductPricingModelUpdate
- type ProductPricingModellInfo
- type ProductTypeModel
- type ProvinceModel
- type ReligionModel
- type SubDistrictInfoDetail
- type SubDistrictInfoForm
- type SubDistrictModel
- type UserModel
- type UserPageModel
- type User_typeModel
- type WarehouseInfoData
- type WarehouseModel
- type WarehousePreloadModel
- type WarehouseSaveData
- type WarehouseUpdateData
Constants ¶
This section is empty.
Variables ¶
var ActiveUser string
Functions ¶
Types ¶
type ActiveUserModel ¶
type ActiveUserModel struct { ID string `gorm:"column:id;primaryKey" json:"id"` // UserID NullString `gorm:"column:user_id" json:"user_id,string"` // Token NullString `gorm:"column:token" json:"token"` // ExpiredOn NullString `gorm:"column:expired_on" json:"expired_on"` // }
func (*ActiveUserModel) TableName ¶
func (u *ActiveUserModel) TableName() string
TableName sets the insert table name for this struct type
type BloodTypeModel ¶
type BloodTypeModel struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name NullString `gorm:"column:name" json:"name"` // CreatedBy NullString `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*BloodTypeModel) BeforeCreate ¶
func (b *BloodTypeModel) BeforeCreate(tx *gorm.DB) (err error)
func (*BloodTypeModel) BeforeUpdate ¶
func (b *BloodTypeModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*BloodTypeModel) TableName ¶
func (b *BloodTypeModel) TableName() string
TableName sets the insert table name for this struct type
type CityModel ¶
type CityModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` CityCode string `gorm:"column:city_code;default:null" json:"citycode"` Active uint64 `gorm:"column:active;default:1" json:"active"` CountryId string `gorm:"column:country_id;default:null" json:"country_id"` ProvinceId string `gorm:"column:province_id;default:null" json:"province_id"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*CityModel) FindAllCities ¶
type CountryModel ¶
type CountryModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` Description string `gorm:"column:description;default:null" json:"description"` TwoCodeLetter string `gorm:"column:two_code_letter;default:null" json:"twocodeletter"` CountryCode string `gorm:"column:country_code;default:null" json:"countrycode"` Flag NullString `gorm:"column:flag;default:null" json:"flag"` Active uint64 `gorm:"column:active;default:1" json:"active"` EnableContent uint64 `gorm:"column:enable_content;default:0" json:"enablecontent"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` DefaultCountry uint64 `gorm:"column:default_country;default:0" json:"defaultcountry"` }
func (*CountryModel) BeforeCreate ¶
func (c *CountryModel) BeforeCreate(tx *gorm.DB) (err error)
func (*CountryModel) BeforeUpdate ¶
func (c *CountryModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*CountryModel) FindAllCountries ¶
func (c *CountryModel) FindAllCountries(tx *gorm.DB) (*[]CountryModel, error)
func (*CountryModel) TableName ¶
func (c *CountryModel) TableName() string
TableName sets the insert table name for this struct type
type CountryModelPreload ¶
type CountryModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` Description string `gorm:"column:description;default:null" json:"description"` TwoCodeLetter string `gorm:"column:two_code_letter;default:null" json:"twocodeletter"` CountryCode string `gorm:"column:country_code;default:null" json:"countrycode"` Flag NullString `gorm:"column:flag;default:null" json:"flag"` Active uint64 `gorm:"column:active;default:1" json:"active"` EnableContent uint64 `gorm:"column:enable_content;default:0" json:"enablecontent"` DefaultCountry uint64 `gorm:"column:default_country;default:0" json:"defaultcountry"` }
func (*CountryModelPreload) TableName ¶
func (c *CountryModelPreload) TableName() string
type CustomerLevelByParentForm ¶
type CustomerLevelByParentForm struct {
Parent string `json:"parent" binding:"required"`
}
type CustomerLevelData ¶
type CustomerLevelInfoForm ¶
type CustomerLevelInfoForm struct {
ID string `json:"id" binding:"required"`
}
type CustomerLevelModel ¶
type CustomerLevelModel struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name string `gorm:"column:name" json:"name"` // Parent string `gorm:"column:parent" json:"parent"` // Active uint64 `gorm:"column:active;default:1" json:"active"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` // UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` // IsParent uint64 `gorm:"column:is_parent;default:NULL" json:"is_parent"` // Child []CustomerLevelModelChild `gorm:"foreignKey:ID;references:Parent" json:"child"` }
func (*CustomerLevelModel) BeforeCreate ¶
func (c *CustomerLevelModel) BeforeCreate(tx *gorm.DB) (err error)
func (*CustomerLevelModel) BeforeUpdate ¶
func (c *CustomerLevelModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*CustomerLevelModel) TableName ¶
func (c *CustomerLevelModel) TableName() string
TableName sets the insert table name for this struct type
type CustomerLevelModelChild ¶
type CustomerLevelModelChild struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name string `gorm:"column:name" json:"name"` // Parent string `gorm:"column:parent" json:"parent"` // Active uint64 `gorm:"column:active;default:1" json:"active"` IsParent uint64 `gorm:"column:is_parent;default:NULL" json:"is_parent"` // ParentData CustomerLevelModelInfo `gorm:"foreignKey:Parent;references:ID" json:"parent_data"` }
func (*CustomerLevelModelChild) TableName ¶
func (c *CustomerLevelModelChild) TableName() string
type CustomerLevelModelInfo ¶
type CustomerLevelModelInfo struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name string `gorm:"column:name" json:"name"` // Parent string `gorm:"column:parent" json:"parent"` // Active uint64 `gorm:"column:active;default:1" json:"active"` IsParent uint64 `gorm:"column:is_parent;default:NULL" json:"is_parent"` // Child []CustomerLevelModelChild `gorm:"foreignKey:ID;references:Parent" json:"child"` }
func (*CustomerLevelModelInfo) TableName ¶
func (c *CustomerLevelModelInfo) TableName() string
type CustomerLevelSaveForm ¶
type CustomerLevelUpdateForm ¶
type DataPlatformDetailData ¶
type DataPlatformInfoForm ¶
type DataPlatformInfoForm struct {
ID string `json:"id" binding:"required"`
}
info dataplatform
type DataPlatformModel ¶
type DataPlatformModel struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name string `gorm:"column:name;default:null" json:"name"` // CreatedBy NullString `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*DataPlatformModel) BeforeCreate ¶
func (d *DataPlatformModel) BeforeCreate(tx *gorm.DB) (err error)
func (*DataPlatformModel) BeforeUpdate ¶
func (d *DataPlatformModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*DataPlatformModel) TableName ¶
func (d *DataPlatformModel) TableName() string
TableName sets the insert table name for this struct type
type DataPlatformModelPreload ¶
type DataPlatformModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name string `gorm:"column:name;default:null" json:"name"` // }
func (*DataPlatformModelPreload) TableName ¶
func (d *DataPlatformModelPreload) TableName() string
type DataPlatformSaveForm ¶
type DataPlatformSaveForm struct {
Name string `json:"name" binding:"required"`
}
type DataPlatformUpdateForm ¶
type DepartmentDetailData ¶
type DepartmentInfoForm ¶
type DepartmentInfoForm struct {
ID string `json:"id" binding:"required"`
}
type DepartmentModel ¶
type DepartmentModel struct { ID string `gorm:"column:id;primary_key;autoIncrement:false" json:"id"` Name NullString `gorm:"column:name" json:"name"` Active uint64 `gorm:"column:active" json:"active"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedOn time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedOn time.Time `gorm:"column:updated_at" json:"updated_at"` DepartmentWarehouse []DepartmentWarehouseModel `gorm:"foreignKey:DepartementId;references:ID" json:"departement_warehouse"` }
func (*DepartmentModel) BeforeCreate ¶
func (d *DepartmentModel) BeforeCreate(tx *gorm.DB) (err error)
func (*DepartmentModel) BeforeUpdate ¶
func (d *DepartmentModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*DepartmentModel) TableName ¶
func (d *DepartmentModel) TableName() string
TableName sets the insert table name for this struct type
type DepartmentPreloadModel ¶
type DepartmentPreloadModel struct { ID string `gorm:"column:id;primary_key;autoIncrement:false" json:"id"` Name NullString `gorm:"column:name" json:"name"` Active uint64 `gorm:"column:active" json:"active"` DepartmentWarehouse []DepartmentWarehouseModel `gorm:"foreignKey:DepartementId;references:ID" json:"departement_warehouse"` }
func (*DepartmentPreloadModel) TableName ¶
func (d *DepartmentPreloadModel) TableName() string
type DepartmentSaveForm ¶
type DepartmentUpdateForm ¶
type DepartmentWarehouseModel ¶
type DepartmentWarehouseModel struct { ID string `gorm:"column:id;primary_key" json:"id"` WarehouseId NullString `gorm:"column:warehouse_id" json:"warehouse_id"` DepartementId NullString `gorm:"column:departement_id" json:"departement_id"` Inc int `gorm:"column:inc" json:"inc"` StockOrder int `gorm:"column:stock_order" json:"stock_order"` Warehouse WarehousePreloadModel `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;foreignKey:ID;references:WarehouseId" json:"warehouse"` Department DepartmentPreloadModel `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;foreignKey:ID;references:DepartementId" json:"department"` }
func (*DepartmentWarehouseModel) AfterUpdate ¶
func (d *DepartmentWarehouseModel) AfterUpdate(tx *gorm.DB) (err error)
func (*DepartmentWarehouseModel) BeforeCreate ¶
func (d *DepartmentWarehouseModel) BeforeCreate(tx *gorm.DB) (err error)
func (*DepartmentWarehouseModel) BeforeUpdate ¶
func (d *DepartmentWarehouseModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*DepartmentWarehouseModel) TableName ¶
func (d *DepartmentWarehouseModel) TableName() string
TableName sets the insert table name for this struct type
type DistrictModel ¶
type DistrictModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` DistrictCode string `gorm:"column:district_code;default:null" json:"districtcode"` Active uint64 `gorm:"column:active;default:1" json:"active"` CountryId string `gorm:"column:country_id;default:null" json:"countryid"` ProvinceId string `gorm:"column:province_id;default:null" json:"provinceid"` CityId string `gorm:"column:city_id;default:null" json:"cityid"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*DistrictModel) BeforeCreate ¶
func (d *DistrictModel) BeforeCreate(tx *gorm.DB) (err error)
func (*DistrictModel) BeforeUpdate ¶
func (d *DistrictModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*DistrictModel) FindAllCities ¶
func (d *DistrictModel) FindAllCities(tx *gorm.DB) (*[]DistrictModel, error)
func (*DistrictModel) TableName ¶
func (d *DistrictModel) TableName() string
TableName sets the insert table name for this struct type
type EmployeeModel ¶
type EmployeeModel struct { ID string `gorm:"column:id;primaryKey" json:"id"` // EmployeeIdCode int `gorm:"column:employee_id_code" json:"employee_id_code"` // Company NullString `gorm:"column:company" json:"company"` // Fullname NullString `gorm:"column:fullname" json:"fullname"` // Initial NullString `gorm:"column:initial" json:"initial"` // Active int `gorm:"column:active" json:"active"` // CountryIdPhone1 NullString `gorm:"column:country_id_phone_1" json:"country_id_phone_1"` // Phone1 NullString `gorm:"column:phone_1" json:"phone_1"` // CountryIdPhone2 NullString `gorm:"column:country_id_phone_2" json:"country_id_phone_2"` // Phone2 NullString `gorm:"column:phone_2" json:"phone_2"` // PlaceOfBirth NullString `gorm:"column:place_of_birth" json:"place_of_birth"` // DateOfBirth time.Time `gorm:"column:date_of_birth" json:"date_of_birth"` // Email NullString `gorm:"column:email" json:"email"` // Gender int `gorm:"column:gender" json:"gender"` // MaritalStatus int `gorm:"column:marital_status" json:"marital_status"` // BloodTypeId NullString `gorm:"column:blood_type_id" json:"blood_type_id"` // ReligionId NullString `gorm:"column:religion_id" json:"religion_id"` // Avatar NullString `gorm:"column:avatar" json:"avatar"` // JoinDate time.Time `gorm:"column:join_date" json:"join_date"` // TerminationDate time.Time `gorm:"column:termination_date" json:"termination_date"` // WarehouseId NullString `gorm:"column:warehouse_id" json:"warehouse_id"` // DepartmentId NullString `gorm:"column:department_id" json:"department_id"` // JobLevelId NullString `gorm:"column:job_level_id" json:"job_level_id"` // UserId NullString `gorm:"column:user_id" json:"user_id"` // EmploymentStatus int `gorm:"column:employment_status" json:"employment_status"` // CreatedBy NullString `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` // UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` // }
func (*EmployeeModel) BeforeCreate ¶
func (u *EmployeeModel) BeforeCreate(tx *gorm.DB) (err error)
func (*EmployeeModel) BeforeUpdate ¶
func (u *EmployeeModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*EmployeeModel) TableName ¶
func (u *EmployeeModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryLibraryData ¶
type InventoryLibraryData struct { ID string `json:"id"` Name string `json:"name"` IsParent int `json:"is_parent"` ParentID NullString `json:"parent_id"` Active int `json:"active"` DeletedAt soft_delete.DeletedAt `gorm:` Child []InventoryLibraryDataModel `gorm:"foreignKey:ParentID;references:ID" json:"child"` }
type InventoryLibraryDataModel ¶
type InventoryLibraryDataModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` IsParent int `gorm:"column:is_parent" json:"is_parent"` ParentID NullString `gorm:"column:parent_id" json:"parent_id"` Active int `gorm:"column:active" json:"active"` DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at" json:"-"` Child []InventoryLibraryDataModelPreload `gorm:"foreignKey:ParentID;references:ID;Constraint:OnDelete:CASCADE" json:"child"` Parent InventoryLibraryDataModelPreload `gorm:"foreignKey:ID;references:ParentID" json:"parent"` }
func (*InventoryLibraryDataModel) TableName ¶
func (p *InventoryLibraryDataModel) TableName() string
type InventoryLibraryDataModelPreload ¶
type InventoryLibraryDataModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` IsParent int `gorm:"column:is_parent" json:"is_parent"` ParentID NullString `gorm:"column:parent_id" json:"parent_id"` Active int `gorm:"column:active" json:"active"` DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at" json:"-"` }
func (*InventoryLibraryDataModelPreload) TableName ¶
func (p *InventoryLibraryDataModelPreload) TableName() string
type InventoryLibraryInfo ¶
type InventoryLibraryInfo struct {
ID string `json:"id" binding:"required"`
}
type InventoryLibraryInput ¶
type InventoryLibraryInput struct { Name string `json:"name" binding:"required"` IsParent int `json:"is_parent"` ParentID string `json:"parent_id"` Active int `json:"active"` }
strcture input
type InventoryLibraryModel ¶
type InventoryLibraryModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` IsParent int `gorm:"column:is_parent" json:"is_parent"` ParentID NullString `gorm:"column:parent_id" json:"parent_id"` Active int `gorm:"column:active" json:"active"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"_"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` Child []InventoryLibraryModel `gorm:"foreignKey:ParentID;references:ID;constraint:OnDelete:CASCADE" json:"child"` }
func (*InventoryLibraryModel) AfterDelete ¶
func (p *InventoryLibraryModel) AfterDelete(tx *gorm.DB) (err error)
func (*InventoryLibraryModel) AfterUpdate ¶
func (p *InventoryLibraryModel) AfterUpdate(tx *gorm.DB) (err error)
func (*InventoryLibraryModel) BeforeCreate ¶
func (p *InventoryLibraryModel) BeforeCreate(tx *gorm.DB) (err error)
func (*InventoryLibraryModel) BeforeDelete ¶
func (p *InventoryLibraryModel) BeforeDelete(tx *gorm.DB) (err error)
func (*InventoryLibraryModel) BeforeUpdate ¶
func (p *InventoryLibraryModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*InventoryLibraryModel) TableName ¶
func (p *InventoryLibraryModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryLibraryUpdate ¶
type InventoryMaterialPackagingModel ¶
type InventoryMaterialPackagingModel struct { ID string `gorm:"column:id;primary_key" json:"id"` PackagingName1 NullString `gorm:"column:packaging_name_1;default:null" json:"packaging_name_1"` PackagingName2 NullString `gorm:"column:packaging_name_2;default:null" json:"packaging_name_2"` InternalID NullString `gorm:"column:internal_id" json:"internal_id"` ContentConverter int `gorm:"column:content_converter" json:"content_converter"` InventoryUnitId string `gorm:"column:inventory_unit_id" json:"inventory_unit_id"` Active int `gorm:"column:active" json:"active"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` Unit InventoryUnitModelPreload `gorm:"foreignKey:InventoryUnitId;references:ID" json:"unit"` }
func (*InventoryMaterialPackagingModel) AfterUpdate ¶
func (p *InventoryMaterialPackagingModel) AfterUpdate(tx *gorm.DB) (err error)
func (*InventoryMaterialPackagingModel) BeforeCreate ¶
func (p *InventoryMaterialPackagingModel) BeforeCreate(tx *gorm.DB) (err error)
func (*InventoryMaterialPackagingModel) BeforeDelete ¶
func (p *InventoryMaterialPackagingModel) BeforeDelete(tx *gorm.DB) (err error)
func (*InventoryMaterialPackagingModel) BeforeUpdate ¶
func (p *InventoryMaterialPackagingModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*InventoryMaterialPackagingModel) TableName ¶
func (p *InventoryMaterialPackagingModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryMaterialPackagingModelInfo ¶
type InventoryMaterialPackagingModelInfo struct {
ID string `json:"id" binding:"required"`
}
type InventoryMaterialPackagingModelInput ¶
type InventoryMaterialPackagingModelInput struct { PackagingName1 string `json:"packaging_name_1" binding:"required"` PackagingName2 string `json:"packaging_name_2"` InternalID string `json:"internal_id" binding:"required"` ContentConverter int `json:"content_converter" binding:"required"` InventoryUnitId string `json:"inventory_unit_id" binding:"required"` Active int `json:"active"` }
strcture input
type InventoryMaterialPackagingModelUpdate ¶
type InventoryMaterialPackagingModelUpdate struct { ID string `json:"id" binding:"required"` PackagingName1 string `json:"packaging_name_1" binding:"required"` PackagingName2 string `json:"packaging_name_2"` InternalID string `json:"internal_id" binding:"required"` ContentConverter int `json:"content_converter" binding:"required"` InventoryUnitId string `json:"inventory_unit_id" binding:"required"` Active int `json:"active"` }
type InventoryMaterialPackagingPreloadModel ¶
type InventoryMaterialPackagingPreloadModel struct { ID string `gorm:"column:id;primary_key" json:"id"` PackagingName1 string `gorm:"column:packaging_name_1;default:null" json:"packaging_name_1"` PackagingName2 string `gorm:"column:packaging_name_2;default:null" json:"packaging_name_2"` InternalID string `gorm:"column:internal_id" json:"internal_id"` ContentConverter int `gorm:"column:content_converter" json:"content_converter"` InventoryUnitId string `gorm:"column:inventory_unit_id" json:"inventory_unit_id"` Active int `gorm:"column:active" json:"active"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"-"` Unit InventoryUnitModelPreload `gorm:"foreignKey:InventoryUnitId;references:ID" json:"unit"` }
func (*InventoryMaterialPackagingPreloadModel) TableName ¶
func (p *InventoryMaterialPackagingPreloadModel) TableName() string
type InventoryRecipeData ¶
strcture output
type InventoryRecipeInfo ¶
type InventoryRecipeInfo struct {
ID string `json:"id" binding:"required"`
}
type InventoryRecipeIngredientData ¶
strcture output
type InventoryRecipeIngredientInfo ¶
type InventoryRecipeIngredientInfo struct {
ID string `json:"id" binding:"required"`
}
type InventoryRecipeIngredientInput ¶
type InventoryRecipeIngredientInput struct {
Name string `json:"name" binding:"required"`
}
strcture input
type InventoryRecipeIngredientModel ¶
type InventoryRecipeIngredientModel struct { ID string `gorm:"column:id;primary_key" json:"id"` InventoryRecipeId string `gorm:"column:inventory_recipe_id;default:null" json:"inventory_recipe_id"` RecipeId string `gorm:"column:recipe_id;default:null" json:"recipe_id"` Amount int `gorm:"column:amount;default:null" json:"amount"` Inc int `gorm:"column:inc;default:null" json:"inc"` Recipe InventoryRecipeModelPreload `gorm:"foreignKey:ID;references:InventoryRecipeId"` }
func (*InventoryRecipeIngredientModel) AfterUpdate ¶
func (p *InventoryRecipeIngredientModel) AfterUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeIngredientModel) BeforeCreate ¶
func (p *InventoryRecipeIngredientModel) BeforeCreate(tx *gorm.DB) (err error)
func (*InventoryRecipeIngredientModel) BeforeDelete ¶
func (p *InventoryRecipeIngredientModel) BeforeDelete(tx *gorm.DB) (err error)
func (*InventoryRecipeIngredientModel) BeforeUpdate ¶
func (p *InventoryRecipeIngredientModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeIngredientModel) TableName ¶
func (p *InventoryRecipeIngredientModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryRecipeIngredientModelPreload ¶
type InventoryRecipeIngredientModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` InventoryRecipeId string `gorm:"column:inventory_recipe_id;default:null" json:"inventory_recipe_id"` RecipeId string `gorm:"column:recipe_id;default:null" json:"recipe_id"` Amount int `gorm:"column:amount;default:null" json:"amount"` Inc int `gorm:"column:inc;default:null" json:"inc"` Recipe InventoryRecipeModelPreload `gorm:"foreignKey:ID;references:InventoryRecipeId"` }
func (*InventoryRecipeIngredientModelPreload) TableName ¶
func (p *InventoryRecipeIngredientModelPreload) TableName() string
type InventoryRecipeInput ¶
type InventoryRecipeInput struct { Name1 string `json:"name_1" binding:"required"` Name2 string `json:"name_2"` RecipeId string `json:"recipe_id" binding:"required"` Category int `json:"category" binding:"required"` UnitId string `json:"unit_id" binding:"required"` SyncStock string `json:"sync_stock" binding:"required"` Active int `json:"active"` Description1 string `json:"description_1"` Description2 string `json:"description_2"` Description3 string `json:"description_3"` Image string `json:"image"` //recipe ing RecipeID []string `json:"recipe"` Amount []int `json:"amount"` //library InventoryLibraryItem []string `json:"inventory_library_item"` Inventory_library_item_child []string `json:"inventory_library_item_child"` //material packaging InventoryMaterialPackagingId []string `json:"inventory_material_packaging_id"` }
strcture input
type InventoryRecipeLibraryData ¶
strcture output
type InventoryRecipeLibraryInfo ¶
type InventoryRecipeLibraryInfo struct {
ID string `json:"id" binding:"required"`
}
type InventoryRecipeLibraryInput ¶
type InventoryRecipeLibraryInput struct {
Name string `json:"name" binding:"required"`
}
strcture input
type InventoryRecipeLibraryModel ¶
type InventoryRecipeLibraryModel struct { ID string `gorm:"column:id;primary_key" json:"id"` InventoryLibraryItem string `gorm:"column:inventory_library_item;default:null" json:"nventory_library_item"` Inventory_library_item_child NullString `gorm:"column:inventory_library_item_child;default:null" json:"inventory_library_item_child"` InventoryRecipeId NullString `gorm:"column:inventory_recipe_id;default:null" json:"inventory_recipe_id"` Inc int `gorm:"column:inc;default:null" json:"inc"` Library []InventoryLibraryDataModel `gorm:"foreignKey:ID;references:Inventory_library_item_child"` }
func (*InventoryRecipeLibraryModel) AfterUpdate ¶
func (p *InventoryRecipeLibraryModel) AfterUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeLibraryModel) BeforeCreate ¶
func (p *InventoryRecipeLibraryModel) BeforeCreate(tx *gorm.DB) (err error)
func (*InventoryRecipeLibraryModel) BeforeDelete ¶
func (p *InventoryRecipeLibraryModel) BeforeDelete(tx *gorm.DB) (err error)
func (*InventoryRecipeLibraryModel) BeforeUpdate ¶
func (p *InventoryRecipeLibraryModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeLibraryModel) TableName ¶
func (p *InventoryRecipeLibraryModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryRecipeLibraryModelPreload ¶
type InventoryRecipeLibraryModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` InventoryLibraryItem NullString `gorm:"column:inventory_library_item;default:null" json:"nventory_library_item"` Inventory_library_item_child NullString `gorm:"column:inventory_library_item_child;default:null" json:"inventory_library_item_child"` InventoryRecipeId NullString `gorm:"column:inventory_recipe_id;default:null" json:"inventory_recipe_id"` Inc int `gorm:"column:inc;default:null" json:"inc"` LibraryParent InventoryLibraryDataModel `gorm:"foreignKey:ID;references:InventoryLibraryItem" json:"parent"` LibraryChild InventoryLibraryDataModel `gorm:"foreignKey:ID;references:Inventory_library_item_child" json:"child"` }
func (*InventoryRecipeLibraryModelPreload) TableName ¶
func (p *InventoryRecipeLibraryModelPreload) TableName() string
type InventoryRecipeMaterialPackagingData ¶
type InventoryRecipeMaterialPackagingData struct { ID string `json:"id"` Name string `json:"name"` }
strcture output
type InventoryRecipeMaterialPackagingInfo ¶
type InventoryRecipeMaterialPackagingInfo struct {
ID string `json:"id" binding:"required"`
}
type InventoryRecipeMaterialPackagingInput ¶
type InventoryRecipeMaterialPackagingInput struct {
Name string `json:"name" binding:"required"`
}
strcture input
type InventoryRecipeMaterialPackagingModel ¶
type InventoryRecipeMaterialPackagingModel struct { ID string `gorm:"column:id;primary_key" json:"id"` InventoryMaterialPackagingId string `gorm:"column:inventory_material_packaging_id;default:null" json:"inventory_material_packaging_id"` InventoryRecipeId NullString `gorm:"column:inventory_recipe_id;default:null" json:"inventory_recipe_id"` Inc int `gorm:"column:inc;default:null" json:"inc"` MaterialPackaging InventoryMaterialPackagingPreloadModel `gorm:"foreignKey:ID;references:InventoryMaterialPackagingId"` }
func (*InventoryRecipeMaterialPackagingModel) AfterUpdate ¶
func (p *InventoryRecipeMaterialPackagingModel) AfterUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeMaterialPackagingModel) BeforeCreate ¶
func (p *InventoryRecipeMaterialPackagingModel) BeforeCreate(tx *gorm.DB) (err error)
func (*InventoryRecipeMaterialPackagingModel) BeforeDelete ¶
func (p *InventoryRecipeMaterialPackagingModel) BeforeDelete(tx *gorm.DB) (err error)
func (*InventoryRecipeMaterialPackagingModel) BeforeUpdate ¶
func (p *InventoryRecipeMaterialPackagingModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeMaterialPackagingModel) TableName ¶
func (p *InventoryRecipeMaterialPackagingModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryRecipeMaterialPackagingModelPreload ¶
type InventoryRecipeMaterialPackagingModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` InventoryMaterialPackagingId string `gorm:"column:inventory_material_packaging_id;default:null" json:"inventory_material_packaging_id"` InventoryRecipeId NullString `gorm:"column:inventory_recipe_id;default:null" json:"inventory_recipe_id"` Inc int `gorm:"column:inc;default:null" json:"inc"` MaterialPackaging InventoryMaterialPackagingPreloadModel `gorm:"foreignKey:ID;references:InventoryMaterialPackagingId"` }
func (*InventoryRecipeMaterialPackagingModelPreload) TableName ¶
func (p *InventoryRecipeMaterialPackagingModelPreload) TableName() string
type InventoryRecipeModel ¶
type InventoryRecipeModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name1 NullString `gorm:"column:name_1;default:null" json:"name_1"` Name2 NullString `gorm:"column:name_2;default:null" json:"name_2"` RecipeId NullString `gorm:"column:recipe_id;default:null" json:"recipe_id"` Category int `gorm:"column:category;default:null" json:"category"` UnitId string `gorm:"column:unit_id;default:null" json:"unit_id"` SyncStock string `gorm:"column:sync_stock;default:null" json:"sync_stock"` Active int `gorm:"column:active;default:null" json:"active"` Description1 NullString `gorm:"column:description_1;default:null" json:"description_1"` Description2 NullString `gorm:"column:description_2;default:null" json:"description_2"` Description3 NullString `gorm:"column:description_3;default:null" json:"description_3"` Image NullString `gorm:"column:image;default:null" json:"image"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*InventoryRecipeModel) AfterUpdate ¶
func (p *InventoryRecipeModel) AfterUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeModel) BeforeCreate ¶
func (p *InventoryRecipeModel) BeforeCreate(tx *gorm.DB) (err error)
func (*InventoryRecipeModel) BeforeDelete ¶
func (p *InventoryRecipeModel) BeforeDelete(tx *gorm.DB) (err error)
func (*InventoryRecipeModel) BeforeUpdate ¶
func (p *InventoryRecipeModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*InventoryRecipeModel) TableName ¶
func (p *InventoryRecipeModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryRecipeModelPreload ¶
type InventoryRecipeModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name1 NullString `gorm:"column:name_1;default:null" json:"name_1"` Name2 NullString `gorm:"column:name_2;default:null" json:"name_2"` RecipeId NullString `gorm:"column:recipe_id;default:null" json:"recipe_id"` Category int `gorm:"column:category;default:null" json:"category"` UnitId string `gorm:"column:unit_id;default:null" json:"unit_id"` SyncStock string `gorm:"column:sync_stock;default:null" json:"sync_stock"` Active int `gorm:"column:active;default:null" json:"active"` Description1 NullString `gorm:"column:description_1;default:null" json:"description_1"` Description2 NullString `gorm:"column:description_2;default:null" json:"description_2"` Description3 NullString `gorm:"column:description_3;default:null" json:"description_3"` Image NullString `gorm:"column:image;default:null" json:"image"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"-"` RecipeIng []InventoryRecipeIngredientModelPreload `gorm:"foreignKey:InventoryRecipeId;references:ID" json:"recipe_ingredient"` RecipeLibrary []InventoryRecipeLibraryModelPreload `gorm:"foreignKey:InventoryRecipeId;references:ID" json:"recipe_library"` RecipeMaterialPackaging []InventoryRecipeMaterialPackagingModelPreload `gorm:"foreignKey:InventoryRecipeId;references:ID" json:"recipe_material_packaging"` }
func (*InventoryRecipeModelPreload) TableName ¶
func (p *InventoryRecipeModelPreload) TableName() string
type InventoryRecipeUpdate ¶
type InventoryRecipeUpdate struct { ID string `json:"id" binding:"required"` Name1 string `json:"name_1" binding:"required"` Name2 string `json:"name_2"` RecipeId string `json:"recipe_id" binding:"required"` Category int `json:"category" binding:"required"` UnitId string `json:"unit_id" binding:"required"` SyncStock string `json:"sync_stock" binding:"required"` Active int `json:"active"` Description1 string `json:"description_1"` Description2 string `json:"description_2"` Description3 string `json:"description_3"` Image string `json:"image"` //recipe ing RecipeID []string `json:"recipe"` Amount []int `json:"amount"` //library InventoryLibraryItem []string `json:"inventory_library_item"` Inventory_library_item_child []string `json:"inventory_library_item_child"` //material packaging InventoryMaterialPackagingId []string `json:"inventory_material_packaging_id"` }
type InventoryUnitData ¶
strcture output
type InventoryUnitInfo ¶
type InventoryUnitInfo struct {
ID string `json:"id" binding:"required"`
}
type InventoryUnitInput ¶
type InventoryUnitInput struct {
Name string `json:"name" binding:"required"`
}
strcture input
type InventoryUnitModel ¶
type InventoryUnitModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*InventoryUnitModel) AfterUpdate ¶
func (p *InventoryUnitModel) AfterUpdate(tx *gorm.DB) (err error)
func (*InventoryUnitModel) BeforeCreate ¶
func (p *InventoryUnitModel) BeforeCreate(tx *gorm.DB) (err error)
func (*InventoryUnitModel) BeforeDelete ¶
func (p *InventoryUnitModel) BeforeDelete(tx *gorm.DB) (err error)
func (*InventoryUnitModel) BeforeUpdate ¶
func (p *InventoryUnitModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*InventoryUnitModel) TableName ¶
func (p *InventoryUnitModel) TableName() string
TableName sets the insert table name for this struct type
type InventoryUnitModelPreload ¶
type InventoryUnitModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` CreatedBy NullString `gorm:"column:created_by" json:"-"` CreatedAt time.Time `gorm:"column:created_at" json:"-"` UpdatedBy NullString `gorm:"column:updated_by" json:"-"` UpdatedAt time.Time `gorm:"column:updated_at" json:"-"` DeletedBy NullString `gorm:"column:updated_by" json:"-"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"-"` }
func (*InventoryUnitModelPreload) TableName ¶
func (p *InventoryUnitModelPreload) TableName() string
type InventoryUnitUpdate ¶
type JobLevelInfoForm ¶
type JobLevelInfoForm struct {
ID string `json:"id" binding:"required"`
}
type JobLevelModel ¶
type JobLevelModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name" json:"name"` DepartmentId string `gorm:"column:department_id" json:"department_id"` Active int `gorm:"column:active" json:"active"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` Departement DepartmentModel `gorm:"foreignKey:ID;references:DepartmentId" json:"departement"` }
func (*JobLevelModel) AfterUpdate ¶
func (d *JobLevelModel) AfterUpdate(tx *gorm.DB) (err error)
func (*JobLevelModel) BeforeCreate ¶
func (d *JobLevelModel) BeforeCreate(tx *gorm.DB) (err error)
func (*JobLevelModel) BeforeUpdate ¶
func (d *JobLevelModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*JobLevelModel) TableName ¶
func (d *JobLevelModel) TableName() string
TableName sets the insert table name for this struct type
type JobLevelSaveForm ¶
type JobLevelUpdateForm ¶
type LanguageTableModel ¶
type LanguageTableModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Word NullString `gorm:"column:word;default:null" json:"word"` CountryId string `gorm:"column:country_id;default:null" json:"country_id"` TableTarget NullString `gorm:"column:table_target;default:null" json:"table_target"` TableTargetID string `gorm:"column:table_target_id;default:null" json:"table_target_id"` ColumnName string `gorm:"column:column_name;default:null" json:"column_name"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" sql:"type:timestamp without time zone" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` }
func (*LanguageTableModel) AfterUpdate ¶
func (p *LanguageTableModel) AfterUpdate(tx *gorm.DB) (err error)
func (*LanguageTableModel) BeforeCreate ¶
func (p *LanguageTableModel) BeforeCreate(tx *gorm.DB) (err error)
func (*LanguageTableModel) BeforeUpdate ¶
func (p *LanguageTableModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*LanguageTableModel) TableName ¶
func (p *LanguageTableModel) TableName() string
TableName sets the insert table name for this struct type
type LanguageTableModelPreload ¶
type LanguageTableModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Word NullString `gorm:"column:word;default:null" json:"word"` CountryId string `gorm:"column:country_id;default:null" json:"country_id"` TableTarget NullString `gorm:"column:table_target;default:null" json:"table_target"` TableTargetID string `gorm:"column:table_target_id;default:null" json:"table_target_id"` ColumnName string `gorm:"column:column_name;default:null" json:"column_name"` Country CountryModelPreload `gorm:"foreignKey:ID;references:CountryId" json:"country_data"` }
func (*LanguageTableModelPreload) TableName ¶
func (p *LanguageTableModelPreload) TableName() string
type NullDateTime ¶
type NullDateTime struct {
sql.NullString
}
parse null time on model
func (NullDateTime) MarshalJSON ¶
func (nt NullDateTime) MarshalJSON() ([]byte, error)
parse null time on model
type NullString ¶
type NullString struct {
sql.NullString
}
parse null string on model
func NullStringInput ¶
func NullStringInput(s string) NullString
func (NullString) MarshalJSON ¶
func (ns NullString) MarshalJSON() ([]byte, error)
parse null string on model
type ProductLibraryCategoryModel ¶
type ProductLibraryCategoryModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*ProductLibraryCategoryModel) AfterUpdate ¶
func (p *ProductLibraryCategoryModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductLibraryCategoryModel) BeforeCreate ¶
func (p *ProductLibraryCategoryModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductLibraryCategoryModel) BeforeDelete ¶
func (p *ProductLibraryCategoryModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductLibraryCategoryModel) BeforeUpdate ¶
func (p *ProductLibraryCategoryModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductLibraryCategoryModel) TableName ¶
func (p *ProductLibraryCategoryModel) TableName() string
TableName sets the insert table name for this struct type
type ProductLibraryCategoryModelInfo ¶
type ProductLibraryCategoryModelInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductLibraryCategoryModelInput ¶
type ProductLibraryCategoryModelInput struct {
Name string `json:"name" binding:"required"`
}
strcture input
type ProductLibraryCategoryModelPreload ¶
type ProductLibraryCategoryModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` }
func (*ProductLibraryCategoryModelPreload) TableName ¶
func (p *ProductLibraryCategoryModelPreload) TableName() string
type ProductLibraryPropertyModel ¶
type ProductLibraryPropertyModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` ProductLibraryCategoryId string `gorm:"column:product_library_category_id" json:"product_library_category_id"` ProductLibraryTitleId string `gorm:"column:product_library_title_id" json:"product_library_title_id"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*ProductLibraryPropertyModel) AfterUpdate ¶
func (p *ProductLibraryPropertyModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductLibraryPropertyModel) BeforeCreate ¶
func (p *ProductLibraryPropertyModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductLibraryPropertyModel) BeforeDelete ¶
func (p *ProductLibraryPropertyModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductLibraryPropertyModel) BeforeUpdate ¶
func (p *ProductLibraryPropertyModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductLibraryPropertyModel) TableName ¶
func (p *ProductLibraryPropertyModel) TableName() string
TableName sets the insert table name for this struct type
type ProductLibraryPropertyModelInfo ¶
type ProductLibraryPropertyModelInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductLibraryPropertyModelInput ¶
type ProductLibraryPropertyModelInput struct { Name string `json:"name" binding:"required"` ProductLibraryCategoryId string `json:"product_library_category_id" binding:"required"` ProductLibraryTitleId string `json:"product_library_title_id" binding:"required"` }
strcture input
type ProductLibraryPropertyModelPreload ¶
type ProductLibraryPropertyModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` ProductLibraryCategoryId string `gorm:"column:product_library_category_id" json:"product_library_category_id"` ProductLibraryTitleId string `gorm:"column:product_library_title_id" json:"product_library_title_id"` ProductLibraryCategory ProductLibraryCategoryModelPreload `gorm:"foreignKey:ID;references:ProductLibraryCategoryId" json:"product_library_category_data"` ProductLibraryTitle ProductLibraryTitleModelPreload `gorm:"foreignKey:ID;references:ProductLibraryTitleId" json:"product_library_title_data"` DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at" json:"-"` }
func (*ProductLibraryPropertyModelPreload) TableName ¶
func (p *ProductLibraryPropertyModelPreload) TableName() string
type ProductLibraryPropertyModelUpdate ¶
type ProductLibraryPropertyModelUpdate struct { ID string `json:"id" binding:"required"` Name string `json:"name" binding:"required"` ProductLibraryCategoryId string `json:"product_library_category_id" binding:"required"` ProductLibraryTitleId string `json:"product_library_title_id" binding:"required"` }
type ProductLibraryTitleModel ¶
type ProductLibraryTitleModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` ProductLibraryCategoryId string `gorm:"column:product_library_category_id" json:"product_library_category_id"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*ProductLibraryTitleModel) AfterUpdate ¶
func (p *ProductLibraryTitleModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductLibraryTitleModel) BeforeCreate ¶
func (p *ProductLibraryTitleModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductLibraryTitleModel) BeforeDelete ¶
func (p *ProductLibraryTitleModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductLibraryTitleModel) BeforeUpdate ¶
func (p *ProductLibraryTitleModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductLibraryTitleModel) TableName ¶
func (p *ProductLibraryTitleModel) TableName() string
TableName sets the insert table name for this struct type
type ProductLibraryTitleModelInfo ¶
type ProductLibraryTitleModelInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductLibraryTitleModelInput ¶
type ProductLibraryTitleModelInput struct { Name string `json:"name" binding:"required"` ProductLibraryCategoryId string `json:"product_library_category_id" binding:"required"` }
strcture input
type ProductLibraryTitleModelPreload ¶
type ProductLibraryTitleModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` ProductLibraryCategoryId string `gorm:"column:product_library_category_id" json:"product_library_category_id"` ProductLibraryCategory ProductLibraryCategoryModelPreload `gorm:"foreignKey:ID;references:ProductLibraryCategoryId" json:"product_library_category_data"` DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at" json:"-"` }
func (*ProductLibraryTitleModelPreload) TableName ¶
func (p *ProductLibraryTitleModelPreload) TableName() string
type ProductModel ¶
type ProductModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` PID NullString `gorm:"column:pid;default:null" json:"pid"` ProductTypeId NullString `gorm:"column:product_type_id" json:"product_type_id"` Active int `gorm:"column:active" json:"active"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` ProductType ProductTypeModel `gorm:"foreignKey:ID;references:ProductTypeId" json:"product_type"` }
func (*ProductModel) AfterUpdate ¶
func (p *ProductModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductModel) BeforeCreate ¶
func (p *ProductModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductModel) BeforeDelete ¶
func (p *ProductModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductModel) BeforeUpdate ¶
func (p *ProductModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductModel) TableName ¶
func (p *ProductModel) TableName() string
TableName sets the insert table name for this struct type
type ProductModelDataModel ¶
type ProductModelDataModel struct { ID string `gorm:"column:id;primary_key" json:"id"` ProductTypeId string `gorm:"column:product_type_id" json:"product_type_id"` ProductID string `gorm:"column:product_id" json:"product_id"` ProductModelID string `gorm:"column:product_model_id" json:"product_model_id"` InventoryRecipeID string `gorm:"column:inventory_recipe_id" json:"inventory_recipe_id"` MOQ int `gorm:"column:moq" json:"moq"` Mid string `gorm:"column:mid;uniqueIndex" json:"mid"` MOQINC int `gorm:"column:moq_inc" json:"moq_inc"` Active int `gorm:"column:active" json:"active"` INC int `gorm:"column:inc" json:"inc"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*ProductModelDataModel) AfterUpdate ¶
func (p *ProductModelDataModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductModelDataModel) BeforeCreate ¶
func (p *ProductModelDataModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductModelDataModel) BeforeDelete ¶
func (p *ProductModelDataModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductModelDataModel) BeforeUpdate ¶
func (p *ProductModelDataModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductModelDataModel) TableName ¶
func (p *ProductModelDataModel) TableName() string
TableName sets the insert table name for this struct type
type ProductModelDataModelInfo ¶
type ProductModelDataModelInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductModelDataModelInput ¶
type ProductModelDataModelInput struct { ProductTypeId string `json:"product_type_id" binding:"required"` ProductID string `json:"product_id" binding:"required"` ProductModelID string `json:"product_model_id" binding:"required"` Mid string `json:"mid" binding:"required"` InventoryRecipeID string `json:"inventory_recipe_id" binding:"required"` MOQ int `json:"moq"` MOQINC int `json:"moq_inc"` Active int `json:"active"` Platform []string `json:"platform"` }
strcture input
type ProductModelDataPreload ¶
type ProductModelDataPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` ProductTypeId string `gorm:"column:product_type_id" json:"product_type_id"` ProductId string `gorm:"column:product_id" json:"product_id"` ProductModelId string `gorm:"column:product_model_id" json:"product_model_id"` InventoryRecipeId string `gorm:"column:inventory_recipe_id" json:"inventory_recipe_id"` MOQ int `gorm:"column:moq" json:"moq"` Mid string `gorm:"column:mid;uniqueIndex" json:"mid"` MoqInc int `gorm:"column:moq_inc" json:"moq_inc"` Active int `gorm:"column:active" json:"active"` INC int `gorm:"column:inc" json:"inc"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"-"` ModelData ProductModelModelPreload `gorm:"foreignKey:ID;references:ProductModelId" json:"model_data"` PlatformData []ProductPlatformModelPreload `gorm:"foreignKey:ProductModelDataID;references:ID" json:"platform"` Pricing []ProductPricingModelPreload `gorm:"foreignKey:ProductModelDataID;references:ID" json:"pricing"` }
func (*ProductModelDataPreload) TableName ¶
func (p *ProductModelDataPreload) TableName() string
type ProductModelInfo ¶
type ProductModelInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductModelInput ¶
type ProductModelInput struct { Name string `json:"name" binding:"required"` PID string `json:"pid" binding:"required"` ProductTypeId string `json:"product_type_id" binding:"required"` Active int `json:"active"` }
strcture input
type ProductModelModel ¶
type ProductModelModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` ProductTypeId NullString `gorm:"column:product_type_id" json:"product_type_id"` Active int `gorm:"column:active" json:"active"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` ProductType ProductTypeModel `gorm:"foreignKey:ID;references:ProductTypeId" json:"product_type"` }
func (*ProductModelModel) AfterUpdate ¶
func (p *ProductModelModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductModelModel) BeforeCreate ¶
func (p *ProductModelModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductModelModel) BeforeDelete ¶
func (p *ProductModelModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductModelModel) BeforeUpdate ¶
func (p *ProductModelModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductModelModel) TableName ¶
func (p *ProductModelModel) TableName() string
TableName sets the insert table name for this struct type
type ProductModelModelInfo ¶
type ProductModelModelInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductModelModelInput ¶
type ProductModelModelInput struct { Name string `json:"name" binding:"required"` ProductTypeId string `json:"product_type_id" binding:"required"` Active int `json:"active"` CountryID []string `json:"country_id"` Word []string `json:"word"` }
strcture input
type ProductModelModelPreload ¶
type ProductModelModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` ProductTypeId NullString `gorm:"column:product_type_id" json:"product_type_id"` Active int `gorm:"column:active" json:"active"` ProductType ProductTypeModel `gorm:"foreignKey:ID;references:ProductTypeId" json:"product_type"` }
func (*ProductModelModelPreload) TableName ¶
func (p *ProductModelModelPreload) TableName() string
type ProductModelModelUpdate ¶
type ProductModelPreload ¶
type ProductModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` Name NullString `gorm:"column:name;default:null" json:"name"` PID NullString `gorm:"column:pid;default:null" json:"pid"` ProductTypeId NullString `gorm:"column:product_type_id" json:"product_type_id"` Active int `gorm:"column:active" json:"active"` ProductType ProductTypeModel `gorm:"foreignKey:ID;references:ProductTypeId" json:"product_type"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"-"` ModelData []ProductModelDataPreload `gorm:"foreignKey:ProductId;references:ID" json:"model_data"` }
func (*ProductModelPreload) TableName ¶
func (p *ProductModelPreload) TableName() string
type ProductModelUpdate ¶
type ProductPlatformModel ¶
type ProductPlatformModel struct { ID string `gorm:"column:id;primary_key" json:"id"` PlatformID string `gorm:"column:platform_id" json:"platform_id"` ProductModelDataID string `gorm:"column:product_model_data_id" json:"product_model_data_id"` Active int `gorm:"column:active" json:"active"` INC int `gorm:"column:inc" json:"inc"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*ProductPlatformModel) AfterUpdate ¶
func (p *ProductPlatformModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductPlatformModel) BeforeCreate ¶
func (p *ProductPlatformModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductPlatformModel) BeforeDelete ¶
func (p *ProductPlatformModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductPlatformModel) BeforeUpdate ¶
func (p *ProductPlatformModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductPlatformModel) TableName ¶
func (p *ProductPlatformModel) TableName() string
TableName sets the insert table name for this struct type
type ProductPlatformModelInput ¶
type ProductPlatformModelInput struct { PlatformID string `json:"platform_id" binding:"required"` ProductModelDataID string `json:"product_model_data_id" binding:"required"` Active int `json:"active"` }
strcture input
type ProductPlatformModelPreload ¶
type ProductPlatformModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` PlatformID string `gorm:"column:platform_id" json:"platform_id"` ProductModelDataID string `gorm:"column:product_model_data_id" json:"product_model_data_id"` Active int `gorm:"column:active" json:"active"` INC int `gorm:"column:inc" json:"inc"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"-"` Platform DataPlatformModelPreload `gorm:"foreignKey:ID;references:PlatformID" json:"platform_data"` }
func (*ProductPlatformModelPreload) TableName ¶
func (p *ProductPlatformModelPreload) TableName() string
type ProductPlatformModellInfo ¶
type ProductPlatformModellInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductPricingModel ¶
type ProductPricingModel struct { ID string `gorm:"column:id;primary_key" json:"id"` CustomerLevelID string `gorm:"column:customer_level_id" json:"customer_level_id"` ProductModelDataID string `gorm:"column:product_model_data_id" json:"product_model_data_id"` Active int `gorm:"column:active" json:"active"` INC int `gorm:"column:inc" json:"inc"` Price int `gorm:"column:price" json:"price"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"crated_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" sql:"type:timestamp without time zone" json:"updated_at"` DeletedBy NullString `gorm:"column:updated_by" json:"deleted_by"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"deleted_at"` }
func (*ProductPricingModel) AfterUpdate ¶
func (p *ProductPricingModel) AfterUpdate(tx *gorm.DB) (err error)
func (*ProductPricingModel) BeforeCreate ¶
func (p *ProductPricingModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProductPricingModel) BeforeDelete ¶
func (p *ProductPricingModel) BeforeDelete(tx *gorm.DB) (err error)
func (*ProductPricingModel) BeforeUpdate ¶
func (p *ProductPricingModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProductPricingModel) TableName ¶
func (p *ProductPricingModel) TableName() string
TableName sets the insert table name for this struct type
type ProductPricingModelInput ¶
type ProductPricingModelInput struct { CustomerLevelID map[string][]string `json:"customer_level_id"` ProductModelDataID []string `json:"product_model_data_id" binding:"required"` Price map[string][]int `json:"price"` }
strcture input
type ProductPricingModelPreload ¶
type ProductPricingModelPreload struct { ID string `gorm:"column:id;primary_key" json:"id"` CustomerLevelID string `gorm:"column:customer_level_id" json:"customer_level_id"` ProductModelDataID string `gorm:"column:product_model_data_id" json:"product_model_data_id"` Active int `gorm:"column:active" json:"active"` INC int `gorm:"column:inc" json:"inc"` Price int `gorm:"column:price" json:"price"` DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_name;column:deleted_at" json:"-"` CustomerLevel []CustomerLevelModelInfo `gorm:"foreignKey:ID;references:CustomerLevelID" json:"customer_level"` }
func (*ProductPricingModelPreload) TableName ¶
func (p *ProductPricingModelPreload) TableName() string
type ProductPricingModellInfo ¶
type ProductPricingModellInfo struct {
ID string `json:"id" binding:"required"`
}
type ProductTypeModel ¶
type ProductTypeModel struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name NullString `gorm:"column:name" json:"name"` // }
func (*ProductTypeModel) TableName ¶
func (p *ProductTypeModel) TableName() string
TableName sets the insert table name for this struct type
type ProvinceModel ¶
type ProvinceModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` ProvinceCode string `gorm:"column:province_code;default:null" json:"provincecode"` Active uint64 `gorm:"column:active;default:1" json:"active"` CountryId string `gorm:"column:country_id;default:null" json:"countryid"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*ProvinceModel) BeforeCreate ¶
func (p *ProvinceModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ProvinceModel) BeforeUpdate ¶
func (p *ProvinceModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ProvinceModel) FindAllProvinces ¶
func (p *ProvinceModel) FindAllProvinces(tx *gorm.DB) (*[]ProvinceModel, error)
func (*ProvinceModel) TableName ¶
func (p *ProvinceModel) TableName() string
TableName sets the insert table name for this struct type
type ReligionModel ¶
type ReligionModel struct { ID string `gorm:"column:id;primary_key" json:"id"` // Name NullString `gorm:"column:name" json:"name"` // CreatedBy NullString `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*ReligionModel) BeforeCreate ¶
func (r *ReligionModel) BeforeCreate(tx *gorm.DB) (err error)
func (*ReligionModel) BeforeUpdate ¶
func (r *ReligionModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*ReligionModel) TableName ¶
func (r *ReligionModel) TableName() string
TableName sets the insert table name for this struct type
type SubDistrictInfoDetail ¶
type SubDistrictInfoDetail struct { CountryName string `json:"country_name"` CountryId string `json:"country_id"` ProvinceName string `json:"province_name"` ProvinceId string `json:"province_id"` CityName string `json:"city_name"` CityId string `json:"city_id"` DistrictName string `json:"district_name"` DistrictId string `json:"district_id"` Active uint64 `json:"active"` ID string `json:"id"` Name string `json:"subdistrict_name"` SubDistrictCode string `json:"subdistrict_code"` ZipCode string `json:"zip_code"` }
type SubDistrictInfoForm ¶
type SubDistrictInfoForm struct {
ID string `json:"id" binding:"required"`
}
info subdistrict
type SubDistrictModel ¶
type SubDistrictModel struct { ID string `gorm:"column:id;primary_key" json:"id"` Name string `gorm:"column:name;default:null" json:"name"` SubDistrictCode string `gorm:"column:subdistrict_code;default:null" json:"subdistrict_code"` Active uint64 `gorm:"column:active;default:1" json:"active"` CountryId string `gorm:"column:country_id;default:null" json:"country_id"` ProvinceId string `gorm:"column:province_id;default:null" json:"province_id"` CityId string `gorm:"column:city_id;default:null" json:"city_id"` DistrictId string `gorm:"column:district_id;default:null" json:"district_id"` ZipCode string `gorm:"column:zip_code;default:null" json:"zip_code"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*SubDistrictModel) BeforeCreate ¶
func (s *SubDistrictModel) BeforeCreate(tx *gorm.DB) (err error)
func (*SubDistrictModel) BeforeUpdate ¶
func (s *SubDistrictModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*SubDistrictModel) FindAllCities ¶
func (s *SubDistrictModel) FindAllCities(tx *gorm.DB) (*[]SubDistrictModel, error)
func (*SubDistrictModel) TableName ¶
func (s *SubDistrictModel) TableName() string
TableName sets the insert table name for this struct type
type UserModel ¶
type UserModel struct { ID string `gorm:"column:id;primary_key" json:"id"` // UID NullString `gorm:"column:UID" json:"UID,string"` // Fullname NullString `gorm:"column:fullname" json:"fullname"` // Username NullString `gorm:"column:username;uniqueIndex" json:"username"` // Password NullString `gorm:"column:password" json:"password"` // Email NullString `gorm:"column:email" json:"email"` // Active int `gorm:"column:active" json:"active"` // Qr NullString `gorm:"column:qr" json:"qr"` // CreatedBy NullString `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_on"` // UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_on"` // IsAdmin int `gorm:"column:is_admin" json:"is_admin"` // }
type UserPageModel ¶
type UserPageModel struct { ID string `gorm:"column:id;primary_key" json:"id"` // PageName NullString `gorm:"column:UID" json:"UID,string"` // PageUrl NullString `gorm:"column:fullname" json:"fullname"` // CreatedBy NullString `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_on"` // UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_on"` // IsAdmin int `gorm:"column:is_admin" json:"is_admin"` // }
func (*UserPageModel) BeforeCreate ¶
func (u *UserPageModel) BeforeCreate(tx *gorm.DB) (err error)
func (*UserPageModel) BeforeDelete ¶
func (u *UserPageModel) BeforeDelete(tx *gorm.DB) (err error)
func (*UserPageModel) BeforeUpdate ¶
func (u *UserPageModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*UserPageModel) TableName ¶
func (u *UserPageModel) TableName() string
TableName sets the insert table name for this struct type
type User_typeModel ¶
type User_typeModel struct { ID string `gorm:"column:id;primaryKey" json:"id"` // Name NullString `gorm:"column:name" json:"name"` // CreatedBy string `gorm:"column:created_by" json:"created_by"` // CreatedAt time.Time `gorm:"column:created_at" json:"created_on"` // UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` // UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_on"` // }
func (*User_typeModel) BeforeCreate ¶
func (u *User_typeModel) BeforeCreate(tx *gorm.DB) (err error)
func (*User_typeModel) BeforeUpdate ¶
func (u *User_typeModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*User_typeModel) TableName ¶
func (u *User_typeModel) TableName() string
TableName sets the insert table name for this struct type
type WarehouseInfoData ¶
type WarehouseInfoData struct {
ID string `json:"id" binding:"required"`
}
type WarehouseModel ¶
type WarehouseModel struct { ID string `gorm:"column:id;primary_key" json:"id"` LetterCode NullString `gorm:"column:letter_code;unique" json:"letter_code"` Name NullString `gorm:"column:name;default:null" json:"name"` Active uint64 `gorm:"column:active;default:1" json:"active"` Address NullString `gorm:"column:address;" json:"address"` Longitude NullString `gorm:"column:longitude;default:null" json:"longitude,omitempty"` Latitude NullString `gorm:"column:latitude;default:null" json:"latitude,omitempty"` W1 uint64 `gorm:"column:w1;default:1" json:"w1"` W2 uint64 `gorm:"column:w2;default:1" json:"w2"` W3 uint64 `gorm:"column:w3;default:1" json:"w3"` W4 uint64 `gorm:"column:w4;default:1" json:"w4"` W5 uint64 `gorm:"column:w5;default:1" json:"w5"` Branch uint64 `gorm:"column:branch;default:1" json:"branch"` CreatedBy NullString `gorm:"column:created_by" json:"created_by"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` Inc uint64 `gorm:"column:inc;<-:false" json:"inc"` WhDepartmentWarehouse []DepartmentWarehouseModel `gorm:"foreignKey:WarehouseId;references:ID" json:"wh_departement_warehouse"` }
func (*WarehouseModel) BeforeCreate ¶
func (p *WarehouseModel) BeforeCreate(tx *gorm.DB) (err error)
func (*WarehouseModel) BeforeUpdate ¶
func (p *WarehouseModel) BeforeUpdate(tx *gorm.DB) (err error)
func (*WarehouseModel) TableName ¶
func (p *WarehouseModel) TableName() string
type WarehousePreloadModel ¶
type WarehousePreloadModel struct { ID string `gorm:"column:id;primary_key" json:"id"` LetterCode string `gorm:"column:letter_code;unique" json:"letter_code"` Name string `gorm:"column:name;default:null" json:"name"` Active uint64 `gorm:"column:active;default:1" json:"active"` Address string `gorm:"column:address;" json:"address"` Longitude string `gorm:"column:longitude;default:null" json:"longitude,omitempty"` Latitude string `gorm:"column:latitude;default:null" json:"latitude,omitempty"` W1 string `gorm:"column:w1;default:1" json:"w1"` W2 string `gorm:"column:w2;default:1" json:"w2"` W3 string `gorm:"column:w3;default:1" json:"w3"` W4 string `gorm:"column:w4;default:1" json:"w4"` W5 string `gorm:"column:w5;default:1" json:"w5"` Branch string `gorm:"column:branch;default:1" json:"branch"` Inc uint64 `gorm:"column:inc;<-:false" json:"inc"` WhDepartmentWarehouse []DepartmentWarehouseModel `gorm:"foreignKey:WarehouseId;references:ID" json:"wh_departement_warehouse"` }
func (*WarehousePreloadModel) TableName ¶
func (p *WarehousePreloadModel) TableName() string
TableName sets the insert table name for this struct type
type WarehouseSaveData ¶
type WarehouseSaveData struct { LetterCode string `json:"letter_code" binding:"required"` Name string `json:"name" binding:"required"` Active uint64 `json:"active"` Address string `json:"address"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` W1 uint64 `json:"w1"` W2 uint64 `json:"w2"` W3 uint64 `json:"w3"` W4 uint64 `json:"w4"` W5 uint64 `json:"w5"` Branch uint64 `json:"branch"` }
type WarehouseUpdateData ¶
type WarehouseUpdateData struct { ID string `json:"id" binding:"required"` LetterCode string `json:"letter_code" binding:"required"` Name string `json:"name" binding:"required"` Active uint64 `json:"active"` Address string `json:"address"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` W1 uint64 `json:"w1"` W2 uint64 `json:"w2"` W3 uint64 `json:"w3"` W4 uint64 `json:"w4"` W5 uint64 `json:"w5"` Branch uint64 `json:"branch"` StockOrder string `json:"stock_order" binding:"required"` }
Source Files ¶
- ActiveUserModel.go
- BloodTypeModel.go
- CityModel.go
- CountryModel.go
- CustomerLevelModel.go
- DataPlatformModel.go
- DepartmentModel.go
- DepartmentWarehouseModel.go
- DistrictModel.go
- EmployeeModel.go
- InventoryLibraryModel.go
- InventoryMaterialPackagingModel.go
- InventoryRecipeIngredientModel.go
- InventoryRecipeLibraryModel.go
- InventoryRecipeMaterialPackagingModel.go
- InventoryRecipeModel.go
- InventoryUnitModel.go
- JobLevelModel.go
- LanguageTableModel.go
- ModelSetup.go
- ProductLibraryCategoryModel.go
- ProductLibraryPropertyModel.go
- ProductLibraryTitleModel.go
- ProductModel.go
- ProductModelDataModel.go
- ProductModelModel.go
- ProductPlatformModel.go
- ProductPricingModel.go
- ProductTypeModel.go
- ProvinceModel.go
- ReligionModel.go
- SubDistrictModel.go
- UserModel.go
- UserPageModel.go
- User_typeModel.go
- WarehouseModel.go