Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.ConsentTypeOption ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== Options for each Consent Type (GDPR) ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **ConsentTypeOptionID** | char(20) | NOT NULL | | | | ConsentTypeID | char(20) | NULL | | | | Name | char(100) | NOT NULL | | | | Notes | long varchar | NULL | | | | IsWithdraw | smallint | NULL | 0 | | | SortOrder | smallint | NULL | | | | HidePersonDetails | smallint | NULL | 0 | Do not allow selecting, automatic only | | NeedsDate | smallint | NULL | 0 | ask withdraw date flag | ===== Primary Key ===== * ConsentTypeOptionID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | ConsentType | ConsentTypeID | [[database:tables:pears_consenttype|pears.ConsentType (ConsentTypeID)]] | ON DELETE CASCADE | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_consentpersonoption|pears.ConsentPersonOption]] | ConsentTypeOption | ConsentTypeOptionID | ConsentTypeOptionID | | [[database:tables:pears_consentpersonoptionhistory|pears.ConsentPersonOptionHistory]] | ConsentTypeOption | ConsentTypeOptionID | ConsentTypeOptionID | ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."ConsentTypeOption" -- Table comment: Options for each Consent Type (GDPR) -- Statement count: 5 CREATE TABLE "pears"."ConsentTypeOption" ( "ConsentTypeOptionID" char(20) NOT NULL ,"ConsentTypeID" char(20) NULL ,"Name" char(100) NOT NULL ,"Notes" long varchar NULL ,"IsWithdraw" smallint NULL DEFAULT 0 ,"SortOrder" smallint NULL ,"HidePersonDetails" smallint NULL DEFAULT 0 ,"NeedsDate" smallint NULL DEFAULT 0 ,PRIMARY KEY ("ConsentTypeOptionID" ASC) ) go COMMENT ON COLUMN "pears"."ConsentTypeOption"."HidePersonDetails" IS 'Do not allow selecting, automatic only' go COMMENT ON COLUMN "pears"."ConsentTypeOption"."NeedsDate" IS 'ask withdraw date flag' go COMMENT ON TABLE "pears"."ConsentTypeOption" IS 'Options for each Consent Type (GDPR)' go ALTER TABLE "pears"."ConsentTypeOption" ADD FOREIGN KEY "ConsentType" ("ConsentTypeID" ASC) REFERENCES "pears"."ConsentType" ("ConsentTypeID") ON DELETE CASCADE go </code> database/tables/pears_consenttypeoption.txt Last modified: 2026/08/07 19:24by 127.0.0.1