rm pending payments

main
alex 2024-03-31 14:00:32 +02:00
parent a41a0923da
commit ec0eb9d35d
2 changed files with 0 additions and 45 deletions

View File

@ -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
}

View File

@ -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;