-- music notation table

CREATE TABLE music_notations (
    id character varying(64) NOT NULL DEFAULT uuid_generate_v4(),
    user_id varchar(64) NOT NULL REFERENCES users(id) ON DELETE CASCADE,
    music_session_id VARCHAR(64) REFERENCES music_sessions(id) ON DELETE CASCADE,
    file_url varchar(512) DEFAULT NULL,
    size integer,
    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);