aboutsummaryrefslogtreecommitdiff
path: root/interface/models/users.model.js
blob: e6162d8dbd5b1c74c859e50207a4fee45e7636bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = (Sequelize, sequelize) => {
    const Users = sequelize.define("users", {
        user_id: {
            type: Sequelize.INTEGER,
            allowNull: false,
            primaryKey: true,
            autoIncrement: true,
        },
        username: {
            type: Sequelize.STRING(155),
            allowNull: false,
            unique: true,
        },
        password: {
            type: Sequelize.STRING(155),
            allowNull: false,
        }
    });
    return Users;
}