update doc_db

This commit is contained in:
JBthePenguin 2021-09-02 15:24:41 +02:00
parent 27c9d653f7
commit 1e9c8d8553
3 changed files with 5 additions and 40 deletions

View file

@ -16,7 +16,6 @@
|---|---|---|
| *🔑 ⬋ | id| integer autoincrement |
| *⬈ | category_id| integer |
| *| stock_number| integer |
| *🔍 | designation| varchar(255) |
| Indexes |
| 🔑 primary key | pk_plugin_materiels_equipment || ON id|
@ -24,32 +23,19 @@
| Foreign Keys |
| | Fk_plugin_materiels_equipment | ( category_id ) ref plugin_materiels_category (id) |
### Table plugin_materiels_entry
### Table plugin_materiels_movement
| Idx | Field Name | Data Type | Description |
|---|---|---|---|
| *🔑 | id| integer autoincrement | |
| *| side| boolean | 0 -> entry, 1 -> output |
| *| kind| varchar(20) | Achat, Don, Récupération, ... |
| *| equipment_number| integer | |
| *⬈ | equipment_id| integer | |
| *| entry_date| date | |
| *| mvt_date| date | |
| | additional_comment| varchar(255) | |
| Indexes |
| 🔑 primary key | pk_plugin_materiels_entry | |
| Foreign Keys |
| | Fk_plugin_materiels_entry | ( equipment_id ) ref plugin_materiels_equipment (id) | |
### Table plugin_materiels_output
| Idx | Field Name | Data Type | Description |
|---|---|---|---|
| *🔑 | id| integer autoincrement | |
| *| kind| varchar(20) | Vente, Don, Prêt, ... |
| *| equipment_number| integer | |
| *⬈ | equipment_id| integer | |
| *| output_date| date | |
| | additional_comment| varchar(255) | |
| Indexes |
| 🔑 primary key | pk_plugin_materiels_output || ON id | |
| Foreign Keys |
| | Fk_plugin_materiels_output | ( equipment_id ) ref plugin_materiels_equipment (id) | |
| | Fk_plugin_materiels_movement | ( equipment_id ) ref plugin_materiels_equipment (id) | |
| * -> NOT NULL

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Before After
Before After