dolibarr/htdocs/install/mysql/tables/llx_establishment.sql

43 lines
1.5 KiB
MySQL
Raw Normal View History

2015-10-09 06:41:36 +02:00
-- ============================================================================
2019-01-28 21:39:22 +01:00
-- Copyright (C) 2015 Alexandre Spangaro <aspangaro@open-dsi.fr>
2015-10-09 06:41:36 +02:00
--
-- 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 3 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
2019-09-23 21:55:30 +02:00
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
2015-10-09 06:41:36 +02:00
--
-- ============================================================================
--
-- Structure de la table llx_establishment
--
2016-03-31 17:06:10 +02:00
CREATE TABLE llx_establishment (
2015-10-09 06:41:36 +02:00
rowid integer NOT NULL auto_increment PRIMARY KEY,
entity integer NOT NULL DEFAULT 1,
2020-05-29 21:45:50 +02:00
ref varchar(30),
name varchar(128),
2015-10-09 06:41:36 +02:00
address varchar(255),
zip varchar(25),
town varchar(50),
fk_state integer DEFAULT 0,
fk_country integer DEFAULT 0,
profid1 varchar(20),
profid2 varchar(20),
profid3 varchar(20),
phone varchar(20),
fk_user_author integer NOT NULL,
2016-08-31 18:46:47 +02:00
fk_user_mod integer,
2015-10-09 06:41:36 +02:00
datec datetime NOT NULL,
tms timestamp NOT NULL,
2015-10-10 08:50:55 +02:00
status tinyint DEFAULT 1
2020-07-28 09:44:48 +02:00
) ENGINE=innodb;
2015-10-09 06:41:36 +02:00