Random changes
This commit is contained in:
1 parent
7160669468
commit
0b1a1d989f
17 files changed
+205
-159
No files matched your search
@@ -17,8 +17,8 @@ const Episode = sequelize.define("episode",
|
||||
}
|
||||
},
|
||||
|
||||
name: { type: DataTypes.STRING(200) },
|
||||
overview: { type: DataTypes.STRING(2000) },
|
||||
name: { type: DataTypes.STRING(500) },
|
||||
overview: { type: DataTypes.STRING(3000) },
|
||||
episode_number: { type: DataTypes.INTEGER },
|
||||
episode_type: { type: DataTypes.STRING(60) },
|
||||
runtime: { type: DataTypes.INTEGER },
|
||||
|
||||
@@ -5,23 +5,16 @@ const Media = sequelize.define("media",
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
|
||||
// entryId: {
|
||||
// type: DataTypes.INTEGER,
|
||||
// references: {
|
||||
// model: 'Entries',
|
||||
// key: 'id'
|
||||
// },
|
||||
// field: 'entry_id'
|
||||
// },
|
||||
|
||||
mediaable: { type: Sequelize.STRING },
|
||||
mediaableId: { type: Sequelize.INTEGER, field: 'mediaable_id' },
|
||||
|
||||
type: { type: DataTypes.STRING(50) },
|
||||
path: { type: DataTypes.STRING(200) },
|
||||
|
||||
isLocal: { type: DataTypes.BOOLEAN, field: 'is_local' },
|
||||
isSelected: { type: DataTypes.BOOLEAN, field: 'is_selected', defaultValue: false },
|
||||
isCustom: { type: DataTypes.BOOLEAN, field: 'is_custom', defaultValue: false },
|
||||
isFavorit: { type: DataTypes.BOOLEAN, field: 'is_favorit', defaultValue: false },
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ const Season = sequelize.define("season",
|
||||
}
|
||||
},
|
||||
|
||||
name: { type: DataTypes.STRING(30) },
|
||||
overview: { type: DataTypes.STRING(1000) },
|
||||
name: { type: DataTypes.STRING(500) },
|
||||
overview: { type: DataTypes.STRING(3000) },
|
||||
season_number: { type: DataTypes.INTEGER },
|
||||
episode_count: { type: DataTypes.INTEGER },
|
||||
air_date: { type: DataTypes.DATE },
|
||||
|
||||
Reference in new issue
Block a user