コアモデルの作成・DB接続をGORMを利用する形に変更
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Like struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
PageURL string `gorm:"uniqueIndex;size:255;not null"`
|
||||
LikeCount int `gorm:"default:0"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user