| AdventureWorks Database > Production Schema : Production.Document Table |
| Creation Date | 08/01/2010 08:40 |
| File Group | PRIMARY |
| Text File Group | PRIMARY |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 9 |
| Data Space Used | 344.00 KB |
| Index Space Used | 24.00 KB |
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| DocumentID | Primary key for Document records. | int | 4 | |||
| Title | Title of the document. | nvarchar | 50 | ||||
| FileName | Directory path and file name of the document | nvarchar | 400 | ||||
| FileExtension | File extension indicating the document type. For example, .doc or .txt. | nvarchar | 8 | ||||
| Revision | Revision number of the document. | nchar | 5 | ||||
| ChangeNumber | Engineering change approval number. | int | 4 | ((0)) | |||
| Status | 1 = Pending approval, 2 = Approved, 3 = Obsolete | tinyint | 1 | ||||
| DocumentSummary | Document abstract. | nvarchar | 16 | ![]() | |||
| Document | Complete document. | varbinary | 16 | ![]() | |||
| ModifiedDate | Date and time the record was last updated. | datetime | 4 | (getdate()) |
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_Document_FileName_Revision | Unique nonclustered index. | ![]() | |
| PK_Document_DocumentID | Primary key (clustered) constraint | ![]() | ![]() |
| Name | Description | Expression |
|---|---|---|
| CK_Document_Status | Check constraint [Status] BETWEEN (1) AND (3) | ([Status]>=(1) AND [Status]<=(3)) |
| Relationship | Description |
|---|---|
| FK_ProductDocument_Document_DocumentID | Foreign key constraint referencing Document.DocumentID. |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Production.ProductDocument | Table | Cross-reference table mapping products to related product documents. | 1 |
|