MrZep

Набросок модели accounts

Mar 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = ((sequelize, DataTipes) =>{
  2.  
  3.     const model = sequelize.define('accounts', {
  4.         login: DataTipes.STRING,
  5.         password: DataTipes.STRING
  6.     });
  7.     /*
  8.     model.associate = ({ keys }) => {
  9.         model.belongsTo(keys);
  10.     };
  11.     */
  12.     return model;
  13. });
Add Comment
Please, Sign In to add comment