Appearance
ctms database schema
Generated from the EF Core model of Cadence.Apps.Ctms.Infrastructure.Persistence.CtmsDbContext, not from a live database. Unqualified tables live in the ctms schema.
| Table | Entity | Columns |
|---|---|---|
ctms.audit_log_entries | AuditLogEntry | 12 |
ctms.ctms_audit_logs | CtmsAuditLog | 11 |
ctms.ctms_budget_line_items | CtmsBudgetLineItem | 10 |
ctms.ctms_clinical_queries | CtmsClinicalQuery | 11 |
ctms.ctms_cra_allocations | CtmsCraAllocation | 12 |
ctms.ctms_defeated_monitoring_visits | CtmsDefeatedMonitoringVisit | 12 |
ctms.ctms_delegations | CtmsDelegation | 13 |
ctms.ctms_generated_letters | CtmsGeneratedLetter | 17 |
ctms.ctms_investigator_grants | CtmsInvestigatorGrant | 11 |
ctms.ctms_investigator_payables | CtmsInvestigatorPayable | 12 |
ctms.ctms_monitoring_visit_findings | CtmsMonitoringVisitFinding | 12 |
ctms.ctms_monitoring_visits | CtmsMonitoringVisit | 18 |
ctms.ctms_payment_milestones | CtmsPaymentMilestone | 12 |
ctms.ctms_recruitment_records | CtmsRecruitmentRecord | 12 |
ctms.ctms_regulatory_forms | CtmsRegulatoryForm | 14 |
ctms.ctms_site_greenlight_gates | CtmsSiteGreenlightGate | 27 |
ctms.ctms_site_milestones | CtmsSiteMilestone | 12 |
ctms.doa_delegation_records | DoaDelegationRecord | 16 |
ctms.transactional_outbox | TransactionalOutboxMessage | 11 |
ctms.audit_log_entries
Entity: AuditLogEntry
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | uuid | no | PK | |
Action | character varying(50) | no | ||
BlockHash | character varying(64) | no | ||
ChangesJson | text | yes | ||
EntityId | character varying(255) | no | ||
EntityName | character varying(255) | no | ||
PredecessorHash | character varying(64) | no | ||
ReasonForChange | character varying(1000) | no | ||
Timestamp | timestamp with time zone | no | ||
UserId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_audit_log_entries_EntityName_Timestamp: (EntityName,Timestamp)IX_audit_log_entries_tenant_id: (tenant_id)
ctms.ctms_audit_logs
Entity: CtmsAuditLog
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
Action | character varying(50) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | text | no | ||
Details | character varying(1000) | no | ||
ReasonForChange | text | no | ||
Timestamp | timestamp with time zone | no | ||
UserId | character varying(255) | no | ||
UserRole | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_audit_logs_Timestamp: (Timestamp)IX_ctms_audit_logs_UserId: (UserId)IX_ctms_audit_logs_tenant_id: (tenant_id)
ctms.ctms_budget_line_items
Entity: CtmsBudgetLineItem
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
Amount | double precision | no | ||
Category | character varying(100) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
Description | character varying(255) | no | ||
GrantId | character varying(36) | no | ||
ReasonForChange | character varying(1000) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_ctms_budget_line_items_ctms_investigator_grants_GrantId: (GrantId) referencesctms.ctms_investigator_grants(Id), on delete restrict
Indexes:
IX_ctms_budget_line_items_GrantId: (GrantId)IX_ctms_budget_line_items_tenant_id: (tenant_id)
ctms.ctms_clinical_queries
Entity: CtmsClinicalQuery
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
Explanation | character varying(1000) | yes | ||
ReasonForChange | character varying(1000) | no | ||
SiteId | character varying(255) | no | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
VisitId | character varying(255) | yes | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_clinical_queries_SiteId: (SiteId)IX_ctms_clinical_queries_StudyId: (StudyId)IX_ctms_clinical_queries_VisitId: (VisitId)IX_ctms_clinical_queries_tenant_id: (tenant_id)
ctms.ctms_cra_allocations
Entity: CtmsCraAllocation
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CraId | character varying(255) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
EffectiveEndDate | timestamp with time zone | yes | ||
EffectiveStartDate | timestamp with time zone | no | ||
ReasonForChange | character varying(1000) | no | ||
SiteId | character varying(255) | no | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_cra_allocations_CraId: (CraId)IX_ctms_cra_allocations_SiteId: (SiteId)IX_ctms_cra_allocations_StudyId: (StudyId)IX_ctms_cra_allocations_tenant_id: (tenant_id)
ctms.ctms_defeated_monitoring_visits
Entity: CtmsDefeatedMonitoringVisit
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ActualDate | timestamp with time zone | yes | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
DeviceTimestamp | timestamp with time zone | no | ||
Findings | text | yes | ||
OfflineSyncMarkers | jsonb | no | ||
ReasonForChange | character varying(500) | no | ||
Status | character varying(100) | no | ||
VersionIndex | bigint | no | ||
VisitId | character varying(255) | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_defeated_monitoring_visits_VisitId: (VisitId)IX_ctms_defeated_monitoring_visits_tenant_id: (tenant_id)
ctms.ctms_delegations
Entity: CtmsDelegation
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
EndDate | character varying(50) | yes | ||
IsActive | boolean | no | ||
ReasonForChange | character varying(1000) | no | ||
SignedOff | boolean | no | ||
SiteId | character varying(255) | no | ||
StaffUserId | character varying(255) | no | ||
StartDate | character varying(50) | no | ||
TaskCodes | jsonb | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_delegations_SiteId: (SiteId)IX_ctms_delegations_StaffUserId: (StaffUserId)IX_ctms_delegations_tenant_id: (tenant_id)
ctms.ctms_generated_letters
Entity: CtmsGeneratedLetter
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
DispatchedAt | timestamp with time zone | yes | ||
EtmfDocumentId | character varying(100) | yes | ||
IsSigned | boolean | no | ||
LetterType | character varying(50) | no | ||
PdfObjectKey | character varying(1000) | yes | ||
PdfSha256Hash | character varying(64) | yes | ||
ReasonForChange | character varying(1000) | no | ||
RecipientEmail | character varying(255) | yes | ||
RenderedContent | character varying(100000) | no | ||
SignatureManifestation | jsonb | yes | ||
Status | character varying(50) | no | ||
VersionIndex | bigint | no | ||
VisitId | character varying(36) | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_generated_letters_VisitId: (VisitId)IX_ctms_generated_letters_tenant_id: (tenant_id)
ctms.ctms_investigator_grants
Entity: CtmsInvestigatorGrant
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
Currency | character varying(10) | no | ||
ReasonForChange | character varying(1000) | no | ||
SiteId | character varying(255) | no | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
TotalBudget | double precision | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_investigator_grants_SiteId: (SiteId)IX_ctms_investigator_grants_StudyId: (StudyId)IX_ctms_investigator_grants_tenant_id: (tenant_id)
ctms.ctms_investigator_payables
Entity: CtmsInvestigatorPayable
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
Amount | double precision | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
DueDate | timestamp with time zone | yes | ||
GrantId | character varying(36) | no | ||
MilestoneId | character varying(36) | yes | ||
PaidAt | timestamp with time zone | yes | ||
PaymentStatus | character varying(50) | no | ||
ReasonForChange | character varying(1000) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_ctms_investigator_payables_ctms_investigator_grants_GrantId: (GrantId) referencesctms.ctms_investigator_grants(Id), on delete restrictFK_ctms_investigator_payables_ctms_payment_milestones_Mileston~: (MilestoneId) referencesctms.ctms_payment_milestones(Id), on delete set null
Indexes:
IX_ctms_investigator_payables_GrantId: (GrantId)IX_ctms_investigator_payables_MilestoneId: (MilestoneId)IX_ctms_investigator_payables_tenant_id: (tenant_id)
ctms.ctms_monitoring_visit_findings
Entity: CtmsMonitoringVisitFinding
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
OfflineSyncMarkers | jsonb | yes | ||
ReasonForChange | character varying(1000) | no | ||
ResolutionStatus | character varying(50) | no | ||
Severity | character varying(50) | no | ||
SyncStatus | character varying(50) | yes | ||
Text | character varying(1000) | no | ||
VersionIndex | bigint | no | ||
VisitId | character varying(36) | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_monitoring_visit_findings_VisitId: (VisitId)IX_ctms_monitoring_visit_findings_tenant_id: (tenant_id)
ctms.ctms_monitoring_visits
Entity: CtmsMonitoringVisit
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ActualDate | timestamp with time zone | yes | ||
CraId | character varying(255) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
OfflineSyncMarkers | jsonb | yes | ||
ReasonForChange | character varying(1000) | no | ||
ScheduledDate | timestamp with time zone | no | ||
SignatureManifestation | jsonb | yes | ||
Signer | character varying(255) | yes | ||
SigningTimestamp | timestamp with time zone | yes | ||
SiteId | character varying(255) | no | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
SyncStatus | character varying(50) | yes | ||
VersionIndex | bigint | no | ||
VisitType | character varying(50) | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_monitoring_visits_SiteId: (SiteId)IX_ctms_monitoring_visits_StudyId: (StudyId)IX_ctms_monitoring_visits_tenant_id: (tenant_id)
ctms.ctms_payment_milestones
Entity: CtmsPaymentMilestone
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
Amount | double precision | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
GrantId | character varying(36) | no | ||
IsTriggered | boolean | no | ||
MilestoneName | character varying(255) | no | ||
ReasonForChange | character varying(1000) | no | ||
TriggerCondition | character varying(100) | no | ||
TriggeredAt | timestamp with time zone | yes | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_ctms_payment_milestones_ctms_investigator_grants_GrantId: (GrantId) referencesctms.ctms_investigator_grants(Id), on delete restrict
Indexes:
IX_ctms_payment_milestones_GrantId: (GrantId)IX_ctms_payment_milestones_tenant_id: (tenant_id)
ctms.ctms_recruitment_records
Entity: CtmsRecruitmentRecord
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
AsOfDate | timestamp with time zone | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
EnrolledCount | integer | no | ||
ReasonForChange | character varying(1000) | no | ||
ScreenedCount | integer | no | ||
SiteId | character varying(255) | no | ||
StudyId | character varying(255) | no | ||
TargetCount | integer | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_recruitment_records_SiteId: (SiteId)IX_ctms_recruitment_records_StudyId: (StudyId)IX_ctms_recruitment_records_tenant_id: (tenant_id)
ctms.ctms_regulatory_forms
Entity: CtmsRegulatoryForm
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ApprovalStatus | character varying(50) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
FormType | character varying(50) | no | ||
ReasonForChange | character varying(1000) | no | ||
RenderedContent | character varying(100000) | no | ||
SignatureManifestation | jsonb | yes | ||
Signer | character varying(255) | yes | ||
SigningTimestamp | timestamp with time zone | yes | ||
SiteId | character varying(255) | yes | ||
StudyId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_regulatory_forms_SiteId: (SiteId)IX_ctms_regulatory_forms_StudyId: (StudyId)IX_ctms_regulatory_forms_tenant_id: (tenant_id)
ctms.ctms_site_greenlight_gates
Entity: CtmsSiteGreenlightGate
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CountryCode | character varying(10) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
FacetCtaBudget | boolean | no | ||
FacetDoaLog | boolean | no | ||
FacetEisfBaseline | boolean | no | ||
FacetIpRelease | boolean | no | ||
FacetRegulatoryIrb | boolean | no | ||
FacetStaffTraining | boolean | no | ||
GreenlightCertifiedAt | timestamp with time zone | yes | ||
GreenlightCertifiedBy | character varying(255) | yes | ||
GreenlightToken | character varying(1024) | yes | ||
IsOverridden | boolean | no | ||
OverallStatus | character varying(50) | no | ||
OverrideAuthorizedAt | timestamp with time zone | yes | ||
OverrideJustification | character varying(2000) | yes | ||
OverrideMedicalUserId | character varying(255) | yes | ||
OverrideSponsorUserId | character varying(255) | yes | ||
ReadinessPercentage | integer | no | ||
ReasonForChange | character varying(1000) | no | ||
SiteId | character varying(255) | no | ||
SiteName | character varying(255) | no | ||
StudyId | character varying(255) | no | ||
UnfulfilledReasons | character varying(2000) | yes | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_site_greenlight_gates_CountryCode: (CountryCode)IX_ctms_site_greenlight_gates_SiteId: (SiteId)IX_ctms_site_greenlight_gates_StudyId: (StudyId)IX_ctms_site_greenlight_gates_StudyId_CountryCode: (StudyId,CountryCode)IX_ctms_site_greenlight_gates_tenant_id: (tenant_id)
ctms.ctms_site_milestones
Entity: CtmsSiteMilestone
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ActualDate | timestamp with time zone | yes | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
MilestoneType | character varying(100) | no | ||
PlannedDate | timestamp with time zone | yes | ||
ReasonForChange | character varying(1000) | no | ||
SiteId | character varying(255) | no | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_ctms_site_milestones_MilestoneType: (MilestoneType)IX_ctms_site_milestones_SiteId: (SiteId)IX_ctms_site_milestones_StudyId: (StudyId)IX_ctms_site_milestones_tenant_id: (tenant_id)
ctms.doa_delegation_records
Entity: DoaDelegationRecord
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | text | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | text | no | ||
EndDate | timestamp with time zone | yes | ||
IsActive | boolean | no | ||
IsDeleted | boolean | no | ||
PiApprovedAt | timestamp with time zone | yes | ||
PiSignatureHash | text | yes | ||
ReasonForChange | text | no | ||
SiteId | text | no | ||
StaffUserId | text | no | ||
StartDate | timestamp with time zone | no | ||
Status | text | no | ||
TaskCode | text | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_doa_delegation_records_SiteId: (SiteId)IX_doa_delegation_records_StaffUserId: (StaffUserId)IX_doa_delegation_records_TaskCode: (TaskCode)IX_doa_delegation_records_tenant_id: (tenant_id)
ctms.transactional_outbox
Entity: TransactionalOutboxMessage
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | uuid | no | PK | |
AggregateId | character varying(255) | no | ||
AggregateType | character varying(255) | no | ||
Attempts | integer | no | ||
CreatedAt | timestamp with time zone | no | ||
DispatchedAt | timestamp with time zone | yes | ||
EventId | uuid | no | ||
EventType | character varying(255) | no | ||
LastError | character varying(2000) | yes | ||
Payload | text | no | ||
tenant_id | uuid | no |
Indexes:
IX_transactional_outbox_CreatedAt_DispatchedAt: (CreatedAt,DispatchedAt)IX_transactional_outbox_EventId: (EventId)IX_transactional_outbox_tenant_id: (tenant_id)