building up the models for a movie
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
type Genre struct {
|
||||
GenreID int
|
||||
GenreName string
|
||||
}
|
||||
|
||||
type Ranking struct {
|
||||
RankingValue int
|
||||
RankingName string
|
||||
}
|
||||
|
||||
type Movie struct {
|
||||
ID bson.ObjectID
|
||||
ImdbID string
|
||||
Title string
|
||||
PosterPath string
|
||||
YoutubeId string
|
||||
Genre []Genre
|
||||
AdminReview string
|
||||
Ranking []Ranking
|
||||
}
|
||||
Reference in New Issue
Block a user