llx_website_page-website.sql 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_page
  19. (
  20. rowid integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  21. fk_website integer NOT NULL,
  22. type_container varchar(16) NOT NULL DEFAULT 'page',
  23. pageurl varchar(255) NOT NULL,
  24. aliasalt varchar(255),
  25. title varchar(255),
  26. description varchar(255),
  27. image varchar(255),
  28. keywords varchar(255),
  29. lang varchar(6),
  30. fk_page integer,
  31. allowed_in_frames integer DEFAULT 0,
  32. htmlheader text,
  33. content mediumtext, -- text is not enough in size
  34. status integer DEFAULT 1,
  35. grabbed_from varchar(255),
  36. fk_user_creat integer,
  37. fk_user_modif integer,
  38. author_alias varchar(64),
  39. date_creation datetime,
  40. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  41. import_key varchar(14), -- import key
  42. object_type varchar(255), -- To link page to an object
  43. fk_object varchar(255) -- To link page to an object
  44. ) ENGINE=innodb;