add unpaid14 to the premium unlock api

This commit is contained in:
Jonas Lochmann
2026-06-15 02:00:00 +02:00
parent b2bcc3715f
commit 235115168f
4 changed files with 42 additions and 11 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
/*
* server component for the TimeLimit App
* Copyright (C) 2019 - 2022 Jonas Lochmann
* Copyright (C) 2019 - 2026 Jonas Lochmann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -23,7 +23,7 @@ export interface PurchaseAttributes {
familyId: string
service: 'googleplay' | 'directpurchase'
transactionId: string
type: 'month' | 'year'
type: 'month' | 'year' | 'unpaid14'
loggedAt: string
previousFullVersionEndTime: string
newFullVersionEndTime: string
@@ -44,7 +44,7 @@ export const attributes: SequelizeAttributes<PurchaseAttributes> = {
type: Sequelize.STRING,
primaryKey: true
},
type: createEnumColumn(['month', 'year']),
type: createEnumColumn(['month', 'year', 'unpaid14']),
loggedAt: { ...timestampColumn },
previousFullVersionEndTime: { ...timestampColumn },
newFullVersionEndTime: { ...timestampColumn }