nouvelle version pour dolibarr 1.1.0
This commit is contained in:
parent
78ad523488
commit
56cf1c5c74
33
pgsql/tables/llx_groupart.sql
Normal file
33
pgsql/tables/llx_groupart.sql
Normal file
@ -0,0 +1,33 @@
|
||||
-- ============================================================================
|
||||
-- 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_groupart
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
osc_id integer NOT NULL,
|
||||
tms timestamp,
|
||||
nom varchar(64),
|
||||
groupart CHAR(8) CHECK (groupart IN ('artiste','groupe')) NOT NULL,
|
||||
fk_user_author integer
|
||||
);
|
||||
|
||||
33
pgsql/tables/llx_lieu_concert.sql
Normal file
33
pgsql/tables/llx_lieu_concert.sql
Normal file
@ -0,0 +1,33 @@
|
||||
-- ============================================================================
|
||||
-- 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_lieu_concert
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
nom varchar(64) NOT NULL,
|
||||
description text,
|
||||
ville varchar(64) NOT NULL,
|
||||
fk_user_author integer
|
||||
);
|
||||
|
||||
45
pgsql/tables/llx_livre.sql
Normal file
45
pgsql/tables/llx_livre.sql
Normal file
@ -0,0 +1,45 @@
|
||||
-- ============================================================================
|
||||
-- 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_livre
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
oscid integer NOT NULL,
|
||||
tms timestamp,
|
||||
status smallint,
|
||||
date_ajout timestamp,
|
||||
ref varchar(12),
|
||||
title varchar(64),
|
||||
annee smallint,
|
||||
description text,
|
||||
prix decimal(15,4),
|
||||
fk_editeur integer,
|
||||
fk_user_author integer,
|
||||
frais_de_port smallint default 1,
|
||||
|
||||
UNIQUE(ref)
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
31
pgsql/tables/llx_livre_to_auteur.sql
Normal file
31
pgsql/tables/llx_livre_to_auteur.sql
Normal file
@ -0,0 +1,31 @@
|
||||
-- ============================================================================
|
||||
-- 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_livre_to_auteur
|
||||
(
|
||||
fk_livre integer NOT NULL,
|
||||
fk_auteur integer NOT NULL,
|
||||
|
||||
UNIQUE(fk_livre, fk_auteur)
|
||||
);
|
||||
|
||||
45
pgsql/tables/llx_newsletter.sql
Normal file
45
pgsql/tables/llx_newsletter.sql
Normal file
@ -0,0 +1,45 @@
|
||||
-- ============================================================================
|
||||
-- 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_newsletter
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
tms timestamp,
|
||||
email_subject varchar(32) NOT NULL,
|
||||
email_from_name varchar(255) NOT NULL,
|
||||
email_from_email varchar(255) NOT NULL,
|
||||
email_replyto varchar(255) NOT NULL,
|
||||
email_body text,
|
||||
target smallint,
|
||||
sql_target text,
|
||||
status smallint NOT NULL DEFAULT 0,
|
||||
date_send_request timestamp, -- debut de l'envoi demandé
|
||||
date_send_begin timestamp, -- debut de l'envoi
|
||||
date_send_end timestamp, -- fin de l'envoi
|
||||
nbsent integer, -- nombre de mails envoyés
|
||||
nberror integer, -- nombre de mails envoyés
|
||||
fk_user_author integer,
|
||||
fk_user_valid integer,
|
||||
fk_user_modif integer
|
||||
);
|
||||
33
pgsql/tables/llx_notify.sql
Normal file
33
pgsql/tables/llx_notify.sql
Normal file
@ -0,0 +1,33 @@
|
||||
-- ===================================================================
|
||||
-- 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_notify
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
daten timestamp, -- date de la notification
|
||||
fk_action integer NOT NULL,
|
||||
fk_contact integer NOT NULL,
|
||||
objet_type CHAR(10) CHECK (objet_type IN ('ficheinter','facture','propale')),
|
||||
objet_id integer NOT NULL
|
||||
);
|
||||
32
pgsql/tables/llx_notify_def.sql
Normal file
32
pgsql/tables/llx_notify_def.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_notify_def
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
datec date, -- date de creation
|
||||
fk_action integer NOT NULL,
|
||||
fk_soc integer NOT NULL,
|
||||
fk_contact integer NOT NULL
|
||||
);
|
||||
35
pgsql/tables/llx_paiementfourn.sql
Normal file
35
pgsql/tables/llx_paiementfourn.sql
Normal file
@ -0,0 +1,35 @@
|
||||
-- ===================================================================
|
||||
-- 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_paiementfourn
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
datec timestamp, -- date de creation de l'enregistrement
|
||||
fk_facture_fourn integer, -- facture
|
||||
datep timestamp, -- date de paiement
|
||||
amount real default 0, -- montant
|
||||
fk_user_author integer, -- auteur
|
||||
fk_paiement integer NOT NULL, -- moyen de paiement
|
||||
num_paiement varchar(50), -- numéro de paiement (cheque)
|
||||
note text
|
||||
);
|
||||
Loading…
Reference in New Issue
Block a user