mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2026-05-07 21:19:08 -05:00
23 lines
585 B
JavaScript
23 lines
585 B
JavaScript
module.exports = (sequelize, DataTypes) => {
|
|
const PlexLibrary = sequelize.define(
|
|
'PlexLibrary',
|
|
{
|
|
title: DataTypes.STRING,
|
|
type: DataTypes.STRING,
|
|
views: DataTypes.INTEGER,
|
|
rating_key: DataTypes.INTEGER,
|
|
metadata_path: DataTypes.STRING,
|
|
summary: DataTypes.STRING,
|
|
rating: DataTypes.FLOAT,
|
|
year: DataTypes.INTEGER,
|
|
genre: DataTypes.STRING,
|
|
},
|
|
{},
|
|
);
|
|
// eslint-disable-next-line no-unused-vars
|
|
PlexLibrary.associate = function(models) {
|
|
// associations can be defined here
|
|
};
|
|
return PlexLibrary;
|
|
};
|