feat: implement core platform features including business directory, admin dashboard, authentication, and API infrastructure
Some checks failed
Build and Push App / build (push) Failing after 16m2s
Some checks failed
Build and Push App / build (push) Failing after 16m2s
This commit is contained in:
27
types.ts
27
types.ts
@@ -14,6 +14,8 @@ export interface User {
|
||||
phone?: string;
|
||||
bio?: string;
|
||||
location?: string;
|
||||
countryId?: string;
|
||||
country?: Country;
|
||||
isSuspended?: boolean;
|
||||
suspensionReason?: string;
|
||||
}
|
||||
@@ -25,13 +27,24 @@ export interface SocialLinks {
|
||||
website?: string;
|
||||
}
|
||||
|
||||
export interface Country {
|
||||
id: string;
|
||||
name: string;
|
||||
code: string;
|
||||
flag?: string;
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
export interface Business {
|
||||
id: string;
|
||||
ownerId: string;
|
||||
name: string;
|
||||
slug?: string;
|
||||
category: string;
|
||||
location: string; // City, Country
|
||||
location: string; // Legacy: City, Country
|
||||
countryId?: string;
|
||||
country?: Country;
|
||||
city?: string;
|
||||
description: string;
|
||||
logoUrl: string;
|
||||
videoUrl?: string; // YouTube/Vimeo link
|
||||
@@ -105,6 +118,18 @@ export interface Interview {
|
||||
duration?: string; // e.g. "15 min" or "5 min de lecture"
|
||||
}
|
||||
|
||||
export interface Rating {
|
||||
id: string;
|
||||
value: number;
|
||||
comment?: string;
|
||||
reply?: string;
|
||||
replyAt?: string;
|
||||
userId: string;
|
||||
businessId: string;
|
||||
user?: User;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export const CATEGORIES = [
|
||||
"Technologie & IT",
|
||||
"Agriculture & Agrobusiness",
|
||||
|
||||
Reference in New Issue
Block a user