ADVOCACYPETITION (4.0SP4)

Advocacy Petition

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ACTIONITEMID

uniqueidentifier

false

ActionItemID

CONSTITUENTID

uniqueidentifier

false

ConstituentID

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

SITECONTENTID

int

false

SiteContentId

Fields
Field Field Type Null Notes Description

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.

FEDERALDISTRICTCODE

nvarchar(4)

false

''

UPPERSTATEDISTRICTCODE

nvarchar(5)

false

''

LOWERSTATEDISTRICTCODE

nvarchar(5)

false

''

ISANONYMOUS

bit

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_ADVOCACYPETITION_DATEADDED

DATEADDED

False

False

True

IX_ADVOCACYPETITION_DATECHANGED

DATECHANGED

False

False

False

PK_ADVOCACYPETITION

ID

True

True

False

UIX_ADVOCACYPETITION_ACTIONITEMID_CONSTITUENTID

ACTIONITEMID

CONSTITUENTID

True

False

False

Triggers
Trigger Name Description

TR_ADVOCACYPETITION_AUDIT_UPDATE

TR_ADVOCACYPETITION_AUDIT_DELETE