This commit is contained in:
lbenedar
2026-03-10 15:08:01 +03:00
parent 35f8f6d9ed
commit 281bc33897
2 changed files with 31 additions and 1 deletions

13
internal/data/movies.go Normal file
View File

@@ -0,0 +1,13 @@
package data
import "time"
type Movie struct {
ID int64 `json:"id"`
CreatedAt time.Time `json:"-"`
Title string `json:"title"`
Year int32 `json:"year,omitempty"`
Runtime int32 `json:"runtime,omitempty,string"`
Genres []string `json:"genres,omitempty"`
Version int32 `json:"version"`
}