mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
17 lines
328 B
JavaScript
17 lines
328 B
JavaScript
|
const { DataTypes } = require("sequelize");
|
||
|
const sequelize = require("../../config/database.config");
|
||
|
|
||
|
const User = sequelize.define("User", {
|
||
|
username: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
unique: true,
|
||
|
},
|
||
|
password: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
module.exports = User;
|