produits
This commit is contained in:
@@ -58,3 +58,46 @@ create table region (
|
||||
|
||||
insert into region values
|
||||
(1, 'Est'), (2, 'Ouest');
|
||||
|
||||
create table produit (
|
||||
id bigint null,
|
||||
nom text not null,
|
||||
marque text null,
|
||||
categorie text null,
|
||||
energie int not null,
|
||||
proteines float4 null,
|
||||
glucide float4 null,
|
||||
sucre float4 null,
|
||||
graisse float4 null,
|
||||
graisse_saturee float4 null,
|
||||
sel float4 null,
|
||||
fibres float4 null,
|
||||
nutriscore int null,
|
||||
additifs int null,
|
||||
additifs_list text[] null,
|
||||
potassium float null,
|
||||
calcium float null,
|
||||
magnesium float null,
|
||||
sodium float null,
|
||||
chlorure float null,
|
||||
sulfate float null,
|
||||
nitrate float null,
|
||||
hydrogenocarbonate float null,
|
||||
silice float null,
|
||||
fluor float null,
|
||||
residu float null,
|
||||
ph float null,
|
||||
vitamin_a float null,
|
||||
vitamin_c float null
|
||||
);
|
||||
|
||||
comment on column produit.potassium IS 'K⁺ en mg/L';
|
||||
comment on column produit.calcium IS 'Ca²⁺ en mg/L';
|
||||
comment on column produit.magnesium IS 'Mg²⁺ en mg/L';
|
||||
comment on column produit.sodium IS 'Na⁺ en mg/L';
|
||||
comment on column produit.chlorure IS 'Cl⁻ en mg/L';
|
||||
comment on column produit.sulfate IS 'SO₄²⁻ en mg/L';
|
||||
comment on column produit.nitrate IS 'NO₃⁻ en mg/L';
|
||||
comment on column produit.hydrogenocarbonate IS 'HCO₃⁻ en mg/L';
|
||||
comment on column produit.silice IS 'SiO₂ en mg/L';
|
||||
comment on column produit.fluor IS 'F en mg/L';
|
||||
|
||||
Reference in New Issue
Block a user