add models generation and josn print
This commit is contained in:
26
app/model/prestadb/ps_mail.go
Normal file
26
app/model/prestadb/ps_mail.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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 prestadb
|
||||
|
||||
import (
|
||||
"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
|
||||
}
|
||||
Reference in New Issue
Block a user