llx_c_paiement.sql 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. -- ========================================================================
  2. -- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. -- Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
  4. -- Copyright (C) 2014 Alexandre Spangaro <aspangaro@open-dsi.fr>
  5. -- Copyright (C) 2017 Regis Houssin <regis.houssin@inodbox.com>
  6. -- Copyright (C) 2022 Juanjo Menent <jmenent@2byte.es>
  7. --
  8. -- This program is free software; you can redistribute it and/or modify
  9. -- it under the terms of the GNU General Public License as published by
  10. -- the Free Software Foundation; either version 3 of the License, or
  11. -- (at your option) any later version.
  12. --
  13. -- This program is distributed in the hope that it will be useful,
  14. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. -- GNU General Public License for more details.
  17. --
  18. -- You should have received a copy of the GNU General Public License
  19. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. --
  21. -- ========================================================================
  22. create table llx_c_paiement
  23. (
  24. id integer AUTO_INCREMENT PRIMARY KEY,
  25. entity integer DEFAULT 1 NOT NULL, -- multi company id
  26. code varchar(6) NOT NULL,
  27. libelle varchar(128),
  28. type smallint, -- 0: input money, 1: output money, 2: input and output, 3: other
  29. active tinyint DEFAULT 1 NOT NULL,
  30. accountancy_code varchar(32) NULL,
  31. module varchar(32) NULL,
  32. position integer NOT NULL DEFAULT 0
  33. )ENGINE=innodb;