// Code generated by gormcol. 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{}.Set((&PsAddress{}).TableName(), "id_address"),
	IDCountry: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_country"),
	IDState: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_state"),
	IDCustomer: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_customer"),
	IDManufacturer: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_manufacturer"),
	IDSupplier: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_supplier"),
	IDWarehouse: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_warehouse"),
	Alias: gormcol.Field{}.Set((&PsAddress{}).TableName(), "alias"),
	Company: gormcol.Field{}.Set((&PsAddress{}).TableName(), "company"),
	Lastname: gormcol.Field{}.Set((&PsAddress{}).TableName(), "lastname"),
	Firstname: gormcol.Field{}.Set((&PsAddress{}).TableName(), "firstname"),
	Address1: gormcol.Field{}.Set((&PsAddress{}).TableName(), "address1"),
	Address2: gormcol.Field{}.Set((&PsAddress{}).TableName(), "address2"),
	Postcode: gormcol.Field{}.Set((&PsAddress{}).TableName(), "postcode"),
	City: gormcol.Field{}.Set((&PsAddress{}).TableName(), "city"),
	Other: gormcol.Field{}.Set((&PsAddress{}).TableName(), "other"),
	Phone: gormcol.Field{}.Set((&PsAddress{}).TableName(), "phone"),
	PhoneMobile: gormcol.Field{}.Set((&PsAddress{}).TableName(), "phone_mobile"),
	VatNumber: gormcol.Field{}.Set((&PsAddress{}).TableName(), "vat_number"),
	Dni: gormcol.Field{}.Set((&PsAddress{}).TableName(), "dni"),
	DateAdd: gormcol.Field{}.Set((&PsAddress{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsAddress{}).TableName(), "date_upd"),
	Active: gormcol.Field{}.Set((&PsAddress{}).TableName(), "active"),
	Deleted: gormcol.Field{}.Set((&PsAddress{}).TableName(), "deleted"),
	IsNovat: gormcol.Field{}.Set((&PsAddress{}).TableName(), "is_novat"),
}
