CREATE TABLE orders
(
    id           BIGSERIAL PRIMARY KEY,
    ref_id       varchar,
    partner_id   INTEGER,
    status       VARCHAR,
    amount       DECIMAL   NOT NULL,
    created_at   TIMESTAMP NOT NULL DEFAULT NOW(),
    updated_at   TIMESTAMP NOT NULL DEFAULT NOW(),
    created_by   INTEGER,
    payment_type VARCHAR,
    updated_by   INTEGER
);