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

From dbscript Online Help
Jump to: navigation, search
Line 131: Line 131:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Document records.PK_Document_DocumentID
+
| Primary key for Document records.<br />PK_Document_DocumentID
 
|- valign="top"
 
|- valign="top"
 
| Title
 
| Title
Line 137: Line 137:
 
| not null
 
| not null
 
|  
 
|  
| Title of the document.
+
| Title of the document.<br />
 
|- valign="top"
 
|- valign="top"
 
| FileName
 
| FileName
Line 143: Line 143:
 
| not null
 
| not null
 
|  
 
|  
| Directory path and file name of the documentAK_Document_FileName_Revision
+
| Directory path and file name of the document<br />AK_Document_FileName_Revision
 
|- valign="top"
 
|- valign="top"
 
| FileExtension
 
| FileExtension
Line 149: Line 149:
 
| not null
 
| not null
 
|  
 
|  
| File extension indicating the document type. For example, .doc or .txt.
+
| File extension indicating the document type. For example, .doc or .txt.<br />
 
|- valign="top"
 
|- valign="top"
 
| Revision
 
| Revision
Line 155: Line 155:
 
| not null
 
| not null
 
|  
 
|  
| Revision number of the document. AK_Document_FileName_Revision
+
| Revision number of the document. <br />AK_Document_FileName_Revision
 
|- valign="top"
 
|- valign="top"
 
| ChangeNumber
 
| ChangeNumber
Line 161: Line 161:
 
| not null
 
| not null
 
| (0)
 
| (0)
| Engineering change approval number.
+
| Engineering change approval number.<br />
 
|- valign="top"
 
|- valign="top"
 
| Status
 
| Status
Line 167: Line 167:
 
| not null
 
| not null
 
|  
 
|  
| 1 = Pending approval, 2 = Approved, 3 = Obsolete
+
| 1 = Pending approval, 2 = Approved, 3 = Obsolete<br />
 
|- valign="top"
 
|- valign="top"
 
| DocumentSummary
 
| DocumentSummary
Line 173: Line 173:
 
| null
 
| null
 
|  
 
|  
| Document abstract.
+
| Document abstract.<br />
 
|- valign="top"
 
|- valign="top"
 
| Document
 
| Document
Line 179: Line 179:
 
| null
 
| null
 
|  
 
|  
| Complete document.
+
| Complete document.<br />
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 185: Line 185:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.
+
| Date and time the record was last updated.<br />
 
|}
 
|}
  

Revision as of 01:10, 27 November 2009

wikibot

Table Production.Document


Column Data Type Nullable Default PK Index
DocumentID int not null PK_Document_DocumentID
Title nvarchar(50) not null
FileName nvarchar(400) not null AK_Document_FileName_Revision
FileExtension nvarchar(8) not null
Revision nchar(5) not null AK_Document_FileName_Revision
ChangeNumber int not null ((0))
Status tinyint not null
DocumentSummary nvarchar(max) null
Document varbinary(max) null
ModifiedDate datetime not null (getdate())


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