recommender/internal/entity/Model.go

15 lines
446 B
Go
Raw Normal View History

2024-11-06 10:47:56 +00:00
package entity
import (
2024-11-06 12:35:16 +00:00
"leafdev.top/Ecosystem/recommender/internal/schema"
2024-11-06 10:47:56 +00:00
"time"
)
// Model 是所有 entity 的基类,后期要将所有的 Base 改成这种形式
type Model struct {
Id schema.EntityId `gorm:"primarykey" json:"id"`
CreatedAt time.Time `gorm:"autoUpdateTime:milli" json:"created_at"`
UpdatedAt time.Time `gorm:"autoUpdateTime:milli" json:"updated_at"`
//DeletedAt gorm.DeletedAt `gorm:"index"`
}