BEGIN TRANSACTION;
CREATE TABLE fractions(
    id serial PRIMARY KEY,
    name text,
    owner_id int REFERENCES users(id),
    money decimal(20, 0),
    exp int DEFAULT 0,
    level int DEFAULT 0
);
CREATE UNIQUE INDEX fractions_uindex ON fractions(id);
COMMIT TRANSACTION;