// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsMail = "ps_mail"

// PsMail mapped from table <ps_mail>
type PsMail struct {
	IDMail    int32     `gorm:"column:id_mail;primaryKey;autoIncrement:true" json:"id_mail"`
	Recipient string    `gorm:"column:recipient;not null;index:recipient,priority:1" json:"recipient"`
	Template  string    `gorm:"column:template;not null" json:"template"`
	Subject   string    `gorm:"column:subject;not null" json:"subject"`
	IDLang    int32     `gorm:"column:id_lang;not null" json:"id_lang"`
	DateAdd   time.Time `gorm:"column:date_add;not null;default:current_timestamp()" json:"date_add"`
}

// TableName PsMail's table name
func (*PsMail) TableName() string {
	return TableNamePsMail
}

var PsMailCols = struct {
	IDMail gormcol.Field
	Recipient gormcol.Field
	Template gormcol.Field
	Subject gormcol.Field
	IDLang gormcol.Field
	DateAdd gormcol.Field
}{
	IDMail: gormcol.Field{}.Set((&PsMail{}).TableName(), "id_mail"),
	Recipient: gormcol.Field{}.Set((&PsMail{}).TableName(), "recipient"),
	Template: gormcol.Field{}.Set((&PsMail{}).TableName(), "template"),
	Subject: gormcol.Field{}.Set((&PsMail{}).TableName(), "subject"),
	IDLang: gormcol.Field{}.Set((&PsMail{}).TableName(), "id_lang"),
	DateAdd: gormcol.Field{}.Set((&PsMail{}).TableName(), "date_add"),
}
