created entry, entryid, entryRating, collection models
This commit is contained in:
1 parent
0670b4b65d
commit
772db77e98
4 files changed
+89
No files matched your search
@@ -0,0 +1,34 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
|
||||
const Entry = sequelize.define("entry",
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
|
||||
title: { type: DataTypes.STRING(50) },
|
||||
original_title: { type: DataTypes.STRING(50) },
|
||||
release_date: { type: DataTypes.DATE },
|
||||
runtime: { type: DataTypes.INTEGER },
|
||||
|
||||
storyline: { type: DataTypes.STRING(500) },
|
||||
country: { type: DataTypes.STRING(30) },
|
||||
|
||||
certification: { type: DataTypes.INTEGER },
|
||||
network_studio: { type: DataTypes.STRING(40) },
|
||||
collection_id: { type: DataTypes.INTEGER },
|
||||
|
||||
watchlist: { type: DataTypes.BOOLEAN, defaultValue: false },
|
||||
favorit: { type: DataTypes.BOOLEAN, defaultValue: false },
|
||||
hidden: { type: DataTypes.BOOLEAN, defaultValue: false },
|
||||
|
||||
is_tvseries: { type: DataTypes.BOOLEAN },
|
||||
status: { type: DataTypes.STRING(20) },
|
||||
|
||||
poster_path: { type: DataTypes.STRING(50) },
|
||||
|
||||
date_first_seen: { type: DataTypes.DATEONLY },
|
||||
date_last_seen: { type: DataTypes.DATEONLY }
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = Entry;
|
||||
Reference in new issue
Block a user