Empty
ai/code-review No changes to review
pictest/pipeline/head This commit looks good

This commit is contained in:
2026-05-03 10:40:02 +01:00
commit 7ee8ff382b
16 changed files with 1849 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
package models
import "time"
type User struct {
ID int64
Username string
PasswordHash string
CreatedAt time.Time
}
type Photo struct {
ID int64
UserID int64
Username string
OriginalFilename string
StoredFilename string
MimeType string
Width int
Height int
ExifJSON string
CreatedAt time.Time
}
type Comment struct {
ID int64
PhotoID int64
UserID int64
Username string
Body string
CreatedAt time.Time
UpdatedAt time.Time
}
type PhotoDetail struct {
Photo
Comments []Comment
}