Refactor: Implement entity type safety plan

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 13:48:41 +00:00
parent 2106142150
commit 4efdeaa104
9 changed files with 34 additions and 38 deletions

View File

@@ -16,7 +16,7 @@ export interface Company {
slug: string;
description?: string;
company_type: string; // Allow any string from database
person_type: string; // 'company', 'individual', 'firm', 'organization'
person_type: 'company' | 'individual' | 'firm' | 'organization';
website_url?: string;
founded_year?: number; // Legacy field
founded_date?: string;