Appearance
etmf database schema
Generated from the EF Core model of Cadence.Apps.Etmf.Infrastructure.Persistence.EtmfDbContext, not from a live database. Unqualified tables live in the etmf schema.
| Table | Entity | Columns |
|---|---|---|
etmf.InboxState | InboxState | 11 |
etmf.OutboxMessage | OutboxMessage | 21 |
etmf.OutboxState | OutboxState | 6 |
etmf.audit_log_entries | AuditLogEntry | 12 |
etmf.tmf_audit_ledger_seals | TmfAuditLedgerSeal | 7 |
etmf.tmf_audit_logs | TmfAuditLog | 13 |
etmf.tmf_document_expiration_alert_states | TmfDocumentExpirationAlertState | 13 |
etmf.tmf_document_qc_transitions | TmfDocumentQcTransition | 10 |
etmf.tmf_documents | TmfDocument | 38 |
etmf.tmf_expected_documents | TmfExpectedDocument | 13 |
etmf.tmf_export_jobs | TmfExportJob | 15 |
etmf.InboxState
Entity: InboxState
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | bigint | no | PK | |
Consumed | timestamp with time zone | yes | ||
ConsumerId | uuid | no | ||
Delivered | timestamp with time zone | yes | ||
ExpirationTime | timestamp with time zone | yes | ||
LastSequenceNumber | bigint | yes | ||
LockId | uuid | no | ||
MessageId | uuid | no | ||
ReceiveCount | integer | no | ||
Received | timestamp with time zone | no | ||
RowVersion | bytea | yes |
Indexes:
AK_InboxState_MessageId_ConsumerId: unique constraint (MessageId,ConsumerId)IX_InboxState_Delivered: (Delivered)
etmf.OutboxMessage
Entity: OutboxMessage
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
SequenceNumber | bigint | no | PK | |
Body | text | no | ||
ContentType | character varying(256) | no | ||
ConversationId | uuid | yes | ||
CorrelationId | uuid | yes | ||
DestinationAddress | character varying(256) | yes | ||
EnqueueTime | timestamp with time zone | yes | ||
ExpirationTime | timestamp with time zone | yes | ||
FaultAddress | character varying(256) | yes | ||
Headers | text | yes | ||
InboxConsumerId | uuid | yes | ||
InboxMessageId | uuid | yes | ||
InitiatorId | uuid | yes | ||
MessageId | uuid | no | ||
MessageType | text | no | ||
OutboxId | uuid | yes | ||
Properties | text | yes | ||
RequestId | uuid | yes | ||
ResponseAddress | character varying(256) | yes | ||
SentTime | timestamp with time zone | no | ||
SourceAddress | character varying(256) | yes |
Foreign keys:
FK_OutboxMessage_InboxState_InboxMessageId_InboxConsumerId: (InboxMessageId,InboxConsumerId) referencesetmf.InboxState(MessageId,ConsumerId), on delete no actionFK_OutboxMessage_OutboxState_OutboxId: (OutboxId) referencesetmf.OutboxState(OutboxId), on delete no action
Indexes:
IX_OutboxMessage_EnqueueTime: (EnqueueTime)IX_OutboxMessage_ExpirationTime: (ExpirationTime)IX_OutboxMessage_InboxMessageId_InboxConsumerId_SequenceNumber: unique (InboxMessageId,InboxConsumerId,SequenceNumber)IX_OutboxMessage_OutboxId_SequenceNumber: unique (OutboxId,SequenceNumber)
etmf.OutboxState
Entity: OutboxState
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
OutboxId | uuid | no | PK | |
Created | timestamp with time zone | no | ||
Delivered | timestamp with time zone | yes | ||
LastSequenceNumber | bigint | yes | ||
LockId | uuid | no | ||
RowVersion | bytea | yes |
Indexes:
IX_OutboxState_Created: (Created)
etmf.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)
etmf.tmf_audit_ledger_seals
Entity: TmfAuditLedgerSeal
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
BlockIndex | integer | no | PK | |
CurrentBlockHash | character varying(64) | no | ||
MerkleRootHash | character varying(64) | no | ||
PreviousBlockHash | character varying(64) | no | ||
SealedRecordCount | integer | no | ||
Timestamp | timestamp with time zone | no | ||
tenant_id | uuid | no |
Indexes:
IX_tmf_audit_ledger_seals_tenant_id: (tenant_id)
etmf.tmf_audit_logs
Entity: TmfAuditLog
| 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 | ||
CryptographicSeal | character varying(64) | yes | ||
Details | character varying(1000) | no | ||
DocumentId | character varying(36) | yes | ||
ReasonForChange | character varying(1000) | 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_tmf_audit_logs_DocumentId: (DocumentId)IX_tmf_audit_logs_Timestamp: (Timestamp)IX_tmf_audit_logs_UserId: (UserId)IX_tmf_audit_logs_tenant_id: (tenant_id)
etmf.tmf_document_expiration_alert_states
Entity: TmfDocumentExpirationAlertState
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
AlertedAt | timestamp with time zone | no | ||
Attempts | integer | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
Dispatched | boolean | no | ||
DocumentId | character varying(36) | no | ||
LastError | character varying(1000) | yes | ||
NotificationId | character varying(255) | yes | ||
ReasonForChange | character varying(1000) | no | ||
VersionIndex | bigint | no | ||
WarningWindow | character varying(50) | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_tmf_document_expiration_alert_states_tmf_documents_Document~: (DocumentId) referencesetmf.tmf_documents(Id), on delete restrict
Indexes:
IX_tmf_document_expiration_alert_states_Dispatched: (Dispatched)IX_tmf_document_expiration_alert_states_DocumentId: (DocumentId)IX_tmf_document_expiration_alert_states_DocumentId_WarningWind~: unique (DocumentId,WarningWindow)IX_tmf_document_expiration_alert_states_NotificationId: (NotificationId)IX_tmf_document_expiration_alert_states_WarningWindow: (WarningWindow)IX_tmf_document_expiration_alert_states_tenant_id: (tenant_id)
etmf.tmf_document_qc_transitions
Entity: TmfDocumentQcTransition
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ActorId | character varying(255) | no | ||
ActorRole | character varying(255) | no | ||
DocumentId | character varying(36) | no | ||
FromStatus | character varying(50) | no | ||
ReasonForChange | character varying(1000) | no | ||
Timestamp | timestamp with time zone | no | ||
ToStatus | character varying(50) | no | ||
TransitionSequence | integer | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_tmf_document_qc_transitions_tmf_documents_DocumentId: (DocumentId) referencesetmf.tmf_documents(Id), on delete restrict
Indexes:
IX_tmf_document_qc_transitions_DocumentId: (DocumentId)IX_tmf_document_qc_transitions_DocumentId_TransitionSequence: unique (DocumentId,TransitionSequence)IX_tmf_document_qc_transitions_Timestamp: (Timestamp)IX_tmf_document_qc_transitions_tenant_id: (tenant_id)
etmf.tmf_documents
Entity: TmfDocument
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ApprovalStatus | character varying(50) | no | ||
ArtifactCode | character varying(50) | no | ||
ArtifactType | character varying(255) | no | ||
Content | text | no | ||
ContentChecksum | character varying(64) | yes | ||
CorrelationKey | character varying(255) | yes | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
DocumentOwnerId | character varying(255) | yes | ||
DocumentType | character varying(50) | yes | ||
ExpirationDate | timestamp with time zone | yes | ||
Filename | character varying(255) | no | ||
IdempotencyKey | character varying(255) | yes | ||
IsRedacted | boolean | no | ||
IssueDate | timestamp with time zone | yes | ||
MetadataJson | jsonb | yes | ||
MimeType | character varying(100) | no | ||
ObjectKey | character varying(1000) | yes | ||
ProtocolVersionIndex | integer | yes | ||
ProtocolVersionStatus | character varying(50) | yes | ||
ProtocolVersionTag | character varying(50) | yes | ||
ReasonForChange | character varying(1000) | no | ||
RedactionManifestJson | jsonb | yes | ||
RedactionSourceId | character varying(36) | yes | ||
Section | character varying(255) | no | ||
SignatureManifestation | jsonb | yes | ||
Signer | character varying(255) | yes | ||
SigningTimestamp | timestamp with time zone | yes | ||
SiteId | character varying(255) | yes | ||
SourceSystem | character varying(255) | yes | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
SyncStatus | character varying(50) | yes | ||
TaxonomyVersion | character varying(50) | no | ||
VersionIndex | bigint | no | ||
Zone | integer | no | ||
tenant_id | uuid | no |
Indexes:
IX_tmf_documents_ArtifactCode: (ArtifactCode)IX_tmf_documents_ArtifactType: (ArtifactType)IX_tmf_documents_CorrelationKey: (CorrelationKey)IX_tmf_documents_DocumentOwnerId: (DocumentOwnerId)IX_tmf_documents_DocumentType: (DocumentType)IX_tmf_documents_ExpirationDate: (ExpirationDate)IX_tmf_documents_IdempotencyKey: (IdempotencyKey)IX_tmf_documents_IssueDate: (IssueDate)IX_tmf_documents_ObjectKey: (ObjectKey)IX_tmf_documents_RedactionSourceId: (RedactionSourceId)IX_tmf_documents_SiteId: (SiteId)IX_tmf_documents_StudyId: (StudyId)IX_tmf_documents_Zone: (Zone)IX_tmf_documents_tenant_id: (tenant_id)
etmf.tmf_expected_documents
Entity: TmfExpectedDocument
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ArtifactType | character varying(255) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
MetadataJson | jsonb | yes | ||
Milestone | character varying(255) | no | ||
ReasonForChange | character varying(1000) | no | ||
Section | character varying(255) | yes | ||
SiteId | character varying(255) | yes | ||
StudyId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
Zone | integer | yes | ||
tenant_id | uuid | no |
Indexes:
IX_tmf_expected_documents_ArtifactType: (ArtifactType)IX_tmf_expected_documents_Milestone: (Milestone)IX_tmf_expected_documents_SiteId: (SiteId)IX_tmf_expected_documents_StudyId: (StudyId)IX_tmf_expected_documents_tenant_id: (tenant_id)
etmf.tmf_export_jobs
Entity: TmfExportJob
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(64) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
DownloadUrl | character varying(1000) | yes | ||
ExpiresAt | timestamp with time zone | yes | ||
JobId | text | no | ||
ProcessedDocuments | integer | no | ||
ProgressPercentage | double precision | no | ||
ReasonForChange | character varying(1000) | no | ||
RequestedBy | text | no | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
TotalDocuments | integer | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_tmf_export_jobs_CreatedAt: (CreatedAt)IX_tmf_export_jobs_Status: (Status)IX_tmf_export_jobs_StudyId: (StudyId)IX_tmf_export_jobs_tenant_id: (tenant_id)