schema updates to rental statuses
This commit is contained in:
@@ -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