CREATE TABLE oc_gestion_client_group (
    id INT PRIMARY KEY AUTO_INCREMENT,
    client_group_name VARCHAR(255) DEFAULT ''
);

ALTER TABLE oc_gestion_client 
        ADD fk_client_group_id INT NULL;

CREATE TABLE oc_gestion_client_group_discount (
    id INT PRIMARY KEY AUTO_INCREMENT,
    fk_client_group_id INT NOT NULL,
    fk_produit_id INT NOT NULL,
    ht_amount FLOAT NOT NULL
);

CREATE TABLE oc_gestion_client_group_facturation (
    id INT PRIMARY KEY AUTO_INCREMENT,
    group_facturation_name VARCHAR(255) DEFAULT ''
);

ALTER TABLE oc_gestion_client 
    ADD fk_client_group_facturation_id INT NULL;