CREATE TABLE billing_account (
    account_id BIGSERIAL PRIMARY KEY,
    type_id integer NOT NULL,
    spent bigint DEFAULT 0,
    version bigint DEFAULT 0,
    created_at integer NOT NULL,
    active boolean DEFAULT 'false',
    account_meta text,
    external_id text,
    sprav_id text,

    FOREIGN KEY(type_id) REFERENCES "billing_account_description"(id)
);
