nquest/pkg/models/model.go

16 lines
281 B
Go
Raw Normal View History

2023-11-01 23:21:12 +03:00
package models
import (
"time"
"github.com/google/uuid"
2023-11-01 23:21:12 +03:00
"gorm.io/gorm"
)
type Model struct {
ID uuid.UUID `gorm:"primarykey" json:"id"`
2023-11-01 23:21:12 +03:00
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}