42 lines
2.5 KiB
Go
42 lines
2.5 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
const TableNameProduct = "product"
|
|
|
|
// Product mapped from table <product>
|
|
type Product struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
UserIndex string `gorm:"column:user_index;not null" json:"user_index"`
|
|
Name string `gorm:"column:name;not null" json:"name"`
|
|
Industry string `gorm:"column:industry;not null;comment:所属行业" json:"industry"` // 所属行业
|
|
Type string `gorm:"column:type;not null;comment:产品类型" json:"type"` // 产品类型
|
|
ProductOrService string `gorm:"column:product_or_service;comment:主营业务" json:"product_or_service"` // 主营业务
|
|
Advantages string `gorm:"column:advantages;comment:核心优势" json:"advantages"` // 核心优势
|
|
Story string `gorm:"column:story;comment:发展故事" json:"story"` // 发展故事
|
|
Problem string `gorm:"column:problem;comment:解决痛点" json:"problem"` // 解决痛点
|
|
Background string `gorm:"column:background;comment:信任背书" json:"background"` // 信任背书
|
|
Case string `gorm:"column:case;comment:品牌案例" json:"case"` // 品牌案例
|
|
Other string `gorm:"column:other;comment:其他信息" json:"other"` // 其他信息
|
|
ServiceCope string `gorm:"column:service_cope;comment:服务范围" json:"service_cope"` // 服务范围
|
|
TargetAudience string `gorm:"column:target_audience;comment:目标客户群体" json:"target_audience"` // 目标客户群体
|
|
Imgs string `gorm:"column:imgs;comment:图片" json:"imgs"` // 图片
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
|
|
Status int32 `gorm:"column:status;default:1" json:"status"`
|
|
}
|
|
|
|
// TableName Product's table name
|
|
func (*Product) TableName() string {
|
|
return TableNameProduct
|
|
}
|