mirror-filecoffee-filehost/database/models/user.model.js
2024-06-09 15:16:29 +02:00

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;