mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
feat(premium): add App Store and Google Play purchases (#3052)
This commit is contained in:
1 parent
0b3418dcbe
commit
e8cb167dbf
202 files changed
+17095
-49
No files matched your search
@@ -250,6 +250,16 @@ import {
|
||||
MESSAGE_REPORT_SUBMISSION_BY_REPORTER_COLUMNS,
|
||||
type MessageReportSubmissionByReporterRow,
|
||||
} from '@app/api/database/types/ReportTypes';
|
||||
import {
|
||||
STORE_ACCOUNT_TOKEN_BY_USER_COLUMNS,
|
||||
STORE_ACCOUNT_TOKEN_COLUMNS,
|
||||
STORE_PURCHASE_BY_USER_COLUMNS,
|
||||
STORE_PURCHASE_COLUMNS,
|
||||
type StoreAccountTokenByUserRow,
|
||||
type StoreAccountTokenRow,
|
||||
type StorePurchaseByUserRow,
|
||||
type StorePurchaseRow,
|
||||
} from '@app/api/database/types/StoreBillingTypes';
|
||||
import {
|
||||
FAVORITE_MEME_COLUMNS,
|
||||
type FavoriteMemeRow,
|
||||
@@ -703,6 +713,27 @@ export const GiftCodesByRedeemer = defineTable<GiftCodeByRedeemerRow, 'redeemed_
|
||||
columns: GIFT_CODE_BY_REDEEMER_COLUMNS,
|
||||
primaryKey: ['redeemed_by_user_id', 'code'],
|
||||
});
|
||||
export const StorePurchases = defineTable<StorePurchaseRow, 'store_key'>({
|
||||
name: 'store_purchases',
|
||||
columns: STORE_PURCHASE_COLUMNS,
|
||||
primaryKey: ['store_key'],
|
||||
});
|
||||
export const StorePurchasesByUser = defineTable<StorePurchaseByUserRow, 'user_id' | 'store_key', 'user_id'>({
|
||||
name: 'store_purchases_by_user',
|
||||
columns: STORE_PURCHASE_BY_USER_COLUMNS,
|
||||
primaryKey: ['user_id', 'store_key'],
|
||||
partitionKey: ['user_id'],
|
||||
});
|
||||
export const StoreAccountTokens = defineTable<StoreAccountTokenRow, 'token_'>({
|
||||
name: 'store_account_tokens',
|
||||
columns: STORE_ACCOUNT_TOKEN_COLUMNS,
|
||||
primaryKey: ['token_'],
|
||||
});
|
||||
export const StoreAccountTokensByUser = defineTable<StoreAccountTokenByUserRow, 'user_id'>({
|
||||
name: 'store_account_tokens_by_user',
|
||||
columns: STORE_ACCOUNT_TOKEN_BY_USER_COLUMNS,
|
||||
primaryKey: ['user_id'],
|
||||
});
|
||||
export const AdminArchivesBySubject = defineTable<AdminArchiveRow, 'subject_type' | 'subject_id' | 'archive_id'>({
|
||||
name: 'admin_archives_by_subject',
|
||||
columns: ADMIN_ARCHIVE_COLUMNS,
|
||||
|
||||
Reference in new issue
Block a user