llx_asset.sql 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. -- Copyright (C) 2018 Alexandre Spangaro <aspangaro@zendsi.com>
  2. --
  3. -- This program is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, either version 3 of the License, or
  6. -- (at your option) any later version.
  7. --
  8. -- This program is distributed in the hope that it will be useful,
  9. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. -- GNU General Public License for more details.
  12. --
  13. -- You should have received a copy of the GNU General Public License
  14. -- along with this program. If not, see http://www.gnu.org/licenses/.
  15. CREATE TABLE llx_asset(
  16. rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
  17. ref varchar(128) NOT NULL,
  18. entity integer DEFAULT 1 NOT NULL,
  19. label varchar(255),
  20. amount_ht double(24,8) DEFAULT NULL,
  21. amount_vat double(24,8) DEFAULT NULL,
  22. fk_asset_type integer NOT NULL,
  23. description text,
  24. note_public text,
  25. note_private text,
  26. date_creation datetime NOT NULL,
  27. tms timestamp NOT NULL,
  28. fk_user_creat integer NOT NULL,
  29. fk_user_modif integer,
  30. import_key varchar(14),
  31. status integer NOT NULL
  32. ) ENGINE=innodb;