-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): calcule des indicateurs calcules lors de la mise à jou…
…r d'une valeur d'indicateur, import de la définition des indicateurs depuis un spreadsheet
- Loading branch information
Showing
238 changed files
with
4,027 additions
and
32,022 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import { collectiviteTable } from '@/backend/collectivites/shared/models/collectivite.table'; | ||
import { InferInsertModel, InferSelectModel } from 'drizzle-orm'; | ||
import { boolean, integer, pgTable } from 'drizzle-orm/pg-core'; | ||
import { createdAt, createdBy } from '../../utils/column.utils'; | ||
import { tagTableBase } from './tag.table-base'; | ||
|
||
export const categorieTagTable = pgTable('categorie_tag', { | ||
...tagTableBase, | ||
collectiviteId: integer('collectivite_id').references( | ||
() => collectiviteTable.id | ||
), | ||
groupementId: integer('groupement_id'), // TODO .references(() => groupementTable.id) | ||
visible: boolean('visible').default(true), | ||
createdAt, | ||
createdBy, | ||
}); | ||
|
||
export type CategorieTagType = InferSelectModel<typeof categorieTagTable>; | ||
export type CreateCategorieTagType = InferInsertModel<typeof categorieTagTable>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.