Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- module.exports = (sequelize, DataTypes) => {
- const categoria = sequelize.define('categoria', {
- nomept:{
- type: DataTypes.STRING,
- unique: true,
- allowNull:false
- },
- nomeen:{
- type: DataTypes.STRING,
- unique: true,
- allowNull:false
- },
- nomefr:{
- type: DataTypes.STRING,
- unique: true,
- allowNull:false
- },
- }, {});
- categoria.associate = function(models) {
- // categoria hasmany faqs
- categoria.hasMany(models.faqs)
- };
- return categoria;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement