Files
WhatToWatch/server/db/models/plexSection.js
2019-02-24 12:59:26 -06:00

16 lines
358 B
JavaScript

module.exports = (sequelize, DataTypes) => {
const PlexSection = sequelize.define(
'PlexSection',
{
title: {type: DataTypes.STRING, unique: true},
type: DataTypes.STRING,
key: DataTypes.INTEGER,
},
{},
);
PlexSection.associate = function(models) {
PlexSection.belongsTo(models.User);
};
return PlexSection;
};