24 lines
769 B
Go
24 lines
769 B
Go
|
|
package models
|
||
|
|
|
||
|
|
import (
|
||
|
|
"git.apinb.com/bsm-sdk/core/database"
|
||
|
|
"git.apinb.com/bsm-sdk/engine/types"
|
||
|
|
)
|
||
|
|
|
||
|
|
// 个人隐私数据模型
|
||
|
|
type CloudPrivate struct {
|
||
|
|
types.Std_IICUDS
|
||
|
|
types.Std_Passport
|
||
|
|
CloudBase
|
||
|
|
DataType string `gorm:"size:50" json:"data_type"` // 数据类型: password, card, document, etc.
|
||
|
|
Title string `gorm:"size:200" json:"title"` // 标题
|
||
|
|
Description string `gorm:"size:500" json:"description"` // 描述
|
||
|
|
Data string `gorm:"type:text" json:"data"` // 加密存储的实际数据
|
||
|
|
IsEncrypted bool `gorm:"default:true" json:"is_encrypted"` // 是否已加密
|
||
|
|
Tags string `gorm:"size:500" json:"tags"` // 标签
|
||
|
|
}
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
database.AppendMigrate(&CloudPrivate{})
|
||
|
|
}
|