mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-19 07:51:29 +01:00
54 lines
2.7 KiB
SQL
54 lines
2.7 KiB
SQL
-- ========================================================================
|
|
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
|
--
|
|
-- $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 societe
|
|
(
|
|
idp SERIAL,
|
|
id varchar(32), -- private id
|
|
active smallint default 0, --
|
|
parent integer default 0, --
|
|
tms timestamp,
|
|
datec timestamp, -- creation date
|
|
datea timestamp, -- activation date
|
|
nom varchar(60), -- company name
|
|
address varchar(255), -- company adresse
|
|
cp varchar(10), -- zipcode
|
|
ville varchar(50), -- town
|
|
fk_pays integer default 0, --
|
|
tel varchar(20), -- phone number
|
|
fax varchar(20), -- fax number
|
|
url varchar(255), --
|
|
fk_secteur integer default 0, --
|
|
fk_effectif integer default 0, --
|
|
fk_typent integer default 0, --
|
|
siren varchar(9), --
|
|
description text, --
|
|
fk_stcomm smallint default 0, -- commercial statut
|
|
note text, --
|
|
services integer default 0, --
|
|
prefix_comm varchar(5), -- prefix commercial
|
|
client smallint default 0, -- client oui/non
|
|
fournisseur smallint default 0 -- fournisseur oui/non
|
|
);
|
|
|
|
create unique index societe_prefix_comm on societe(prefix_comm);
|