Table llx product: Difference between revisions

Line 15: Line 15:


= 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"
<pre>
|style="background-color: #e9e9ef"| <b>Field</b>
+--------------------+--------------+------+-----+-------------------+----------------+
|style="background-color: #e9e9ef"| <b>Type</b>
| Field              | Type         | Null | Key | Default           | Extra         |
|style="background-color: #e9e9ef"| <b>Null</b>
+--------------------+--------------+------+-----+-------------------+----------------+
|style="background-color: #e9e9ef"| <b>Key</b>
| rowid             | int(11)     | NO  | PRI | NULL             | auto_increment |  
|style="background-color: #e9e9ef"| <b>Default</b>
| datec             | datetime     | YES |     | NULL             |               |  
|style="background-color: #e9e9ef"| <b>Extra</b>
| tms               | timestamp   | NO   |     | CURRENT_TIMESTAMP |               |  
|style="background-color: #e9e9ef"| <b>Description</b>
| ref               | varchar(32) | NO   | UNI |                   |               |  
|-  
| label             | varchar(255) | NO   |     |                   |               |  
| rowid  
| description       | text         | YES |     | NULL             |               |  
| int(11)  
| note               | text         | YES |     | NULL             |               |  
| &nbsp;
| price             | double(16,8) | YES |     | NULL             |               |  
| PRI
| price_ttc         | double(16,8) | YES |     | 0.00000000       |               |  
| NULL
| price_base_type   | varchar(3)   | YES |     | HT               |               |  
| auto_increment  
| tva_tx             | double(6,3) | YES |     | NULL             |               |  
| technical index
| fk_user_author     | int(11)     | YES |     | NULL             |               |  
|-
| envente           | tinyint(4)   | YES |     | 1                 |               |  
| datec  
| nbvente           | int(11)     | YES |     | 0                 |               |  
| datetime  
| fk_product_type   | int(11)     | YES |     | 0                 |               |  
| YES  
| duration           | varchar(6)   | YES |     | NULL             |               |  
|  
| stock_propale     | int(11)     | YES |     | 0                 |               |  
| NULL  
| stock_commande     | int(11)     | YES |     | 0                 |               |  
|  
| seuil_stock_alerte | int(11)     | YES |     | 0                 |               |  
|  
| stock_loc         | varchar(10) | YES |     | NULL             |               |  
|-
| gencode           | varchar(255) | YES |     | NULL             |               |  
| tms  
| weight             | float       | YES |     | NULL             |               | weight value, depending on weight units
| timestamp  
| weight_units       | tinyint(4)   | YES |     | NULL             |               | weight units (0=kg,-3=g,-6=mg)
| NO  
| volume             | float       | YES |     | NULL             |               | volume value
|  
| volume_units       | tinyint(4)   | YES |     | NULL             |               | volume units (0=m3,-3=cm3,-6=mm3)
| CURRENT_TIMESTAMP  
| canvas             | varchar(15) | YES |     |                   |               |  
|  
+--------------------+--------------+------+-----+-------------------+----------------+
|  
</pre>
|-
| ref  
| varchar(32)  
| NO  
| UNI  
|  
|  
|  
|-
| label  
| varchar(255)  
| NO  
|  
|  
|  
|  
|-
| description  
| text  
| YES  
|  
| NULL  
|
|  
|-
| note  
| text  
| YES  
|  
| NULL  
|  
|  
|-
| price  
| double(16,8)  
| YES  
|  
| NULL  
|  
|
|-
| price_ttc  
| double(16,8)  
| YES  
|  
| 0.00000000  
|
|  
|-
| price_base_type  
| varchar(3)  
| YES  
|  
| HT  
|  
|  
|-
| tva_tx  
| double(6,3)  
| YES  
|  
| NULL  
|  
|  
|-
| fk_user_author  
| int(11)  
| YES  
|  
| NULL  
|  
|  
|-
| envente  
| tinyint(4)
| YES  
|  
| 1
|  
|  
|-
| nbvente  
| int(11)  
| YES  
|  
| 0  
|  
|  
|-
| fk_product_type  
| int(11)  
| YES  
|  
| 0  
|  
|  
|-
| duration  
| varchar(6)  
| YES  
|  
| NULL  
|  
|  
|-
| stock_propale  
| int(11)
| YES  
|  
| 0  
|  
|  
|-
| stock_commande  
| int(11)  
| YES  
|  
| 0  
|  
|
|-
| seuil_stock_alerte  
| int(11)  
| YES  
|  
| 0  
|
|  
|-
| stock_loc  
| varchar(10)  
| YES  
|  
| NULL  
|  
|  
|-
| gencode  
| varchar(255)  
| YES  
|  
| NULL  
|  
|  
|-
| weight  
| float  
| YES  
|  
| NULL
|  
| weight value, depending on weight units
|-
| weight_units  
| tinyint(4)  
| YES  
|  
| NULL  
|
| weight units (0=kg,-3=g,-6=mg)
|-
| volume  
| float  
| YES  
|  
| NULL  
|
| volume value
|-
| volume_units  
| tinyint(4)  
| YES  
|  
| NULL  
|  
| volume units (0=m3,-3=cm3,-6=mm3)
|-
| canvas  
| varchar(15)  
| YES  
|  
|  
|  
|  
|}


= Notes =
= Notes =