Appearance
fileshare database schema
Generated from the EF Core model of Cadence.Apps.Fileshare.Infrastructure.Persistence.FileshareDbContext, not from a live database. Unqualified tables live in the fileshare schema.
| Table | Entity | Columns |
|---|---|---|
fileshare.audit_log_entries | AuditLogEntry | 12 |
fileshare.file_audit_logs | FileAuditLog | 11 |
fileshare.file_records | FileRecord | 34 |
fileshare.guest_links | GuestLink | 12 |
fileshare.playback_audit_logs | PlaybackAuditLog | 12 |
fileshare.share_grants | ShareGrant | 14 |
fileshare.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)
fileshare.file_audit_logs
Entity: FileAuditLog
| 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 | ||
Detail | jsonb | yes | ||
FileRecordId | character varying(36) | no | ||
ReasonForChange | character varying(1000) | no | ||
Timestamp | timestamp with time zone | no | ||
UserId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_file_audit_logs_file_records_FileRecordId: (FileRecordId) referencesfileshare.file_records(Id), on delete restrict
Indexes:
IX_file_audit_logs_Action: (Action)IX_file_audit_logs_FileRecordId: (FileRecordId)IX_file_audit_logs_Timestamp: (Timestamp)IX_file_audit_logs_UserId: (UserId)IX_file_audit_logs_tenant_id: (tenant_id)
fileshare.file_records
Entity: FileRecord
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
ApprovalReason | character varying(1000) | yes | ||
ApprovalStatus | character varying(50) | no | ||
ApprovedAt | timestamp with time zone | yes | ||
ApprovedBy | character varying(255) | yes | ||
ChecksumSha256 | character varying(64) | yes | ||
ConversionError | character varying(2000) | yes | ||
ConversionStatus | character varying(50) | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
Filename | character varying(500) | no | ||
HlsManifestKey | character varying(1000) | yes | ||
HoldReason | character varying(1000) | yes | ||
IsDeleted | boolean | no | ||
IsOnHold | boolean | no | ||
MimeType | character varying(255) | no | ||
ObjectKey | character varying(1000) | no | ||
PdfRenditionKey | character varying(1000) | yes | ||
ReasonForChange | character varying(1000) | no | ||
ScanCompletedAt | timestamp with time zone | yes | ||
ScanEngine | character varying(100) | yes | ||
ScanStatus | character varying(50) | no | ||
ScanThreatName | character varying(255) | yes | ||
SignatureManifestation | jsonb | yes | ||
SiteId | character varying(255) | yes | ||
SizeBytes | bigint | no | ||
Status | character varying(50) | no | ||
StudyId | character varying(255) | no | ||
TranscodeError | character varying(2000) | yes | ||
TranscodeStatus | character varying(50) | no | ||
UploadedAt | timestamp with time zone | no | ||
UploadedBy | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Indexes:
IX_file_records_ApprovedBy: (ApprovedBy)IX_file_records_ChecksumSha256: (ChecksumSha256)IX_file_records_ConversionStatus: (ConversionStatus)IX_file_records_ObjectKey: unique (ObjectKey)IX_file_records_ScanStatus: (ScanStatus)IX_file_records_SiteId: (SiteId)IX_file_records_Status: (Status)IX_file_records_StudyId: (StudyId)IX_file_records_TranscodeStatus: (TranscodeStatus)IX_file_records_UploadedBy: (UploadedBy)IX_file_records_tenant_id: (tenant_id)
fileshare.guest_links
Entity: GuestLink
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
AccessCount | integer | no | ||
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
ExpiresAt | timestamp with time zone | no | ||
FileRecordId | character varying(36) | no | ||
LastAccessedAt | timestamp with time zone | yes | ||
ReasonForChange | character varying(1000) | no | ||
RevokedAt | timestamp with time zone | yes | ||
TokenHmac | character varying(128) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_guest_links_file_records_FileRecordId: (FileRecordId) referencesfileshare.file_records(Id), on delete restrict
Indexes:
IX_guest_links_FileRecordId: (FileRecordId)IX_guest_links_TokenHmac: unique (TokenHmac)IX_guest_links_tenant_id: (tenant_id)
fileshare.playback_audit_logs
Entity: PlaybackAuditLog
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | text | no | ||
Event | character varying(50) | no | ||
FileRecordId | character varying(36) | no | ||
ReasonForChange | character varying(1000) | no | ||
SessionId | character varying(255) | no | ||
Source | character varying(50) | no | ||
Timestamp | timestamp with time zone | no | ||
UserId | character varying(255) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_playback_audit_logs_file_records_FileRecordId: (FileRecordId) referencesfileshare.file_records(Id), on delete restrict
Indexes:
IX_playback_audit_logs_Event: (Event)IX_playback_audit_logs_FileRecordId: (FileRecordId)IX_playback_audit_logs_SessionId: (SessionId)IX_playback_audit_logs_UserId: (UserId)IX_playback_audit_logs_tenant_id: (tenant_id)
fileshare.share_grants
Entity: ShareGrant
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
Id | character varying(36) | no | PK | |
CreatedAt | timestamp with time zone | no | ||
CreatedBy | character varying(255) | no | ||
ExpiresAt | timestamp with time zone | yes | ||
FileRecordId | character varying(36) | no | ||
GrantedByUserId | character varying(255) | no | ||
GrantedToUserId | character varying(255) | yes | ||
IsDeleted | boolean | no | ||
PermissionLevel | character varying(50) | no | ||
ReasonForChange | character varying(1000) | no | ||
RevokedAt | timestamp with time zone | yes | ||
Scope | character varying(50) | no | ||
VersionIndex | bigint | no | ||
tenant_id | uuid | no |
Foreign keys:
FK_share_grants_file_records_FileRecordId: (FileRecordId) referencesfileshare.file_records(Id), on delete restrict
Indexes:
IX_share_grants_FileRecordId: (FileRecordId)IX_share_grants_GrantedToUserId: (GrantedToUserId)IX_share_grants_tenant_id: (tenant_id)