19 lines
745 B
Go
19 lines
745 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// Submit 表单提交
|
|
type Submit struct {
|
|
Formid uint `gorm:"primary_key;auto-increment" json:"formid"`
|
|
Name string `gorm:"type:varchar(50);not null;" json:"name"`
|
|
Email string `gorm:"type:varchar(50);not null;" json:"email"`
|
|
City string `gorm:"type:varchar(50);not null;" json:"city"`
|
|
DateTime string `gorm:"index" json:"date_time"`
|
|
Sex string `gorm:"type:varchar(50);not null;" json:"sex"`
|
|
Hobby string `gorm:"type:varchar(50);not null;" json:"hobby"`
|
|
Desc string `gorm:"type:varchar(50);not null;" json:"desc"`
|
|
CreatedAt time.Time `json:"create_at"`
|
|
UpdatedAt time.Time `json:"update_at"`
|
|
State int `gorm:"index" json:"state"`
|
|
}
|