Table: dbo.Spreadsheet_Import_Vendor
Table to store the mapping data information of vendors for spreadsheet import
Columns
Name | Type | Constraints | Description
spreadsheet_import_vendor_KEY | int (4) | NOT NULL | Key which uniquely identify each row of the table.
client_KEY | int (4) | NOT NULL | Client key for which we are importing the spreadsheet data.
vendor_name | nvarchar (318) | NOT NULL | Vendor name provided in the spreadsheet.
is_interim_data | bit (1) | NOT NULL | When the user cancels the import process,the data mapped till that point has to be saved and presented to the user when he starts the import next time.For such mapping data we set the value of this column to true.
vendor_KEY | int (4) |  | Vendor key to which the vendor description in the spreadsheet is mapped to,a null value indicates that it was mapped as Do not import.

Primary key
Name | Columns | Description
PK_Spreadsheet_Import_Vendor | spreadsheet_import_vendor_KEY |
Unique constraints
Name | Columns | Description
UK_Spreadsheet_Import_Vendor$client_KEY$vendor_name | client_KEY, vendor_name |

Foreign keys
Name | Columns | Referenced table | Description
FK_Spreadsheet_Import_Vendor__Client__client_KEY | client_KEY | Client (client_KEY) |
FK_Spreadsheet_Import_Vendor__Vendor__vendor_KEY | vendor_KEY | Vendor (vendor_KEY) |