Schema: email_integration
Part of the generated database reference.
email_campaign_links
- Domain:
email_integration Β· Feature gate: always available Β· Migration: 6.5.29-email-crm-campaigns
- Rust source:
botschema/src/email_integration.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| email_id |
UUID |
no |
β |
FK |
emails.id |
| campaign_id |
UUID |
yes |
β |
β |
β |
| list_id |
UUID |
yes |
β |
β |
β |
| sent_at |
TIMESTAMP |
no |
NOW() |
β |
β |
email_crm_links
- Domain:
email_integration Β· Feature gate: always available Β· Migration: 6.5.29-email-crm-campaigns
- Rust source:
botschema/src/email_integration.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| email_id |
UUID |
no |
β |
FK |
emails.id |
| contact_id |
UUID |
yes |
β |
β |
β |
| opportunity_id |
UUID |
yes |
β |
β |
β |
| logged_at |
TIMESTAMP |
no |
NOW() |
β |
β |
email_flags
- Domain:
email_integration Β· Feature gate: always available Β· Migration: 6.5.29-email-crm-campaigns
- Rust source:
botschema/src/email_integration.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| email_id |
UUID |
no |
β |
FK |
emails.id |
| follow_up_date |
DATE |
yes |
β |
β |
β |
| flag_type |
VARCHAR(50) |
yes |
β |
β |
β |
| completed |
BOOLEAN |
no |
FALSE |
β |
β |
| created_at |
TIMESTAMP |
no |
NOW() |
β |
β |
email_nudges
- Domain:
email_integration Β· Feature gate: always available Β· Migration: 6.5.29-email-crm-campaigns
- Rust source:
botschema/src/email_integration.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| email_id |
UUID |
no |
β |
FK |
emails.id |
| last_sent |
TIMESTAMP |
yes |
β |
β |
β |
| dismissed |
BOOLEAN |
no |
FALSE |
β |
β |
| created_at |
TIMESTAMP |
no |
NOW() |
β |
β |
email_snooze
- Domain:
email_integration Β· Feature gate: always available Β· Migration: 6.5.29-email-crm-campaigns
- Rust source:
botschema/src/email_integration.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| email_id |
UUID |
no |
β |
FK |
emails.id |
| snooze_until |
TIMESTAMP |
no |
β |
β |
β |
| created_at |
TIMESTAMP |
no |
NOW() |
β |
β |
feature_flags
- Domain:
email_integration Β· Feature gate: always available Β· Migration: 6.5.29-email-crm-campaigns
- Rust source:
botschema/src/email_integration.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| org_id |
UUID |
no |
β |
FK |
organizations.org_id |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
| feature |
VARCHAR(50) |
no |
β |
β |
β |
| enabled |
BOOLEAN |
no |
FALSE |
β |
β |
| created_at |
TIMESTAMP |
no |
NOW() |
β |
β |