llx_bom_bomline.sql 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. -- Copyright (C) ---Put here your own copyright and developer email---
  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 https://www.gnu.org/licenses/.
  15. CREATE TABLE llx_bom_bomline(
  16. -- BEGIN MODULEBUILDER FIELDS
  17. rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
  18. fk_bom integer NOT NULL,
  19. fk_product integer NOT NULL,
  20. fk_bom_child integer NULL,
  21. description text,
  22. import_key varchar(14),
  23. qty double(24,8) NOT NULL,
  24. qty_frozen smallint DEFAULT 0,
  25. disable_stock_change smallint DEFAULT 0,
  26. efficiency double(24,8) NOT NULL DEFAULT 1,
  27. fk_unit integer NULL,
  28. position integer NOT NULL DEFAULT 0
  29. -- END MODULEBUILDER FIELDS
  30. ) ENGINE=innodb;