SALESMETHOD
Sales method for a Program
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
TYPECODE |
tinyint |
|
Default = 0 |
The type of sales method. |
ISACTIVE |
bit |
|
Default = 1 |
Indicates whether this sales method is available |
SEQUENCE |
int |
|
Default = 0 |
Defines the default order for the sales methods |
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. |
DONATIONAVAILABLE |
bit |
|
Default = 1 |
Indicates if donations can be sold through this sales method |
TYPE |
nvarchar(13) (Computed) |
yes |
CASE [TYPECODE] WHEN 0 THEN N'Daily Sales' WHEN 1 THEN N'Advance Sales' WHEN 2 THEN N'Online Sales' WHEN 3 THEN N'Group Sales' END |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SALESMETHOD_DATEADDED |
DATEADDED |
|
|
yes |
IX_SALESMETHOD_DATECHANGED |
DATECHANGED |
|
|
|
PK_SALESMETHOD |
ID |
yes |
yes |
|
UC_SALESMETHOD_TYPECODE |
TYPECODE |
yes |
|
|
Triggers
Referenced by