Sauvegarde les informations relatives aux actions
| Colonne | Type | Nullable | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | nextval('actions_id_seq'::regclass) | Identifiant système automatique |
| label | character varying(64) | not null | Libellé | |
| color | character varying(8) | not null | Couleur | |
| logo | character varying(64) | Logo | ||
| event | character varying(128) | not null | Evenement de l'action | |
| mode | character varying(16) | not null | Mode ('Note' ou 'SIGN') | |
| status_id | integer | Statut pour lequel l'action apparaitra (status.id) | ||
| next_status_id | integer | Statut du document aprés l'action (status.id) |
Sauvegarde les chemins des pièces-jointes
| Colonne | Type | Nullable | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | nextval('adr_attachments_id_seq'::regclass) | Identifiant système automatique |
| attachment_id | integer | not null | Identifiant de la pièce-jointe (attachments.id) | |
| type | character varying(32) | not null | Type d'adresse | |
| path | character varying(255) | not null | Chemin du fichier dans le docserver | |
| filename | character varying(255) | not null | Nom du fichier dans le docserver | |
| fingerprint | character varying(255) | not null | Empreinte numérique du fichier |
Sauvegarde les chemins des documents principaux
| Colonne | Type | Nullable | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | nextval('adr_attachments_id_seq'::regclass) | Identifiant système automatique |
| main_document_id | integer | not null | Identifiant du document (main_documents.id) | |
| type | character varying(32) | not null | Type d'adresse | |
| path | character varying(255) | not null | Chemin du fichier dans le docserver | |
| filename | character varying(255) | not null | Nom du fichier dans le docserver | |
| fingerprint | character varying(255) | not null | Empreinte numérique du fichier |
Sauvegarde les informations relatifs aux pièces-jointes
| Colonne | Type | Nullable | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | nextval('attachments_id_seq'::regclass) | Identifiant système automatique |
| main_document_id | integer | not null | Identifiant système du document principal (main_documents.id) | |
| reference | character varying(64) | Référence externe de la pièce-jointe | ||
| title | text | not null | Sujet | |
| creation_date | timestamp | not null | NOW() | Date de création dans le parapheur |
| modification_date | timestamp | NOW() | Date de modification |
Sauvegarde les configurations techniques de l'application
| Colonne | Type | Nullable | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | Identifiant technique | |
| identifier | character varying(64) | not null | Identifiant de la configuration | |
| value | json | not null | Configuration |
Sauvegarde les informations relatifs aux zones de stockages
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('docservers_id_seq'::regclass) | Identifiant automatique |
| type | character varying(32) | not null | '1'::character varying | Identifiant du type de zone de stockage |
| label | character varying(255) | not null | Nom de la zone de stockage | |
| is_readonly | character(1) | not null | 'N'::bpchar | Indique si la zone de stockage est en lecture seule ou en écriture |
| size_limit_number | bigint | not null | (0)::bigint | Indique la taille limite de la zone de stockage |
| actual_size_number | bigint | not null | (0)::bigint | Indique la taille actuelle de la zone de stockage |
| path | character varying(255) | not null | Chemin vers la zone de stockage |
Sauvegarde les emails
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | Identifiant technique | |
| user_id | integer | not null | Identifiant de l'utilisateur qui a envoyé le mail (users.id) | |
| sender | character varying(128) | not null | Informations de l'expediteur | |
| recipients | json | not null | '[]' | Destinataire(s) |
| cc | json | not null | '[]' | Destinataire(s) en copie |
| cci | json | not null | '[]' | Destinataire(s) en copie caché |
| object | character varying(256) | Objet du mail | ||
| body | text | Corps du mail | ||
| document | json | Informations du document lié | ||
| is_html | boolean | not null | true | Corps du mail en html |
| status | character varying(16) | not null | Status du mail | |
| creation_date | timestamp without time zone | not null | Date de création | |
| send_date | timestamp without time zone | Date d'envoi |
Sauvegarde les informations relatifs aux groupes
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('groups_id_seq'::regclass) | Identifiant automatique |
| label | character varying(128) | not null | Libellé du groupe |
Sauvegarde les informations relatifs aux groupes
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('groups_privileges_id_seq'::regclass) | Identifiant automatique |
| group_id | integer | not null | Identifiant du groupe (groups.id) | |
| privilege | character varying(128) | not null | Identifiant du privilège |
Sauvegarde l'historique de toute l'application
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | bigint | not null | nextval('history_id_seq'::regclass) | Identifiant automatique |
| code | character varying(2) | not null | Code OK ou KO | |
| object_type | character varying(128) | not null | Type (table) de l'objet affecté | |
| object_id | character varying(32) | not null | Identifiant de l'objet affecté | |
| type | character varying(64) | not null | Type d'évenement | |
| user_id | integer | not null | Identifiant de l'utilisateur ayant fait l'action (users.id) | |
| date | timestamp without time zone | not null | Date de l'action | |
| message | text | not null | Description de l'action | |
| data | jsonb | not null | '{}' | Données complémentaires de l'action |
| ip | character varying(64) | not null | Adresse ip de l'utilisateur |
Sauvegarde les informations liées aux documents principaux
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('main_documents_id_seq'::regclass) | Identifiant automatique |
| reference | character varying(128) | not null | Reference du document | |
| title | text | not null | Sujet du document | |
| description | text | Description du document | ||
| mode | character_varying | not null | Mode du document (NOTE ou SIGN) | |
| status | integer | not null | Statut du document (status.id) | |
| metadata | jsonb | not null | '{}' | Données complémentaires du document |
| processing_user | integer | not null | Identifiant de l'utilisateur qui doit traiter le document (users.id) | |
| creator | integer | not null | Identifiant de l'utilisateur qui a créé le document (users.id) | |
| sender | text | not null | Nom de l'utilisateur qui a envoyé le document | |
| deadline | timestamp without time zone | Date limite de traitement | ||
| creation_date | timestamp without time zone | not null | NOW() | Date de création du document |
| modification_date | timestamp without time zone | NOW() | Date de dernière modification du document |
Enregistre l'historique des mots de passe utilisateurs
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | nextval('password_history_id_seq'::regclass) | Identifiant automatique |
| user_id | integer | not null | Identifiant utilisateur (users.id) | |
| password | character varying(255) | not null | Mot de passe haché |
Enregistre les règles de mot de passe
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | serial | not null | nextval('password_rules_id_seq'::regclass) | Identifiant automatique |
| label | character varying(64) | not null | Nom de la règle | |
| value | integer | not null | Valeur de la règle | |
| enabled | boolean | false | Activation de la règle |
Sauvegarde les signatures des utilisateurs
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('signatures_id_seq'::regclass) | Identifiant automatique |
| user_id | integer | not null | Identifiant de l'utilisateur (users.id) | |
| path | character varying(255) | not null | NULL::character varying | Chemin où est stockée la signature |
| filename | character varying(255) | not null | NULL::character varying | Nom du fichier de la signature |
| fingerprint | character varying(255) | not null | NULL::character varying | Empreinte numérique de la signature |
| external_application | character varying(255) | Provenance de la signature (utile pour les synchronisations) |
Sauvegarde le paramétrage des statuts
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('status_id_seq'::regclass) | Identifiant automatique |
| reference | character varying(10) | not null | Identifiant manuel du statut | |
| label | character varying(64) | not null | Nom du statut |
Sauvegarde les informations liées aux utilisateurs
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('users_id_seq'::regclass) | Identifiant automatique |
| login | character varying(128) | not null | Identifiant de l'utilisateur (utilisé pour se connecter) | |
| character varying(128) | not null | Email de l'utilisateur | ||
| password | character varying(255) | not null | Mot de passe de l'utilisateur encodé | |
| firstname | character varying(255) | not null | Prénom | |
| lastname | character varying(255) | not null | Nom | |
| picture | text | Avatar de l'utilisateur encodé en base64 | ||
| enabled | boolean | TRUE | Indique si l'utilisateur est activé ou pas | |
| mode | character varying(50) | not null | Indique le mode d'authentification | |
| preferences | jsonb | not null | '{"lang" : "fr", "writingMode" : "direct", "writingSize" : 1, "writingColor" : "#000000", "notifications" : true}' | Préférences utilisateur |
| cookie_key | character varying(255) | NULL::character varying | Cookie de l'utilisateur | |
| cookie_date | timestamp without time zone | Date d'expiration du cookie de l'utilisateur | ||
| reset_token | jsonb | not null | '{"token" : "", "until" : ""}' | Token utilisateur |
| password_modification_date | timestamp without time zone | CURRENT_TIMESTAMP | Date de dernière modification du mot de passe | |
| failed_authentication | integer | 0 | Nombre d'authentification ratés | |
| locked_until | timestamp without time zone | Date de débloquage (si bloqué) |
Sauvegarde les informations relatifs aux utilisateurs liés aux groupes
| Colonne | Type | NULL-able | Par défaut | Description |
|---|---|---|---|---|
| id | integer | not null | nextval('users_groups_id_seq'::regclass) | Identifiant automatique |
| group_id | integer | not null | Identifiant du groupe (groups.id) | |
| user_id | integer | not null | Identifiant de l'utilisateur (users.id) |