All checks were successful
Test Asgard Runner / test (push) Successful in 2s
Entities:
- Create 5 new TypeORM entities: webstore_config, webstore_categories,
webstore_items, webstore_transactions, module_store (all verified against live DB)
- Fix wipe-profile entity: remove incorrect default {} for pre/post wipe configs
Security:
- Add @RequirePermission guards to 7 controllers (36 endpoints total):
team, webstore, notifications, alerts, analytics, settings, schedules
- Encrypt panel API key with AES-256-GCM in setup service (was plaintext)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
844 B
TypeScript
34 lines
844 B
TypeScript
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn } from 'typeorm';
|
|
import { License } from './license.entity';
|
|
|
|
@Entity('wipe_profiles')
|
|
export class WipeProfile {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id: string;
|
|
|
|
@Column({ type: 'uuid' })
|
|
license_id: string;
|
|
|
|
@Column({ type: 'varchar', length: 100 })
|
|
profile_name: string;
|
|
|
|
@Column({ type: 'text', nullable: true })
|
|
description: string | null;
|
|
|
|
@Column({ type: 'jsonb' })
|
|
pre_wipe_config: Record<string, any>;
|
|
|
|
@Column({ type: 'jsonb' })
|
|
post_wipe_config: Record<string, any>;
|
|
|
|
@Column({ type: 'timestamptz', default: () => 'NOW()' })
|
|
created_at: Date;
|
|
|
|
@Column({ type: 'timestamptz', default: () => 'NOW()' })
|
|
updated_at: Date;
|
|
|
|
@ManyToOne(() => License, { onDelete: 'CASCADE' })
|
|
@JoinColumn({ name: 'license_id' })
|
|
license: License;
|
|
}
|