EVENTSALESMETHOD
Connects an Event to a Sales Method
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
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. |
ONSALEDATE |
datetime |
yes |
|
Date tickets are able to be sold to this event using this sales method |
ONSALETIME |
UDT_HOURMINUTE |
|
Default = '' |
Time of day tickets are able to be sold |
ONSALEDATETIMEWITHOFFSET |
datetimeoffset |
yes |
|
On sale date and time stored with UTC offset |
ONSALEDATETIME |
datetime (Computed) |
yes |
dateadd(mi, convert(tinyint, substring(ONSALETIME, 3, 2)), dateadd(hh, convert(tinyint, substring(ONSALETIME, 1, 2)), convert(datetime, convert(date, ONSALEDATE)))) |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
SALESMETHODID |
uniqueidentifier |
yes |
SALESMETHOD.ID
|
FK to SALESMETHOD |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
EVENTID |
uniqueidentifier |
yes |
EVENT.ID
|
FK to EVENT |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_EVENTSALESMETHOD_DATEADDED |
DATEADDED |
|
|
yes |
IX_EVENTSALESMETHOD_DATECHANGED |
DATECHANGED |
|
|
|
PK_EVENTSALESMETHOD |
ID |
yes |
yes |
|
UIX_EVENTSALESMETHOD_EVENTID_SALESMETHODID |
EVENTID, SALESMETHODID |
yes |
|
|
Triggers