2022-2023稳定运行版本
This commit is contained in:
@@ -2,9 +2,9 @@ package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/eigeen/furryboard/spider-scheduler/pkg/conf"
|
||||
"github.com/eigeen/furryboard/spider-scheduler/pkg/dao/model"
|
||||
"github.com/eigeen/furryboard/spider-scheduler/pkg/log"
|
||||
"github.com/furryboard/spider-scheduler/pkg/conf"
|
||||
"github.com/furryboard/spider-scheduler/pkg/dao/model"
|
||||
"github.com/furryboard/spider-scheduler/pkg/log"
|
||||
"github.com/sirupsen/logrus"
|
||||
"gorm.io/driver/postgres"
|
||||
"gorm.io/gorm"
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Changelog struct {
|
||||
gorm.Model
|
||||
ID uint `gorm:"primarykey"`
|
||||
CreatedAt time.Time
|
||||
Operation string `gorm:"index;not null;default:''"`
|
||||
Target string `gorm:"index;not null;default:''"`
|
||||
Result string `gorm:"not null;default:''"`
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Fans struct {
|
||||
gorm.Model
|
||||
UID uint `gorm:"index;not null"`
|
||||
Fans uint `gorm:"index;not null;default:0"`
|
||||
ID uint `gorm:"primarykey"`
|
||||
CreatedAt time.Time
|
||||
UID uint `gorm:"index;not null"`
|
||||
Fans uint `gorm:"index;not null;default:0"`
|
||||
}
|
||||
|
||||
func (Fans) TableName() string {
|
||||
|
||||
@@ -10,7 +10,7 @@ const (
|
||||
)
|
||||
|
||||
type Furry struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
ID uint `gorm:"primarykey"`
|
||||
UID uint `gorm:"uniqueIndex;not null"`
|
||||
Name string `gorm:"index;not null;default:''"`
|
||||
Status int `gorm:"index;not null;default:0"`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package model
|
||||
|
||||
type LiveRoom struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
ID uint `gorm:"primarykey"`
|
||||
RoomID uint `gorm:"uniqueIndex;not null"`
|
||||
Title string `gorm:"not null;default:''"`
|
||||
Tags string `gorm:"not null;default:''"`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package model
|
||||
|
||||
type Metadata struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
ID uint `gorm:"primarykey"`
|
||||
Key string `gorm:"uniqueIndex;not null"`
|
||||
Value string `gorm:"not null;default:''"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user