mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2026-02-14 01:39:38 -06:00
16 lines
358 B
JavaScript
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;
|
|
};
|