2023-10-20 05:25:35 +00:00
|
|
|
package gmodel
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_preprocess_logo logo数据表
|
|
|
|
type FsPreprocessLogo struct {
|
2023-10-20 08:42:58 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // 自增的唯一id
|
|
|
|
LocationCode *string `gorm:"index;default:'';" json:"location_code"` //
|
|
|
|
RestaurantName *string `gorm:"index;default:'';" json:"restaurant_name"` //
|
|
|
|
ResourceUrl *string `gorm:"default:'';" json:"resource_url"` //
|
2023-10-30 08:02:26 +00:00
|
|
|
ResourceVectorUrl *string `gorm:"default:'';" json:"resource_vector_url"` //
|
|
|
|
OriginFileName *string `gorm:"default:'';" json:"origin_file_name"` //
|
2023-10-20 08:42:58 +00:00
|
|
|
RestaurantType *string `gorm:"default:'';" json:"restaurant_type"` //
|
|
|
|
Address *string `gorm:"default:'';" json:"address"` //
|
|
|
|
ZipCode *string `gorm:"default:'';" json:"zip_code"` //
|
|
|
|
Phone *string `gorm:"default:'';" json:"phone"` //
|
|
|
|
Website *string `gorm:"default:'';" json:"website"` //
|
|
|
|
IsBranch *int64 `gorm:"default:0;" json:"is_branch"` // 是否分店
|
|
|
|
Metadata *[]byte `gorm:"default:'';" json:"metadata"` //
|
|
|
|
Source *string `gorm:"index;default:'';" json:"source"` //
|
2023-11-06 07:17:29 +00:00
|
|
|
IsDel *int64 `gorm:"index;default:0;" json:"is_del"` // 是否删除
|
2023-10-20 08:42:58 +00:00
|
|
|
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
|
|
|
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
2023-10-20 05:25:35 +00:00
|
|
|
}
|
|
|
|
type FsPreprocessLogoModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewFsPreprocessLogoModel(db *gorm.DB) *FsPreprocessLogoModel {
|
|
|
|
return &FsPreprocessLogoModel{db: db, name: "fs_preprocess_logo"}
|
|
|
|
}
|