feat: add admin dashboard schema and seeder
- Add Plan, Subscription, Payment, PaymentMethod, Coupon models - Add ApiKey, Webhook models for API access - Add AppConfig model for dynamic configuration - Add role, suspendedAt fields to User model - Create comprehensive seeder with: - Admin user (dwindi.ramadhana@gmail.com) - Default plans (Free, Pro Monthly, Pro Yearly) - Payment methods (BCA, Mandiri, GoPay) - App config (maintenance mode) - Zero data loss migration strategy
This commit is contained in:
4
apps/api/dist/users/users.controller.d.ts
vendored
4
apps/api/dist/users/users.controller.d.ts
vendored
@@ -25,6 +25,10 @@ export declare class UsersController {
|
||||
otpWhatsappEnabled: boolean;
|
||||
otpTotpEnabled: boolean;
|
||||
otpTotpSecret: string | null;
|
||||
role: string;
|
||||
suspendedAt: Date | null;
|
||||
suspendedReason: string | null;
|
||||
lastLoginAt: Date | null;
|
||||
} | null>;
|
||||
updateProfile(req: RequestWithUser, body: {
|
||||
name?: string;
|
||||
|
||||
Reference in New Issue
Block a user