[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/mysql/tables/ -> llx_societe.sql (source)

   1  -- ========================================================================
   2  -- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
   3  --
   4  -- This program is free software; you can redistribute it and/or modify
   5  -- it under the terms of the GNU General Public License as published by
   6  -- the Free Software Foundation; either version 2 of the License, or
   7  -- (at your option) any later version.
   8  --
   9  -- This program is distributed in the hope that it will be useful,
  10  -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  -- GNU General Public License for more details.
  13  --
  14  -- You should have received a copy of the GNU General Public License
  15  -- along with this program; if not, write to the Free Software
  16  -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17  --
  18  -- $Id: llx_societe.sql,v 1.18 2005/07/26 09:25:38 hregis Exp $
  19  -- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_societe.sql,v $
  20  --
  21  -- ========================================================================
  22  
  23  create table llx_societe
  24  (
  25    idp                integer AUTO_INCREMENT PRIMARY KEY,
  26    id                 varchar(32),                         -- private id
  27    active             smallint       DEFAULT 0,            --
  28    parent             integer        DEFAULT 0,            --
  29    tms                timestamp,
  30    datec                 datetime,                            -- creation date
  31    datea                 datetime,                            -- activation date
  32    nom                varchar(60),                         -- company name
  33    code_client        varchar(15),                         -- code client
  34    code_fournisseur   varchar(15),                         -- code founisseur
  35    code_compta        varchar(15),                         -- code compta client
  36    code_compta_fournisseur  varchar(15),                         -- code compta founisseur
  37    address            varchar(255),                        -- company adresse
  38    cp                 varchar(10),                         -- zipcode
  39    ville              varchar(50),                         -- town
  40    fk_departement     integer        DEFAULT 0,            --
  41    fk_pays            integer        DEFAULT 0,            --
  42    tel                varchar(20),                         -- phone number
  43    fax                varchar(20),                         -- fax number
  44    url                varchar(255),                        --
  45    fk_secteur         integer        DEFAULT 0,            --
  46    fk_effectif        integer        DEFAULT 0,            --
  47    fk_typent          integer        DEFAULT 0,            --
  48    fk_forme_juridique integer        DEFAULT 0,            -- forme juridique INSEE
  49    siren                 varchar(9),                          -- siren ou RCS
  50    siret              varchar(14),                         -- numero de siret
  51    ape                varchar(4),                          -- code ape
  52    tva_intra          varchar(20),                         -- tva intracommunautaire
  53    capital            real,                                -- capital de la société
  54    description        text,                                --
  55    fk_stcomm          smallint       DEFAULT 0,            -- commercial statut
  56    note               text,                                --
  57    services           integer        DEFAULT 0,            --
  58    prefix_comm        varchar(5),                          -- prefix commercial
  59    client             integer        DEFAULT 0,            -- client oui/non
  60    fournisseur        smallint       DEFAULT 0,            -- fournisseur oui/non
  61    rubrique           varchar(255),                        -- champ rubrique libre
  62    fk_user_creat      integer,                             -- utilisateur qui a créé l'info
  63    fk_user_modif      integer,                             -- utilisateur qui a modifié l'info
  64    remise_client      real           DEFAULT 0             -- remise systématique pour le client
  65  )type=innodb;
  66  


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics