Skip to content

Commit

Permalink
split establishment locations in 2 tables (for perf reasons)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Sep 24, 2024
1 parent d927d10 commit 53ad96b
Show file tree
Hide file tree
Showing 9 changed files with 482 additions and 45 deletions.
13 changes: 9 additions & 4 deletions back/src/config/pg/kysely/model/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export interface Database {
establishment_lead_events: EstablishmentLeadEvents;
establishments_contacts: EstablishmentsContacts;
establishments_deleted: EstablishmentsDeleted;
establishments_locations: EstablishmentsLocations;
establishments_location_infos: EstablishmentsLocationInfos;
establishments_location_positions: EstablishmentsLocationPositions;
establishments: Establishments;
exchanges: Exchanges;
feature_flags: FeatureFlags;
Expand Down Expand Up @@ -411,7 +412,12 @@ interface PublicRomesData {
libelle_rome_tsvector: string | null;
}

interface EstablishmentsLocations {
interface EstablishmentsLocationPositions {
id: string;
position: string;
}

type EstablishmentsLocationInfos = {
id: string;
establishment_siret: string;
post_code: string;
Expand All @@ -420,8 +426,7 @@ interface EstablishmentsLocations {
department_code: string;
lat: number;
lon: number;
position: string;
}
};

interface ImmersionOffers {
rome_code: string;
Expand Down
Loading

0 comments on commit 53ad96b

Please sign in to comment.