CREATE TABLE audit_logs (
    id SERIAL,
    user_name VARCHAR (128),
    service_id INTEGER NOT NULL,
    resource_name VARCHAR (400),
    resource_type VARCHAR (128),
    result VARCHAR (128),
    action VARCHAR (128),
    timestamp TIMESTAMP,

    PRIMARY KEY (id),
    CONSTRAINT service_id_fkey FOREIGN KEY (service_id) REFERENCES services (id)
      ON UPDATE CASCADE
);
