add models generation and josn print

This commit is contained in:
2026-03-26 02:22:14 +01:00
parent 7c5a993623
commit af2b276599
319 changed files with 7394 additions and 27 deletions

View File

@@ -0,0 +1,29 @@
// 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 TableNamePsEmailsubscription = "ps_emailsubscription"
// PsEmailsubscription mapped from table <ps_emailsubscription>
type PsEmailsubscription struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"`
IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"`
Email string `gorm:"column:email;not null" json:"email"`
NewsletterDateAdd *time.Time `gorm:"column:newsletter_date_add" json:"newsletter_date_add"`
IPRegistrationNewsletter string `gorm:"column:ip_registration_newsletter;not null" json:"ip_registration_newsletter"`
HTTPReferer *string `gorm:"column:http_referer" json:"http_referer"`
Active bool `gorm:"column:active;not null" json:"active"`
IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"`
}
// TableName PsEmailsubscription's table name
func (*PsEmailsubscription) TableName() string {
return TableNamePsEmailsubscription
}