101 lines
4.8 KiB
Go
101 lines
4.8 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import (
|
|
"git.ma-al.com/goc_marek/gormcol"
|
|
"time"
|
|
)
|
|
|
|
const TableNamePsAddress = "ps_address"
|
|
|
|
// PsAddress mapped from table <ps_address>
|
|
type PsAddress struct {
|
|
IDAddress int32 `gorm:"column:id_address;primaryKey;autoIncrement:true" json:"id_address"`
|
|
IDCountry int32 `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"`
|
|
IDState *int32 `gorm:"column:id_state;index:id_state,priority:1" json:"id_state"`
|
|
IDCustomer int32 `gorm:"column:id_customer;not null;index:address_customer,priority:1" json:"id_customer"`
|
|
IDManufacturer int32 `gorm:"column:id_manufacturer;not null;index:id_manufacturer,priority:1" json:"id_manufacturer"`
|
|
IDSupplier int32 `gorm:"column:id_supplier;not null;index:id_supplier,priority:1" json:"id_supplier"`
|
|
IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"`
|
|
Alias string `gorm:"column:alias;not null" json:"alias"`
|
|
Company *string `gorm:"column:company" json:"company"`
|
|
Lastname string `gorm:"column:lastname;not null" json:"lastname"`
|
|
Firstname string `gorm:"column:firstname;not null" json:"firstname"`
|
|
Address1 string `gorm:"column:address1;not null" json:"address1"`
|
|
Address2 *string `gorm:"column:address2" json:"address2"`
|
|
Postcode *string `gorm:"column:postcode" json:"postcode"`
|
|
City string `gorm:"column:city;not null" json:"city"`
|
|
Other *string `gorm:"column:other" json:"other"`
|
|
Phone *string `gorm:"column:phone" json:"phone"`
|
|
PhoneMobile *string `gorm:"column:phone_mobile" json:"phone_mobile"`
|
|
VatNumber *string `gorm:"column:vat_number" json:"vat_number"`
|
|
Dni *string `gorm:"column:dni" json:"dni"`
|
|
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
|
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
|
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
|
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
|
IsNovat int32 `gorm:"column:is_novat;not null" json:"is_novat"`
|
|
}
|
|
|
|
// TableName PsAddress's table name
|
|
func (*PsAddress) TableName() string {
|
|
return TableNamePsAddress
|
|
}
|
|
|
|
var PsAddressCols = struct {
|
|
IDAddress gormcol.Field
|
|
IDCountry gormcol.Field
|
|
IDState gormcol.Field
|
|
IDCustomer gormcol.Field
|
|
IDManufacturer gormcol.Field
|
|
IDSupplier gormcol.Field
|
|
IDWarehouse gormcol.Field
|
|
Alias gormcol.Field
|
|
Company gormcol.Field
|
|
Lastname gormcol.Field
|
|
Firstname gormcol.Field
|
|
Address1 gormcol.Field
|
|
Address2 gormcol.Field
|
|
Postcode gormcol.Field
|
|
City gormcol.Field
|
|
Other gormcol.Field
|
|
Phone gormcol.Field
|
|
PhoneMobile gormcol.Field
|
|
VatNumber gormcol.Field
|
|
Dni gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
Active gormcol.Field
|
|
Deleted gormcol.Field
|
|
IsNovat gormcol.Field
|
|
}{
|
|
IDAddress: gormcol.Field{Table: TableNamePsAddress, Column: "id_address"},
|
|
IDCountry: gormcol.Field{Table: TableNamePsAddress, Column: "id_country"},
|
|
IDState: gormcol.Field{Table: TableNamePsAddress, Column: "id_state"},
|
|
IDCustomer: gormcol.Field{Table: TableNamePsAddress, Column: "id_customer"},
|
|
IDManufacturer: gormcol.Field{Table: TableNamePsAddress, Column: "id_manufacturer"},
|
|
IDSupplier: gormcol.Field{Table: TableNamePsAddress, Column: "id_supplier"},
|
|
IDWarehouse: gormcol.Field{Table: TableNamePsAddress, Column: "id_warehouse"},
|
|
Alias: gormcol.Field{Table: TableNamePsAddress, Column: "alias"},
|
|
Company: gormcol.Field{Table: TableNamePsAddress, Column: "company"},
|
|
Lastname: gormcol.Field{Table: TableNamePsAddress, Column: "lastname"},
|
|
Firstname: gormcol.Field{Table: TableNamePsAddress, Column: "firstname"},
|
|
Address1: gormcol.Field{Table: TableNamePsAddress, Column: "address1"},
|
|
Address2: gormcol.Field{Table: TableNamePsAddress, Column: "address2"},
|
|
Postcode: gormcol.Field{Table: TableNamePsAddress, Column: "postcode"},
|
|
City: gormcol.Field{Table: TableNamePsAddress, Column: "city"},
|
|
Other: gormcol.Field{Table: TableNamePsAddress, Column: "other"},
|
|
Phone: gormcol.Field{Table: TableNamePsAddress, Column: "phone"},
|
|
PhoneMobile: gormcol.Field{Table: TableNamePsAddress, Column: "phone_mobile"},
|
|
VatNumber: gormcol.Field{Table: TableNamePsAddress, Column: "vat_number"},
|
|
Dni: gormcol.Field{Table: TableNamePsAddress, Column: "dni"},
|
|
DateAdd: gormcol.Field{Table: TableNamePsAddress, Column: "date_add"},
|
|
DateUpd: gormcol.Field{Table: TableNamePsAddress, Column: "date_upd"},
|
|
Active: gormcol.Field{Table: TableNamePsAddress, Column: "active"},
|
|
Deleted: gormcol.Field{Table: TableNamePsAddress, Column: "deleted"},
|
|
IsNovat: gormcol.Field{Table: TableNamePsAddress, Column: "is_novat"},
|
|
}
|