create table category_users
(
    id          bigint unsigned auto_increment
        primary key,
    user_id     bigint unsigned not null,
    category_id bigint unsigned not null,
    created_at  timestamp       null,
    updated_at  timestamp       null,
    constraint category_user_category_id_foreign
        foreign key (category_id) references categories (id)
            on delete cascade,
    constraint category_user_user_id_foreign
        foreign key (user_id) references users (id)
            on delete cascade
)
    collate = utf8mb4_unicode_ci;

