Skip to content

Commit

Permalink
Move folder panier/ to plans/
Browse files Browse the repository at this point in the history
  • Loading branch information
farnoux committed Dec 23, 2024
1 parent 5d431c5 commit 8284bb7
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion backend/src/plans/fiches/shared/models/axe.table.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { panierTable } from '@/backend/plans/paniers/models/panier.table';
import { createdAt, modifiedAt, modifiedBy } from '@/backend/utils';
import { InferInsertModel } from 'drizzle-orm';
import {
Expand All @@ -10,7 +11,6 @@ import {
import { createSelectSchema } from 'drizzle-zod';
import z from 'zod';
import { collectiviteTable } from '../../../../collectivites/shared/models/collectivite.table';
import { panierTable } from '../../../../panier/models/panier.table';
import {
planActionTypeSchema,
planActionTypeTable,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { actionImpactTable } from '@/backend/plans/paniers';
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { actionImpactTable } from '../../../../panier/models/action-impact.table';
import { ficheActionTable } from './fiche-action.table';

export const ficheActionActionImpactTable = pgTable(
Expand Down
1 change: 1 addition & 0 deletions backend/src/plans/paniers/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './models/action-impact.table';
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { actionRelationTable } from '../../referentiels/models/action-relation.table';
import { actionImpactTable } from './action-impact.table';
import { text } from 'drizzle-orm/pg-core';
import { actionRelationTable } from '@/backend/referentiels';
import { InferSelectModel } from 'drizzle-orm';
import { integer, pgTable, primaryKey, text } from 'drizzle-orm/pg-core';
import { actionImpactTable } from './action-impact.table';

export const actionImpactActionTable = pgTable(
'action_impact_action',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { banaticCompetenceTable } from '../../shared/models/banatic-competence.table';
import { actionImpactTable } from './action-impact.table';
import { banaticCompetenceTable } from '@/backend/shared';

export const actionImpactBanaticCompetenceTable = pgTable(
'action_impact_banatic_competence',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { categorieFNVTable } from '@/backend/shared';
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { categorieFNVTable } from '../../shared/models/categorie-fnv.table';
import { actionImpactTable } from './action-impact.table';

export const actionImpactCategorieFNVTable = pgTable(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { effetAttenduTable } from '@/backend/shared';
import { InferSelectModel } from 'drizzle-orm';
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { effetAttenduTable } from '../../shared/models/effet-attendu.table';
import { actionImpactTable } from './action-impact.table';

export const actionImpactEffetAttenduTable = pgTable(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { indicateurDefinitionTable } from '@/backend/indicateurs';
import { InferSelectModel } from 'drizzle-orm';
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { actionImpactTable } from './action-impact.table';
import { indicateurDefinitionTable } from '../../indicateurs/models/indicateur-definition.table';
import { InferSelectModel } from 'drizzle-orm';

export const actionImpactIndicateurTable = pgTable(
'action_impact_indicateur',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { panierPartenaireTable } from '../../shared/models/panier-partenaire.table';
import { actionImpactTable } from './action-impact.table';
import { panierPartenaireTable } from './panier-partenaire.table';

export const actionImpactPartenaireTable = pgTable(
'action_impact_partenaire',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { sousThematiqueTable } from '@/backend/shared';
import { InferSelectModel } from 'drizzle-orm';
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { sousThematiqueTable } from '../../shared/models/sous-thematique.table';
import { actionImpactTable } from './action-impact.table';

export const actionImpactSousThematiqueTable = pgTable(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { thematiqueTable } from '@/backend/shared';
import { InferSelectModel } from 'drizzle-orm';
import { integer, pgTable, primaryKey } from 'drizzle-orm/pg-core';
import { thematiqueTable } from '../../shared/models/thematique.table';
import { actionImpactTable } from './action-impact.table';

export const actionImpactThematiqueTable = pgTable(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
import {
lienSchema,
lienType,
} from '@/backend/documents/models/document-lien.dto';
import {
categorieFNVSchema,
CategorieFNVType,
tempsDeMiseEnOeuvreTable,
thematiqueSchema,
ThematiqueType,
} from '@/backend/shared';
import { createZodDto } from '@anatine/zod-nestjs';
import { InferSelectModel } from 'drizzle-orm';
import {
Expand All @@ -10,16 +21,6 @@ import {
} from 'drizzle-orm/pg-core';
import { createSelectSchema } from 'drizzle-zod';
import { z } from 'zod';
import { lienSchema, lienType } from '../../documents/models/document-lien.dto';
import {
categorieFNVSchema,
CategorieFNVType,
} from '../../shared/models/categorie-fnv.table';
import { tempsDeMiseEnOeuvreTable } from '../../shared/models/temps-de-mise-en-oeuvre.table';
import {
thematiqueSchema,
ThematiqueType,
} from '../../shared/models/thematique.table';
import { actionImpactFourchetteBudgetaireTable } from './action-impact-fourchette-budgetaire.table';
import { actionImpactTierTable } from './action-impact-tier.table';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { collectiviteTable } from '@/backend/collectivites';
import { InferSelectModel, SQL, sql } from 'drizzle-orm';
import {
boolean,
Expand All @@ -7,7 +8,6 @@ import {
uuid,
} from 'drizzle-orm/pg-core';
import { createSelectSchema } from 'drizzle-zod';
import { collectiviteTable } from '../../collectivites/shared/models/collectivite.table';

export const panierTable = pgTable('panier', {
id: uuid('id').primaryKey().defaultRandom(),
Expand Down
2 changes: 2 additions & 0 deletions backend/src/shared/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from './models/banatic-competence.table';
export * from './models/categorie-fnv.table';
export * from './models/effet-attendu.table';
export * from './models/sous-thematique.table';
export * from './models/temps-de-mise-en-oeuvre.table';
Expand Down

0 comments on commit 8284bb7

Please sign in to comment.