add models generation and josn print
This commit is contained in:
20
app/model/prestadb/ps_contact.go
Normal file
20
app/model/prestadb/ps_contact.go
Normal file
@@ -0,0 +1,20 @@
|
||||
// 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
|
||||
|
||||
const TableNamePsContact = "ps_contact"
|
||||
|
||||
// PsContact mapped from table <ps_contact>
|
||||
type PsContact struct {
|
||||
IDContact int32 `gorm:"column:id_contact;primaryKey;autoIncrement:true" json:"id_contact"`
|
||||
Email string `gorm:"column:email;not null" json:"email"`
|
||||
CustomerService bool `gorm:"column:customer_service;not null" json:"customer_service"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsContact's table name
|
||||
func (*PsContact) TableName() string {
|
||||
return TableNamePsContact
|
||||
}
|
||||
Reference in New Issue
Block a user