📄 SKILL.md

← Vault

name: doccorretor-google-drive-migration

description: Migrate documents from Google Drive to DocCorretor — OAuth setup, rclone config, and migration strategies

tags:

- google-drive

- doccorretor

- migration

- oauth


DocCorretor Google Drive Migration

Context

DocCorretor (documentos.rochasalesseguros.com.br) needs to migrate documents from Google Drive. The Drive folder contains documents organized by year > month > client name (uppercase).

⚠️ CRITICAL — Supabase: DocCorretor uses dauftiqcvgaydddoxqhh (SAME Supabase as ComercialRS, but with COMPLETELY DIFFERENT tables). CommercialRS tables: crm_leads, tasks, sales, etc. DocCorretor tables: clients, client_folders, documents, client_upload_links. NEVER confuse them.

Tables:

Migration Options

1. Automatic: Script parses filenames, matches to existing clients, creates folder structure

2. Review mode: List all files first, present plan for user approval before importing

3. Manual selective: User picks which folders/files to import one by one