Files
gormcol/app/model/dbmodel/ps_store.go

65 lines
2.4 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 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{Table: TableNamePsStore, Column: "id_store"},
IDCountry: gormcol.Field{Table: TableNamePsStore, Column: "id_country"},
IDState: gormcol.Field{Table: TableNamePsStore, Column: "id_state"},
City: gormcol.Field{Table: TableNamePsStore, Column: "city"},
Postcode: gormcol.Field{Table: TableNamePsStore, Column: "postcode"},
Latitude: gormcol.Field{Table: TableNamePsStore, Column: "latitude"},
Longitude: gormcol.Field{Table: TableNamePsStore, Column: "longitude"},
Phone: gormcol.Field{Table: TableNamePsStore, Column: "phone"},
Fax: gormcol.Field{Table: TableNamePsStore, Column: "fax"},
Email: gormcol.Field{Table: TableNamePsStore, Column: "email"},
Active: gormcol.Field{Table: TableNamePsStore, Column: "active"},
DateAdd: gormcol.Field{Table: TableNamePsStore, Column: "date_add"},
DateUpd: gormcol.Field{Table: TableNamePsStore, Column: "date_upd"},
}