Difference between revisions of "Production.Document (table)"
(7 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
| '''Table | | '''Table | ||
| Production.Document | | Production.Document | ||
− | |- | + | |- valign="top" |
+ | | '''Description | ||
+ | | Product maintenance documents. | ||
|} | |} | ||
− | + | === Columns === | |
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 15: | Line 17: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''Description |
− | + | ||
− | + | |- valign="top" | |
− | |- | ||
| DocumentID | | DocumentID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Primary key for Document records. |
− | + | |- valign="top" | |
− | |- | ||
| Title | | Title | ||
| nvarchar(50) | | nvarchar(50) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Title of the document. |
− | + | |- valign="top" | |
− | |- | ||
| FileName | | FileName | ||
| nvarchar(400) | | nvarchar(400) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Directory path and file name of the document |
− | + | |- valign="top" | |
− | |- | ||
| FileExtension | | FileExtension | ||
| nvarchar(8) | | nvarchar(8) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | 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. |
− | + | |- valign="top" | |
− | |- | ||
| ChangeNumber | | ChangeNumber | ||
| int | | int | ||
| not null | | not null | ||
| ((0)) | | ((0)) | ||
− | | | + | | Engineering change approval number. |
− | + | |- valign="top" | |
− | |- | ||
| Status | | Status | ||
| tinyint | | tinyint | ||
| not null | | not null | ||
| | | | ||
− | | | + | | 1 = Pending approval, 2 = Approved, 3 = Obsolete |
− | + | |- valign="top" | |
− | |- | ||
| DocumentSummary | | DocumentSummary | ||
| nvarchar(max) | | nvarchar(max) | ||
| null | | null | ||
| | | | ||
− | | | + | | Document abstract. |
− | + | |- valign="top" | |
− | |- | ||
| Document | | Document | ||
| varbinary(max) | | varbinary(max) | ||
| null | | null | ||
| | | | ||
− | | | + | | Complete document. |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated. |
− | | | + | |} |
+ | |||
+ | === Primary Key === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Primary Key | ||
+ | | '''Columns | ||
+ | |- valign="top" | ||
+ | | PK_Document_DocumentID | ||
+ | | DocumentID | ||
+ | |} | ||
+ | |||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |||
+ | |- valign="top" | ||
+ | | AK_Document_FileName_Revision | ||
+ | | Unique | ||
+ | | FileName, Revision | ||
|} | |} | ||
+ | === Check Constraints === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Check Constraint | ||
+ | | '''Expression | ||
+ | | '''Description | ||
+ | |- valign="top" | ||
+ | | CK_Document_Status | ||
+ | | ([Status]>=(1) AND [Status]<=(3)) | ||
+ | | Check constraint [Status] BETWEEN (1) AND (3) | ||
+ | |} | ||
+ | === Detail Tables === | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 97: | Line 123: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[Production.ProductDocument_(table)|Production.ProductDocument]] | | [[Production.ProductDocument_(table)|Production.ProductDocument]] | ||
| DocumentID | | DocumentID | ||
| DocumentID | | DocumentID | ||
|} | |} | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Production_(schema)|Production]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Line 110: | Line 152: | ||
| Production.Document | | Production.Document | ||
|- valign="top" | |- valign="top" | ||
− | |||
| '''Description | | '''Description | ||
| Product maintenance documents. | | Product maintenance documents. | ||
|- | |- | ||
− | |||
|} | |} | ||
Line 205: | Line 245: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
| '''Referenced Object | | '''Referenced Object | ||
− | |||
− | |||
|- | |- | ||
− | |||
| Schema | | Schema | ||
| Schema | | Schema | ||
+ | | [[Production_(schema)|Production]] | ||
+ | |||
|} | |} |
Latest revision as of 00:16, 24 June 2010
Contents
wikibot[edit]
Table | Production.Document |
Description | Product maintenance documents. |
Columns[edit]
Column | Data Type | Nullable | Default | Description |
DocumentID | int | not null | Primary key for Document records. | |
Title | nvarchar(50) | not null | Title of the document. | |
FileName | nvarchar(400) | not null | Directory path and file name of the document | |
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. | |
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. |
Primary Key[edit]
Primary Key | Columns |
PK_Document_DocumentID | DocumentID |
Indexes[edit]
Index | Type | Columns |
AK_Document_FileName_Revision | Unique | FileName, Revision |
Check Constraints[edit]
Check Constraint | Expression | Description |
CK_Document_Status | ([Status]>=(1) AND [Status]<=(3)) | Check constraint [Status] BETWEEN (1) AND (3) |
Detail Tables[edit]
Detail Table | Column | Referencing Column |
Production.ProductDocument | DocumentID | DocumentID |
References[edit]
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Production |
automatically generated[edit]
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 |