mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-04 15:07:57 +02:00
add many fields to save movie info from tmdb
This commit is contained in:
@@ -35,6 +35,28 @@ var CommentSchema = new Schema({
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Sub cast Schema
|
||||
*/
|
||||
var CastSchema = new Schema({
|
||||
name: {
|
||||
type: String,
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
profile_path: {
|
||||
type: String,
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
character: {
|
||||
type: String,
|
||||
default: '',
|
||||
trim: true
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Torrent Schema
|
||||
*/
|
||||
@@ -77,6 +99,11 @@ var TorrentSchema = new Schema({
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
torrent_original_language: {
|
||||
type: String,
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
torrent_tagline: {
|
||||
type: String,
|
||||
default: '',
|
||||
@@ -97,6 +124,22 @@ var TorrentSchema = new Schema({
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
torrent_companies: {
|
||||
type: [String],
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
torrent_countries: {
|
||||
type: [String],
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
torrent_director: {
|
||||
type: String,
|
||||
default: '',
|
||||
trim: true
|
||||
},
|
||||
torrent_cast: [CastSchema],
|
||||
torrent_tags: {
|
||||
type: [String],
|
||||
default: '',
|
||||
@@ -123,6 +166,14 @@ var TorrentSchema = new Schema({
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
torrent_budget: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
torrent_revenue: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
torrent_seeds: {
|
||||
type: Number,
|
||||
default: 0
|
||||
|
||||
Reference in New Issue
Block a user