Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Sequelize = require("sequelize");
- const sequelize = require("../config/db.js");
- const Faqs = sequelize.define('faqs',{
- title:{
- type: Sequelize.STRING,
- unique: true,
- allowNull:false
- },
- descricao:{
- type: Sequelize.STRING,
- },
- lingua:{
- type: Sequelize.STRING,
- }
- })
- Faqs.sync()
- module.exports = Faqs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement