package entities

import (
	"time"

	"github.com/google/uuid"
)

type Priority struct {
	ID        uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
	Name      string    `gorm:"not null;size:255" json:"name"`
	Level     int       `gorm:"not null" json:"level"`
	CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
	UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
}

func (Priority) TableName() string { return "priorities" }
