mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
working
This commit is contained in:
17
backend/models/User.js
Normal file
17
backend/models/User.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const Sequelize = require("sequelize");
|
||||
|
||||
const sequelize = require("../util/database");
|
||||
|
||||
const User = sequelize.define("user", {
|
||||
id: {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: false,
|
||||
primaryKey: true,
|
||||
autoIncrement: true,
|
||||
},
|
||||
name: { type: Sequelize.STRING(100), allowNull: false },
|
||||
password: { type: Sequelize.STRING(100), allowNull: false },
|
||||
email: { type: Sequelize.STRING(100), allowNull: false },
|
||||
});
|
||||
|
||||
module.exports = User;
|
||||
Reference in New Issue
Block a user