Skip to content

Instantly share code, notes, and snippets.

@luizlealdev
Created July 4, 2025 17:45
Show Gist options
  • Save luizlealdev/c6c7b7f0082e620626586259b2e189f3 to your computer and use it in GitHub Desktop.
Save luizlealdev/c6c7b7f0082e620626586259b2e189f3 to your computer and use it in GitHub Desktop.
Datebases table prefix

🇺🇸 English

Prefix Meaning / Usage Example
tb_ Table (commonly used for main data tables) tb_users, tb_orders
ref_ Reference / lookup (static or predefined values) ref_status, ref_roles
rel_ Relationship between two tables (many-to-many) rel_user_roles, rel_product_tags
log_ Log or history of actions log_access, log_errors
tmp_ Temporary (transitional or processing data) tmp_import_data
cfg_ Configuration or system settings cfg_settings, cfg_limits
sys_ System (internal system control tables) sys_migrations, sys_tasks
audit_ Audit (change tracking or historical data) audit_users, audit_payments
queue_ Queue (asynchronous jobs or processing) queue_emails, queue_jobs

🇧🇷 Português

Prefixo Significado / Uso Exemplo
tb_ Tabela (geralmente usado para dados principais) tb_users, tb_orders
ref_ Referência / lookup (valores fixos) ref_status, ref_roles
rel_ Relacionamento entre duas tabelas (N:N) rel_user_roles, rel_product_tags
log_ Logs / histórico de ações log_access, log_errors
tmp_ Temporária (dados transitórios ou de processamento) tmp_import_data
cfg_ Configuração ou parâmetros do sistema cfg_settings, cfg_limits
sys_ Sistema (tabelas de controle interno do sistema) sys_migrations, sys_tasks
audit_ Auditoria (registro de alterações) audit_users, audit_payments
queue_ Fila (processos assíncronos, jobs, etc) queue_emails, queue_jobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment