
    create table PYTHONPERFORMANCE (
        "UUID" raw(16),
        "TIMESTAMP" number,
        "USER" varchar2(20 char),
        "CREATION_DATE" date,
        "TITLE" varchar2(80 char),
        "TOTAL_CALLS" number(10,0),
        "PRIMITIVE_CALLS" number(10,0),
        "TOTAL_TIME" number
    );

    alter table PYTHONPERFORMANCE add constraint PID351DT351 primary key ("UUID");
    alter table PYTHONPERFORMANCE MODIFY ("UUID" DEFAULT SYS_GUID());

    alter table PYTHONPERFORMANCE
        add constraint DT351UUID_NOT_NULL check("UUID" is not null);

    alter table PYTHONPERFORMANCE MODIFY ("TIMESTAMP" DEFAULT 0);
    alter table PYTHONPERFORMANCE MODIFY ("CREATION_DATE" DEFAULT TO_DATE('01.01.1970','DD.MM.YYYY'));
    alter table PYTHONPERFORMANCE MODIFY ("TOTAL_CALLS" DEFAULT 0);
    alter table PYTHONPERFORMANCE MODIFY ("PRIMITIVE_CALLS" DEFAULT 0);
    alter table PYTHONPERFORMANCE MODIFY ("TOTAL_TIME" DEFAULT 0);

    create table PYTHONFUNCTIONCALL (
        "UUID" raw(16),
        "PYTHON_PROFILING" raw(16),
        "CALLED_ROW" raw(16),
        "FILENAME" varchar2(100 char),
        "LINENO" number(10,0),
        "FUNCTION" varchar2(100 char),
        "PRIMITIVE_CALLS" number(10,0),
        "NUMBER_OF_CALLS" number(10,0),
        "TOTAL_TIME" number,
        "CUMULATIVE_TIME" number
    );

    alter table PYTHONFUNCTIONCALL add constraint PID352DT352 primary key ("UUID");

    alter table PYTHONFUNCTIONCALL
        add constraint FKPYTHONFUNCTIONCALLID351
        foreign key ("PYTHON_PROFILING")
        references PYTHONPERFORMANCE
        on delete cascade
        deferrable
        novalidate;

    alter table PYTHONFUNCTIONCALL enable validate constraint FKPYTHONFUNCTIONCALLID351;

    alter table PYTHONFUNCTIONCALL
        add constraint FKPYTHONFUNCTIONCALLID352S
        foreign key ("CALLED_ROW")
        references PYTHONFUNCTIONCALL
        on delete cascade
        deferrable
        novalidate;

    alter table PYTHONFUNCTIONCALL enable validate constraint FKPYTHONFUNCTIONCALLID352S;
    create index IDX_PYTHONFUNCTIONCALLID351 on PYTHONFUNCTIONCALL ("PYTHON_PROFILING");
    create index IDX_PYTHONFUNCTIONCALLID352S on PYTHONFUNCTIONCALL ("CALLED_ROW");
    alter table PYTHONFUNCTIONCALL MODIFY ("UUID" DEFAULT SYS_GUID());

    alter table PYTHONFUNCTIONCALL
        add constraint DT352UUID_NOT_NULL check("UUID" is not null);

    alter table PYTHONFUNCTIONCALL
        add constraint DT352PYTHON_PROFILING_NOT_NULL check("PYTHON_PROFILING" is not null);

    alter table PYTHONFUNCTIONCALL MODIFY ("LINENO" DEFAULT 0);
    alter table PYTHONFUNCTIONCALL MODIFY ("PRIMITIVE_CALLS" DEFAULT 0);
    alter table PYTHONFUNCTIONCALL MODIFY ("NUMBER_OF_CALLS" DEFAULT 0);
    alter table PYTHONFUNCTIONCALL MODIFY ("TOTAL_TIME" DEFAULT 0);
    alter table PYTHONFUNCTIONCALL MODIFY ("CUMULATIVE_TIME" DEFAULT 0);
