
--up
CREATE TABLE zoho_tokens (
    id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
    access_token text NOT NULL,
    refresh_token text NOT NULL,
    client_id text NOT NULL,
    client_secret text NOT NULL,
    scope text NOT NULL,
    api_domain text NOT NULL,
    token_type text NOT NULL,
    expires_in integer NOT NULL,
    expires_at timestamp without time zone NOT NULL,
    created_at timestamp without time zone NOT NULL DEFAULT now()
);

--down
DROP TABLE zoho_tokens;
