package models import "time" type PasswordAccountItem struct { Username string `json:"username"` Password string `json:"password"` RegistrationInfo string `json:"registration_info"` Remark string `json:"remark"` } type PlatformPasswordStore struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` Platform string `orm:"column(platform);size(100)" json:"platform"` URL string `orm:"column(url);size(500)" json:"url"` Accounts string `orm:"column(accounts);type(text);null" json:"accounts"` Remark string `orm:"column(remark);type(text);null" json:"remark"` UserID uint64 `orm:"column(user_id)" json:"user_id"` IsDeleted int8 `orm:"column(is_deleted);default(0)" json:"is_deleted"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *PlatformPasswordStore) TableName() string { return "yz_platform_password_store" }