Account creation

This commit is contained in:
2024-06-22 23:59:44 +08:00
parent ce51b78b14
commit 4a39c5ad31
9 changed files with 380 additions and 58 deletions

View File

@@ -3,7 +3,7 @@ module.exports = (sequelize, DataTypes) => {
"User",
{
id: {
type: DataTypes.INTEGER(),
type: DataTypes.STRING(36),
allowNull: false,
primaryKey: true,
},
@@ -23,7 +23,7 @@ module.exports = (sequelize, DataTypes) => {
type: DataTypes.STRING(8),
allowNull: false,
},
passwordHash: {
password: {
type: DataTypes.STRING(255),
allowNull: false,
},