mirror of
https://github.com/chaitin/SafeLine.git
synced 2026-02-04 15:53:35 +08:00
17 lines
424 B
Go
17 lines
424 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"chaitin.cn/patronus/safeline-2/management/webserver/pkg/log"
|
|
)
|
|
|
|
// Base is a replacement for gorm.Model without DeletedAt, which is considered to be not good.
|
|
type Base struct {
|
|
ID uint `gorm:"primarykey" json:"id"`
|
|
CreatedAt time.Time ` json:"created_at"`
|
|
UpdatedAt time.Time ` json:"updated_at"`
|
|
}
|
|
|
|
var logger = log.GetLogger("model")
|