DealDocuments table
The DealDocuments table in the Shipfolio schema has 12 columns, keyed by Id, with 1 foreign key to Deals. 2 columns in DealDocumentContents and DealSignatures reference it.
Columns (12)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| DealId | uuid | not null, references Deals.Id | |
| UploadedBy | uuid | not null | |
| Kind | varchar(50) | not null | |
| FileName | varchar(200) | not null | |
| ContentType | varchar(120) | not null | |
| SizeBytes | bigint | not null | |
| Sha256 | varchar(64) | not null | |
| Note | varchar(500) | ||
| RequiresSignature | boolean | not null | |
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null |
Indexes (1)
(DealId)(IX_DealDocuments_DealId)
Relationships
DealDocuments.DealIdreferencesDeals.IdDealDocumentContents.DocumentIdreferencesDealDocumentsDealSignatures.DocumentIdreferencesDealDocuments