Nexus/pkg/nex/cruda/model.go

14 lines
284 B
Go
Raw Permalink Normal View History

2024-10-20 11:55:52 +00:00
package cruda
2024-10-19 14:36:33 +00:00
import (
"gorm.io/gorm"
2024-10-20 11:55:52 +00:00
"time"
2024-10-19 14:36:33 +00:00
)
type BaseModel struct {
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"`
}