Files
Showy/backend/models/Network.js
T
2025-02-15 23:40:34 +01:00

18 lines
630 B
JavaScript

const { DataTypes } = require('sequelize');
const sequelize = require('../config/database');
const Network = sequelize.define("network",
{
id: { type: DataTypes.INTEGER, primaryKey: true },
name: { type: DataTypes.STRING(30) },
originCountry: { type: DataTypes.STRING(100), field: 'origin_country' },
homepage: { type: DataTypes.STRING(100), field: 'homepage' },
logoPath: { type: DataTypes.STRING(200), field: 'logo_path' },
posterPath: { type: DataTypes.STRING(200), field: 'poster_path' },
backdropPath: { type: DataTypes.STRING(200), field: 'backdrop_path' },
}
);
module.exports = Network;