rm pending payments
parent
a41a0923da
commit
ec0eb9d35d
|
@ -7,7 +7,6 @@ import StoreServiceActivity from "./storeServiceActivity";
|
|||
import StoreServiceActivityUsers from "./storeServiceActivityUsers";
|
||||
import User from "./user";
|
||||
import UserPendingEmailChange from "./userPendingEmailChange";
|
||||
import UserPendingPayment from "./userPendingPayment";
|
||||
import UserAccountExport from "./userAccountExport";
|
||||
|
||||
function syncModels() {
|
||||
|
@ -21,7 +20,6 @@ function syncModels() {
|
|||
User.sync();
|
||||
UserAccountExport.sync();
|
||||
UserPendingEmailChange.sync();
|
||||
UserPendingPayment.sync();
|
||||
|
||||
// UserGoogleTokens.sync(); not needed as it is created by the calendar backend
|
||||
}
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
import { DataTypes, Model } from "sequelize";
|
||||
import sequelize from "../database/database";
|
||||
|
||||
interface UserPendingPaymentAttributes {
|
||||
payment_session_id: string;
|
||||
user_id: string;
|
||||
payment_session_url?: string;
|
||||
}
|
||||
|
||||
class UserPendingPayment
|
||||
extends Model<UserPendingPaymentAttributes>
|
||||
implements UserPendingPaymentAttributes
|
||||
{
|
||||
declare payment_session_id: string;
|
||||
declare user_id: string;
|
||||
declare payment_session_url: string;
|
||||
}
|
||||
|
||||
UserPendingPayment.init(
|
||||
{
|
||||
payment_session_id: {
|
||||
primaryKey: true,
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
user_id: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
payment_session_url: {
|
||||
type: DataTypes.STRING(1000), // varchar(1000) needs to be set manually
|
||||
allowNull: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
sequelize,
|
||||
modelName: "user_pending_payment",
|
||||
createdAt: "created_at",
|
||||
updatedAt: "updated_at",
|
||||
}
|
||||
);
|
||||
|
||||
export default UserPendingPayment;
|
Loading…
Reference in New Issue