25 lines
925 B
Go
25 lines
925 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type EmailAlerts struct {
|
|
ID uint `gorm:"primarykey"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_email_alerts_deleted_at;"`
|
|
FirstName string `gorm:"column:first_name;type:varchar(50);not null;default:'';comment:姓"`
|
|
LastName string `gorm:"column:last_name;type:varchar(50);not null;default:'';comment:名"`
|
|
FullName string `gorm:"column:full_name;type:varchar(100);not null;default:'';comment:全名"`
|
|
Email string `gorm:"column:email;type:varchar(100);not null;default:'';comment:邮箱"`
|
|
Company string `gorm:"column:company;type:varchar(100);not null;default:'';comment:公司"`
|
|
Phone string `gorm:"column:phone;type:varchar(30);not null;default:'';comment:电话"`
|
|
}
|
|
|
|
func (*EmailAlerts) TableName() string {
|
|
return "email_alerts"
|
|
}
|