Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Sequelize = require('sequelize');
- const db = require('../config/database');
- const User = db.define('users', {
- name: {
- type: Sequelize.STRING,
- allowNull: false
- },
- email: {
- type: Sequelize.STRING,
- allowNull: false,
- unique: true
- },
- password: {
- type: Sequelize.STRING,
- allowNull: false
- }
- });
- module.exports = User;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement