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

15 lines
193 B
Go

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