CREATE TABLE refreshTokens
(
    token TEXT UNIQUE PRIMARY KEY NOT NULL,
    userId UUID REFERENCES users(id) ON DELETE CASCADE,
    ipAddress TEXT NOT NULL,
    role SMALLINT NOT NULL,
    scope SMALLINT NOT NULL,
    expires TIMESTAMP NOT NULL,
    createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
);
