CREATE TABLE user_roles
(
    user_role_id SERIAL PRIMARY KEY,
    user_id      INTEGER REFERENCES users (id) ON DELETE CASCADE,
    role_id      INTEGER REFERENCES roles (role_id) ON DELETE CASCADE,
    partner_id   INTEGER,
    created_at   TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at   TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

INSERT INTO user_roles(user_id, role_id)
VALUES (1, 1);