create table f_production_time
(
    id int(7) auto_increment
        primary key,
    time_track_id int(10) default null,
    company int(1) not null,
    order_id int(10) not null,
    group_id int(10) not null,
    task_id int(10) not null,
    user_id int(10) not null,
    device_name varchar(250) not null,
    qty int(10) not null,
    fabric_info text not null,
    disallowed_group int(1) not null,
    other_orders text not null,
    comment text not null,
    start varchar(50) not null,
    end varchar(50) not null,
    finished int(1) not null,
    paused int(1) default 0 not null,
    auto_end int(1) not null,
    exported int(1) not null,
    exported_kurage int(1) not null,
    calculate_several int(1) not null,
    ongoing tinyint default 0 not null,
    stopped tinyint default 1 not null,
    create_date timestamp default CURRENT_TIMESTAMP not null,
    update_date timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP
)
    charset=utf8;
