Skip to content

Deployments

Deployments are an artifact of calls to pgml.deploy() and pgml.train(). See Deployments for ways to create new deployments manually.

Deployment

Schema

CREATE TABLE IF NOT EXISTS pgml.deployments(
    id BIGSERIAL PRIMARY KEY,
    project_id BIGINT NOT NULL,
    model_id BIGINT NOT NULL,
    strategy pgml.strategy NOT NULL,
    created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT clock_timestamp(),
    CONSTRAINT project_id_fk FOREIGN KEY(project_id) REFERENCES pgml.projects(id) ON DELETE CASCADE,
    CONSTRAINT model_id_fk FOREIGN KEY(model_id) REFERENCES pgml.models(id) ON DELETE CASCADE
);

Comments