llx_website-website.sql 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. CREATE TABLE llx_website
  19. (
  20. rowid integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  21. type_container varchar(16) NOT NULL DEFAULT 'page',
  22. entity integer NOT NULL DEFAULT 1,
  23. ref varchar(128) NOT NULL,
  24. description varchar(255),
  25. maincolor varchar(16),
  26. maincolorbis varchar(16),
  27. lang varchar(8),
  28. otherlang varchar(255),
  29. status integer DEFAULT 1,
  30. fk_default_home integer,
  31. use_manifest integer,
  32. virtualhost varchar(255),
  33. fk_user_creat integer,
  34. fk_user_modif integer,
  35. date_creation datetime,
  36. position integer DEFAULT 0,
  37. lastaccess datetime NULL,
  38. pageviews_month BIGINT UNSIGNED DEFAULT 0,
  39. pageviews_total BIGINT UNSIGNED DEFAULT 0,
  40. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  41. import_key varchar(14) -- import key
  42. ) ENGINE=innodb;