This commit is contained in:
m
2026-07-13 00:15:39 +02:00
parent e59fde6a48
commit 7dc53ea99f
5 changed files with 308 additions and 0 deletions
+16
View File
@@ -5,6 +5,7 @@
package db
import (
"database/sql"
"time"
)
@@ -19,3 +20,18 @@ type File struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type FileTag struct {
ID string `json:"id"`
TagID sql.NullString `json:"tag_id"`
FileID sql.NullString `json:"file_id"`
}
type Tag struct {
ID string `json:"id"`
ParentTagID sql.NullString `json:"parent_tag_id"`
TagName string `json:"tag_name"`
TagType string `json:"tag_type"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}