Initial commit

This commit is contained in:
2026-05-03 10:17:59 +01:00
commit caffa117c2
14 changed files with 1554 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
}