mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
16 lines
328 B
JavaScript
16 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;
|