新的迁移规则
This commit is contained in:
31
data/course_collect.go
Normal file
31
data/course_collect.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package data
|
||||
|
||||
type (
|
||||
CourseCollect struct {
|
||||
CourseCollectId int64 `json:"course_collect_id" gorm:"column:course_collect_id;primary_key"`
|
||||
CourseId int64 `json:"course_id" gorm:"column:course_id"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
CourseDetailsId int64 `json:"course_details_id" gorm:"column:course_details_id"`
|
||||
Classify int `json:"classify" gorm:"column:classify"`
|
||||
UpdateTime string `json:"update_time" gorm:"column:update_time"`
|
||||
}
|
||||
|
||||
CourseCollectCopy1 struct {
|
||||
CourseCollectId int64 `json:"course_collect_id" gorm:"column:course_collect_id;primary_key"`
|
||||
CourseId int64 `json:"course_id" gorm:"column:course_id"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
CourseDetailsId int64 `json:"course_details_id" gorm:"column:course_details_id"`
|
||||
Classify int `json:"classify" gorm:"column:classify"`
|
||||
UpdateTime string `json:"update_time" gorm:"column:update_time"`
|
||||
}
|
||||
)
|
||||
|
||||
func (CourseCollect) TableName() string {
|
||||
return "course_collect"
|
||||
}
|
||||
|
||||
func (CourseCollectCopy1) TableName() string {
|
||||
return "course_collect_copy1"
|
||||
}
|
||||
33
data/course_user.go
Normal file
33
data/course_user.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package data
|
||||
|
||||
type (
|
||||
CourseUser struct {
|
||||
CourseUserId int64 `json:"course_user_id" gorm:"column:course_user_id;primary_key"`
|
||||
CourseId int64 `json:"course_id" gorm:"column:course_id"`
|
||||
OrderId int64 `json:"order_id" gorm:"column:order_id"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
UpdateTime string `json:"update_time" gorm:"column:update_time"`
|
||||
CourseDetailsId int64 `json:"course_details_id" gorm:"column:course_details_id"`
|
||||
Classify int64 `json:"classify" gorm:"column:classify"`
|
||||
}
|
||||
|
||||
CourseUserCopy1 struct {
|
||||
CourseUserId int64 `json:"course_user_id" gorm:"column:course_user_id;primary_key"`
|
||||
CourseId int64 `json:"course_id" gorm:"column:course_id"`
|
||||
OrderId int64 `json:"order_id" gorm:"column:order_id"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
UpdateTime string `json:"update_time" gorm:"column:update_time"`
|
||||
CourseDetailsId int64 `json:"course_details_id" gorm:"column:course_details_id"`
|
||||
Classify int64 `json:"classify" gorm:"column:classify"`
|
||||
}
|
||||
)
|
||||
|
||||
func (CourseUser) TableName() string {
|
||||
return "course_user"
|
||||
}
|
||||
|
||||
func (CourseUserCopy1) TableName() string {
|
||||
return "course_user_copy1"
|
||||
}
|
||||
41
data/disc_spinning_record.go
Normal file
41
data/disc_spinning_record.go
Normal file
@@ -0,0 +1,41 @@
|
||||
package data
|
||||
|
||||
type (
|
||||
DiscSpinningRecord struct {
|
||||
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
||||
ImgUrl string `json:"img_url" gorm:"column:img_url"`
|
||||
Name string `json:"name" gorm:"column:name"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
Number float64 `json:"number" gorm:"column:number"`
|
||||
Target string `json:"target" gorm:"column:target"`
|
||||
TargetId int64 `json:"target_id" gorm:"column:target_id"`
|
||||
DrawDay string `json:"draw_day" gorm:"column:draw_day"`
|
||||
Source string `json:"source" gorm:"column:source"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
}
|
||||
|
||||
DiscSpinningRecordCopy1 struct {
|
||||
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
||||
ImgUrl string `json:"img_url" gorm:"column:img_url"`
|
||||
Name string `json:"name" gorm:"column:name"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
Number float64 `json:"number" gorm:"column:number"`
|
||||
Target string `json:"target" gorm:"column:target"`
|
||||
TargetId int64 `json:"target_id" gorm:"column:target_id"`
|
||||
DrawDay string `json:"draw_day" gorm:"column:draw_day"`
|
||||
Source string `json:"source" gorm:"column:source"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
}
|
||||
)
|
||||
|
||||
func (DiscSpinningRecord) TableName() string {
|
||||
return "disc_spinning_record"
|
||||
}
|
||||
|
||||
func (DiscSpinningRecordCopy1) TableName() string {
|
||||
return "disc_spinning_record_copy1"
|
||||
}
|
||||
@@ -7,6 +7,7 @@ type (
|
||||
TradeNo string `json:"trade_no" gorm:"column:trade_no"`
|
||||
Money float64 `json:"money" gorm:"column:money"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
State int `json:"state" gorm:"column:state"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
PayTime string `json:"pay_time" gorm:"column:pay_time"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
@@ -24,6 +25,7 @@ type (
|
||||
TradeNo string `json:"trade_no" gorm:"column:trade_no"`
|
||||
Money float64 `json:"money" gorm:"column:money"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
State int `json:"state" gorm:"column:state"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
PayTime string `json:"pay_time" gorm:"column:pay_time"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
|
||||
Reference in New Issue
Block a user