Shows: complete schema
This commit is contained in:
parent
f90ef12490
commit
f0cf48fc87
1 changed files with 9 additions and 1 deletions
|
|
@ -1 +1,9 @@
|
||||||
export class ShowSchema {}
|
import { Schema } from 'mongoose';
|
||||||
|
|
||||||
|
export const ShowSchema = new Schema({
|
||||||
|
title: { type: String, required: true },
|
||||||
|
year: { type: Number, required: true },
|
||||||
|
seasons: { type: Number, required: true },
|
||||||
|
description: { type: String, required: true },
|
||||||
|
genres: [{ type: String, required: true }],
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue