// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsOrderNote = "ps_order_notes"

// PsOrderNote mapped from table <ps_order_notes>
type PsOrderNote struct {
	ID         int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	IDOrder    int32     `gorm:"column:id_order;not null" json:"id_order"`
	IDEmployee int32     `gorm:"column:id_employee;not null" json:"id_employee"`
	Note       *string   `gorm:"column:note" json:"note"`
	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 PsOrderNote's table name
func (*PsOrderNote) TableName() string {
	return TableNamePsOrderNote
}

var PsOrderNoteCols = struct {
	ID gormcol.Field
	IDOrder gormcol.Field
	IDEmployee gormcol.Field
	Note gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
}{
	ID: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "id"),
	IDOrder: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "id_order"),
	IDEmployee: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "id_employee"),
	Note: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "note"),
	DateAdd: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "date_upd"),
}
