Implement annotations and changes

This commit is contained in:
2026-02-06 17:05:35 +01:00
parent 4440cb832f
commit b75697a39f
6 changed files with 265 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
package models
import (
"time"
"github.com/google/uuid"
)
// Annotation represents drawing annotations on a specific page of a sheet.
// The primary key is composite: (SheetUuid, Page).
type Annotation struct {
SheetUuid uuid.UUID `json:"sheetUuid" gorm:"type:uuid;primaryKey"`
Page int `json:"page" gorm:"primaryKey"`
LastModified time.Time `json:"lastModified" gorm:"not null"`
Annotations string `json:"annotations" gorm:"type:text"` // JSON string of drawing data
}