account_holder ||
This commit is contained in:
54
banque.md
54
banque.md
@@ -45,32 +45,26 @@ Cela évite les **colonnes inutiles** et permet des **contraintes spécifiques**
|
|||||||
La clé étrangère `references holder(id)` dans `person`.
|
La clé étrangère `references holder(id)` dans `person`.
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
---
|
|
||||||
config:
|
|
||||||
layout: elk
|
|
||||||
look: handDrawn
|
|
||||||
theme: dark
|
|
||||||
---
|
|
||||||
erDiagram
|
erDiagram
|
||||||
person {
|
person {
|
||||||
bigint id PK
|
bigint id PK
|
||||||
text firstname
|
text firstname
|
||||||
text lastname
|
text lastname
|
||||||
date birthdate
|
date birthdate
|
||||||
}
|
}
|
||||||
|
|
||||||
company {
|
company {
|
||||||
bigint id PK
|
bigint id PK
|
||||||
text name
|
text name
|
||||||
text registration_number
|
text registration_number
|
||||||
date creation_date
|
date creation_date
|
||||||
}
|
}
|
||||||
|
|
||||||
holder {
|
holder {
|
||||||
bigint id PK
|
bigint id PK
|
||||||
timestamp creation_date
|
timestamp creation_date
|
||||||
text type
|
text type
|
||||||
}
|
}
|
||||||
|
|
||||||
%% Relations
|
%% Relations
|
||||||
|
|
||||||
@@ -101,11 +95,6 @@ erDiagram
|
|||||||
date creation_date
|
date creation_date
|
||||||
}
|
}
|
||||||
|
|
||||||
bank {
|
|
||||||
bigint id PK
|
|
||||||
text name
|
|
||||||
}
|
|
||||||
|
|
||||||
holder {
|
holder {
|
||||||
bigint id PK
|
bigint id PK
|
||||||
timestamp creation_date
|
timestamp creation_date
|
||||||
@@ -128,9 +117,8 @@ erDiagram
|
|||||||
|
|
||||||
person |o--|| holder : is
|
person |o--|| holder : is
|
||||||
company |o--|| holder : is
|
company |o--|| holder : is
|
||||||
bank |o--|| holder : is
|
|
||||||
holder }|--|{ account_holder : a
|
holder }|--|{ account_holder : a
|
||||||
account_holder }|--|{ account : hold
|
account_holder ||--|{ account : hold
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Les opérations
|
### 3. Les opérations
|
||||||
@@ -189,7 +177,7 @@ erDiagram
|
|||||||
company |o--|| holder : is
|
company |o--|| holder : is
|
||||||
bank |o--|| holder : is
|
bank |o--|| holder : is
|
||||||
holder }|--|{ account_holder : a
|
holder }|--|{ account_holder : a
|
||||||
account_holder }|--|{ account : hold
|
account_holder ||--|{ account : hold
|
||||||
operation }o--|| account : concerne
|
operation }o--|| account : concerne
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -398,7 +386,7 @@ erDiagram
|
|||||||
company |o--|| holder : is
|
company |o--|| holder : is
|
||||||
bank |o--|| holder : is
|
bank |o--|| holder : is
|
||||||
holder }|--|{ account_holder : a
|
holder }|--|{ account_holder : a
|
||||||
account_holder }|--|{ account : hold
|
account_holder ||--|{ account : hold
|
||||||
currency ||--|{ account : tenu
|
currency ||--|{ account : tenu
|
||||||
exchange_rate }o--|| currency : a
|
exchange_rate }o--|| currency : a
|
||||||
transaction }o--|| operation : contient
|
transaction }o--|| operation : contient
|
||||||
@@ -502,8 +490,6 @@ Nous allons donc écrire une **procédure stockée** `create_account` qui vérif
|
|||||||
|
|
||||||
* prend en paramètre :
|
* prend en paramètre :
|
||||||
|
|
||||||
* `p_iban text`,
|
|
||||||
* `p_name text`,
|
|
||||||
* `p_holders int[]` (tableau des identifiants de titulaires),
|
* `p_holders int[]` (tableau des identifiants de titulaires),
|
||||||
* `p_shares numeric[]` (tableau des parts correspondantes).
|
* `p_shares numeric[]` (tableau des parts correspondantes).
|
||||||
|
|
||||||
|
|||||||
@@ -1,145 +0,0 @@
|
|||||||
{
|
|
||||||
"annotations": {
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"builtIn": 1,
|
|
||||||
"datasource": {
|
|
||||||
"type": "grafana",
|
|
||||||
"uid": "-- Grafana --"
|
|
||||||
},
|
|
||||||
"enable": true,
|
|
||||||
"hide": true,
|
|
||||||
"iconColor": "rgba(0, 211, 255, 1)",
|
|
||||||
"name": "Annotations & Alerts",
|
|
||||||
"type": "dashboard"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"editable": true,
|
|
||||||
"fiscalYearStartMonth": 0,
|
|
||||||
"graphTooltip": 0,
|
|
||||||
"id": 2,
|
|
||||||
"links": [],
|
|
||||||
"panels": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "PBFA97CFB590B2093"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"color": {
|
|
||||||
"mode": "palette-classic"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"axisBorderShow": false,
|
|
||||||
"axisCenteredZero": false,
|
|
||||||
"axisColorMode": "text",
|
|
||||||
"axisLabel": "",
|
|
||||||
"axisPlacement": "auto",
|
|
||||||
"barAlignment": 0,
|
|
||||||
"drawStyle": "line",
|
|
||||||
"fillOpacity": 0,
|
|
||||||
"gradientMode": "none",
|
|
||||||
"hideFrom": {
|
|
||||||
"legend": false,
|
|
||||||
"tooltip": false,
|
|
||||||
"viz": false
|
|
||||||
},
|
|
||||||
"insertNulls": false,
|
|
||||||
"lineInterpolation": "linear",
|
|
||||||
"lineWidth": 1,
|
|
||||||
"pointSize": 5,
|
|
||||||
"scaleDistribution": {
|
|
||||||
"type": "linear"
|
|
||||||
},
|
|
||||||
"showPoints": "auto",
|
|
||||||
"spanNulls": false,
|
|
||||||
"stacking": {
|
|
||||||
"group": "A",
|
|
||||||
"mode": "none"
|
|
||||||
},
|
|
||||||
"thresholdsStyle": {
|
|
||||||
"mode": "off"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": [],
|
|
||||||
"thresholds": {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"color": "green",
|
|
||||||
"value": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "red",
|
|
||||||
"value": 80
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 8,
|
|
||||||
"w": 12,
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"id": 1,
|
|
||||||
"options": {
|
|
||||||
"legend": {
|
|
||||||
"calcs": [],
|
|
||||||
"displayMode": "list",
|
|
||||||
"placement": "bottom",
|
|
||||||
"showLegend": true
|
|
||||||
},
|
|
||||||
"tooltip": {
|
|
||||||
"mode": "single",
|
|
||||||
"sort": "none"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "PBFA97CFB590B2093"
|
|
||||||
},
|
|
||||||
"disableTextWrap": false,
|
|
||||||
"editorMode": "builder",
|
|
||||||
"expr": "rate(process_cpu_seconds_total[$__rate_interval])",
|
|
||||||
"fullMetaSearch": false,
|
|
||||||
"includeNullMetadata": false,
|
|
||||||
"instant": false,
|
|
||||||
"legendFormat": "__auto",
|
|
||||||
"range": true,
|
|
||||||
"refId": "A",
|
|
||||||
"useBackend": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title": "Panel Title",
|
|
||||||
"type": "timeseries"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"schemaVersion": 39,
|
|
||||||
"tags": [],
|
|
||||||
"templating": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"time": {
|
|
||||||
"from": "now-15m",
|
|
||||||
"to": "now"
|
|
||||||
},
|
|
||||||
"timepicker": {
|
|
||||||
"refresh_intervals": [
|
|
||||||
"30s",
|
|
||||||
"1m",
|
|
||||||
"5m"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"timezone": "browser",
|
|
||||||
"title": "Docker",
|
|
||||||
"uid": "edt08ssgt6v40e",
|
|
||||||
"version": 4,
|
|
||||||
"weekStart": ""
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: 1
|
|
||||||
|
|
||||||
providers:
|
|
||||||
- name: dashboards
|
|
||||||
type: file
|
|
||||||
disableDeletion: false
|
|
||||||
updateIntervalSeconds: 3600
|
|
||||||
allowUiUpdates: false
|
|
||||||
options:
|
|
||||||
path: /etc/grafana/dashboards
|
|
||||||
foldersFromFilesStructure: true
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
apiVersion: 1
|
|
||||||
|
|
||||||
datasources:
|
|
||||||
- name: VentdEst
|
|
||||||
type: postgres
|
|
||||||
url: postgresql:5432
|
|
||||||
user: ventdest
|
|
||||||
editable: true
|
|
||||||
secureJsonData:
|
|
||||||
password: motdepasse
|
|
||||||
jsonData:
|
|
||||||
database: ventdest
|
|
||||||
sslmode: disable # disable/require/verify-ca/verify-full
|
|
||||||
maxOpenConns: 50 # Grafana v5.4+
|
|
||||||
maxIdleConns: 50 # Grafana v5.4+
|
|
||||||
maxIdleConnsAuto: true # Grafana v9.5.1+
|
|
||||||
connMaxLifetime: 3600 # Grafana v5.4+
|
|
||||||
postgresVersion: 1500 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10
|
|
||||||
timescaledb: false
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: 1
|
|
||||||
|
|
||||||
datasources:
|
|
||||||
- name: Prometheus
|
|
||||||
type: prometheus
|
|
||||||
url: http://prometheus:9090
|
|
||||||
orgId: 1
|
|
||||||
isDefault: true
|
|
||||||
access: proxy
|
|
||||||
editable: true
|
|
||||||
jsonData:
|
|
||||||
httpMethod: POST
|
|
||||||
prometheusType: Prometheus
|
|
||||||
prometheusVersion: 2.50.0
|
|
||||||
|
|
||||||
# http://localhost/grafana/api/datasources
|
|
||||||
Reference in New Issue
Block a user