Skip to content

Commit

Permalink
fix: alterado valor defaul do ID para utilizar UUID do Postgres nas t…
Browse files Browse the repository at this point in the history
…abelas de configuração da api e mensagens da api.
  • Loading branch information
ldurans committed Nov 8, 2022
1 parent f7ae28e commit b87d567
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
allowNull: false,
primaryKey: true,
type: DataTypes.UUID,
defaultValue: Sequelize.literal("uuid_generate_v4()")
defaultValue: Sequelize.literal("gen_random_uuid()")
},
sessionId: {
type: DataTypes.INTEGER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
allowNull: false,
primaryKey: true,
type: DataTypes.UUID,
defaultValue: Sequelize.literal("uuid_generate_v4()")
defaultValue: Sequelize.literal("gen_random_uuid()")
},
messageId: {
type: DataTypes.STRING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
allowNull: false,
primaryKey: true,
type: DataTypes.UUID,
defaultValue: Sequelize.literal("uuid_generate_v4()")
defaultValue: Sequelize.literal("gen_random_uuid()")
})
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
allowNull: false,
primaryKey: true,
type: DataTypes.UUID,
defaultValue: Sequelize.literal("uuid_generate_v4()")
defaultValue: Sequelize.literal("gen_random_uuid()")
})
]);
}
Expand Down

0 comments on commit b87d567

Please sign in to comment.