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

From dbscript Online Help
Jump to: navigation, search
Line 103: Line 103:
 
| DocumentID
 
| DocumentID
 
|}
 
|}
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 125: Line 124:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''Description / PK / Index
| '''PK / Index
 
 
 
|-
+
|- valign="top"
 
| DocumentID
 
| DocumentID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Document records.
+
| Primary key for Document records.PK_Document_DocumentID
| PK_Document_DocumentID
+
|- valign="top"
|-
 
 
| Title
 
| Title
 
| nvarchar(50)
 
| nvarchar(50)
Line 141: Line 138:
 
|  
 
|  
 
| Title of the document.
 
| Title of the document.
|
+
|- valign="top"
|-
 
 
| FileName
 
| FileName
 
| nvarchar(400)
 
| nvarchar(400)
 
| not null
 
| not null
 
|  
 
|  
| Directory path and file name of the document
+
| Directory path and file name of the documentAK_Document_FileName_Revision
| AK_Document_FileName_Revision
+
|- valign="top"
|-
 
 
| FileExtension
 
| FileExtension
 
| nvarchar(8)
 
| nvarchar(8)
Line 155: Line 150:
 
|  
 
|  
 
| File extension indicating the document type. For example, .doc or .txt.
 
| File extension indicating the document type. For example, .doc or .txt.
|
+
|- valign="top"
|-
 
 
| Revision
 
| Revision
 
| nchar(5)
 
| nchar(5)
 
| not null
 
| not null
 
|  
 
|  
| Revision number of the document.  
+
| Revision number of the document. AK_Document_FileName_Revision
| AK_Document_FileName_Revision
+
|- valign="top"
|-
 
 
| ChangeNumber
 
| ChangeNumber
 
| int
 
| int
Line 169: Line 162:
 
| (0)
 
| (0)
 
| Engineering change approval number.
 
| Engineering change approval number.
|
+
|- valign="top"
|-
 
 
| Status
 
| Status
 
| tinyint
 
| tinyint
Line 176: Line 168:
 
|  
 
|  
 
| 1 = Pending approval, 2 = Approved, 3 = Obsolete
 
| 1 = Pending approval, 2 = Approved, 3 = Obsolete
|
+
|- valign="top"
|-
 
 
| DocumentSummary
 
| DocumentSummary
 
| nvarchar(max)
 
| nvarchar(max)
Line 183: Line 174:
 
|  
 
|  
 
| Document abstract.
 
| Document abstract.
|
+
|- valign="top"
|-
 
 
| Document
 
| Document
 
| varbinary(max)
 
| varbinary(max)
Line 190: Line 180:
 
|  
 
|  
 
| Complete document.
 
| Complete document.
|
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
Line 197: Line 186:
 
| (GETDATE())
 
| (GETDATE())
 
| Date and time the record was last updated.
 
| Date and time the record was last updated.
|
 
 
|}
 
|}
  

Revision as of 00:57, 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 documentAK_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