====== pears.PlacementElementType ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Stages in the calculation of fees and other headings for optional data collected at placement time. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **PlacementElementTypeID** | char(20) | NOT NULL | | | | Name | char(30) | NOT NULL | | | | Description | char(50) | NOT NULL | | | | SortOrder | smallint | NULL | | | | Temp | smallint | NULL | 0 | | | Hidden | smallint | NULL | 0 | | | ReadOnly | smallint | NULL | 0 | | | DataType | char(1) | NOT NULL | | | | DefaultValue | long varchar | NULL | | | | ValidationCheck | long varchar | NULL | | | | ValidationMessage | long varchar | NULL | | | | WarningCheck | long varchar | NULL | | | | WarningMessage | long varchar | NULL | | | | AuditFlag | smallint | NULL | 0 | | | CanEditWhenAuthorised | smallint | NULL | 0 | | ===== Primary Key ===== * PlacementElementTypeID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_placementelement|pears.PlacementElement]] | PlacementElementType | PlacementElementTypeID | PlacementElementTypeID | ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | PlacElType_SortOrder | Index | SortOrder | | | PlacElType_Name | Unique index | Name | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."PlacementElementType" -- Table comment: Stages in the calculation of fees and other headings for optional data collected at placement time. -- Statement count: 4 CREATE TABLE "pears"."PlacementElementType" ( "PlacementElementTypeID" char(20) NOT NULL ,"Name" char(30) NOT NULL ,"Description" char(50) NOT NULL ,"SortOrder" smallint NULL ,"Temp" smallint NULL DEFAULT 0 ,"Hidden" smallint NULL DEFAULT 0 ,"ReadOnly" smallint NULL DEFAULT 0 ,"DataType" char(1) NOT NULL ,"DefaultValue" long varchar NULL ,"ValidationCheck" long varchar NULL ,"ValidationMessage" long varchar NULL ,"WarningCheck" long varchar NULL ,"WarningMessage" long varchar NULL ,"AuditFlag" smallint NULL DEFAULT 0 ,"CanEditWhenAuthorised" smallint NULL DEFAULT 0 ,PRIMARY KEY ("PlacementElementTypeID" ASC) ) go COMMENT ON TABLE "pears"."PlacementElementType" IS 'Stages in the calculation of fees and other headings for optional data collected at placement time.' go CREATE INDEX "PlacElType_SortOrder" ON "pears"."PlacementElementType" ( "SortOrder" ) go CREATE UNIQUE INDEX "PlacElType_Name" ON "pears"."PlacementElementType" ( "Name" ) go