-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel.dbml
46 lines (42 loc) · 1.22 KB
/
model.dbml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Table users {
id integer [primary key]
first_name varchar [not null]
name varchar [not null]
id_graulande varchar [not null]
mutuelle_id integer [ref: > mutuelles.id]
}
Table hospitals {
id integer [primary key]
name varchar [not null]
}
Table mutuelles {
id integer [primary key]
name varchar [not null]
}
Table medical_acts {
id integer [primary key]
user_id integer [ref: > users.id]
hopital_id integer [ref: > hospitals.id]
// examen_id integer [ref: > hospitals.id]
mutuelle_id integer [ref: > mutuelles.id]
metadata_1 varchar
metadata_2 varchar
montant_total float [default: 0]
prise_en_charge_hopital float [default: 0]
prise_en_charge_mutuelle float [default: 0]
prise_en_charge_patient float [default: 0]
confirmation_paiement_patient boolean [default: false]
confirmation_mutuelle boolean [default: false]
confirmation_rdv boolean [default: false]
pourcentage_prise_en_charge integer
commentaire text
date_creation timestamp [default: `now()`]
date_prevue timestamp
date_venue timestamp // valide la présence ou non du patient
}
Table results {
id integer [primary key]
medical_act_id integer [ref: > medical_acts.id]
file_name varchar [not null]
file_data bytea [not null]
}