79110824

Date: 2024-10-21 15:59:17
Score: 0.5
Natty:
Report link

I would choose the simple way:

CREATE TABLE calls
(
    call_id SERIAL PRIMARY KEY
    /* other fields */
);

CREATE TABLE files
(
    file_id SERIAL PRIMARY KEY,
    call_id INT REFERENCES calls (call_id) ON DELETE CASCADE
    /* other fields */
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nik0x1