Skip to main content

Notification Service Data Model

Auto-generated from TypeORM entity definitions. Last synced: 2026-03-15

Database schema: notif

EmailBranding

Table: email_branding

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
tenantIdvarcharNo-Yes-
logoUrlvarcharYes---
primaryColorvarcharNo--#2563eb
secondaryColorvarcharNo--#6b7280
footerTexttextYes---
replyToAddressvarcharYes---
companyNamevarcharNo--Cloud Factory
createdAtDateNo---
updatedAtDateNo---

NotificationPreference

Table: notification_preferences

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
tenantIduuidNo---
userIduuidNo---
eventTypevarcharNo---
emailEnabledbooleanNo--true
inAppEnabledbooleanNo--true
createdAtDateNo---
updatedAtDateNo---

NotificationTemplate

Table: notification_templates

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
eventTypevarcharNo---
typevarcharNo---
subjectvarcharNo---
bodytextNo---
descriptionvarcharYes---
categoryvarcharYes---
sampleVariablesjsonbYes---
versionintNo--1
activebooleanNo--true
createdAtDateNo---
updatedAtDateNo---

Notification

Table: notifications

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
tenantIduuidNo---
userIduuidNo---
typevarcharNo---
eventTypevarcharNo---
subjectvarcharNo---
bodytextNo---
statusvarcharNo--NotificationStatus.PENDING
metadatajsonbYes---
emailTovarcharYes---
readbooleanNo--false
readAttimestampYes---
sentAttimestampYes---
errorMessagevarcharYes---
createdAtDateNo---
updatedAtDateNo---