4,395
edits
| Line 16: | Line 16: | ||
= Structure = | = Structure = | ||
{| align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5" | |||
|style="background-color: #e9e9ef"| <b>Field</b> | |||
| | |style="background-color: #e9e9ef"| <b>Type</b> | ||
|style="background-color: #e9e9ef"| <b>Null</b> | |||
| rowid | |style="background-color: #e9e9ef"| <b>Key</b> | ||
| tms | |style="background-color: #e9e9ef"| <b>Default</b> | ||
| fk_soc | |style="background-color: #e9e9ef"| <b>Extra</b> | ||
| fk_projet | |style="background-color: #e9e9ef"| <b>Description</b> | ||
| ref | |- | ||
| date_creation | | rowid | ||
| date_valid | | int(11) | ||
| date_cloture | | | ||
| date_commande | | PRI | ||
| fk_user_author | | NULL | ||
| fk_user_valid | | auto_increment | ||
| fk_user_cloture | | technical index | ||
| source | |- | ||
| fk_statut | | tms | ||
| amount_ht | | timestamp | ||
| remise_percent | | NO | ||
| remise | | | ||
| tva | | CURRENT_TIMESTAMP | ||
| total_ht | | | ||
| total_ttc | | | ||
| note | |- | ||
| note_public | | fk_soc | ||
| model_pdf | | int(11) | ||
| fk_methode_commande | int(11) | | NO | ||
| MUL | |||
| | |||
| | |||
| ID of society | |||
|- | |||
| fk_projet | |||
| int(11) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| ID of proyect | |||
|- | |||
| ref | |||
| varchar(30) | |||
| NO | |||
| UNI | |||
| | |||
| | |||
| | |||
|- | |||
| date_creation | |||
| datetime | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| date_valid | |||
| datetime | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| date_cloture | |||
| datetime | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| date_commande | |||
| date | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| fk_user_author | |||
| int(11) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| fk_user_valid | |||
| int(11) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| fk_user_cloture | |||
| int(11) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| source | |||
| smallint(6) | |||
| NO | |||
| | |||
| | |||
| | |||
| | |||
|- | |||
| fk_statut | |||
| smallint(6) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| 0 pour brouillon, 1 pour validée, 2 pour "approuvée", 5 pour "reçu complètement" | |||
|- | |||
| amount_ht | |||
| double | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |||
| remise_percent | |||
| double | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |||
| remise | |||
| double | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |||
| tva | |||
| double | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |||
| total_ht | |||
| double | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |||
| total_ttc | |||
| double | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |||
| note | |||
| text | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| note_public | |||
| text | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| model_pdf | |||
| varchar(50) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| fk_methode_commande | |||
| int(11) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|} | |||