Table: dbo.Client_W2_Rendered_Document
Table used to store pre-rendered documents which are included in the client W2 package; the federal transmittal documents (W3) and state/local client transmittals (names vary by locality)
Columns
Name | Type | Constraints | Description
client_w2_rendered_document_KEY | int (4) | NOT NULL | Primary key for table.
form_year | int (4) | NOT NULL | Filing year of the document
client_KEY | int (4) | NOT NULL | Primary key of the client associated with this row's documents.
report_definition_KEY | int (4) |  | Key of the associated report; a null value means the document is associated with a tax form instead of a report.
facsimile_document | varbinary (-1) |  | Cached ActiveReport page of a particular W2 form, the facsimile copy which includes all form graphics plus field data.
data_only_document | varbinary (-1) |  | Cached ActiveReport page of a particular W2 form, the pre-printed copy which only includes field data, no form graphics.
barcode_overlay_document | varbinary (-1) |  | Cached ActiveReport page of a W2 barcode for the w2 documents. User option to include, so we dynamically overlay when it's required.
tax_form_KEY | int (4) |  | Key of the associated tax form; a null value means the document is associated with a report instead of a tax form.
render_date | smalldatetime (4) | NOT NULL | Date the document was rendered.

Primary key
Name | Columns | Description
PK_Client_W2_Rendered_Document | client_w2_rendered_document_KEY |
Unique constraints
Name | Columns | Description
UK_Client_W2_Rendered_Document$form_year$report_definition_KEY$tax_form_KEY$client_KEY | form_year, report_definition_KEY, tax_form_KEY, client_KEY |

Foreign keys
Name | Columns | Referenced table | Description
FK_Client_W2_Rendered_Document__Client__client_KEY | client_KEY | Client (client_KEY) |
FK_Client_W2_Rendered_Document__Report_Definition__report_definition_KEY | report_definition_KEY | Report_Definition (report_definition_KEY) |
FK_Client_W2_Rendered_Document__Tax_Form__tax_form_KEY | tax_form_KEY | Tax_Form (tax_form_KEY) |