コアモデルの作成・DB接続をGORMを利用する形に変更
This commit is contained in:
11
internal/model/like_log.go
Normal file
11
internal/model/like_log.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type LikeLog struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
PageURL string `gorm:"index;size:255;not null"`
|
||||
IPAddress string `gorm:"size:45;not null"`
|
||||
UserAgent string `gorm:"size:255"`
|
||||
CreatedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user