1
Fork 0
photoview/api/graphql/models/base.go

19 lines
236 B
Go

package models
import (
"time"
"gorm.io/gorm"
)
type Model struct {
ID int `gorm:"primarykey"`
ModelTimestamps
}
type ModelTimestamps struct {
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}