Skip to content

Commit

Permalink
MAJ database.types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
amandinejacquelin committed Oct 16, 2023
1 parent ae2bb36 commit 1f4c927
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 144 deletions.
152 changes: 104 additions & 48 deletions api_tests/lib/database.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3297,6 +3297,9 @@ export interface Database {
modified_by: string | null
nom: string | null
parent: number | null
plan: number | null
restreint: boolean | null
type: number | null
}
Insert: {
collectivite_id: number
Expand All @@ -3306,6 +3309,9 @@ export interface Database {
modified_by?: string | null
nom?: string | null
parent?: number | null
plan?: number | null
restreint?: boolean | null
type?: number | null
}
Update: {
collectivite_id?: number
Expand All @@ -3315,6 +3321,9 @@ export interface Database {
modified_by?: string | null
nom?: string | null
parent?: number | null
plan?: number | null
restreint?: boolean | null
type?: number | null
}
Relationships: [
{
Expand Down Expand Up @@ -3640,6 +3649,30 @@ export interface Database {
columns: ["parent"]
referencedRelation: "plan_action_profondeur"
referencedColumns: ["id"]
},
{
foreignKeyName: "axe_plan_fkey"
columns: ["plan"]
referencedRelation: "axe"
referencedColumns: ["id"]
},
{
foreignKeyName: "axe_plan_fkey"
columns: ["plan"]
referencedRelation: "plan_action"
referencedColumns: ["id"]
},
{
foreignKeyName: "axe_plan_fkey"
columns: ["plan"]
referencedRelation: "plan_action_profondeur"
referencedColumns: ["id"]
},
{
foreignKeyName: "axe_type_fkey"
columns: ["type"]
referencedRelation: "plan_action_type"
referencedColumns: ["id"]
}
]
}
Expand Down Expand Up @@ -5271,45 +5304,6 @@ export interface Database {
}
]
}
commune_pop_legale: {
Row: {
codarr: string | null
codcan: string | null
codcom: string | null
coddep: string | null
codreg: string | null
com: string | null
pcap: number | null
pmun: number | null
ptot: number | null
reg: string | null
}
Insert: {
codarr?: string | null
codcan?: string | null
codcom?: string | null
coddep?: string | null
codreg?: string | null
com?: string | null
pcap?: number | null
pmun?: number | null
ptot?: number | null
reg?: string | null
}
Update: {
codarr?: string | null
codcan?: string | null
codcom?: string | null
coddep?: string | null
codreg?: string | null
com?: string | null
pcap?: number | null
pmun?: number | null
ptot?: number | null
reg?: string | null
}
Relationships: []
}
confidentialite_crud: {
Row: {
c: Database["public"]["Enums"]["confidentialite_option_crud"]
Expand Down Expand Up @@ -6355,6 +6349,7 @@ export interface Database {
| Database["public"]["Enums"]["fiche_action_piliers_eci"][]
| null
ressources: string | null
restreint: boolean | null
resultats_attendus:
| Database["public"]["Enums"]["fiche_action_resultats_attendus"][]
| null
Expand Down Expand Up @@ -6385,6 +6380,7 @@ export interface Database {
| Database["public"]["Enums"]["fiche_action_piliers_eci"][]
| null
ressources?: string | null
restreint?: boolean | null
resultats_attendus?:
| Database["public"]["Enums"]["fiche_action_resultats_attendus"][]
| null
Expand Down Expand Up @@ -6415,6 +6411,7 @@ export interface Database {
| Database["public"]["Enums"]["fiche_action_piliers_eci"][]
| null
ressources?: string | null
restreint?: boolean | null
resultats_attendus?:
| Database["public"]["Enums"]["fiche_action_resultats_attendus"][]
| null
Expand Down Expand Up @@ -11998,6 +11995,46 @@ export interface Database {
}
Relationships: []
}
plan_action_type: {
Row: {
categorie: string
detail: string | null
id: number
type: string
}
Insert: {
categorie: string
detail?: string | null
id?: number
type: string
}
Update: {
categorie?: string
detail?: string | null
id?: number
type?: string
}
Relationships: [
{
foreignKeyName: "plan_action_type_categorie_fkey"
columns: ["categorie"]
referencedRelation: "plan_action_type_categorie"
referencedColumns: ["categorie"]
}
]
}
plan_action_type_categorie: {
Row: {
categorie: string
}
Insert: {
categorie: string
}
Update: {
categorie?: string
}
Relationships: []
}
post_audit_scores: {
Row: {
audit_id: number
Expand Down Expand Up @@ -18870,6 +18907,7 @@ export interface Database {
| null
pilotes: Database["public"]["CompositeTypes"]["personne"][] | null
plans: unknown[] | null
restreint: boolean | null
statut: Database["public"]["Enums"]["fiche_action_statuts"] | null
titre: string | null
}
Expand Down Expand Up @@ -23588,10 +23626,6 @@ export interface Database {
Returns: number
}
diag:
| {
Args: Record<PropertyKey, never>
Returns: string
}
| {
Args: {
msg: string
Expand All @@ -23608,6 +23642,10 @@ export interface Database {
Args: Record<PropertyKey, never>
Returns: string
}
| {
Args: Record<PropertyKey, never>
Returns: string
}
diag_test_name: {
Args: {
"": string
Expand Down Expand Up @@ -23721,7 +23759,20 @@ export interface Database {
Args: {
fiche_action_action: unknown
}
Returns: unknown[]
Returns: {
collectivite_id: number | null
date_fin_provisoire: string | null
id: number | null
modified_at: string | null
niveau_priorite:
| Database["public"]["Enums"]["fiche_action_niveaux_priorite"]
| null
pilotes: Database["public"]["CompositeTypes"]["personne"][] | null
plans: unknown[] | null
restreint: boolean | null
statut: Database["public"]["Enums"]["fiche_action_statuts"] | null
titre: string | null
}[]
}
| {
Args: {
Expand All @@ -23737,6 +23788,7 @@ export interface Database {
| null
pilotes: Database["public"]["CompositeTypes"]["personne"][] | null
plans: unknown[] | null
restreint: boolean | null
statut: Database["public"]["Enums"]["fiche_action_statuts"] | null
titre: string | null
}[]
Expand Down Expand Up @@ -23777,6 +23829,7 @@ export interface Database {
| null
pilotes: Database["public"]["CompositeTypes"]["personne"][] | null
plans: unknown[] | null
restreint: boolean | null
statut: Database["public"]["Enums"]["fiche_action_statuts"] | null
titre: string | null
}[]
Expand Down Expand Up @@ -24998,6 +25051,9 @@ export interface Database {
modified_by: string | null
nom: string | null
parent: number | null
plan: number | null
restreint: boolean | null
type: number | null
}[]
}
preuve_count: {
Expand Down Expand Up @@ -25394,13 +25450,15 @@ export interface Database {
Args: {
bucket_width: unknown
ts: string
offset: unknown
}
Returns: string
}
| {
Args: {
bucket_width: unknown
ts: string
offset: unknown
}
Returns: string
}
Expand All @@ -25415,15 +25473,13 @@ export interface Database {
Args: {
bucket_width: unknown
ts: string
origin: string
}
Returns: string
}
| {
Args: {
bucket_width: unknown
ts: string
origin: string
}
Returns: string
}
Expand All @@ -25439,15 +25495,15 @@ export interface Database {
Args: {
bucket_width: unknown
ts: string
offset: unknown
origin: string
}
Returns: string
}
| {
Args: {
bucket_width: unknown
ts: string
offset: unknown
origin: string
}
Returns: string
}
Expand Down
Loading

0 comments on commit 1f4c927

Please sign in to comment.