Retrieve username for post

This commit is contained in:
Rykkel
2024-07-30 02:21:26 +08:00
parent a76ec634ca
commit 1edf63cc5b
6 changed files with 126 additions and 45 deletions

View File

@@ -17,9 +17,14 @@ module.exports = (sequelize, DataTypes) => {
content: {
type: DataTypes.TEXT,
allowNull: false
}
},
userId: {
type: DataTypes.UUID,
allowNull: false,
},
}, {
tableName: 'posts'
});
return Post;
}