Table: dbo.Spreadsheet_Import_Vendor
Table to store the mapping data information of vendors for spreadsheet import
Columns
NameTypeConstraintsDescription
spreadsheet_import_vendor_KEYint (4)NOT NULLKey which uniquely identify each row of the table.
client_KEYint (4)NOT NULLClient key for which we are importing the spreadsheet data.
vendor_namenvarchar (318)NOT NULLVendor name provided in the spreadsheet.
is_interim_databit (1)NOT NULLWhen 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_KEYint (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
NameColumnsDescription
PK_Spreadsheet_Import_Vendorspreadsheet_import_vendor_KEY
Unique constraints
NameColumnsDescription
UK_Spreadsheet_Import_Vendor$client_KEY$vendor_nameclient_KEY, vendor_name
Foreign keys
NameColumnsReferenced tableDescription
FK_Spreadsheet_Import_Vendor__Client__client_KEYclient_KEYClient (client_KEY)
FK_Spreadsheet_Import_Vendor__Vendor__vendor_KEYvendor_KEYVendor (vendor_KEY)

Schema diagram