changes + fixes to collections related component + add filter by collection type

This commit is contained in:
X4Lo committed 2024-09-10 01:15:14 +01:00
1 parent eba9721a3c
commit 776506b232
14 files changed
+219 -129

No files matched your search

+9 -3
View File
@@ -4,12 +4,18 @@ const sequelize = require('../db/database');
const UserCollection = sequelize.define("userCollection",
{
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
tmdbId: { type: DataTypes.STRING(30), field: 'tmdb_id' },
imdbId: { type: DataTypes.STRING(30), field: 'imdb_id' },
tvdbId: { type: DataTypes.STRING(30), field: 'tvdb_id' },
name: { type: DataTypes.STRING(150) },
description: { type: DataTypes.STRING(500) },
user_rating: { type: DataTypes.FLOAT },
description: { type: DataTypes.STRING(3000) },
isUserCollection: { type: DataTypes.BOOLEAN, defaultValue: false, field: 'is_user_collection' },
userRating: { type: DataTypes.FLOAT, field: 'user_rating' },
poster_path: { type: DataTypes.STRING(200) },
posterPath: { type: DataTypes.STRING(200), field: 'poster_path' },
backdropPath: { type: DataTypes.STRING(200), field: 'backdrop_path' },
isLocal: { type: DataTypes.BOOLEAN, defaultValue: false, field: 'is_local' }
}
);