Pular para o conteúdo principal

Database Schema Overview

Comprehensive overview of the Ever Gauzy database schema.

Core Entity Groups

Key Tables

Multi-Tenancy

TableDescriptionRelations
tenantTop-level isolationHas many organizations
organizationBusiness entityBelongs to tenant
userAuthentication entityBelongs to tenant
rolePermission groupBelongs to tenant
role_permissionRole ↔ permission mappingBelongs to role

Employees & HR

TableDescriptionRelations
employeeEmployee profileBelongs to user
time_logIndividual time entriesBelongs to employee
timesheetWeekly time summaryHas many time_logs
time_slotActivity time slotsBelongs to time_log
screenshotScreen capturesBelongs to time_slot
activityKeyboard/mouse activityBelongs to time_slot
expenseExpense recordsBelongs to employee
incomeIncome recordsBelongs to employee

Project Management

TableDescriptionRelations
projectProject entityBelongs to org
taskWork itemsBelongs to project
sprintSprint iterationsBelongs to project
daily_planDaily work plansBelongs to employee
goalOKR objectivesBelongs to org
goal_kpiKey performance metricBelongs to goal

Accounting

TableDescriptionRelations
invoiceInvoice entityHas many items
invoice_itemLine itemsBelongs to invoice
paymentPayment recordsBelongs to invoice
estimateQuotes/estimatesHas many items

CRM

TableDescriptionRelations
contactClient/lead entityBelongs to org
pipelineSales pipelineHas many stages
dealSales opportunityBelongs to pipeline

Common Columns

All entities inherit from TenantOrganizationBaseEntity:

ColumnTypeDescription
idUUIDPrimary key
tenantIdUUIDTenant scope
organizationIdUUIDOrganization scope
createdAttimestampCreation timestamp
updatedAttimestampLast update
isActivebooleanSoft active flag
isArchivedbooleanArchive flag