1-- ========================================================================
2-- Copyright (C) 2016	Laurent Destailleur	<eldy@users.sourceforge.net>
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 3 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, see <https://www.gnu.org/licenses/>.
16--
17-- ========================================================================
18
19
20CREATE TABLE llx_website
21(
22	rowid         integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
23	type_container varchar(16) NOT NULL DEFAULT 'page',
24	entity        integer NOT NULL DEFAULT 1,
25	ref	          varchar(128) NOT NULL,
26	description   varchar(255),
27	maincolor     varchar(16),
28	maincolorbis  varchar(16),
29	lang          varchar(8),
30	otherlang     varchar(255),
31	status		  integer DEFAULT 1,
32	fk_default_home integer,
33	use_manifest integer,
34	virtualhost   varchar(255),
35    fk_user_creat integer,
36    fk_user_modif integer,
37    date_creation datetime,
38    position      integer DEFAULT 0,
39    lastaccess    datetime NULL,
40    pageviews_month BIGINT UNSIGNED DEFAULT 0,
41    pageviews_total BIGINT UNSIGNED DEFAULT 0,
42	tms           timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
43    import_key    varchar(14)      -- import key
44) ENGINE=innodb;
45