Put PRIMARY KEY after a column type to make that column the identifier for each row. PostgreSQL then requires a value and rejects repeated IDs.
CREATE TABLE jobs (id integer PRIMARY KEY, title text);
INSERT INTO jobs VALUES (7, 'backup');Create services with id integer as its primary key, followed by name text. Insert the service api with ID 10.