I am batman

This commit is contained in:
2026-07-12 20:26:16 -04:00
commit 5a3a6357cf
37 changed files with 2938 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package models
import (
"gorm.io/gorm"
)
type Ticket struct {
gorm.Model
Title string `gorm:"not null"`
Description string
ReporterID uint
Reporter User `gorm:"foreignKey:ReporterID"`
AssigneeID uint
Assignee User `gorm:"foreignKey:AssigneeID"`
ClientID uint
Client Client
Status string `gorm:"default:'Open'"` // Add this line
Priority string `gorm:"default:'Normal'"` // Add this line
Chats []Chat
}