// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsStore = "ps_store"

// PsStore mapped from table <ps_store>
type PsStore struct {
	IDStore   int32     `gorm:"column:id_store;primaryKey;autoIncrement:true" json:"id_store"`
	IDCountry int32     `gorm:"column:id_country;not null" json:"id_country"`
	IDState   *int32    `gorm:"column:id_state" json:"id_state"`
	City      string    `gorm:"column:city;not null" json:"city"`
	Postcode  string    `gorm:"column:postcode;not null" json:"postcode"`
	Latitude  *float64  `gorm:"column:latitude" json:"latitude"`
	Longitude *float64  `gorm:"column:longitude" json:"longitude"`
	Phone     *string   `gorm:"column:phone" json:"phone"`
	Fax       *string   `gorm:"column:fax" json:"fax"`
	Email     *string   `gorm:"column:email" json:"email"`
	Active    bool      `gorm:"column:active;not null" json:"active"`
	DateAdd   time.Time `gorm:"column:date_add;not null" json:"date_add"`
	DateUpd   time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
}

// TableName PsStore's table name
func (*PsStore) TableName() string {
	return TableNamePsStore
}

var PsStoreCols = struct {
	IDStore gormcol.Field
	IDCountry gormcol.Field
	IDState gormcol.Field
	City gormcol.Field
	Postcode gormcol.Field
	Latitude gormcol.Field
	Longitude gormcol.Field
	Phone gormcol.Field
	Fax gormcol.Field
	Email gormcol.Field
	Active gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
}{
	IDStore: gormcol.Field{}.Set((&PsStore{}).TableName(), "id_store"),
	IDCountry: gormcol.Field{}.Set((&PsStore{}).TableName(), "id_country"),
	IDState: gormcol.Field{}.Set((&PsStore{}).TableName(), "id_state"),
	City: gormcol.Field{}.Set((&PsStore{}).TableName(), "city"),
	Postcode: gormcol.Field{}.Set((&PsStore{}).TableName(), "postcode"),
	Latitude: gormcol.Field{}.Set((&PsStore{}).TableName(), "latitude"),
	Longitude: gormcol.Field{}.Set((&PsStore{}).TableName(), "longitude"),
	Phone: gormcol.Field{}.Set((&PsStore{}).TableName(), "phone"),
	Fax: gormcol.Field{}.Set((&PsStore{}).TableName(), "fax"),
	Email: gormcol.Field{}.Set((&PsStore{}).TableName(), "email"),
	Active: gormcol.Field{}.Set((&PsStore{}).TableName(), "active"),
	DateAdd: gormcol.Field{}.Set((&PsStore{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsStore{}).TableName(), "date_upd"),
}
