mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 11:11:13 -05:00
Fix test data generator
This commit is contained in:
@@ -177,6 +177,7 @@ export function generateRandomCompany(type: 'manufacturer' | 'operator' | 'desig
|
|||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
slug,
|
slug,
|
||||||
|
company_type: type,
|
||||||
description: `A leading ${type.replace('_', ' ')} in the amusement industry.`,
|
description: `A leading ${type.replace('_', ' ')} in the amusement industry.`,
|
||||||
person_type: Math.random() > 0.9 ? 'individual' : 'company',
|
person_type: Math.random() > 0.9 ? 'individual' : 'company',
|
||||||
founded_year: randomInt(1950, 2020),
|
founded_year: randomInt(1950, 2020),
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ export interface RideSubmissionData {
|
|||||||
export interface CompanySubmissionData {
|
export interface CompanySubmissionData {
|
||||||
name: string;
|
name: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
|
company_type: 'manufacturer' | 'operator' | 'designer' | 'property_owner';
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
person_type?: 'company' | 'individual';
|
person_type?: 'company' | 'individual';
|
||||||
founded_year?: number | null; // Legacy field
|
founded_year?: number | null; // Legacy field
|
||||||
|
|||||||
Reference in New Issue
Block a user