Files
pictest/internal/models/models.go
T
john 7ee8ff382b
ai/code-review No changes to review
pictest/pipeline/head This commit looks good
Empty
2026-05-03 10:40:02 +01:00

39 lines
616 B
Go

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
}