schema updates to rental statuses

This commit is contained in:
jackiettran
2025-11-24 18:08:12 -05:00
parent 42a5412582
commit 8e6af92cba
7 changed files with 19 additions and 34 deletions

View File

@@ -64,15 +64,15 @@ const Rental = sequelize.define("Rental", {
"damaged",
"lost"
),
defaultValue: "pending",
allowNull: false,
},
paymentStatus: {
type: DataTypes.ENUM("pending", "paid", "refunded", "not_required"),
defaultValue: "pending",
allowNull: false,
},
payoutStatus: {
type: DataTypes.ENUM("pending", "processing", "completed", "failed"),
defaultValue: "pending",
type: DataTypes.ENUM("pending", "completed", "failed"),
allowNull: true,
},
payoutProcessedAt: {
type: DataTypes.DATE,