CREATE TABLE drive_public_share_access (
    token TEXT PRIMARY KEY,
    first_access_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    last_access_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    access_count BIGINT NOT NULL DEFAULT 0
);

CREATE INDEX idx_drive_public_share_access_last ON drive_public_share_access (last_access_at DESC);
