Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. const Sequelize = require("sequelize");
  2. const sequelize = require("../config/db.js");
  3.  
  4. const Faqs = sequelize.define('faqs',{
  5. title:{
  6. type: Sequelize.STRING,
  7. unique: true,
  8. allowNull:false
  9. },
  10. descricao:{
  11. type: Sequelize.STRING,
  12. },
  13. lingua:{
  14. type: Sequelize.STRING,
  15. }
  16. })
  17.  
  18.  
  19.  
  20. Faqs.sync()
  21.  
  22.  
  23. module.exports = Faqs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement