MKTSEED
Stores information pertaining to a seed person.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
INACTIVE |
bit |
|
Default = 0 |
Stores a seed's active status. |
FIRSTNAME |
nvarchar(50) |
|
Default = '' |
Stores a seed's first name. |
MIDDLENAME |
nvarchar(50) |
|
Default = '' |
Stores a seed's middle name. |
LASTNAME |
nvarchar(100) |
|
Default = '' |
Stores a seed's last name. |
ADDRESSBLOCK |
nvarchar(150) |
|
Default = '' |
Stores the seed's mailing address lines. |
CITY |
nvarchar(50) |
|
Default = '' |
Stores the seed's mailing address city. |
POSTCODE |
nvarchar(12) |
|
Default = '' |
Stores the seed's mailing address post code. |
CART |
nvarchar(10) |
|
Default = '' |
Stores the seed's mailing address carrier route (CART). |
DPC |
nvarchar(8) |
|
Default = '' |
Stores the seed's mailing address delivery point code. |
LOT |
nvarchar(5) |
|
Default = '' |
Stores the seed's mailing address LOT. |
PHONENUMBER |
nvarchar(100) |
|
Default = '' |
Stores the seed's phone number. |
EMAILADDRESS |
UDT_EMAILADDRESS |
|
Default = '' |
Stores the seed's email address. |
DATEADDED |
datetime |
|
Default = getdate() |
Indicates the date this record was added. |
DATECHANGED |
datetime |
|
Default = getdate() |
Indicates the date this record was last changed. |
TS |
timestamp |
|
|
Timestamp. |
TSLONG |
bigint (Computed) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
NAME |
nvarchar(154) (Computed) |
yes |
CASE [FIRSTNAME] WHEN '' THEN '' ELSE [FIRSTNAME] + ' ' END + CASE [MIDDLENAME] WHEN '' THEN '' ELSE LEFT([MIDDLENAME],1) + '. ' END + [LASTNAME] |
Returns the seed's name (First + Middle Initial + Last). |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
TITLECODEID |
uniqueidentifier |
yes |
TITLECODE.LOCALID
|
Stores the seed's title. |
SUFFIXCODEID |
uniqueidentifier |
yes |
SUFFIXCODE.LOCALID
|
Stores the seed's suffix. |
COUNTRYID |
uniqueidentifier |
yes |
COUNTRY.LOCALID
|
Stores the seed's mailing address country. |
STATEID |
uniqueidentifier |
yes |
STATE.LOCALID
|
Stores the seed's mailing address state. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
SITEID |
uniqueidentifier |
yes |
SITE.ID
|
The site to which this seed belongs. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_MKTSEED_COUNTRYID |
COUNTRYID |
|
|
|
IX_MKTSEED_DATEADDED |
DATEADDED |
|
|
yes |
IX_MKTSEED_DATECHANGED |
DATECHANGED |
|
|
|
IX_MKTSEED_LASTNAME |
LASTNAME |
|
|
|
IX_MKTSEED_SITEID |
SITEID |
|
|
|
IX_MKTSEED_STATEID |
STATEID |
|
|
|
PK_MKTSEED |
ID |
yes |
yes |
|
Triggers
Referenced by