schema updates to rental statuses
This commit is contained in:
1 parent
42a5412582
commit
8e6af92cba
7 files changed
+19
-34
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user