PATTERN (4.0SP17)

Pattern

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

TIMETABLEID

uniqueidentifier

false

The timetable for which this pattern is defined

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

The name of the pattern.

DESCRIPTION

nvarchar(255)

false

''

The description of the pattern.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ISACTIVE

bit

false

1

Indicated whether a pattern is active or inactive

Indexes
Index Name Field(s) Unique Primary Clustered

IX_PATTERN_DATEADDED

DATEADDED

False

False

True

IX_PATTERN_DATECHANGED

DATECHANGED

False

False

False

PK_PATTERN

ID

True

True

False

UIX_PATTERN_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_PATTERN_AUDIT_UPDATE

TR_PATTERN_AUDIT_DELETE

Referenced by
Referenced by Field

COURSERESTRICTION

PATTERNID

PATTERNBLOCK

PATTERNID