-- Copyright (C) 2026 Eduard Wisch <data@data-it-solution.de>
--
-- Großhändler-Konfiguration für IDS Connect
--

CREATE TABLE llx_idsconnect_supplier (
    rowid           integer AUTO_INCREMENT PRIMARY KEY,
    ref             varchar(128) NOT NULL,
    label           varchar(255) NOT NULL,
    fk_soc          integer DEFAULT NULL,
    ids_url         varchar(512) NOT NULL,
    ids_version     varchar(10) DEFAULT '2.5',
    ids_customer_no varchar(128) NOT NULL,
    ids_username    varchar(255) NOT NULL,
    ids_password    varchar(512) NOT NULL,
    testmode        smallint DEFAULT 1,
    active          smallint DEFAULT 1,
    note_public     text,
    note_private    text,
    date_creation   datetime NOT NULL,
    tms             timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    fk_user_creat   integer NOT NULL,
    fk_user_modif   integer,
    entity          integer DEFAULT 1 NOT NULL
) ENGINE=InnoDB;
