// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsOrderReturn = "ps_order_return"

// PsOrderReturn mapped from table <ps_order_return>
type PsOrderReturn struct {
	IDOrderReturn int32     `gorm:"column:id_order_return;primaryKey;autoIncrement:true" json:"id_order_return"`
	IDCustomer    int32     `gorm:"column:id_customer;not null;index:order_return_customer,priority:1" json:"id_customer"`
	IDOrder       int32     `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"`
	State         bool      `gorm:"column:state;not null;default:1" json:"state"`
	Question      string    `gorm:"column:question;not null" json:"question"`
	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 PsOrderReturn's table name
func (*PsOrderReturn) TableName() string {
	return TableNamePsOrderReturn
}

var PsOrderReturnCols = struct {
	IDOrderReturn gormcol.Field
	IDCustomer gormcol.Field
	IDOrder gormcol.Field
	State gormcol.Field
	Question gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
}{
	IDOrderReturn: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "id_order_return"),
	IDCustomer: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "id_customer"),
	IDOrder: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "id_order"),
	State: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "state"),
	Question: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "question"),
	DateAdd: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "date_upd"),
}
