Compare commits
2
Commits
7a04bdb2aa
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c98e7c526
|
||
|
|
a3e56ba3ad
|
@@ -15,13 +15,13 @@ 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"`
|
||||
PosterPath string `bson:"poster_path" json:"poster_path" validate:"required,url"`
|
||||
YoutubeId string `bson:"youtube_id" json:"youtube_id" validate:"required"`
|
||||
Genre []Genre `bson:"genre" json:"genre" validate:"required,dive"`
|
||||
AdminReview string `bson:"admin_review" json:"admin_review" validate:"required"`
|
||||
AdminReview string `bson:"admin_review" json:"admin_review"`
|
||||
Ranking Ranking `bson:"ranking" json:"ranking" validate:"required"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user