Files
Showy/backend/models/EntryId.js
T

25 lines
551 B
JavaScript

const { DataTypes } = require("sequelize");
const sequelize = require("../config/database");
const EntryId = sequelize.define(
"entryId",
{
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
entry_id: {
type: DataTypes.INTEGER,
references: {
model: "Entries",
key: "id",
},
},
tmdb_id: { type: DataTypes.STRING(30) },
imdb_id: { type: DataTypes.STRING(30) },
tvdb_id: { type: DataTypes.STRING(30) },
},
{
timestamps: false,
},
);
module.exports = EntryId;