26 lines
1.6 KiB
Go
26 lines
1.6 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
// Mentor stitch_soul 导师,独立于 match 类型
|
|
type Mentor struct {
|
|
ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
Avatar string `gorm:"column:avatar;size:500" json:"avatar"`
|
|
Name string `gorm:"column:name;size:80;not null" json:"name"`
|
|
Intro string `gorm:"column:intro;size:500" json:"intro"` // 简介/头衔
|
|
Tags string `gorm:"column:tags;size:500" json:"tags"` // 技能标签,逗号分隔
|
|
PriceSingle *float64 `gorm:"column:price_single;type:decimal(10,2)" json:"priceSingle"` // 单次咨询
|
|
PriceHalfYear *float64 `gorm:"column:price_half_year;type:decimal(10,2)" json:"priceHalfYear"` // 半年
|
|
PriceYear *float64 `gorm:"column:price_year;type:decimal(10,2)" json:"priceYear"` // 年度
|
|
Quote string `gorm:"column:quote;size:500" json:"quote"` // 引言
|
|
WhyFind string `gorm:"column:why_find;type:text" json:"whyFind"` // 为什么找
|
|
Offering string `gorm:"column:offering;type:text" json:"offering"` // 提供什么
|
|
JudgmentStyle string `gorm:"column:judgment_style;size:500" json:"judgmentStyle"` // 判断风格,逗号分隔
|
|
Sort int `gorm:"column:sort;default:0" json:"sort"`
|
|
Enabled *bool `gorm:"column:enabled;default:1" json:"enabled"`
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"`
|
|
}
|
|
|
|
func (Mentor) TableName() string { return "mentors" }
|