@@ -5,3 +5,7 @@ type DeviceKey struct {
|
||||
DeviceID string `xorm:"device_id"`
|
||||
RandKey string `xorm:"rand_key"`
|
||||
}
|
||||
|
||||
func (DeviceKey) TableName() string {
|
||||
return "device_key"
|
||||
}
|
||||
|
||||
@@ -7,3 +7,7 @@ type AuthKey struct {
|
||||
ServerToken string `xorm:"server_token"`
|
||||
InsertDate string `xorm:"insert_date"`
|
||||
}
|
||||
|
||||
func (AuthKey) TableName() string {
|
||||
return "auth_key"
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@ type UserAccessoryWear struct {
|
||||
UserID int `xorm:"user_id"`
|
||||
}
|
||||
|
||||
func (u *UserAccessoryWear) TableName() string {
|
||||
func (UserAccessoryWear) TableName() string {
|
||||
return "user_accessory_wear"
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ type UserDeck struct {
|
||||
InsertDate int64 `xorm:"insert_date"`
|
||||
}
|
||||
|
||||
func (u *UserDeck) TableName() string {
|
||||
func (UserDeck) TableName() string {
|
||||
return "user_deck"
|
||||
}
|
||||
|
||||
@@ -21,6 +21,6 @@ type UserDeckUnit struct {
|
||||
InsertDate int64 `xorm:"insert_date"`
|
||||
}
|
||||
|
||||
func (u *UserDeckUnit) TableName() string {
|
||||
func (UserDeckUnit) TableName() string {
|
||||
return "user_deck_unit"
|
||||
}
|
||||
|
||||
@@ -9,3 +9,7 @@ type UserLiveGoal struct {
|
||||
GoalType constant.LiveGoalType `xorm:"goal_type"`
|
||||
CompletedAt int64 `xorm:"completed_at"`
|
||||
}
|
||||
|
||||
func (UserLiveGoal) TableName() string {
|
||||
return "user_live_goal"
|
||||
}
|
||||
|
||||
@@ -5,3 +5,7 @@ type UserLiveInProgress struct {
|
||||
DeckID int `xorm:"deck_id"`
|
||||
UserID int `xorm:"user_id"`
|
||||
}
|
||||
|
||||
func (UserLiveInProgress) TableName() string {
|
||||
return "user_live_in_progress"
|
||||
}
|
||||
|
||||
@@ -23,6 +23,10 @@ type UserLiveRecord struct {
|
||||
UpdateDate string `xorm:"insert_date"`
|
||||
}
|
||||
|
||||
func (UserLiveRecord) TableName() string {
|
||||
return "user_live_record"
|
||||
}
|
||||
|
||||
// TODO: 转移到 schema 下
|
||||
type NotesList struct {
|
||||
TimingSec float64 `json:"timing_sec"`
|
||||
|
||||
@@ -8,3 +8,7 @@ type UserUnitData struct {
|
||||
UserID int `xorm:"user_id"`
|
||||
InsertDate int64 `xorm:"insert_date"`
|
||||
}
|
||||
|
||||
func (UserUnitData) TableName() string {
|
||||
return "user_unit_data"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user