13 lines
312 B
Go
13 lines
312 B
Go
package model
|
|
|
|
type Logo struct {
|
|
ID string `gorm:"primary_key,type:varchar(36)" json:"id"`
|
|
Name string `gorm:"uniqueIndex,type:varchar(200)" json:"name"`
|
|
Data string `gorm:"type:text" json:"data"`
|
|
Deletable bool `json:"deletable"`
|
|
}
|
|
|
|
func (r *Logo) TableName() string {
|
|
return "logos"
|
|
}
|