adaptation pour dolibarr head
This commit is contained in:
parent
4bb93f9777
commit
b6abd0e294
29
pgsql/tables/llx_birthday_alert.sql
Normal file
29
pgsql/tables/llx_birthday_alert.sql
Normal file
@ -0,0 +1,29 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_birthday_alert
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
fk_contact integer, -- pointe sur llx_socpeople
|
||||
fk_user integer
|
||||
);
|
||||
31
pgsql/tables/llx_c_ape.sql
Normal file
31
pgsql/tables/llx_c_ape.sql
Normal file
@ -0,0 +1,31 @@
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_ape
|
||||
(
|
||||
rowid serial UNIQUE,
|
||||
code_ape varchar(5) PRIMARY KEY,
|
||||
libelle varchar(255),
|
||||
active smallint default 1
|
||||
);
|
||||
|
||||
36
pgsql/tables/llx_c_departements.sql
Normal file
36
pgsql/tables/llx_c_departements.sql
Normal file
@ -0,0 +1,36 @@
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_departements
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
code_departement char(3),
|
||||
fk_region integer,
|
||||
cheflieu varchar(7),
|
||||
tncc integer,
|
||||
ncc varchar(50),
|
||||
nom varchar(50),
|
||||
active smallint default 1
|
||||
);
|
||||
|
||||
CREATE INDEX llx_c_departements_fk_region ON llx_c_departements(fk_region);
|
||||
32
pgsql/tables/llx_c_forme_juridique.sql
Normal file
32
pgsql/tables/llx_c_forme_juridique.sql
Normal file
@ -0,0 +1,32 @@
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_forme_juridique
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
fk_pays integer default 1,
|
||||
code integer UNIQUE,
|
||||
libelle varchar(255),
|
||||
active smallint default 1
|
||||
);
|
||||
|
||||
34
pgsql/tables/llx_c_regions.sql
Normal file
34
pgsql/tables/llx_c_regions.sql
Normal file
@ -0,0 +1,34 @@
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_regions
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
code_region integer UNIQUE,
|
||||
fk_pays integer default 1,
|
||||
cheflieu varchar(7),
|
||||
tncc integer,
|
||||
nom varchar(50),
|
||||
active smallint default 1
|
||||
);
|
||||
|
||||
35
pgsql/tables/llx_cash.sql
Normal file
35
pgsql/tables/llx_cash.sql
Normal file
@ -0,0 +1,35 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_cash
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
datec timestamp,
|
||||
dateo date NOT NULL, -- date operation
|
||||
amount real NOT NULL default 0,
|
||||
label varchar(255),
|
||||
fk_account integer, -- Pour gerer plusieurs caisse
|
||||
fk_user_author integer,
|
||||
fk_type varchar(4), -- Liquide, retrait, depot
|
||||
note text
|
||||
);
|
||||
32
pgsql/tables/llx_co_fa.sql
Normal file
32
pgsql/tables/llx_co_fa.sql
Normal file
@ -0,0 +1,32 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_co_fa
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
fk_commande integer NOT NULL,
|
||||
fk_facture integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX llx_co_fa_fk_commande ON llx_co_fa(fk_commande);
|
||||
|
||||
CREATE INDEX llx_co_fa_fk_facture ON llx_co_fa(fk_facture);
|
||||
28
pgsql/tables/llx_co_pr.sql
Normal file
28
pgsql/tables/llx_co_pr.sql
Normal file
@ -0,0 +1,28 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_co_pr
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
fk_commande integer,
|
||||
fk_propale integer
|
||||
);
|
||||
53
pgsql/tables/llx_commande.sql
Normal file
53
pgsql/tables/llx_commande.sql
Normal file
@ -0,0 +1,53 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_commande
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
tms timestamp,
|
||||
fk_soc integer,
|
||||
fk_soc_contact integer,
|
||||
fk_projet integer default 0, -- projet auquel est rattache la commande
|
||||
ref varchar(30) NOT NULL, -- propal number
|
||||
date_creation timestamp, -- date de creation
|
||||
date_valid timestamp, -- date de validation
|
||||
date_cloture timestamp, -- date de cloture
|
||||
date_commande date, -- date de la commande
|
||||
fk_user_author integer, -- createur de la commande
|
||||
fk_user_valid integer, -- valideur de la commande
|
||||
fk_user_cloture integer, -- cloture de la propale signee ou non signee
|
||||
source smallint NOT NULL,
|
||||
fk_statut smallint default 0,
|
||||
amount_ht real default 0,
|
||||
remise_percent real default 0,
|
||||
remise real default 0,
|
||||
tva real default 0,
|
||||
total_ht real default 0,
|
||||
total_ttc real default 0,
|
||||
note text,
|
||||
model_pdf varchar(50),
|
||||
facture smallint default 0,
|
||||
|
||||
UNIQUE (ref)
|
||||
);
|
||||
|
||||
46
pgsql/tables/llx_expedition.sql
Normal file
46
pgsql/tables/llx_expedition.sql
Normal file
@ -0,0 +1,46 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_expedition
|
||||
(
|
||||
rowid serial PRIMARY KEY,
|
||||
tms timestamp,
|
||||
ref varchar(30) NOT NULL,
|
||||
fk_commande integer,
|
||||
date_creation timestamp, -- date de creation
|
||||
date_valid timestamp, -- date de validation
|
||||
date_expedition date, -- date de l'expedition
|
||||
fk_user_author integer, -- createur
|
||||
fk_user_valid integer, -- valideur
|
||||
fk_entrepot integer,
|
||||
fk_expedition_methode integer,
|
||||
fk_statut smallint default 0,
|
||||
note text,
|
||||
model_pdf varchar(50),
|
||||
|
||||
UNIQUE (ref)
|
||||
);
|
||||
|
||||
CREATE INDEX llx_expedition_fk_expedition_methode ON llx_expedition(fk_expedition_methode);
|
||||
|
||||
CREATE INDEX llx_expedition_fk_commande ON llx_expedition(fk_commande);
|
||||
32
pgsql/tables/llx_expedition_methode.sql
Normal file
32
pgsql/tables/llx_expedition_methode.sql
Normal file
@ -0,0 +1,32 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_expedition_methode
|
||||
(
|
||||
rowid integer PRIMARY KEY,
|
||||
tms timestamp,
|
||||
code varchar(30) NOT NULL,
|
||||
libelle varchar(50) NOT NULL,
|
||||
description text,
|
||||
statut smallint default 0
|
||||
);
|
||||
36
pgsql/tables/llx_expeditiondet.sql
Normal file
36
pgsql/tables/llx_expeditiondet.sql
Normal file
@ -0,0 +1,36 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_expeditiondet
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
fk_expedition integer not null,
|
||||
fk_commande_ligne integer not null,
|
||||
qty real, -- quantité
|
||||
|
||||
key(fk_expedition),
|
||||
key(fk_commande_ligne)
|
||||
);
|
||||
|
||||
CREATE INDEX llx_expeditiondet_fk_expedition ON llx_expeditiondet(fk_expedition);
|
||||
|
||||
CREATE INDEX llx_expeditiondet_fk_commande_ligne ON llx_expeditiondet(fk_commande_ligne);
|
||||
33
pgsql/tables/llx_user_param.sql
Normal file
33
pgsql/tables/llx_user_param.sql
Normal file
@ -0,0 +1,33 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
|
||||
create table llx_user_param
|
||||
(
|
||||
fk_user integer,
|
||||
page varchar(255),
|
||||
param varchar(64),
|
||||
value varchar(255),
|
||||
|
||||
UNIQUE (fk_user,page,param)
|
||||
);
|
||||
Loading…
Reference in New Issue
Block a user