use a real id, not all zeroes

This commit is contained in:
2026-07-17 20:40:47 -06:00
parent 7a04bdb2aa
commit a3e56ba3ad
+1 -1
View File
@@ -15,7 +15,7 @@ type Ranking struct {
}
type Movie struct {
ID bson.ObjectID `bson:"_id" json:"_id"`
ID bson.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
ImdbID string `bson:"imdb_id" json:"imdb_id" validate:"required"`
ReleaseYear int `bson:"release_year" json:"release_year" validate:"required"` // how to get this to be a numeric value that is four digits starting with 19?
Title string `bson:"title" json:"title" validate:"required,min=2,max=500"`