mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-09 08:02:26 +08:00
chore: store mongodb
This commit is contained in:
@@ -5,7 +5,7 @@ import "time"
|
||||
|
||||
// Article 文章
|
||||
type Article struct {
|
||||
ID int32 `gorm:"primaryKey;autoIncrement"` // 自增ID
|
||||
ID int `gorm:"primaryKey;autoIncrement"` // 自增ID
|
||||
Author string `gorm:"not null"` // 作者名
|
||||
Slug string `gorm:"not null;uniqueIndex"` // 文章缩略名
|
||||
Title string `gorm:"not null"` // 标题
|
||||
|
||||
@@ -5,7 +5,7 @@ import "time"
|
||||
|
||||
// Series 专题
|
||||
type Series struct {
|
||||
ID int32 `gorm:"primaryKey;autoIncrement"` // 自增ID
|
||||
ID int `gorm:"primaryKey;autoIncrement"` // 自增ID
|
||||
Slug string `gorm:"not null;uniqueIndex"` // 缩略名
|
||||
Name string `gorm:"not null"` // 专题名
|
||||
Desc string `gorm:"not null"` // 专题描述
|
||||
|
||||
Reference in New Issue
Block a user