create table f_users
(
    user_id int(3) unsigned auto_increment
		primary key,
    user_auth0_id int default 0 not null,
    old_id int(10) not null,
    user_pass text null,
    user_level tinyint(1) not null,
    user_name text null,
    user_initials varchar(10) not null,
    user_prefix varchar(5) not null,
    user_company int(3) not null,
    user_position text null,
    is_company_admin tinyint(1) default 0 not null comment 'Indicates if the user is an administrator for their company',
    user_email text null,
    user_cc_email varchar(250) default '' not null,
    user_tel varchar(200) not null,
    user_birthday int(1) not null,
    user_active tinyint(1) default 0 not null,
    can_login int(1) not null,
    multifactor_auth int default 0 not null,
    disable_auth0_until varchar(10) null comment 'date until when auth0 is disabled',
    user_door_id int(10) not null,
    user_rfo int(2) not null,
    user_show_login_change int(1) not null,
    user_same_user int(10) not null,
    user_for_production int(1) not null,
    user_system_orders int default 0 not null,
    user_logins tinyint(2) default 0 not null,
    user_start_page varchar(30) not null,
    user_pgroups text not null,
    user_results int(5) not null,
    user_currency varchar(5) not null,
    user_tubecutting int(1) not null,
    user_boxing_station int default 0 not null comment 'Flag to identify tube boxing users boxing stations that determine what pgroups should be visible',
    user_show_prices int(1) not null,
    user_units varchar(2) default 'mm' not null,
    system_lang int(1) not null,
    user_orders_emails text not null,
    user_show_orders int(1) not null,
    user_show_groups int(1) default 1 not null,
    user_show_addresses int(1) default 1 not null,
    user_show_systems int(1) default 1 not null,
    user_stock int not null,
    user_stock_default int(3) not null,
    user_show_rfo int(1) default 1 not null,
    user_show_category int(1) default 1 not null,
    user_show_summe int(1) default 1 not null,
    user_show_qty int(1) default 1 not null,
    user_show_ordered int(1) default 1 not null,
    user_show_total int(1) default 1 not null,
    user_show_alert int(1) default 1 not null,
    user_show_order int(1) default 1 not null,
    user_show_weight int(1) default 1 not null,
    user_show_project_production_prices int(1) not null,
    show_project_without_prices int(1) not null,
    user_view_as int(1) not null,
    user_custom_ids text not null,
    user_stock_access varchar(255) null,
    user_stock_order_duplicate int(1) not null,
    user_stock_label_print_access tinyint default 0 not null,
    user_deviations int(1) not null,
    user_token text not null,
    user_token_date varchar(20) default '0000-00-00' not null,
    user_login_date varchar(20) default '0000-00-00' not null,
    modification_date timestamp default current_timestamp() not null,
    user_tripletex_integration int default 0 not null,
    employee_token text not null,
    user_alert_qty tinyint(1) not null,
    pragma_id varchar(11) default '0' not null,
    excluded_from_pragma_report int(1) not null,
    work_time varchar(20) default '08:00' null,
    create_date timestamp default current_timestamp() not null,
    update_date timestamp default current_timestamp() not null on update current_timestamp()
)
    charset=utf8mb3;

