Appearance
knowledge database schema
Generated from the EF Core model of Cadence.Apps.Knowledge.Infrastructure.Persistence.KnowledgeDbContext, not from a live database. Unqualified tables live in the knowledge schema.
| Table | Entity | Columns |
|---|---|---|
knowledge.DelegationRecords | DelegationRecord | 16 |
knowledge.OrgAuditLogs | OrgAuditLog | 10 |
knowledge.TrainingAssignments | TrainingAssignment | 16 |
knowledge.TrainingCertificates | TrainingCertificate | 10 |
knowledge.TrainingCurricula | TrainingCurriculum | 10 |
knowledge.audit_log_entries | AuditLogEntry | 12 |
knowledge.consumed_signature_tokens | ConsumedSignatureToken | 3 |
knowledge.knowledge_article_audit_logs | KnowledgeArticleAuditLog | 13 |
knowledge.knowledge_article_versions | KnowledgeArticleVersion | 12 |
knowledge.knowledge_articles | KnowledgeArticle | 17 |
knowledge.knowledge_categories | KnowledgeCategory | 12 |
knowledge.knowledge_contextual_help_mappings | ContextualHelpMapping | 12 |
knowledge.protocol_knowledge_chunks | ProtocolKnowledgeChunk | 18 |
knowledge.DelegationRecords
Entity: DelegationRecord
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | text | no | PK | |
BatchTransactionId | text | yes | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | text | no | ||
Duties | text | no | ||
PiApprovedAt | timestamp with time zone | yes | ||
PiSignatureHash | text | yes | ||
Role | text | no | ||
SignedOff | boolean | no | ||
SiteId | text | no | ||
StaffName | text | no | ||
StaffUserId | text | no | ||
Status | text | no | ||
StudyId | text | no | ||
TaskCode | text | no | ||
tenant_id | uuid | no |
Indexes:
IX_DelegationRecords_tenant_id: (tenant_id)
knowledge.OrgAuditLogs
Entity: OrgAuditLog
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | text | no | PK | |
Action | text | no | ||
ActorId | text | no | ||
ActorRole | text | no | ||
BatchTransactionId | text | yes | ||
Details | text | no | ||
ReasonForChange | text | no | ||
RecordId | text | yes | ||
Timestamp | timestamp with time zone | no | ||
tenant_id | uuid | no |
Indexes:
IX_OrgAuditLogs_tenant_id: (tenant_id)
knowledge.TrainingAssignments
Entity: TrainingAssignment
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | text | no | PK | |
BatchTransactionId | text | yes | ||
CompletedAt | timestamp with time zone | yes | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | text | no | ||
CurriculumId | text | no | ||
QuizScore | double precision | yes | ||
ReasonForChange | text | no | ||
SiteId | text | no | ||
Status | text | no | ||
StudyId | text | no | ||
TimeSpentSeconds | integer | no | ||
UserId | text | no | ||
UserName | text | no | ||
UserRole | text | no | ||
tenant_id | uuid | no |
Indexes:
IX_TrainingAssignments_tenant_id: (tenant_id)
knowledge.TrainingCertificates
Entity: TrainingCertificate
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | text | no | PK | |
AssignmentId | text | no | ||
BatchTransactionId | text | yes | ||
CreatedAt | timestamp with time zone | no | ||
EtmfArtifactId | text | no | ||
Meaning | text | no | ||
Sha256Seal | text | no | ||
SignerName | text | no | ||
SignerRole | text | no | ||
tenant_id | uuid | no |
Indexes:
IX_TrainingCertificates_tenant_id: (tenant_id)
knowledge.TrainingCurricula
Entity: TrainingCurriculum
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | text | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | text | no | ||
Description | text | yes | ||
IsActive | boolean | no | ||
ProtocolVersion | text | no | ||
ReasonForChange | text | no | ||
StudyId | text | no | ||
Title | text | no | ||
tenant_id | uuid | no |
Indexes:
IX_TrainingCurricula_tenant_id: (tenant_id)
knowledge.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)
knowledge.consumed_signature_tokens
Entity: ConsumedSignatureToken
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
TokenId | character varying(128) | no | PK | |
ConsumedAt | timestamp with time zone | no | ||
RetainUntil | timestamp with time zone | no |
Indexes:
IX_consumed_signature_tokens_RetainUntil: (RetainUntil)
knowledge.knowledge_article_audit_logs
Entity: KnowledgeArticleAuditLog
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
Action | character varying(100) | no | ||
ArticleId | character varying(36) | yes | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
Details | character varying(2000) | yes | ||
NewStatus | character varying(50) | yes | ||
PreviousDigest | character varying(128) | yes | ||
PreviousStatus | character varying(50) | yes | ||
ReasonForChange | character varying(1000) | yes | ||
Sha256Digest | character varying(128) | yes | ||
VersionIndex | integer | no | ||
tenant_id | uuid | no |
Indexes:
IX_knowledge_article_audit_logs_Action: (Action)IX_knowledge_article_audit_logs_ArticleId: (ArticleId)IX_knowledge_article_audit_logs_CreatedAt: (CreatedAt)IX_knowledge_article_audit_logs_CreatedBy: (CreatedBy)IX_knowledge_article_audit_logs_tenant_id: (tenant_id)
knowledge.knowledge_article_versions
Entity: KnowledgeArticleVersion
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ArticleId | character varying(36) | no | ||
BodyHtml | text | yes | ||
BodyMarkdown | text | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
IsLocked | boolean | no | ||
ReasonForChange | character varying(1000) | no | ||
StatusAtSnapshot | character varying(50) | no | ||
VersionIndex | integer | no | ||
VersionLabel | character varying(50) | no | ||
tenant_id | uuid | no |
Indexes:
IX_knowledge_article_versions_ArticleId: (ArticleId)IX_knowledge_article_versions_VersionIndex: (VersionIndex)IX_knowledge_article_versions_tenant_id: (tenant_id)
knowledge.knowledge_articles
Entity: KnowledgeArticle
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ApprovedBy | character varying(255) | yes | ||
AuthorUserId | character varying(255) | no | ||
CategoryId | character varying(36) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
CurrentPublishedVersionId | character varying(36) | yes | ||
IsDeleted | boolean | no | ||
LastEditedBy | character varying(255) | yes | ||
ReasonForChange | character varying(1000) | no | ||
Slug | character varying(255) | no | ||
Status | character varying(50) | no | ||
Tags | text | yes | ||
Title | character varying(500) | no | ||
VersionIndex | integer | no | ||
VersionLabel | character varying(50) | no | ||
tenant_id | uuid | no |
Indexes:
IX_knowledge_articles_CategoryId: (CategoryId)IX_knowledge_articles_CurrentPublishedVersionId: (CurrentPublishedVersionId)IX_knowledge_articles_Status: (Status)IX_knowledge_articles_tenant_id: (tenant_id)IX_knowledge_articles_tenant_id_Slug: unique (tenant_id,Slug)
knowledge.knowledge_categories
Entity: KnowledgeCategory
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
Description | text | yes | ||
IsDeleted | boolean | no | ||
Name | character varying(255) | no | ||
ParentId | character varying(36) | yes | ||
PersonaVisibility | character varying(1000) | yes | ||
ReasonForChange | character varying(1000) | no | ||
Slug | character varying(255) | no | ||
VersionIndex | integer | no | ||
tenant_id | uuid | no |
Indexes:
IX_knowledge_categories_ParentId: (ParentId)IX_knowledge_categories_tenant_id: (tenant_id)IX_knowledge_categories_tenant_id_Name: unique (tenant_id,Name)IX_knowledge_categories_tenant_id_Slug: unique (tenant_id,Slug)
knowledge.knowledge_contextual_help_mappings
Entity: ContextualHelpMapping
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ArticleId | character varying(36) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
IsActive | boolean | no | ||
Persona | character varying(100) | yes | ||
Priority | integer | no | ||
ReasonForChange | character varying(1000) | no | ||
RoutePattern | character varying(500) | no | ||
SectionAnchor | character varying(255) | yes | ||
VersionIndex | integer | no | ||
tenant_id | uuid | no |
Indexes:
IX_knowledge_contextual_help_mappings_ArticleId: (ArticleId)IX_knowledge_contextual_help_mappings_Persona: (Persona)IX_knowledge_contextual_help_mappings_RoutePattern: (RoutePattern)IX_knowledge_contextual_help_mappings_tenant_id: (tenant_id)
knowledge.protocol_knowledge_chunks
Entity: ProtocolKnowledgeChunk
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ChunkIndex | integer | no | ||
ChunkText | text | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
DocumentId | character varying(255) | no | ||
DocumentType | character varying(50) | no | ||
EmbeddingJson | text | yes | ||
IsApproved | boolean | no | ||
PageNumber | integer | no | ||
ProtocolVersion | character varying(50) | no | ||
ReasonForChange | character varying(1000) | no | ||
SectionNumber | character varying(50) | yes | ||
SectionTitle | character varying(500) | no | ||
StudyId | character varying(255) | no | ||
TokenCount | integer | no | ||
VersionIndex | integer | no | ||
tenant_id | uuid | no |
Indexes:
IX_protocol_knowledge_chunks_DocumentId: (DocumentId)IX_protocol_knowledge_chunks_PageNumber: (PageNumber)IX_protocol_knowledge_chunks_ProtocolVersion: (ProtocolVersion)IX_protocol_knowledge_chunks_StudyId: (StudyId)IX_protocol_knowledge_chunks_tenant_id: (tenant_id)