mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
feat: implement managed storage plans and provider settings
- Added new UI schema for managing storage plans, including catalog, pricing, and product configurations. - Introduced StoragePlanService to handle storage plan operations and integrate with existing billing services. - Updated SuperAdmin settings to include managed storage provider configurations. - Enhanced localization files with new keys for storage plan management. - Implemented API endpoints for fetching and updating storage plans. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
1
be/packages/db/migrations/0006_quick_titania.sql
Normal file
1
be/packages/db/migrations/0006_quick_titania.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "tenant" ADD COLUMN "storage_plan_id" text;
|
||||
1593
be/packages/db/migrations/meta/0006_snapshot.json
Normal file
1593
be/packages/db/migrations/meta/0006_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -43,6 +43,13 @@
|
||||
"when": 1763626275917,
|
||||
"tag": "0005_flawless_wild_pack",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "7",
|
||||
"when": 1763656041992,
|
||||
"tag": "0006_quick_titania",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ export const tenants = pgTable(
|
||||
slug: text('slug').notNull(),
|
||||
name: text('name').notNull(),
|
||||
planId: text('plan_id').notNull().default('free'),
|
||||
storagePlanId: text('storage_plan_id'),
|
||||
banned: boolean('banned').notNull().default(false),
|
||||
status: tenantStatusEnum('status').notNull().default('inactive'),
|
||||
createdAt: timestamp('created_at', { mode: 'string' }).defaultNow().notNull(),
|
||||
|
||||
Reference in New Issue
Block a user