Saltar al contenido 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