PROGRAMLOCATION
Connects an Event Location to a Program
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| ISDEFAULT |
bit |
|
Default = 0 |
|
| 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. |
| SEQUENCE |
int |
|
Default = 0 |
The sequence in which the locations are entered. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| EVENTLOCATIONID |
uniqueidentifier |
|
EVENTLOCATION.ID
|
FK to EVENTLOCATION |
| PROGRAMID |
uniqueidentifier |
|
PROGRAM.ID
|
FK to PROGRAM |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_PROGRAMLOCATION_DATEADDED |
DATEADDED |
|
|
yes |
| IX_PROGRAMLOCATION_DATECHANGED |
DATECHANGED |
|
|
|
| PK_PROGRAMLOCATION |
ID |
yes |
yes |
|
| UIX_PROGRAMLOCATION_PROGRAMID_EVENTLOCATIONID |
PROGRAMID, EVENTLOCATIONID |
yes |
|
|
Triggers