BEGIN TRANSACTION;
CREATE TABLE works (
    id serial NOT NULL PRIMARY KEY,
    name text NOT NULL,
    required_level integer DEFAULT 1 NOT NULL,
    money_income numeric(10,0) DEFAULT 1 NOT NULL,
    min_exp integer DEFAULT 1 NOT NULL,
    max_exp integer DEFAULT 1 NOT NULL
);

INSERT INTO works VALUES (1, 'Уборщик в маке', 1, 13000, 20, 28);
INSERT INTO works VALUES (2, 'Рабочий на заводе', 3, 20000, 48, 65);
INSERT INTO works VALUES (3, 'Продавец в пятёрочке', 5, 25000, 76, 103);
INSERT INTO works VALUES (4, 'Учитель', 7, 40000, 104, 141);
INSERT INTO works VALUES (5, 'Повар', 9, 50000, 175, 237);
INSERT INTO works VALUES (6, 'Полицейский', 11, 60000, 260, 351);
INSERT INTO works VALUES (7, 'Художник', 13, 80000, 305, 412);
INSERT INTO works VALUES (8, 'Программист', 15, 100000, 350, 474);

ALTER SEQUENCE works_id_seq RESTART WITH 9;
COMMIT TRANSACTION;