17 lines
612 B
JavaScript
17 lines
612 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;
|