Difference between revisions of "Production.Document (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Production.Document
 
| Production.Document
 +
|- valign="top"
 +
| '''Description
 +
| Product maintenance documents.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| DocumentID
 
| DocumentID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_Document_DocumentID
+
| Primary key for Document records.<br />PK_Document_DocumentID
|
+
|- valign="top"
|-
 
 
| Title
 
| Title
 
| nvarchar(50)
 
| nvarchar(50)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Title of the document.<br />
|
+
|- valign="top"
|-
 
 
| FileName
 
| FileName
 
| nvarchar(400)
 
| nvarchar(400)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Directory path and file name of the document<br />AK_Document_FileName_Revision
| AK_Document_FileName_Revision
+
|- valign="top"
|-
 
 
| FileExtension
 
| FileExtension
 
| nvarchar(8)
 
| nvarchar(8)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| File extension indicating the document type. For example, .doc or .txt.<br />
|
+
|- valign="top"
|-
 
 
| Revision
 
| Revision
 
| nchar(5)
 
| nchar(5)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Revision number of the document. <br />AK_Document_FileName_Revision
| AK_Document_FileName_Revision
+
|- valign="top"
|-
 
 
| ChangeNumber
 
| ChangeNumber
 
| int
 
| int
 
| not null
 
| not null
 
| ((0))
 
| ((0))
|  
+
| Engineering change approval number.<br />
|
+
|- valign="top"
|-
 
 
| Status
 
| Status
 
| tinyint
 
| tinyint
 
| not null
 
| not null
 
|  
 
|  
|  
+
| 1 = Pending approval, 2 = Approved, 3 = Obsolete<br />
|
+
|- valign="top"
|-
 
 
| DocumentSummary
 
| DocumentSummary
 
| nvarchar(max)
 
| nvarchar(max)
 
| null
 
| null
 
|  
 
|  
|  
+
| Document abstract.<br />
|
+
|- valign="top"
|-
 
 
| Document
 
| Document
 
| varbinary(max)
 
| varbinary(max)
 
| null
 
| null
 
|  
 
|  
|  
+
| Complete document.<br />
|
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 103: Line 95:
 
| DocumentID
 
| DocumentID
 
|}
 
|}
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 23:54, 28 December 2009

wikibot

Table Production.Document
Description Product maintenance documents.


Column Data Type Nullable Default Description / PK / Index
DocumentID int not null Primary key for Document records.
PK_Document_DocumentID
Title nvarchar(50) not null Title of the document.
FileName nvarchar(400) not null Directory path and file name of the document
AK_Document_FileName_Revision
FileExtension nvarchar(8) not null File extension indicating the document type. For example, .doc or .txt.
Revision nchar(5) not null Revision number of the document.
AK_Document_FileName_Revision
ChangeNumber int not null ((0)) Engineering change approval number.
Status tinyint not null 1 = Pending approval, 2 = Approved, 3 = Obsolete
DocumentSummary nvarchar(max) null Document abstract.
Document varbinary(max) null Complete document.
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.


Detail Table Column Referencing Column
Production.ProductDocument DocumentID DocumentID


automatically generated

Table Production.Document
Description Product maintenance documents.


Column Data Type Nullable Default Description / PK / Index
DocumentID int not null Primary key for Document records.
PK_Document_DocumentID
Title nvarchar(50) not null Title of the document.
FileName nvarchar(400) not null Directory path and file name of the document
AK_Document_FileName_Revision
FileExtension nvarchar(8) not null File extension indicating the document type. For example, .doc or .txt.
Revision nchar(5) not null Revision number of the document.
AK_Document_FileName_Revision
ChangeNumber int not null (0) Engineering change approval number.
Status tinyint not null 1 = Pending approval, 2 = Approved, 3 = Obsolete
DocumentSummary nvarchar(max) null Document abstract.
Document varbinary(max) null Complete document.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Detail Table Column Referencing Column
Production.ProductDocument DocumentID DocumentID


Dependency Type Object Type Referenced Object
Schema Schema Production