CREATE TABLE APPOINTMENTSCHEDULEDATEOVERRIDE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, OVERRIDDENENDTIME TIME, OVERRIDDENMAXCOUNT INTEGER, OVERRIDDENSTARTTIME TIME, OVERRIDEDATE DATE, OVERRIDETYPE VARCHAR(255), REASON VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, TEMPLATE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE TRIGGERSUBSCRIPTION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, EDITEDAT DATETIME, ORDERNUMBER DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TRIGGERTYPE INTEGER, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, WEBUSERROLE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STOCKBILL (ID BIGINT AUTO_INCREMENT NOT NULL, STOCKVALUEASCOSTRATE DOUBLE, STOCKVALUEASSALERATE DOUBLE, STOCKVALUEATPURCHASERATES DOUBLE, BILL_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INVESTIGATIONVALIDATOR (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, EDITEDAT DATETIME, MAXIMUMVALUE DOUBLE, MINIMUMVALUE DOUBLE, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, EDITOR_ID BIGINT, INVESTIGATIONVALIDATECOMPONENT_ID BIGINT, ITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLFINANCEDETAILS (ID BIGINT AUTO_INCREMENT NOT NULL, ACTUALNETVALUE DECIMAL(18,4), BILLCOSTVALUE DECIMAL(18,4), BILLDISCOUNT DECIMAL(20,4), BILLEXPENSE DECIMAL(20,4), BILLEXPENSESCONSIDEREDFORCOSTING DECIMAL(18,4), BILLEXPENSESNOTCONSIDEREDFORCOSTING DECIMAL(18,4), BILLGROSSTOTAL DECIMAL(18,4), BILLNETTOTAL DECIMAL(18,4), BILLTAXVALUE DECIMAL(18,4), CREATEDAT DATETIME, GROSSTOTAL DECIMAL(18,4), ITEMTAXVALUE DECIMAL(18,4), LINECOSTVALUE DECIMAL(18,4), LINEDISCOUNT DECIMAL(18,4), LINEEXPENSE DECIMAL(20,4), LINEGROSSTOTAL DECIMAL(18,4), LINENETTOTAL DECIMAL(18,4), NETTOTAL DECIMAL(18,4), NETVALUEADJUSTMENT DECIMAL(18,4), TOTALAFTERADJUSTMENTVALUE DECIMAL(18,4), TOTALBEFOREADJUSTMENTVALUE DECIMAL(18,4), TOTALBILLVALUE DECIMAL(20,4), TOTALCOSTVALUE DECIMAL(38,4), TOTALCOSTVALUEFREE DECIMAL(18,4), TOTALCOSTVALUENONFREE DECIMAL(18,4), TOTALDISCOUNT DECIMAL(20,4), TOTALEXPENSE DECIMAL(20,4), TOTALFREEQUANTITY DECIMAL(18,4), TOTALFREEQUANTITYINATOMICUNITOFMEASUREMENT DECIMAL(18,4), TOTALOFFREEITEMVALUES DECIMAL(18,4), TOTALOFFREEITEMVALUESFREE DECIMAL(18,4), TOTALOFFREEITEMVALUESNONFREE DECIMAL(18,4), TOTALPURCHASEVALUE DECIMAL(20,4), TOTALPURCHASEVALUEFREE DECIMAL(18,4), TOTALPURCHASEVALUENONFREE DECIMAL(18,4), TOTALQUANTITY DECIMAL(18,4), TOTALQUANTITYINATOMICUNITOFMEASUREMENT DECIMAL(18,4), TOTALRETAILSALEVALUE DECIMAL(20,4), TOTALRETAILSALEVALUEFREE DECIMAL(18,4), TOTALRETAILSALEVALUENONFREE DECIMAL(18,4), TOTALTAXVALUE DECIMAL(18,4), TOTALWHOLESALEVALUE DECIMAL(18,4), TOTALWHOLESALEVALUEFREE DECIMAL(18,4), TOTALWHOLESALEVALUENONFREE DECIMAL(18,4), CREATEDBY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CATEGORY (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), CATEGORYTYPE VARCHAR(255), CODE VARCHAR(255), CREATEDAT DATETIME, DBLVALUE DOUBLE, DESCRIPTION VARCHAR(255), FILLED TINYINT(1) default 0, LONGVALUE BIGINT, NAME VARCHAR(255), ORDERNO INTEGER, POINTESFORTHOUSAND DOUBLE, PROFITMARGIN DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SALEMARGIN DOUBLE, SYMANTICTYPE INTEGER, WHOLESALEMARGIN DOUBLE, CREATER_ID BIGINT, INSTITUTION_ID BIGINT, PARENTCATEGORY_ID BIGINT, PAYMENTSCHEME_ID BIGINT, RETIRER_ID BIGINT, DURATIONINHOURS DOUBLE, DURATIONUNIT TINYINT(1) default 0, FREQUENCYINHOURS DOUBLE, FREQUENCYUNIT TINYINT(1) default 0, ISSUEUNIT TINYINT(1) default 0, PACKUNIT TINYINT(1) default 0, STRENGTHUNIT TINYINT(1) default 0, SPECIALITY_ID BIGINT, STAFF_ID BIGINT, BED_STATUS VARCHAR(255), SVGCHILDVIEW LONGTEXT, ADDITIONTOCOUNT INTEGER, ADMISSIONFEE DOUBLE, ADMISSIONTYPEENUM VARCHAR(255), ALLOWTOCALCULATEMARGIN TINYINT(1) default 0, GENERATESEPARATEADMISSIONNUMBER TINYINT(1) default 0, INWARDPACKAGE TINYINT(1) default 0, ROOMCHARGESALLOWED TINYINT(1) default 0, ROOMFACILITYCHARGE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STOCKHISTORYARCHIVE (ID BIGINT NOT NULL, ARCHIVEDAT DATETIME, COSTRATE DOUBLE, CREATEDAT DATETIME, FROMDATE DATETIME, HISTORYTYPE VARCHAR(255), HXDATE INTEGER, HXMONTH INTEGER, HXWEEK INTEGER, HXYEAR BIGINT, INSTITUIONBATCHQTY DOUBLE, INSTITUTIONBATCHSTOCKVALUEATCOSTRATE DOUBLE, INSTITUTIONBATCHSTOCKVALUEATPURCHASERATE DOUBLE, INSTITUTIONBATCHSTOCKVALUEATSALERATE DOUBLE, INSTITUTIONITEMSTOCK DOUBLE, INSTITUTIONITEMSTOCKVALUEATCOSTRATE DOUBLE, INSTITUTIONITEMSTOCKVALUEATPURCHASERATE DOUBLE, INSTITUTIONITEMSTOCKVALUEATSALERATE DOUBLE, ITEMSTOCK DOUBLE, ITEMSTOCKVALUEATCOSTRATE DOUBLE, ITEMSTOCKVALUEATPURCHASERATE DOUBLE, ITEMSTOCKVALUEATSALERATE DOUBLE, PURCHASERATE DOUBLE, RETAILRATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STOCKAT DATE, STOCKCOSTVALUE DOUBLE, STOCKPURCHASEVALUE DOUBLE, STOCKQTY DOUBLE, STOCKSALEVALUE DOUBLE, TODATE DATETIME, TOTALBATCHQTY DOUBLE, TOTALBATCHSTOCKVALUEATCOSTRATE DOUBLE, TOTALBATCHSTOCKVALUEATPURCHASERATE DOUBLE, TOTALBATCHSTOCKVALUEATSALERATE DOUBLE, TOTALITEMSTOCK DOUBLE, TOTALITEMSTOCKVALUEATCOSTRATE DOUBLE, TOTALITEMSTOCKVALUEATPURCHASERATE DOUBLE, TOTALITEMSTOCKVALUEATSALERATE DOUBLE, WHOLESALERATE DOUBLE, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, ITEMBATCH_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PBITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEM (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), AGENCYNUMBERS VARCHAR(255), ALLOWFRACTIONS TINYINT(1) default 0, ALLOWTOSENDSMS TINYINT(1) default 0, ALLOWEDFORBILLINGPRIORITY TINYINT(1) default 0, ALTERNATIVEREPORTALLOWED TINYINT(1) default 0, BARCODE VARCHAR(255), BASEUNITSPERISSUEUNIT DOUBLE, BILLABLE TINYINT(1) default 0, CALCULATEDREQUERD TINYINT(1) default 0, CANREMOVEITEMFROMPACKAGE TINYINT(1) default 0, CANSECHDULEFOROTHERDAYS TINYINT(1) default 0, CANUPLOADPATINRTREPORT TINYINT(1) default 0, CASHNUMBERS VARCHAR(255), CHARGESVISIBLEFORINWARD TINYINT(1) default 0, CODE VARCHAR(255), CODESYSTEM VARCHAR(255), COMMENTS LONGTEXT, CONSIDEREDFORCOSTING TINYINT(1) default 0, CONSUMPTIONALLOWED TINYINT(1) default 0 NOT NULL, CREATEDAT DATETIME, CREDITNUMBERS VARCHAR(255), DBLVALUE DOUBLE, DEPARTMENTTYPE VARCHAR(255), DESCREPTION LONGTEXT, DISCOUNTALLOWED TINYINT(1) default 0, EDITEDAT DATETIME, EFFECTIVEFROM DATE, EFFECTIVETO DATE, EXPIRYDATE DATETIME, FORBILLTYPE VARCHAR(255), FORGENDER LONGTEXT, FORMATABLE TINYINT(1) default 0, FULLNAME VARCHAR(255), HASMORETHANONECOMPONANT TINYINT(1) default 0, HASREPORTFORMAT TINYINT(1) default 0, INACTIVE TINYINT(1) default 0, INSTRUCTIONS LONGTEXT, INWARDCHARGETYPE VARCHAR(255), ISMASTERITEM TINYINT(1) default 0, ISSUEMULTIPLIESQUANTITY DOUBLE, ISSUETYPE VARCHAR(255), ISSUEUNITSPERPACKUNIT DOUBLE, ITEMBARCODEGENERATIONSTRATEGY INTEGER, ITEMID BIGINT, ITEMTYPE VARCHAR(255), LASTBARCODE BIGINT, MARGINNOTALLOWED TINYINT(1) default 0, MAXTABLEROWS INTEGER, MINIMUMISSUEQUANTITY DOUBLE, MULTIPLEREPORTSALLOWED TINYINT(1) default 0, NAME VARCHAR(255), NUMBEROFDAYSTOMARKASSHORTEXPIARY INTEGER, ORDERNO INTEGER, PATIENTNOTREQUIRED TINYINT(1) default 0, PRICEBYBATCH TINYINT(1) default 0, PRINTFEESFORBILLS TINYINT(1) default 0, PRINTNAME VARCHAR(255), PRINTSESSIONNUMBER TINYINT(1) default 0, PRIORITY VARCHAR(255), PROFITMARGIN DOUBLE, REFUNDSALLOWED TINYINT(1) default 0, REQUESTFORQUENTITY TINYINT(1) default 0, RESERVENAME VARCHAR(255), RESERVENUMBERS VARCHAR(255), RESERVENUMBERSFORFIRSTVISIT VARCHAR(255), RESERVENUMBERSFORSUBSEQUENTVISITS VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SCANFEE TINYINT(1) default 0, SESSIONNUMBERTYPE INTEGER, SHORTNAME VARCHAR(255), SNAME VARCHAR(255), STRENGTHOFANISSUEUNIT DOUBLE, SYMANTICTYPE VARCHAR(255), TNAME VARCHAR(255), TOTAL DOUBLE, TOTALFORFOREIGNER DOUBLE, USERCHANGABLE TINYINT(1) default 0, VATPERCENTAGE DOUBLE, VATABLE TINYINT(1) default 0, AMP_ID BIGINT, BASEUNIT_ID BIGINT, BILLEDAS_ID BIGINT, CATEGORY_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, DOSAGEFORM_ID BIGINT, EDITER_ID BIGINT, FINANCIALCATEGORY_ID BIGINT, FORDEPARTMENT_ID BIGINT, FORINSTITUTION_ID BIGINT, IMPORTER_ID BIGINT, INSTITUTION_ID BIGINT, ISSUEMULTIPLIESUNIT_ID BIGINT, ISSUEUNIT_ID BIGINT, MACHINE_ID BIGINT, MANUFACTURER_ID BIGINT, MASTERITEMREFERENCE_ID BIGINT, MEASUREMENTUNIT_ID BIGINT, MINIMUMISSUEQUANTITYUNIT_ID BIGINT, PACKUNIT_ID BIGINT, PARENTITEM_ID BIGINT, REPORTFORMAT_ID BIGINT, REPORTEDAS_ID BIGINT, RETIRER_ID BIGINT, SPECIALITY_ID BIGINT, STAFF_ID BIGINT, STRENGTHUNIT_ID BIGINT, VMP_ID BIGINT, VMPP_ID BIGINT, VTM_ID BIGINT, WORKSHEET_ID BIGINT, REPORTITEM_ID BIGINT, ATM_ID BIGINT, SAMPLEVOLUME DOUBLE, BYPASSSAMPLEWORKFLOW TINYINT(1) default 0, REPORTTYPE VARCHAR(255), INVESTIGATIONCATEGORY_ID BIGINT, INVESTIGATIONTUBE_ID BIGINT, SAMPLE_ID BIGINT, ACCEPTONLINEBOOKINGS TINYINT(1) default 0, ACTIONS LONGTEXT, ACTIVITIES LONGTEXT, CANCHANGEPATIENT TINYINT(1) default 0, CONTINUENUMBERS TINYINT(1) default 0, DATAENTRYFORMS LONGTEXT, DEACTIVATECOMMENT VARCHAR(255), DEACTIVATED TINYINT(1) default 0, DISPLAYCOUNT INTEGER, DISPLAYPERCENT DOUBLE, DURATION DOUBLE, ENDINGTIME DATETIME, EXCLUDEFROMPATIENTPORTAL TINYINT(1) default 0, MAXNO INTEGER, NOTIFICATIONROLES LONGTEXT, NUMBERINCREMENT INTEGER, NUMBEROFDAYSFORAUTOMATICINSTANCECREATION INTEGER, PAIDAPPOINTMENTSONLY TINYINT(1) default 0, RECERVEDNUMBERS INTEGER, REFUNDABLE TINYINT(1) default 0, ROOMNO INTEGER, SESSIONAT TIME, SESSIONDATE DATE, SESSIONSTARTINGNUMBER VARCHAR(255), SESSIONTIME TIME, SESSIONWEEKDAY INTEGER, SPECIALNOTICE LONGTEXT, STARTINGNO INTEGER, STARTINGTIME DATETIME, ORIGINATINGSESSION_ID BIGINT, SESSIONNUMBERGENERATOR_ID BIGINT, AFTERSESSION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STOCKVARIENTBILLITEM (ID BIGINT AUTO_INCREMENT NOT NULL, ADJUSTEDSTOCK DOUBLE, CALCULATEDSTOCK DOUBLE, CREATEDAT DATETIME, PHYSICALSTOCK DOUBLE, PURCHASERATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SYSTEMSTOCK DOUBLE, BILL_ID BIGINT, CREATER_ID BIGINT, ITEM_ID BIGINT, REFERENCESTOCKVARIANTBILLITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTDEPOSIT (ID BIGINT AUTO_INCREMENT NOT NULL, BALANCE DOUBLE, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PATIENT_ID BIGINT, RETIRER_ID BIGINT, SITE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFSALARY (ID BIGINT AUTO_INCREMENT NOT NULL, ACCOUNTNO VARCHAR(255), ADJUSTMENTTOALLOWANCE DOUBLE, ADJUSTMENTTOBASIC DOUBLE, BASICRATEPERMINUTE DOUBLE, BASICVALUE DOUBLE, BLOCKED TINYINT(1) default 0, BLOCKEDCOMMENT VARCHAR(255), BLOCKEDDATE DATETIME, BRVALUE DOUBLE, CHEQUEDATE DATE, CHEQUENUMBEROVERTIME VARCHAR(255), CHEQUENUMBERSALARY VARCHAR(255), CHEQUENUMBERSALARYANDOVERTIME VARCHAR(255), COMMENTS VARCHAR(255), COMPONENTVALUEADDITION DOUBLE, COMPONENTVALUESUBSTRACTION DOUBLE, CREATEDAT DATETIME, DAYOFFALLOWANCE DOUBLE, DAYOFFCOUNT DOUBLE, EPFBANKACCOUNT VARCHAR(255), EPFCOMPANYVALUE DOUBLE, EPFSTAFFVALUE DOUBLE, ETFCOMPANYVALUE DOUBLE, ETFSATFFVALUE DOUBLE, EXTRADUTYDAYOFFMINUTE DOUBLE, EXTRADUTYDAYOFFVALUE DOUBLE, EXTRADUTYMERCHANTILEMINUTE DOUBLE, EXTRADUTYMERCHANTILEVALUE DOUBLE, EXTRADUTYNORMALMINUTE DOUBLE, EXTRADUTYNORMALVALUE DOUBLE, EXTRADUTYPOYAMINUTE DOUBLE, EXTRADUTYPOYAVALUE DOUBLE, EXTRADUTYSLEEPINGDAYMINUTE DOUBLE, EXTRADUTYSLEEPINGDAYVALUE DOUBLE, HOLD TINYINT(1) default 0, HOLDCOMMENT VARCHAR(255), HOLDDATE DATETIME, HOLDPAID TINYINT(1) default 0, HOLDPAIDAT DATETIME, LATENOPAYALLOVANCEVALUE DOUBLE, LATENOPAYBASICVALUE DOUBLE, LATENOPAYCOUNT DOUBLE, MERCHANTILEALLOWANCEVALUE DOUBLE, MERCHANTILECOUNT DOUBLE, NOPAYCOUNT DOUBLE, NOPAYVALUEALLOWANCE DOUBLE, NOPAYVALUEBASIC DOUBLE, OVERTIMEMINUTE DOUBLE, OVERTIMERATEPERMINUTE DOUBLE, OVERTIMEVALUE DOUBLE, PAYEEVALUE DOUBLE, POYAALLOWANCEVALUE DOUBLE, POYACOUNT DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SLEEPINGDAYALLOWANCE DOUBLE, SLEEPINGDAYCOUNT DOUBLE, TRANSADVANCESALARY DOUBLE, BANKBRANCH_ID BIGINT, BLOCKEDUSER_ID BIGINT, CHEQUEBANK_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EPFBANKBRANCH_ID BIGINT, HOLDPAIDBY_ID BIGINT, HOLDUSER_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, SALARYCYCLE_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE patientmergerecord (ID BIGINT AUTO_INCREMENT NOT NULL, MERGEDATE DATETIME, MERGEREASON VARCHAR(255), MERGETYPE VARCHAR(255), PRIMARYSNAPSHOTJSON LONGTEXT, REVERSEDAT DATETIME, SECONDARYSNAPSHOTJSON LONGTEXT, STATUS VARCHAR(255), MERGEDBY_ID BIGINT, PRIMARYPATIENT_ID BIGINT, REVERSEDBY_ID BIGINT, SECONDARYPATIENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PAYMENTHANDOVERITEM (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, HANDOVERPROOFMISSING TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, CURRENTHOLDER_ID BIGINT, HANDOVERACCEPTBILL_ID BIGINT, HANDOVERACCEPTCOMPONANTBILL_ID BIGINT, HANDOVERCREATEDBILL_ID BIGINT, HANDOVERCREATEDCOMPONANTBILL_ID BIGINT, HANDOVERSHIFTBILL_ID BIGINT, HANDOVERSHIFTCOMPONANTBILL_ID BIGINT, PAYMENT_ID BIGINT, PROOFMISSINGBILL_ID BIGINT, PROOFMISSINGSETTLEMENT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE APPOINTMENTACTIVITY (ID BIGINT AUTO_INCREMENT NOT NULL, CODE VARCHAR(255), CREATEDAT DATETIME, DISCRIPTION LONGTEXT, IMAGELINK LONGTEXT, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTROOMTIMEDITEMCHARGE (ID BIGINT AUTO_INCREMENT NOT NULL, CALCULATEDCHARGE DOUBLE, DISCOUNTCHARGE DOUBLE, PATIENTROOM_ID BIGINT, TIMEDITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PAYMENT (ID BIGINT AUTO_INCREMENT NOT NULL, CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, CASHBOOKENTRYCOMPLETED TINYINT(1) default 0, CASHBOOKENTRYSTATED TINYINT(1) default 0, CHEQUEDATE DATE, CHEQUEPAID TINYINT(1) default 0, CHEQUEPAIDAT DATETIME, CHEQUEREALIZED TINYINT(1) default 0, CHEQUEREALIZEDAT DATETIME, CHEQUEREFNO VARCHAR(255), COMMENTS LONGTEXT, CREATEDAT DATETIME, CREDITCARDREFNO VARCHAR(255), CREDITDURATIONINDAYS INTEGER, CURRENCYDENOMINATIONSJSON LONGTEXT, DEPOSITED TINYINT(1) default 0, DISCOUNTVALUE DECIMAL(18,4), HANDINGOVERCOMPLETED TINYINT(1) default 0, HANDINGOVERSTARTED TINYINT(1) default 0, HANDOVERPROOFMISSING TINYINT(1) default 0, PAIDVALUE DOUBLE, PAYMENTDATE DATE, PAYMENTMETHOD VARCHAR(255), PAYMENTRECORDCOMPLETED TINYINT(1) default 0, PAYMENTRECORDSTATED TINYINT(1) default 0, PAYMENTSETTLED TINYINT(1) default 0, POLICYNO VARCHAR(255), REALIZECOMMENTS LONGTEXT, REALIZED TINYINT(1) default 0, REALIZEDAT DATE, REFERENCENO VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SELECTEDFORCASHBOOKENTRY TINYINT(1) default 0, SELECTEDFORHANDOVER TINYINT(1) default 0, SELECTEDFORRECORDING TINYINT(1) default 0, SELECTEDFORRECORDINGCONFIRMATION TINYINT(1) default 0, TOREALIZEAT DATE, WRITTENAT DATE, BANK_ID BIGINT, BILL_ID BIGINT, CANCELLEDBILL_ID BIGINT, CANCELLEDBY_ID BIGINT, CANCELLEDPAYMENT_ID BIGINT, CASHBOOK_ID BIGINT, CASHBOOKENTRY_ID BIGINT, CHEQUEPAIDBILL_ID BIGINT, CHEQUEPAYER_ID BIGINT, CHEQUEREALIZEDBILL_ID BIGINT, CHEQUEREALIZER_ID BIGINT, CREATER_ID BIGINT, CREDITCOMPANY_ID BIGINT, CURRENTHOLDER_ID BIGINT, DEPARTMENT_ID BIGINT, FLOATRECIPIENT_ID BIGINT, FROMINSTITUTION_ID BIGINT, INSTITUTION_ID BIGINT, PAYMENTRECORDCOMPLETEBILL_ID BIGINT, PAYMENTRECORDCOMPLETECOMPONANTBILL_ID BIGINT, PAYMENTRECORDCREATEBILL_ID BIGINT, PAYMENTRECORDCREATECOMPONANTBILL_ID BIGINT, PAYMENTSETTLEMENTBILL_ID BIGINT, REALIZER_ID BIGINT, REFERANCEPAYMENT_ID BIGINT, RETIRER_ID BIGINT, TOINSTITUTION_ID BIGINT, TOSTAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FEECHANGE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DONE TINYINT(1) default 0, DONEAT DATETIME, FEECHANGETYPE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, VALIDFROM DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, FEE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE REPORTITEM (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), ABOVEABSOLUTEWARNING VARCHAR(255), ABSOLUTEHIGHVALUE DOUBLE, ABSOLUTELOWVALUE DOUBLE, ALLOWTOEXPORTCHART TINYINT(1) default 0, AUTOMATED TINYINT(1) default 0, BELOWABSOLUTEWARNING VARCHAR(255), CANNOTAPPROVEIFVALUEISABOVEABSOLUTEHIGHVALUE TINYINT(1) default 0, CANNOTAPPROVEIFVALUEISBELOWABSOLUTELOWVALUE TINYINT(1) default 0, CANNOTAPPROVEIFVALUEISEMPTY TINYINT(1) default 0, CODE VARCHAR(255), CREATEDAT DATETIME, CSSBACKCOLOR VARCHAR(255), CSSBORDER VARCHAR(255), CSSBORDERRADIUS VARCHAR(255), CSSCLIP VARCHAR(255), CSSCOLOR VARCHAR(255), CSSFONTFAMILY VARCHAR(255), CSSFONTSIZE VARCHAR(255), CSSFONTSTYLE VARCHAR(255), CSSFONTVARIANT VARCHAR(255), CSSFONTWEIGHT VARCHAR(255), CSSHEIGHT VARCHAR(255), CSSLEFT VARCHAR(255), CSSLINEHEIGHT VARCHAR(255), CSSMARGIN VARCHAR(255), CSSOVERFLOW VARCHAR(255), CSSPADDING VARCHAR(255), CSSPOSITION VARCHAR(255), CSSTEXTALIGN VARCHAR(255), CSSTEXTDECORATION VARCHAR(255), CSSTOP VARCHAR(255), CSSVERTICALALIGN VARCHAR(255), CSSWIDTH VARCHAR(255), CSSZORDER VARCHAR(255), CUSTOMCSS LONGTEXT, DATAENTRYMETHOD VARCHAR(255), DESCRIPTION LONGTEXT, EMPTYVALUEWARNING VARCHAR(255), FORMATPREFIX VARCHAR(255), FORMATSTRING VARCHAR(255), FORMATSUFFIX VARCHAR(255), HTPIX DOUBLE, HTMLTEXT LONGTEXT, IXITEMTYPE VARCHAR(255), IXITEMVALUETYPE VARCHAR(255), NAME VARCHAR(255), ORDERNO INTEGER, PAGENO INTEGER, REPORTITEMTYPE VARCHAR(255), RESULTCODE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, RIFONTSIZE DOUBLE, RIHEIGHT DOUBLE, RILEFT DOUBLE, RITOP DOUBLE, RIWIDTH DOUBLE, VALUECODE VARCHAR(255), VALUECODESYSTEM VARCHAR(255), VALUEUNITCODE VARCHAR(255), VALUEUNITCODESYSTEM VARCHAR(255), WTPIX DOUBLE, CATEGORY_ID BIGINT, COMMENTLABEL_ID BIGINT, CREATER_ID BIGINT, FLAGVALUE_ID BIGINT, INVESTIGATIONCOMPONENT_ID BIGINT, ITEM_ID BIGINT, MACHINE_ID BIGINT, REFERRINGCATEGORY_ID BIGINT, REFERRINGITEM_ID BIGINT, RETIRER_ID BIGINT, SAMPLE_ID BIGINT, SAMPLECOMPONENT_ID BIGINT, TEST_ID BIGINT, TUBE_ID BIGINT, VALUEVALUE_ID BIGINT, REFERENCEHEADER_ID BIGINT, REFERENCELABEL_ID BIGINT, TESTHEADER_ID BIGINT, TESTLABEL_ID BIGINT, UNITHEADER_ID BIGINT, UNITLABEL_ID BIGINT, VALUEHEADER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE USERPREFERENCE (ID BIGINT AUTO_INCREMENT NOT NULL, ABBREVIATIONFOREXAMINATION VARCHAR(255), ABBREVIATIONFORHISTORY VARCHAR(255), ABBREVIATIONFORINVESTIGATIONS VARCHAR(255), ABBREVIATIONFORMANAGEMENT VARCHAR(255), ABBREVIATIONFORTREATMENTS VARCHAR(255), ALLOWTOCHANGEPAYMENTMETHODDURINGPAYMENT TINYINT(1) default 0, APPLICATIONINSTITUTION VARCHAR(255), AUTODISPLAYMENU TINYINT(1) default 0, BHTNUMBERWITHOUTADMISSIONTYPE TINYINT(1) default 0, BHTNUMBERWITHYEAR TINYINT(1) default 0, CANSETTLEOPDBILLWITHINVESTIGATIONSWITHOUTREFERRINGDOCTOR TINYINT(1) default 0, CCITEMLISTINGSTRATEGY VARCHAR(255), CHANGETEXTCASESPATIENTNAME VARCHAR(255), CHANNELBILLDOUBLE TINYINT(1) default 0, CHANNELBILLPAPERTYPE VARCHAR(255), CHANNELDOCTORARIVALMSGSEND TINYINT(1) default 0, CHANNELSETTLEWITHOUTPATIENTPHONENUMBER TINYINT(1) default 0, CHANNELWITHOUTREFERENCENUMBER TINYINT(1) default 0, CHANNELINGBILLHEADERTEMPLATE VARCHAR(255), CHANNELINGDOCTORPAYMENTBILLTEMPLATE LONGTEXT, CHANNELLINGBILLTEMPLATE LONGTEXT, CHANNELLINGCANCELLATIONBILLTEMPLATE LONGTEXT, CHANNELLINGPAYMENTMETHOD VARCHAR(255), CHECKPAYMENTSCHEMEVALIDATION TINYINT(1) default 0, DEPNUMGENFROMTODEPARTMENT TINYINT(1) default 0, EMAILREGEX VARCHAR(255), ENCRPTIONKEY VARCHAR(255), FAMILYMEMBERSHIP TINYINT(1) default 0, FIVEFIVEPAPERWITHHEADINGS TINYINT(1) default 0, GENARATEOPDTOKENNUMBERSTOCOUNTERWISE TINYINT(1) default 0, GRNBILLDETAILED TINYINT(1) default 0, HASAWEBSITEASFRONTEND TINYINT(1) default 0, INPATIENTFINALBILLPRINTHEADER LONGTEXT, INSTITUTIONRESTRICTEDBILLING TINYINT(1) default 0, INSTITUTIONSPECIFICITEMS TINYINT(1) default 0, INWARDADDSERVICEBILLTIMECHECK TINYINT(1) default 0, INWARDADDMISSIONSTATEMENETENGLISH LONGTEXT, INWARDADDMISSIONSTATEMENETSINHALA LONGTEXT, INWARDCHANGEADMISSIONFEE TINYINT(1) default 0, INWARDDEPOSITBILLTEMPLATE LONGTEXT, INWARDDEPOSITCANCELBILLTEMPLATE LONGTEXT, INWARDDEPOSITPAYMENTBILLPAPER VARCHAR(255), INWARDITEMLISTINGSTRATEGY VARCHAR(255), INWARDMOCHARGECALCULATEINITIALTIME TINYINT(1) default 0, INWARDSERVICEBILLPAPERTYPE VARCHAR(255), LENGTHOFOTPINDEXES VARCHAR(255), LOGGINGHEADER VARCHAR(255), LOGGINGTEXT LONGTEXT, LOGONAME VARCHAR(255), LOGOURL VARCHAR(255), LONGDATEFORMAT VARCHAR(255), LONGDATETIMEFORMAT VARCHAR(255), LONGTIMEFORMAT VARCHAR(255), MEMBERSHIPEXPIRES TINYINT(1) default 0, MICROBIOLOGYFONT VARCHAR(255), MOBILEREGEX VARCHAR(255), NAMEREGEX VARCHAR(255), NEEDAREAFORPATIENTREGISTRATION TINYINT(1) default 0, NEEDNICFORPATIENTREGISTRATION TINYINT(1) default 0, NEEDPHONENUMBERFORPATIENTREGISTRATION TINYINT(1) default 0, NICREGEX VARCHAR(255), NUMBEROFCCBILLCOPIES INTEGER, NUMBEROFCHANNELLINGBILLCOPIES INTEGER, NUMBEROFOPDBILLCOPIES INTEGER, OPDBILLFORCASHIERTEMPLATE LONGTEXT, OPDBILLPAPERTYPE VARCHAR(255), OPDBILLTEMPLATE LONGTEXT, OPDBILLINGAFTERSHIFTSTART TINYINT(1) default 0, OPDBILLINGSTRATEGY VARCHAR(255), OPDITEMLISTINGSTRATEGY VARCHAR(255), OPDSETTLEWITHOUTCASHTENDERED TINYINT(1) default 0, OPDSETTLEWITHOUTPATIENTAREA TINYINT(1) default 0, OPDSETTLEWITHOUTPATIENTPHONENUMBER TINYINT(1) default 0, OPDSETTLEWITHOUTREFERRALDETAILS TINYINT(1) default 0, OPDTOKENNUMBERGENERATIONSTRATEGY VARCHAR(255), PARTIALPAYMENTOFOPDBILLSALLOWED TINYINT(1) default 0, PARTIALPAYMENTOFOPDPREBILLSALLOWED TINYINT(1) default 0, PARTIALPAYMENTOFPHARMACYBILLSALLOWED TINYINT(1) default 0, PAYMENTMETHODALLOWEDININWARDMATRIX TINYINT(1) default 0, PHARMACYBILLFOOTER VARCHAR(255), PHARMACYBILLHEADER VARCHAR(255), PHARMACYBILLPAPERTYPE VARCHAR(255), PHARMACYBILLPRABODHA TINYINT(1) default 0, PHARMACYBILLWITHOUTITEM TINYINT(1) default 0, PHARMACYRETAILBILLTEMPLATE LONGTEXT, PHARMACYWHOLESALEBILLTEMPLATE LONGTEXT, PHARMAYPURCHASEWITHLASTRATE TINYINT(1) default 0, PRINTBARCODEINOPDBILL TINYINT(1) default 0, PRINTOPDTOKENNUMBER TINYINT(1) default 0, SENDBULKSMS TINYINT(1) default 0, SENDSMSONCHANNELBOOKING TINYINT(1) default 0, SENDSMSONCHANNELBOOKINGCANCELLATION TINYINT(1) default 0, SENDSMSONCHANNELBOOKINGCOMPLETION TINYINT(1) default 0, SENDSMSONCHANNELBOOKINGDOCTERPAYMENT TINYINT(1) default 0, SENDSMSONCHANNELBOOKINGNOSHOW TINYINT(1) default 0, SENDSMSONCHANNELDOCTORARRIVAL TINYINT(1) default 0, SENTDAILYSMSSUMMERYFORREFERRINGDOCTORS TINYINT(1) default 0, SENTEMAILWITHINVESTIGATIONREPORTAPPROVAL TINYINT(1) default 0, SENTSMSWITHINVESTIGATIONREQUESTAPPROVAL TINYINT(1) default 0, SHORTDATEFORMAT VARCHAR(255), SHORTDATETIMEFORMAT VARCHAR(255), SHORTTIMEFORMAT VARCHAR(255), SHOWBARCODEINCHANNELBOOKINGBILL TINYINT(1) default 0, SHOWBILLWISEDETAILS TINYINT(1) default 0, SHOWONLYMARKEDDOCTORS TINYINT(1) default 0, SMSAUTHENTICATIONTYPE INTEGER, SMSMESSAGEPARAMETERNAME VARCHAR(100), SMSPASSWORD VARCHAR(100), SMSPASSWORDPARAMETERNAME VARCHAR(100), SMSPHONENUMBERPARAMETERNAME VARCHAR(100), SMSTEMPLATEFORCHANNELBOOKING LONGTEXT, SMSTEMPLATEFORCHANNELBOOKINGCANCELLATION LONGTEXT, SMSTEMPLATEFORCHANNELBOOKINGCOMPLETION LONGTEXT, SMSTEMPLATEFORCHANNELBOOKINGDOCTORPAYMENT LONGTEXT, SMSTEMPLATEFORCHANNELBOOKINGNOSHOW LONGTEXT, SMSTEMPLATEFORCHANNELDOCTORARRIVAL LONGTEXT, SMSTEMPLATEFOROPDBILLSETTING LONGTEXT, SMSURL VARCHAR(255), SMSUSERALIAS VARCHAR(100), SMSUSERALIASPARAMETERNAME VARCHAR(100), SMSUSERNAME VARCHAR(100), SMSUSERNAMEPARAMETERNAME VARCHAR(100), THEMENAME VARCHAR(255), TRANFERNETTOTALBYRETAILRATE TINYINT(1) default 0, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PACKAGEITEM (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, PACKEGE_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFEMPLOYEESTATUS (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, EMPLOYEESTATUS VARCHAR(255), FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFFEMPLOYMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BANKACCOUNT (ID BIGINT AUTO_INCREMENT NOT NULL, ACCOUNTNAME VARCHAR(255), ACCOUNTNO VARCHAR(255), BANKACCOUNTTYPE VARCHAR(255), CREATEDAT DATETIME, DESCRIPTION LONGTEXT, EDITEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, BANK_ID BIGINT, BANKBRANCH_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERDEPARTMENT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ENCOUNTERCOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DESCRIPTION LONGTEXT, NAME VARCHAR(255), ORDERNO INTEGER, PATIENTENCOUNTERCOMPONENTTYPE INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, BILLFEE_ID BIGINT, BILLITEM_ID BIGINT, CATEGORY_ID BIGINT, CHILDENCOUNTER_ID BIGINT, CREATER_ID BIGINT, ITEM_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE VIRTUALPRODUCTINGREDIENT (ID BIGINT AUTO_INCREMENT NOT NULL, BASISOFPHARMACEUTICALSTRENGTH INTEGER, RETIRED TINYINT(1) default 0, STRENGTH DOUBLE, BASISOFSTRENGTHSUBSTANCE_ID BIGINT, INGREDIENTSUBSTANCE_ID BIGINT, PHARMACEUTICALITEMCATEGORY_ID BIGINT, STRENGTHUNIT_ID BIGINT, VMP_ID BIGINT, VTM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PRESCRIPTION (ID BIGINT AUTO_INCREMENT NOT NULL, ADMINISTRATIONSTARTEDAT DATETIME, ADMINISTRATIONSTOPREASON VARCHAR(255), ADMINISTRATIONSTOPPEDAT DATETIME, ALLERGIES VARCHAR(255), CLINICALINDICATION VARCHAR(255), COMMENT VARCHAR(255), CONTINUEONDISCHARGE TINYINT(1) default 0, CONTRAINDICATIONS VARCHAR(255), CREATEDAT DATETIME, DISCHARGEDATE DATETIME, DISCHARGEINSTRUCTIONS VARCHAR(255), DISPENSEDAT DATETIME, DISPENSEDQUANTITY DOUBLE, DISPENSINGNOTES VARCHAR(255), DOSE DOUBLE, DOSESGIVEN INTEGER, DOSESREMAINING INTEGER, DURATION DOUBLE, EDITEDAT DATETIME, INDOOR TINYINT(1) default 0, INTERACTIONS VARCHAR(255), ISSUE DOUBLE, LASTREVIEWEDAT DATETIME, MONITORINGPLAN VARCHAR(255), OMISSIONREASON VARCHAR(255), OMITTEDAT DATETIME, ORDERNO DOUBLE, PRESCRIBEDAT DATETIME, PRESCRIBEDFROM DATETIME, PRESCRIBEDTO DATETIME, PRESCRIPTIONSTATUS VARCHAR(255), PRIORITY VARCHAR(255), PRN TINYINT(1) default 0, PRNINDICATION VARCHAR(255), REQUIRESNURSEADMINISTRATION TINYINT(1) default 0, REQUIRESPHARMACISTREVIEW TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ROUTE VARCHAR(255), SIDEEFFECTSTOMONITOR VARCHAR(255), THERAPEUTICGOAL VARCHAR(255), TOTALDOSES INTEGER, VERIFIEDAT DATETIME, WORKFLOWSTAGE VARCHAR(255), ADMINISTRATIONSTARTEDBY_ID BIGINT, ADMINISTRATIONSTARTEDDEPARTMENT_ID BIGINT, ADMINISTRATIONSTOPPEDBY_ID BIGINT, ADMINISTRATIONSTOPPEDDEPARTMENT_ID BIGINT, CATEGORY_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, DISCHARGEREVIEWEDBY_ID BIGINT, DISPENSEDBY_ID BIGINT, DISPENSINGDEPARTMENT_ID BIGINT, DOSEUNIT_ID BIGINT, DURATIONUNIT_ID BIGINT, EDITER_ID BIGINT, ENCOUNTER_ID BIGINT, FREQUENCYUNIT_ID BIGINT, INSTITUTION_ID BIGINT, ISSUEUNIT_ID BIGINT, ITEM_ID BIGINT, LASTREVIEWEDBY_ID BIGINT, OMITTEDBY_ID BIGINT, OMITTINGDEPARTMENT_ID BIGINT, PARENT_ID BIGINT, PATIENT_ID BIGINT, PRESCRIBEDBY_ID BIGINT, PRESCRIBINGDEPARTMENT_ID BIGINT, RETIRER_ID BIGINT, REVIEWINGDEPARTMENT_ID BIGINT, VERIFIEDBY_ID BIGINT, VERIFYINGDEPARTMENT_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PRICEMATRIX (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), BILLTYPE INTEGER, CREATEDAT DATETIME, DISCOUNTPERCENT DOUBLE, FROMPRICE DOUBLE, INWARDCHARGETYPE VARCHAR(255), MARGIN DOUBLE, PAYMENTMETHOD VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TOPRICE DOUBLE, ADMISSIONTYPE_ID BIGINT, CATEGORY_ID BIGINT, CREATER_ID BIGINT, CREDITCOMPANY_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, MEMBERSHIPSCHEME_ID BIGINT, PAYMENTSCHEME_ID BIGINT, RETIRER_ID BIGINT, ROOMCATEGORY_ID BIGINT, ROOMLOCATION_ID BIGINT, TOINSTITUTION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE RESERVATION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RESERVEDFROM DATETIME, RESERVEDTO DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, APPOINTMENT_ID BIGINT, CREATER_ID BIGINT, PATIENT_ID BIGINT, RESERVATIONENCOUNTER_ID BIGINT, RETIRER_ID BIGINT, ROOM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PAYEETAXRANGE (ID BIGINT AUTO_INCREMENT NOT NULL, FROMSALARY DOUBLE, TAXRATE DOUBLE, TOSALARY DOUBLE, HRMVARIABLES_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTREPORTITEMVALUE (ID BIGINT AUTO_INCREMENT NOT NULL, ALLOWTOEXPORTCHART TINYINT(1) default 0, BAIMAGE LONGBLOB, CODESYSTEM VARCHAR(255), CODESYSTEMCODE VARCHAR(255), DOUBLEVALUE DOUBLE, FILENAME VARCHAR(255), FILETYPE VARCHAR(255), LOBVALUE LONGTEXT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STRVALUE VARCHAR(255), INVESTIGATIONITEM_ID BIGINT, PATIENT_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PATIENTREPORT_ID BIGINT, PATIENTREPORTGROUP_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AIMESSAGE (ID BIGINT AUTO_INCREMENT NOT NULL, ATTACHMENTBASE64 LONGTEXT, ATTACHMENTMIMETYPE VARCHAR(255), ATTACHMENTNAME VARCHAR(255), CONTENT LONGTEXT, CREATEDAT DATETIME, INPUTTOKENS BIGINT, OUTPUTTOKENS BIGINT, ROLE VARCHAR(255), CONVERSATION_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PRESCRIPTIONTEMPLATE (ID BIGINT AUTO_INCREMENT NOT NULL, AGEINMONTHSFROM BIGINT, AGEINMONTHSTO BIGINT, CREATEDAT DATETIME, DOSE DOUBLE, DURATION DOUBLE, FAVOURITETYPE INTEGER, FROMDAYS DOUBLE, FROMKG DOUBLE, INDOOR TINYINT(1) default 0, ISSUE DOUBLE, ORDERNO DOUBLE, RETIRED TINYINT(1) default 0, SEX VARCHAR(255), TEMPLATEFROM DOUBLE, TEMPLATETO DOUBLE, TODAYS DOUBLE, TOKG DOUBLE, TYPE VARCHAR(255), CATEGORY_ID BIGINT, CREATER_ID BIGINT, DOSEUNIT_ID BIGINT, DURATIONUNIT_ID BIGINT, FORDEPARTMENT_ID BIGINT, FORINSTITUTION_ID BIGINT, FORITEM_ID BIGINT, FORWEBUSER_ID BIGINT, FREQUENCYUNIT_ID BIGINT, ISSUEUNIT_ID BIGINT, ITEM_ID BIGINT, PARENT_ID BIGINT, PATIENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ANALYZERMESSAGE (ID BIGINT AUTO_INCREMENT NOT NULL, MESSAGE LONGTEXT, MESSAGEID VARCHAR(255), MESSAGETYPE VARCHAR(255), DEPARTMENT_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AGENTSFEES (ID BIGINT AUTO_INCREMENT NOT NULL, AGENT_ID BIGINT, FEE_ID BIGINT, SERVICESESSION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INVESTIGATIONVALIDATERCOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, EDITEDAT DATETIME, NEWVALIDATOR VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, EDITOR_ID BIGINT, INVESTIGATIONITEM_ID BIGINT, INVESTIGATIONVALIDATOR_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILL (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), ACCEPTEDAT DATETIME, AGENTREFNO VARCHAR(255), APPOINTMENTAT DATETIME, APPROVEAT DATETIME, BALANCE DOUBLE, BILLCLASSTYPE VARCHAR(255), BILLCLOSED TINYINT(1) default 0, BILLDATE DATE, BILLPAYMENTCOMPLETELYSETTLED TINYINT(1) default 0, BILLTIME DATETIME, BILLTOTAL DOUBLE, BILLTYPE VARCHAR(255), BILLTYPEATOMIC VARCHAR(255), BILLERFEE DOUBLE, BOOKINGID VARCHAR(255), CANCELLED TINYINT(1) default 0, CASHBALANCE DOUBLE, CASHPAID DOUBLE, CATID VARCHAR(255), CCBALANCEAFTERTRANSACTION DOUBLE, CCBALANCEBEFORETRANSACTION DOUBLE, CCEXCESSAMOUNT DOUBLE, CCTOTALCENTERVALUE DOUBLE, CCTOTALRECEIVED DOUBLE, CCTRANSACTIONAMOUNT DOUBLE, CHECKEAT DATETIME, CHECKED TINYINT(1) default 0, CHEQUEDATE DATE, CHEQUEREFNO VARCHAR(255), CLAIMABLETOTAL DOUBLE, COLLCTINGCENTREFEE DOUBLE, COMMENTS LONGTEXT, COMPLETED TINYINT(1) default 0, COMPLETEDAT DATETIME, CONFIRMEDFINALBILL TINYINT(1) default 0, CONSIGNMENT TINYINT(1) default 0, CREATEDAT DATETIME, CREDITBILL TINYINT(1) default 0, CREDITCARDREFNO VARCHAR(255), CREDITDURATION INTEGER, DEPARTMENTTYPE VARCHAR(255), DEPTID VARCHAR(255), DISCOUNT DOUBLE, DISCOUNTPERCENT DOUBLE, DUPLICATEPRINTEDAT DATETIME, DUPLICATEDPRINTED TINYINT(1) default 0, EDITEDAT DATETIME, EXPENSETOTAL DOUBLE, EXPENSESTOTALCONSIDEREDFORCOSTING DOUBLE, EXPENSESTOTALNOTCONSIDEREDFORCOSTING DOUBLE, EXTERNALDOCTOR VARCHAR(255), FINALBILLVERSIONSERIAL INTEGER, FREEVALUE DOUBLE, FROMDATE DATETIME, FULLRETURNED TINYINT(1) default 0, FULLRETURNEDAT DATETIME, FULLYISSUED TINYINT(1) default 0, FULLYISSUEDAT DATETIME, GRANTTOTAL DOUBLE, GRNNETTOTAL DOUBLE, HOSPITALFEE DOUBLE, INDICATION LONGTEXT, INSID VARCHAR(255), INVOICEDATE DATE, INVOICENUMBER VARCHAR(255), IPOPORCC VARCHAR(255), LOCALNUMBER VARCHAR(255), MARGIN DOUBLE, NETTOTAL DOUBLE, PAID TINYINT(1) default 0, PAIDAMOUNT DOUBLE, PAIDAT DATETIME, PAYMENTAPPROVALCOMMENTS LONGTEXT, PAYMENTAPPROVED TINYINT(1) default 0, PAYMENTAPPROVEDAT DATETIME, PAYMENTBREAKDOWN LONGTEXT, PAYMENTCOMPLETED TINYINT(1) default 0, PAYMENTCOMPLETEDAT DATETIME, PAYMENTCOMPLETIONCOMMENTS LONGTEXT, PAYMENTGENERATED TINYINT(1) default 0, PAYMENTGENERATEDAT DATETIME, PAYMENTGENERATIONCOMMENTS LONGTEXT, PAYMENTMEMO LONGTEXT, PAYMENTMETHOD VARCHAR(255), PERFORMINSTITUTIONFEE DOUBLE, PRINTED TINYINT(1) default 0, PRINTEDAT DATETIME, PRIORITY VARCHAR(255), PROFESSIONALFEE DOUBLE, QTY DOUBLE, QUTATIONNUMBER VARCHAR(255), REACTIVATED TINYINT(1) default 0, REFERENCENUMBER VARCHAR(255), REFUNDAMOUNT DOUBLE, REFUNDED TINYINT(1) default 0, RELEASEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SALEVALUE DOUBLE, SERVICECHARGE DOUBLE, SESSIONID VARCHAR(255), SETTLEDAMOUNTBYPATIENT DOUBLE, SETTLEDAMOUNTBYSPONSOR DOUBLE, SMSED TINYINT(1) default 0, SMSEDAT DATETIME, STAFFFEE DOUBLE, STATUS INTEGER, SURGERYBILLTYPE VARCHAR(255), TAX DOUBLE, TENDEREDAMOUNT DOUBLE, TODATE DATETIME, TOTAL DOUBLE, TOTALCENTERFEE DOUBLE, TOTALHOSPITALFEE DOUBLE, TOTALSTAFFFEE DOUBLE, VAT DOUBLE, VATPLUSNETTOTAL DOUBLE, VOUCHERNO BIGINT, APPROVEUSER_ID BIGINT, BACKWARDREFERENCEBILL_ID BIGINT, BANK_ID BIGINT, BILLPACKEGE_ID BIGINT, BILLEDBILL_ID BIGINT, CANCELLEDBILL_ID BIGINT, CATEGORY_ID BIGINT, CHECKEDBY_ID BIGINT, CHIEFHOUSEHOLDER_ID BIGINT, COLLECTINGCENTRE_ID BIGINT, COMPLETEDBY_ID BIGINT, CREATER_ID BIGINT, CREDITCOMPANY_ID BIGINT, DEPARTMENT_ID BIGINT, DUPLICATEPRINTEDUSER_ID BIGINT, EDITOR_ID BIGINT, FORWARDREFERENCEBILL_ID BIGINT, FROMDEPARTMENT_ID BIGINT, FROMINSTITUTION_ID BIGINT, FROMSTAFF_ID BIGINT, FROMWEBUSER_ID BIGINT, FULLRETURNEDBY_ID BIGINT, FULLYISSUEDBY_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, MEMBERFAMILY_ID BIGINT, MEMBERSHIPSCHEME_ID BIGINT, PAIDBILL_ID BIGINT, PATIENT_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PAYMENTAPPROVEDBY_ID BIGINT, PAYMENTCOMPLETEDBY_ID BIGINT, PAYMENTGENERATEDBY_ID BIGINT, PAYMENTSCHEME_ID BIGINT, PAYMENTSCHEMEINSTITUTION_ID BIGINT, PERSON_ID BIGINT, PREVIOUSVERSION_ID BIGINT, PRINTEDUSER_ID BIGINT, PROCEDURE_ID BIGINT, REACTIVATEDBILL_ID BIGINT, REFERENCEBILL_ID BIGINT, REFERENCEINSTITUTION_ID BIGINT, REFERREDBY_ID BIGINT, REFERREDBYINSTITUTION_ID BIGINT, REFERRINGDEPARTMENT_ID BIGINT, REFUNDEDBILL_ID BIGINT, RETIRER_ID BIGINT, SINGLEBILLITEM_ID BIGINT, SINGLEBILLSESSION_ID BIGINT, SITE_ID BIGINT, SMSEDUSER_ID BIGINT, STAFF_ID BIGINT, TODEPARTMENT_ID BIGINT, TOINSTITUTION_ID BIGINT, TOSTAFF_ID BIGINT, TOWEBUSER_ID BIGINT, WEBUSER_ID BIGINT, BANKACCOUNT_ID BIGINT, BILLFINANCEDETAILS_ID BIGINT UNIQUE, CASHTRANSACTION_ID BIGINT, CURRENTREQUEST_ID BIGINT, ONLINEBOOKING_ID BIGINT, PHARMACYBILL_ID BIGINT, STOCKBILL_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FEEVALUE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TOTALVALUEFORFOREIGNERS DOUBLE, TOTALVALUEFORLOCALS DOUBLE, CATEGORY_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PHARMACEUTICALBILLITEM (ID BIGINT AUTO_INCREMENT NOT NULL, AFTERADJUSTMENTEXPIRY DATE, AFTERADJUSTMENTVALUE DOUBLE, BARCODE VARCHAR(255), BEFOREADJUSTMENTEXPIRY DATE, BEFOREADJUSTMENTVALUE DOUBLE, CHASSISNO VARCHAR(255), CODE VARCHAR(255), COLOUR VARCHAR(255), COMPLETEDFREEQTY DOUBLE, COMPLETEDQTY DOUBLE, COSTRATE DOUBLE, COSTRATEPACK DOUBLE, COSTVALUE DOUBLE, CREATEDAT DATETIME, DEPRECITIONRATE DOUBLE, DESCRIPTION LONGTEXT, DOE DATE, ENGINENO VARCHAR(255), FREEQTY DOUBLE, FREEQTYPACKS DOUBLE, LASTPURCHASERATE DOUBLE, LASTPURCHASERATEPACK DOUBLE, MODEL VARCHAR(255), NUMBEROFACCESSORIES INTEGER, OTHERNOTES LONGTEXT, PURCHASERATE DOUBLE, PURCHASERATEPACK DOUBLE, PURCHASERATEPACKVALUE DOUBLE, PURCHASEVALUE DOUBLE, QTY DOUBLE, QTYPACKS DOUBLE, REGISTRATIONNO VARCHAR(255), REMAININGFREEQTY DOUBLE, REMAININGFREEQTYPACK DOUBLE, REMAININGQTY DOUBLE, REMAININGQTYPACK DOUBLE, RETAILPACKVALUE DOUBLE, RETAILRATE DOUBLE, RETAILRATEPACK DOUBLE, RETAILVALUE DOUBLE, RETIRECOMMENTS LONGTEXT, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SERIALNO VARCHAR(255), STRINGVALUE VARCHAR(255), TOTALACQUICITIONCOST DOUBLE, WARRENTYCERTIFICATENUMBER VARCHAR(255), WARRENTYDURATION BIGINT, WHOLESALERATE DOUBLE, WHOLESALERATEPACK DOUBLE, ARCHIVEDITEMBATCH_ID BIGINT, CREATER_ID BIGINT, ITEMBATCH_ID BIGINT, MAKE_ID BIGINT, MANUFACTURER_ID BIGINT, RETIRER_ID BIGINT, STAFFSTOCK_ID BIGINT, STOCK_ID BIGINT, BILLITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DEPARTMENT (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), ACTIVE TINYINT(1) default 0, ADDRESS VARCHAR(255), CODE VARCHAR(255), CREATEDAT DATETIME, DEPARTMENTCODE VARCHAR(255), DEPARTMENTTYPE VARCHAR(255), DESCRIPTION LONGTEXT, EMAIL VARCHAR(255), FAX VARCHAR(255), INACTIVE TINYINT(1) default 0, MARGIN DOUBLE, NAME VARCHAR(255), PHARMACYMARGINFROMPURCHASERATE DOUBLE, PRINTINGNAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SVGCHILDVIEW LONGTEXT, SVGPARENTVIEW LONGTEXT, TELEPHONE1 VARCHAR(255), TELEPHONE2 VARCHAR(255), CREATER_ID BIGINT, INSTITUTION_ID BIGINT, LABDEPARTMENT_ID BIGINT, LABINSTITUTION_ID BIGINT, RETIRER_ID BIGINT, SAMPLEDEPARTMENT_ID BIGINT, SAMPLEINSTITUTION_ID BIGINT, SITE_ID BIGINT, SUPERDEPARTMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PRICE (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), PRICE DOUBLE, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEMBATCH_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SHIFT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DAYOFF TINYINT(1) default 0, DAYTYPE VARCHAR(255), ENDINGTIME TIME, FIRSTSHIFT TINYINT(1) default 0, GROUPED TINYINT(1) default 0, HALFSHIFT TINYINT(1) default 0, HIDESHIFT TINYINT(1) default 0, LASTSHIFT TINYINT(1) default 0, LEAVEHOURFULL DOUBLE, LEAVEHOURHALF DOUBLE, NAME VARCHAR(255), REPEATEDDAY INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SHIFTDURATION DOUBLE, SHIFTORDER INTEGER, STARTINGTIME TIME, CREATER_ID BIGINT, NEXTSHIFT_ID BIGINT, PREVIOUSSHIFT_ID BIGINT, RETIRER_ID BIGINT, ROSTER_ID BIGINT, SHIFT_ID BIGINT, SHIFTPREFERENCE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SHIFTAMENDMENT (ID BIGINT AUTO_INCREMENT NOT NULL, COMMENTS VARCHAR(255), CREATEDAT DATETIME, FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, APPROVED_ID BIGINT, CREATER_ID BIGINT, FROMSHIFT_ID BIGINT, REFERENCESHIFTAMENDMENT_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, TOSHIFT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE HISTORICALRECORD (ID BIGINT AUTO_INCREMENT NOT NULL, COMPLETED TINYINT(1) default 0, COMPLETEDAT DATETIME, CREATEDAT DATETIME, FROMDATETIME DATETIME, HISTORICALRECORDTYPE VARCHAR(255), RECORDDATE DATE, RECORDDATETIME DATETIME, RECORDVALUE DOUBLE, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STARTEDAT DATETIME, TODATETIME DATETIME, VARIABLENAME VARCHAR(255), COLLECTIONCENTRE_ID BIGINT, CREATEDBY_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, RETIREDBY_ID BIGINT, SITE_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFF (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), ACNO VARCHAR(255), ACCOUNTNO VARCHAR(255), ALLOWEDEARLYOUTLEAVE TINYINT(1) default 0, ALLOWEDLATEINLEAVE TINYINT(1) default 0, ANNUALWELFAREQUALIFIED DOUBLE, ANNUALWELFAREUTILIZED DOUBLE, BAIMAGE LONGBLOB, CHARGE DOUBLE, CODE VARCHAR(255), CODEINTERGER INTEGER, CREATEDAT DATETIME, CREDITLIMITQUALIFIED DOUBLE, CURRENTCREDITVALUE DOUBLE, DATEJOINED DATE, DATELEFT DATE, DATERETIRED DATE, DATEWITHOUTNOTICE DATE, DESCRIPTION LONGTEXT, EMPLOYEELEAVINGSTATUS VARCHAR(255), EMPLOYEESTATUS VARCHAR(255), EPFACCOUNTNO VARCHAR(255), EPFNO VARCHAR(255), FILENAME VARCHAR(255), FILETYPE VARCHAR(255), ORDERNO INTEGER, PAYINGMETHOD VARCHAR(255), QUALIFICATION LONGTEXT, REGISTRATION VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SALARYPAYMENTMETHOD VARCHAR(255), SIGNATUREURL LONGTEXT, STAFFCODE VARCHAR(255), STAFFWELFAREPERIOD INTEGER, WITHOUTNOTICE TINYINT(1) default 0, WORKINGTIMEFORNOPAYPERWEEK DOUBLE, WORKINGTIMEFOROVERTIMEPERWEEK DOUBLE, BANKBRANCH_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, DESIGNATION_ID BIGINT, EPFBANKBRANCH_ID BIGINT, GRADE_ID BIGINT, INSTITUTION_ID BIGINT, PERSON_ID BIGINT, RETIRER_ID BIGINT, ROSTER_ID BIGINT, SPECIALITY_ID BIGINT, STAFFCATEGORY_ID BIGINT, WORKINGDEPARTMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FORM (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), CODE VARCHAR(255), COMMENTS VARCHAR(255), CREATEDAT DATETIME, EDITEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, EDITOR_ID BIGINT, RETIRER_ID BIGINT, APPROVEDAT DATETIME, FROMTIME DATETIME, TIMES VARCHAR(255), TOTIME DATETIME, APPROVEDSTAFF_ID BIGINT, DEPARTMENT_ID BIGINT, FROMROSTER_ID BIGINT, STAFF_ID BIGINT, TOROSTER_ID BIGINT, STAFFSHIFT_ID BIGINT, FROMDATE DATETIME, LEAVETYPE VARCHAR(255), NUMBEROFLEAVE DOUBLE, REQUESTEDDATE DATETIME, TODATE DATETIME, SHIFT_ID BIGINT, FROMSTAFF_ID BIGINT, FROMSTAFFSHIFT_ID BIGINT, FROMSTAFFSHIFTSECOND_ID BIGINT, TOSHIFT_ID BIGINT, TOSHIFTSECOND_ID BIGINT, TOSTAFF_ID BIGINT, TOSTAFFSHIFT_ID BIGINT, TOSTAFFSHIFTSECOND_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERROLEPRIVILEGE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DESCRIPTION VARCHAR(255), NAME VARCHAR(255), PRIVILEGE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SNAME VARCHAR(255), TNAME VARCHAR(255), CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, RETIRER_ID BIGINT, WEBUSERROLE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE patientmergeaffectedrecord (ID BIGINT AUTO_INCREMENT NOT NULL, ENTITYCLASS VARCHAR(255), ENTITYID BIGINT, NEWPATIENTID BIGINT, OLDPATIENTID BIGINT, MERGERECORD_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CASHBOOKENTRY (ID BIGINT AUTO_INCREMENT NOT NULL, AGENTVALUE DOUBLE, CARDVALUE DOUBLE, CASHVALUE DOUBLE, CASHBOOKDATE DATE, CHEQUEVALUE DOUBLE, CREATEDAT DATETIME, CREDITVALUE DOUBLE, EDITEDAT DATETIME, ENTRYVALUE DOUBLE, EWALLETVALUE DOUBLE, FROMDEPARTMENTAGENTBALANCEAFTER DOUBLE, FROMDEPARTMENTAGENTBALANCEBEFORE DOUBLE, FROMDEPARTMENTBALANCEAFTER DOUBLE, FROMDEPARTMENTBALANCEBEFORE DOUBLE, FROMDEPARTMENTCARDBALANCEAFTER DOUBLE, FROMDEPARTMENTCARDBALANCEBEFORE DOUBLE, FROMDEPARTMENTCASHBALANCEAFTER DOUBLE, FROMDEPARTMENTCASHBALANCEBEFORE DOUBLE, FROMDEPARTMENTCHEQUEBALANCEAFTER DOUBLE, FROMDEPARTMENTCHEQUEBALANCEBEFORE DOUBLE, FROMDEPARTMENTCREDITBALANCEAFTER DOUBLE, FROMDEPARTMENTCREDITBALANCEBEFORE DOUBLE, FROMDEPARTMENTEWALLETBALANCEAFTER DOUBLE, FROMDEPARTMENTEWALLETBALANCEBEFORE DOUBLE, FROMDEPARTMENTIOUBALANCEAFTER DOUBLE, FROMDEPARTMENTIOUBALANCEBEFORE DOUBLE, FROMDEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE, FROMDEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE, FROMDEPARTMENTONCALLBALANCEAFTER DOUBLE, FROMDEPARTMENTONCALLBALANCEBEFORE DOUBLE, FROMDEPARTMENTONLINESETTLEMENTBALANCEAFTER DOUBLE, FROMDEPARTMENTONLINESETTLEMENTBALANCEBEFORE DOUBLE, FROMDEPARTMENTPATIENTDEPOSITBALANCEAFTER DOUBLE, FROMDEPARTMENTPATIENTDEPOSITBALANCEBEFORE DOUBLE, FROMDEPARTMENTPATIENTPOINTSBALANCEAFTER DOUBLE, FROMDEPARTMENTPATIENTPOINTSBALANCEBEFORE DOUBLE, FROMDEPARTMENTSLIPBALANCEAFTER DOUBLE, FROMDEPARTMENTSLIPBALANCEBEFORE DOUBLE, FROMDEPARTMENTSTAFFBALANCEAFTER DOUBLE, FROMDEPARTMENTSTAFFBALANCEBEFORE DOUBLE, FROMDEPARTMENTSTAFFWELFAREBALANCEAFTER DOUBLE, FROMDEPARTMENTSTAFFWELFAREBALANCEBEFORE DOUBLE, FROMDEPARTMENTVOUCHERBALANCEAFTER DOUBLE, FROMDEPARTMENTVOUCHERBALANCEBEFORE DOUBLE, FROMINSTITUTIONAGENTBALANCEAFTER DOUBLE, FROMINSTITUTIONAGENTBALANCEBEFORE DOUBLE, FROMINSTITUTIONBALANCEAFTER DOUBLE, FROMINSTITUTIONBALANCEBEFORE DOUBLE, FROMINSTITUTIONCARDBALANCEAFTER DOUBLE, FROMINSTITUTIONCARDBALANCEBEFORE DOUBLE, FROMINSTITUTIONCASHBALANCEAFTER DOUBLE, FROMINSTITUTIONCASHBALANCEBEFORE DOUBLE, FROMINSTITUTIONCHEQUEBALANCEAFTER DOUBLE, FROMINSTITUTIONCHEQUEBALANCEBEFORE DOUBLE, FROMINSTITUTIONCREDITBALANCEAFTER DOUBLE, FROMINSTITUTIONCREDITBALANCEBEFORE DOUBLE, FROMINSTITUTIONEWALLETBALANCEAFTER DOUBLE, FROMINSTITUTIONEWALLETBALANCEBEFORE DOUBLE, FROMINSTITUTIONIOUBALANCEAFTER DOUBLE, FROMINSTITUTIONIOUBALANCEBEFORE DOUBLE, FROMINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE, FROMINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE, FROMINSTITUTIONONCALLBALANCEAFTER DOUBLE, FROMINSTITUTIONONCALLBALANCEBEFORE DOUBLE, FROMINSTITUTIONONLINESETTLEMENTBALANCEAFTER DOUBLE, FROMINSTITUTIONONLINESETTLEMENTBALANCEBEFORE DOUBLE, FROMINSTITUTIONPATIENTDEPOSITBALANCEAFTER DOUBLE, FROMINSTITUTIONPATIENTDEPOSITBALANCEBEFORE DOUBLE, FROMINSTITUTIONPATIENTPOINTSBALANCEAFTER DOUBLE, FROMINSTITUTIONPATIENTPOINTSBALANCEBEFORE DOUBLE, FROMINSTITUTIONSLIPBALANCEAFTER DOUBLE, FROMINSTITUTIONSLIPBALANCEBEFORE DOUBLE, FROMINSTITUTIONSTAFFBALANCEAFTER DOUBLE, FROMINSTITUTIONSTAFFBALANCEBEFORE DOUBLE, FROMINSTITUTIONSTAFFWELFAREBALANCEAFTER DOUBLE, FROMINSTITUTIONSTAFFWELFAREBALANCEBEFORE DOUBLE, FROMINSTITUTIONVOUCHERBALANCEAFTER DOUBLE, FROMINSTITUTIONVOUCHERBALANCEBEFORE DOUBLE, FROMSITEAGENTBALANCEAFTER DOUBLE, FROMSITEAGENTBALANCEBEFORE DOUBLE, FROMSITEBALANCEAFTER DOUBLE, FROMSITEBALANCEBEFORE DOUBLE, FROMSITECARDBALANCEAFTER DOUBLE, FROMSITECARDBALANCEBEFORE DOUBLE, FROMSITECASHBALANCEAFTER DOUBLE, FROMSITECASHBALANCEBEFORE DOUBLE, FROMSITECHEQUEBALANCEAFTER DOUBLE, FROMSITECHEQUEBALANCEBEFORE DOUBLE, FROMSITECREDITBALANCEAFTER DOUBLE, FROMSITECREDITBALANCEBEFORE DOUBLE, FROMSITEEWALLETBALANCEAFTER DOUBLE, FROMSITEEWALLETBALANCEBEFORE DOUBLE, FROMSITEIOUBALANCEAFTER DOUBLE, FROMSITEIOUBALANCEBEFORE DOUBLE, FROMSITEMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE, FROMSITEMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE, FROMSITEONCALLBALANCEAFTER DOUBLE, FROMSITEONCALLBALANCEBEFORE DOUBLE, FROMSITEONLINESETTLEMENTBALANCEAFTER DOUBLE, FROMSITEONLINESETTLEMENTBALANCEBEFORE DOUBLE, FROMSITEPATIENTDEPOSITBALANCEAFTER DOUBLE, FROMSITEPATIENTDEPOSITBALANCEBEFORE DOUBLE, FROMSITEPATIENTPOINTSBALANCEAFTER DOUBLE, FROMSITEPATIENTPOINTSBALANCEBEFORE DOUBLE, FROMSITESLIPBALANCEAFTER DOUBLE, FROMSITESLIPBALANCEBEFORE DOUBLE, FROMSITESTAFFBALANCEAFTER DOUBLE, FROMSITESTAFFBALANCEBEFORE DOUBLE, FROMSITESTAFFWELFAREBALANCEAFTER DOUBLE, FROMSITESTAFFWELFAREBALANCEBEFORE DOUBLE, FROMSITEVOUCHERBALANCEAFTER DOUBLE, FROMSITEVOUCHERBALANCEBEFORE DOUBLE, IOUVALUE DOUBLE, MULTIPLEPAYMENTMETHODSVALUE DOUBLE, NAME VARCHAR(255), ONCALLVALUE DOUBLE, ONLINESETTLEMENTVALUE DOUBLE, PATIENTDEPOSITVALUE DOUBLE, PATIENTPOINTSVALUE DOUBLE, PAYMENTMETHOD INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SLIPVALUE DOUBLE, STAFFVALUE DOUBLE, STAFFWELFAREVALUE DOUBLE, TODEPARTMENTAGENTBALANCEAFTER DOUBLE, TODEPARTMENTAGENTBALANCEBEFORE DOUBLE, TODEPARTMENTBALANCEAFTER DOUBLE, TODEPARTMENTBALANCEBEFORE DOUBLE, TODEPARTMENTCARDBALANCEAFTER DOUBLE, TODEPARTMENTCARDBALANCEBEFORE DOUBLE, TODEPARTMENTCASHBALANCEAFTER DOUBLE, TODEPARTMENTCASHBALANCEBEFORE DOUBLE, TODEPARTMENTCHEQUEBALANCEAFTER DOUBLE, TODEPARTMENTCHEQUEBALANCEBEFORE DOUBLE, TODEPARTMENTCREDITBALANCEAFTER DOUBLE, TODEPARTMENTCREDITBALANCEBEFORE DOUBLE, TODEPARTMENTEWALLETBALANCEAFTER DOUBLE, TODEPARTMENTEWALLETBALANCEBEFORE DOUBLE, TODEPARTMENTIOUBALANCEAFTER DOUBLE, TODEPARTMENTIOUBALANCEBEFORE DOUBLE, TODEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE, TODEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE, TODEPARTMENTONCALLBALANCEAFTER DOUBLE, TODEPARTMENTONCALLBALANCEBEFORE DOUBLE, TODEPARTMENTONLINESETTLEMENTBALANCEAFTER DOUBLE, TODEPARTMENTONLINESETTLEMENTBALANCEBEFORE DOUBLE, TODEPARTMENTPATIENTDEPOSITBALANCEAFTER DOUBLE, TODEPARTMENTPATIENTDEPOSITBALANCEBEFORE DOUBLE, TODEPARTMENTPATIENTPOINTSBALANCEAFTER DOUBLE, TODEPARTMENTPATIENTPOINTSBALANCEBEFORE DOUBLE, TODEPARTMENTSLIPBALANCEAFTER DOUBLE, TODEPARTMENTSLIPBALANCEBEFORE DOUBLE, TODEPARTMENTSTAFFBALANCEAFTER DOUBLE, TODEPARTMENTSTAFFBALANCEBEFORE DOUBLE, TODEPARTMENTSTAFFWELFAREBALANCEAFTER DOUBLE, TODEPARTMENTSTAFFWELFAREBALANCEBEFORE DOUBLE, TODEPARTMENTVOUCHERBALANCEAFTER DOUBLE, TODEPARTMENTVOUCHERBALANCEBEFORE DOUBLE, TOINSTITUTIONAGENTBALANCEAFTER DOUBLE, TOINSTITUTIONAGENTBALANCEBEFORE DOUBLE, TOINSTITUTIONBALANCEAFTER DOUBLE, TOINSTITUTIONBALANCEBEFORE DOUBLE, TOINSTITUTIONCARDBALANCEAFTER DOUBLE, TOINSTITUTIONCARDBALANCEBEFORE DOUBLE, TOINSTITUTIONCASHBALANCEAFTER DOUBLE, TOINSTITUTIONCASHBALANCEBEFORE DOUBLE, TOINSTITUTIONCHEQUEBALANCEAFTER DOUBLE, TOINSTITUTIONCHEQUEBALANCEBEFORE DOUBLE, TOINSTITUTIONCREDITBALANCEAFTER DOUBLE, TOINSTITUTIONCREDITBALANCEBEFORE DOUBLE, TOINSTITUTIONEWALLETBALANCEAFTER DOUBLE, TOINSTITUTIONEWALLETBALANCEBEFORE DOUBLE, TOINSTITUTIONIOUBALANCEAFTER DOUBLE, TOINSTITUTIONIOUBALANCEBEFORE DOUBLE, TOINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE, TOINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE, TOINSTITUTIONONCALLBALANCEAFTER DOUBLE, TOINSTITUTIONONCALLBALANCEBEFORE DOUBLE, TOINSTITUTIONONLINESETTLEMENTBALANCEAFTER DOUBLE, TOINSTITUTIONONLINESETTLEMENTBALANCEBEFORE DOUBLE, TOINSTITUTIONPATIENTDEPOSITBALANCEAFTER DOUBLE, TOINSTITUTIONPATIENTDEPOSITBALANCEBEFORE DOUBLE, TOINSTITUTIONPATIENTPOINTSBALANCEAFTER DOUBLE, TOINSTITUTIONPATIENTPOINTSBALANCEBEFORE DOUBLE, TOINSTITUTIONSLIPBALANCEAFTER DOUBLE, TOINSTITUTIONSLIPBALANCEBEFORE DOUBLE, TOINSTITUTIONSTAFFBALANCEAFTER DOUBLE, TOINSTITUTIONSTAFFBALANCEBEFORE DOUBLE, TOINSTITUTIONSTAFFWELFAREBALANCEAFTER DOUBLE, TOINSTITUTIONSTAFFWELFAREBALANCEBEFORE DOUBLE, TOINSTITUTIONVOUCHERBALANCEAFTER DOUBLE, TOINSTITUTIONVOUCHERBALANCEBEFORE DOUBLE, TOSITEAGENTBALANCEAFTER DOUBLE, TOSITEAGENTBALANCEBEFORE DOUBLE, TOSITEBALANCEAFTER DOUBLE, TOSITEBALANCEBEFORE DOUBLE, TOSITECARDBALANCEAFTER DOUBLE, TOSITECARDBALANCEBEFORE DOUBLE, TOSITECASHBALANCEAFTER DOUBLE, TOSITECASHBALANCEBEFORE DOUBLE, TOSITECHEQUEBALANCEAFTER DOUBLE, TOSITECHEQUEBALANCEBEFORE DOUBLE, TOSITECREDITBALANCEAFTER DOUBLE, TOSITECREDITBALANCEBEFORE DOUBLE, TOSITEEWALLETBALANCEAFTER DOUBLE, TOSITEEWALLETBALANCEBEFORE DOUBLE, TOSITEIOUBALANCEAFTER DOUBLE, TOSITEIOUBALANCEBEFORE DOUBLE, TOSITEMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE, TOSITEMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE, TOSITEONCALLBALANCEAFTER DOUBLE, TOSITEONCALLBALANCEBEFORE DOUBLE, TOSITEONLINESETTLEMENTBALANCEAFTER DOUBLE, TOSITEONLINESETTLEMENTBALANCEBEFORE DOUBLE, TOSITEPATIENTDEPOSITBALANCEAFTER DOUBLE, TOSITEPATIENTDEPOSITBALANCEBEFORE DOUBLE, TOSITEPATIENTPOINTSBALANCEAFTER DOUBLE, TOSITEPATIENTPOINTSBALANCEBEFORE DOUBLE, TOSITESLIPBALANCEAFTER DOUBLE, TOSITESLIPBALANCEBEFORE DOUBLE, TOSITESTAFFBALANCEAFTER DOUBLE, TOSITESTAFFBALANCEBEFORE DOUBLE, TOSITESTAFFWELFAREBALANCEAFTER DOUBLE, TOSITESTAFFWELFAREBALANCEBEFORE DOUBLE, TOSITEVOUCHERBALANCEAFTER DOUBLE, TOSITEVOUCHERBALANCEBEFORE DOUBLE, VOUCHERVALUE DOUBLE, BILL_ID BIGINT, CASHBOOK_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, FROMDEPARTMENT_ID BIGINT, FROMINSTITUTION_ID BIGINT, FROMSITE_ID BIGINT, INSTITUTION_ID BIGINT, PAYMENT_ID BIGINT, RETIRER_ID BIGINT, SITE_ID BIGINT, TODEPARTMENT_ID BIGINT, TOINSTITUTION_ID BIGINT, TOSITE_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERPRIVILEGE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DESCRIPTION VARCHAR(255), NAME VARCHAR(255), PRIVILEGE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SNAME VARCHAR(255), TNAME VARCHAR(255), CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, WEBUSERROLE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AUDITEVENT (ID BIGINT AUTO_INCREMENT NOT NULL, AFTERJSON LONGTEXT, BEFOREJSON LONGTEXT, DEPARTMENTID BIGINT, ENTITYTYPE VARCHAR(255), EVENTDATATIME DATETIME, EVENTDURATION BIGINT, EVENTENDTIME DATETIME, EVENTSTATUS VARCHAR(255), EVENTTRIGGER VARCHAR(255), HOST VARCHAR(255), INSTITUTIONID BIGINT, IPADDRESS VARCHAR(255), OBJECTID BIGINT, PATIENTENCOUNTERID BIGINT, URL LONGTEXT, UUID CHAR(36), WEBUSERID BIGINT, PRIMARY KEY (ID))
CREATE TABLE RESTRICTEDPAYMENTMETHOD (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, PAYMENTMETHOD INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, MEMBERSHIPSCHEME_ID BIGINT, PAYMENTSCHEME_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PHDATE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, NAME VARCHAR(255), PHDATE DATE, PHTYPE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE REQUEST (ID BIGINT AUTO_INCREMENT NOT NULL, APPROVED TINYINT(1) default 0, APPROVEDAT DATETIME, CANCELLATIONREASON LONGTEXT, CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, COMPLETED TINYINT(1) default 0, COMPLETEDAT DATETIME, CREATEDAT DATETIME, PAYMENTMETHOD VARCHAR(255), REFERENCENUMBER VARCHAR(255), REJECTED TINYINT(1) default 0, REJECTEDAT DATETIME, REJECTIONREASON LONGTEXT, REQUESTAT DATETIME, REQUESTNO VARCHAR(255), REQUESTREASON LONGTEXT, REQUESTTYPE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, REVIEWED TINYINT(1) default 0, REVIEWEDAT DATETIME, STATUS VARCHAR(255), APPROVEDBY_ID BIGINT, BILL_ID BIGINT, BILLITEM_ID BIGINT, CANCELLEDBY_ID BIGINT, COMPLETEDBY_ID BIGINT, CREATOR_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, REJECTEDBY_ID BIGINT, REQUESTER_ID BIGINT, RETIRER_ID BIGINT, REVIEWEDBY_ID BIGINT, TARGETWEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFSHIFT (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), AUTOLEAVE TINYINT(1) default 0, CONSIDERFOREARLYOUT TINYINT(1) default 0, CONSIDERFORLATEIN TINYINT(1) default 0, CONSIDEREDFORSALARY TINYINT(1) default 0, CREATEDAT DATETIME, DAYOFWEEK INTEGER, DAYOFF TINYINT(1) default 0, DAYTYPE VARCHAR(255), EARLYINLOGGED DOUBLE, EARLYINVARIFIED DOUBLE, EARLYOUTLOGGED DOUBLE, EARLYOUTVARIFIED DOUBLE, overTimeCompleteRecordLogged DOUBLE, overTimeCompleteRecordVarified DOUBLE, overTimeFromEndRecordLogged DOUBLE, overTimeFromEndRecordVarified DOUBLE, overTimeFromStartRecordLogged DOUBLE, overTimeFromStartRecordVarified DOUBLE, LATEINLOGGED DOUBLE, LATEINVARIFIED DOUBLE, LATEOUTLOGGED DOUBLE, LATEOUTVARIFIED DOUBLE, LEAVETYPE VARCHAR(255), LEAVEDTIME DOUBLE, LEAVEDTIMENOPAY DOUBLE, LEAVEDTIMEOTHER DOUBLE, LIEUALLOWED TINYINT(1) default 0, LIEUPAID TINYINT(1) default 0, LIEUPAYMENTALLOWED TINYINT(1) default 0, LIEUQTY DOUBLE, LIEUQTYUTILIZED DOUBLE, MULTIPLYINGFACTOROVERTIME DOUBLE, multiplyingFactor DOUBLE, basicPerSecond DOUBLE, QTY DOUBLE, REPEATEDCOUNT INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SHIFTDATE DATETIME, SHIFTENDTIME DATETIME, SHIFTSTARTTIME DATETIME, SLEEPINGDAY TINYINT(1) default 0, WORKEDOUTSIDETIMEFRAMELOGGED DOUBLE, WORKEDOUTSIDETIMEFRAMEVARIFIED DOUBLE, WORKEDTIMELOGGED DOUBLE, WORKEDTIMEVARIFIED DOUBLE, WORKEDWITHINTIMEFRAMELOGGED DOUBLE, WORKEDWITHINTIMEFRAMEVARIFIED DOUBLE, WORKINGTYPE VARCHAR(255), ADDITIONALFORM_ID BIGINT, AMENDMENTFORM_ID BIGINT, CREATER_ID BIGINT, ENDRECORD_ID BIGINT, LEAVEFORM_ID BIGINT, NEXTSTAFFSHIFT_ID BIGINT, PREVIOUSSTAFFSHIFT_ID BIGINT, REFERENCESTAFFSHIFT_ID BIGINT, REFERENCESTAFFSHIFTEARLYOUT_ID BIGINT, REFERENCESTAFFSHIFTLATEIN_ID BIGINT, RETIRER_ID BIGINT, ROSTER_ID BIGINT, SHIFT_ID BIGINT, STAFFSALARY_ID BIGINT, STARTRECORD_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PROCESSINSTANCE (ID BIGINT AUTO_INCREMENT NOT NULL, CANCELLED TINYINT(1) default 0 NOT NULL, CANCELLEDAT DATETIME, COMPLETED TINYINT(1) default 0 NOT NULL, COMPLETEDAT DATETIME, CREATEDAT DATETIME, PAUSED TINYINT(1) default 0 NOT NULL, PAUSEDAT DATETIME, REJECTED TINYINT(1) default 0 NOT NULL, REJECTEDAT DATETIME, RETIRED TINYINT(1) default 0 NOT NULL, RETIREDAT DATETIME, STATUS VARCHAR(255), CANCELLEDBY_ID BIGINT, COMPLETEDBY_ID BIGINT, CREATOR_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PAUSEDBY_ID BIGINT, PROCESSDEFINITION_ID BIGINT, REJECTEDBY_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE REPORTTEMPLATE (ID BIGINT AUTO_INCREMENT NOT NULL, BILLTYPES LONGTEXT, CODE VARCHAR(255), COLUMNS LONGTEXT, CREATEDAT DATETIME, DESCRIPTION LONGTEXT, FILTERS LONGTEXT, KEYWORDS VARCHAR(255), NAME VARCHAR(255), ORDERNO INTEGER, REPORTTEMPLATETYPE INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, REPORT_ROWS LONGTEXT, TOTALS LONGTEXT, CATEGORY_ID BIGINT, CREATER_ID BIGINT, RETIRER_ID BIGINT, PARENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PROCESSSTEPACTIONDEFINITION (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIONTYPE VARCHAR(255) NOT NULL, ACTIVE TINYINT(1) default 0 NOT NULL, ALLOWSMULTIPLEACTIONS TINYINT(1) default 0 NOT NULL, CREATEDAT DATETIME, DESCRIPTION VARCHAR(500), NAME VARCHAR(100) NOT NULL, RETIRED TINYINT(1) default 0 NOT NULL, RETIREDAT DATETIME, SEQUENCEORDER DOUBLE, VERSION VARCHAR(20) NOT NULL, CREATOR_ID BIGINT, DIRECTEDPROCESSSTEPDEFINITION_ID BIGINT, PARENT_ID BIGINT, PROCESSSTEPDEFINITION_ID BIGINT NOT NULL, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLITEM (ID BIGINT AUTO_INCREMENT NOT NULL, RATE DOUBLE, ADJUSTEDVALUE DOUBLE, AGENTREFNO VARCHAR(255), BILLITEMREFUNDED TINYINT(1) default 0, BILLITEMSTATUS INTEGER, BILLTIME DATETIME, CATID VARCHAR(255), CHARGETYPEDISCOUNT DOUBLE, COLLECTINGCENTREFEE DOUBLE, CONSIDEREDFORCOSTING TINYINT(1) default 0, CREATEDAT DATETIME, DEPTID VARCHAR(255), DESCREPTION LONGTEXT, DISCOUNT DOUBLE, DISCOUNTRATE DOUBLE, EDITEDAT DATETIME, FEEVALUE DOUBLE, FROMPACKAGE TINYINT(1) default 0, FROMTIME DATETIME, GROSSVALUE DOUBLE, HOSPITALFEE DOUBLE, INSID VARCHAR(255), INSTRUCTIONS LONGTEXT, INWARDCHARGETYPE VARCHAR(255), ITEMID VARCHAR(255), MARGINRATE DOUBLE, MARGINVALUE DOUBLE, NETRATE DOUBLE, NETVALUE DOUBLE, OTHERFEE DOUBLE, OVERRIDDENRATE DOUBLE, PRIORITY VARCHAR(255), QTY DOUBLE, REAGENTFEE DOUBLE, REFUNDED TINYINT(1) default 0, REMAININGQTY DOUBLE, RETIRECOMMENTS LONGTEXT, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SEARIALNO INTEGER, SESSIONDATE DATE, SESSIONID VARCHAR(255), STAFFFEE DOUBLE, TOTIME DATETIME, VAT DOUBLE, VATPERCENTAGE DOUBLE, VATPLUSNETVALUE DOUBLE, BILL_ID BIGINT, CREATER_ID BIGINT, EDITOR_ID BIGINT, EXPENSEBILL_ID BIGINT, ITEM_ID BIGINT, PARENTBILLITEM_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PEFORMEDDEPARTMENT_ID BIGINT, PRICEMATRIX_ID BIGINT, PRIMARYSTAFF_ID BIGINT, REFERENCEBILL_ID BIGINT, REQUESTEDFROMDEPARTMENT_ID BIGINT, REQUESTEDTODEPARTMENT_ID BIGINT, RETIRER_ID BIGINT, SOURCEPACKAGEITEM_ID BIGINT, BILLITEMFINANCEDETAILS_ID BIGINT, PAIDFORBILLFEE_ID BIGINT, PRESCRIPTION_ID BIGINT, REFERANCEBILLITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ROOMFACILITYTIMEDITEM (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, ROOMFACILITYCHARGE_ID BIGINT, TIMEDITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLFEE (ID BIGINT AUTO_INCREMENT NOT NULL, FEEAT DATETIME, COMPLETEDPAYMENT TINYINT(1) default 0, CREATEDAT DATETIME, EDITEDAT DATETIME, FEEADJUSTED DOUBLE, FEECOLLECTEDBYDOCTOR TINYINT(1) default 0, FEEDISCOUNT DOUBLE, FEEGROSSVALUE DOUBLE, FEEMARGIN DOUBLE, FEEPAYMENTHOLDDATETIME DATETIME, FEEPAYMENTHOLDNOTES LONGTEXT, FEEPAYMENTONHOLD TINYINT(1) default 0, FEEUNITDISCOUNT DOUBLE, FEEUNITGROSSVALUE DOUBLE, FEEUNITMARGIN DOUBLE, FEEUNITVALUE DOUBLE, FEEVALUE DOUBLE, FEEVAT DOUBLE, FEEVATPLUSVALUE DOUBLE, FREEOFCHARGE TINYINT(1) default 0, FROMPACKAGE TINYINT(1) default 0, FULLYSETTLED TINYINT(1) default 0, ORDERNO INTEGER, OVERRIDDENRATE DOUBLE, PAIDVALUE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, RETURNED TINYINT(1) default 0, SETTLEVALUE DOUBLE, BILL_ID BIGINT, BILLITEM_ID BIGINT, CHILDENCOUNTER_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITOR_ID BIGINT, FEE_ID BIGINT, FEEPAYMENTHOLDBY_ID BIGINT, INSTITUTION_ID BIGINT, PATIENENCOUNTER_ID BIGINT, PATIENT_ID BIGINT, PATIENTITEM_ID BIGINT, PRICEMATRIX_ID BIGINT, REFERENCEBILLFEE_ID BIGINT, REFERENCEBILLITEM_ID BIGINT, REFERENCEPATIENTROOM_ID BIGINT, RETIRER_ID BIGINT, SOURCEPACKAGEITEM_ID BIGINT, SPECIALITY_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTSAMPLECOMPONANT (ID BIGINT AUTO_INCREMENT NOT NULL, CANCELLCOMMENTS VARCHAR(255), CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, COLLECTED TINYINT(1) default 0, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SAMPLECOMMENTS VARCHAR(255), SAMPLEOUTSIDE TINYINT(1) default 0, SAMPLEDAT DATETIME, SEPARATED TINYINT(1) default 0, BILL_ID BIGINT, CANCELLDEPARTMENT_ID BIGINT, CANCELLINSTITUTION_ID BIGINT, CANCELLEDUSER_ID BIGINT, CREATER_ID BIGINT, INVESTIGATIONCOMPONANT_ID BIGINT, MACHINE_ID BIGINT, PATIENT_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, PATIENTSAMPLE_ID BIGINT, RETIRER_ID BIGINT, SAMPLE_ID BIGINT, SAMPLECOLLECTER_ID BIGINT, SAMPLEDEPARTMENT_ID BIGINT, SAMPLEINSTITUTION_ID BIGINT, SEPARATEDFROM_ID BIGINT, TEST_ID BIGINT, TUBE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FEE (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), BOOLEANVALUE TINYINT(1) default 0, CCFEE DOUBLE, CODE VARCHAR(255), CREATEDAT DATETIME, DESCRIPTION LONGTEXT, DISCOUNTALLOWED TINYINT(1) default 0, EDITEDAT DATETIME, FEE DOUBLE, FEETYPE VARCHAR(255), FFEE DOUBLE, MARGINALLOWED TINYINT(1) default 0, NAME VARCHAR(255), PRIMARYFEE TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, FORCATEGORY_ID BIGINT, FORDEPARTMENT_ID BIGINT, FORINSTITUTION_ID BIGINT, FROMDEPARTMENT_ID BIGINT, FROMINSTITUTION_ID BIGINT, FROMSPECIALITY_ID BIGINT, FROMSTAFF_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, PACKEGE_ID BIGINT, RETIRER_ID BIGINT, SERVICESESSION_ID BIGINT, SPECIALITY_ID BIGINT, STAFF_ID BIGINT, TODEPARTMENT_ID BIGINT, TOINSTITUTION_ID BIGINT, TOSPACIALITY_ID BIGINT, TOSTAFF_ID BIGINT, DURATIONDAYSFORMOCHARGE BIGINT, DURATIONHOURS DOUBLE, OVERSHOOTHOURS DOUBLE, REPEATING TINYINT(1) default 0, SORTORDER INTEGER, SESSION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AGGREGATEDRECORD (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATE, `key` VARCHAR(255), RECORDDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, VALUE DOUBLE, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, FROMDEPARTMENT_ID BIGINT, FROMINSTITUTION_ID BIGINT, FROMSTAFF_ID BIGINT, FROMWEBUSER_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, TODEPARTMENT_ID BIGINT, TOINSTITUTION_ID BIGINT, TOSTAFF_ID BIGINT, TOWEBUSER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SESSIONINSTANCEACTIVITY (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVITYCOMPLETED TINYINT(1) default 0, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, APPOINTMENTACTIVITY_ID BIGINT, CREATER_ID BIGINT, RETIRER_ID BIGINT, SESSIONINSTANCE_ID BIGINT, BILLSESSION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CAPTURECOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, BOOLEANVALUE TINYINT(1) default 0, BYTEARRAYVALUE LONGBLOB, COMPONENTDATATYPE VARCHAR(255), COMPONENTPRESENTATIONTYPE VARCHAR(255), CREATEDAT DATETIME, DATEVALUE DATETIME, DESCRIPTION LONGTEXT, DOUBLEVALUE DOUBLE, EDITHTML LONGTEXT, INTVALUE INTEGER, LONGTEXTVALUE LONGTEXT, LONGVALUE BIGINT, MAXRATING INTEGER, max_value DOUBLE, min_value DOUBLE, NAME VARCHAR(255), OFFLABEL VARCHAR(255), ONLABEL VARCHAR(255), PLACEHOLDER VARCHAR(255), RATINGINTVALUE INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SHORTTEXTVALUE VARCHAR(255), STEPSIZE DOUBLE, TYPE VARCHAR(255), VIEWHTML LONGTEXT, CREATER_ID BIGINT, DESIGNCOMPONENT_ID BIGINT, ITEMVALUE_ID BIGINT, PARENT_ID BIGINT, PATIENTFORMENTRY_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFWORKDAY (ID BIGINT AUTO_INCREMENT NOT NULL, FROMDATE DATE, HOLIDAY INTEGER, SATURDAY INTEGER, SUNDAY INTEGER, TODATE DATE, WEEKDAYS INTEGER, WORKHOUR DOUBLE, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE USERSTOCKCONTAINER (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFSALARYCOMPONANT (ID BIGINT AUTO_INCREMENT NOT NULL, COMMENTS VARCHAR(255), COMPONANTVALUE DOUBLE, CREATEDAT DATETIME, EPFCOMPANYVALUE DOUBLE, EPFVALUE DOUBLE, ETFCOMPANYVALUE DOUBLE, ETFVALUE DOUBLE, LASTEDITEDAT DATE, PAID TINYINT(1) default 0, PAIDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, LASTEDITOR_ID BIGINT, PAIDBY_ID BIGINT, RETIRER_ID BIGINT, SALARYCYCLE_ID BIGINT, STAFF_ID BIGINT, STAFFPAYSHEETCOMPONENT_ID BIGINT, STAFFPAYSHEETCOMPONENTPERCENTAGE_ID BIGINT, STAFFSALARY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PAYMENTGATEWAYTRANSACTION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, ORDERAMOUNT DOUBLE, ORDERID VARCHAR(255), ORDERSTATUS VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SESSIONID VARCHAR(255), TRANSACTIONID VARCHAR(255), BILL_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, SESSIONINSTANCE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE USERNOTIFICATION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SEEN TINYINT(1) default 0, CREATER_ID BIGINT, NOTIFICATION_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, TODEPARTMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTREPORT (ID BIGINT AUTO_INCREMENT NOT NULL, APPROVEAT DATETIME, APPROVECOMMENTS VARCHAR(255), APPROVED TINYINT(1) default 0, AUTOMATED TINYINT(1) default 0, AUTOMATEDAT DATETIME, CANCELLCOMMENTS VARCHAR(255), CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, CREATEDAT DATETIME, DATAENTERED TINYINT(1) default 0, DATAENTRYAT DATETIME, DATAENTRYCOMMENTS VARCHAR(255), HANDOVERCOMPLETE TINYINT(1) default 0, PATIENTAGE VARCHAR(255), PATIENTGENDER VARCHAR(255), PATIENTNAME VARCHAR(255), PRINTCOMPLETE TINYINT(1) default 0, PRINTED TINYINT(1) default 0, PRINTINGAT DATETIME, PRINTINGCOMMENTS VARCHAR(255), QRCODECONTENTSDETAILED LONGTEXT, QRCODECONTENTSLINK LONGTEXT, REPORTTYPE VARCHAR(255), REQUIRESIMMEDIATEDOCTORREVIEW TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, RETURNCOMMENTS VARCHAR(255), RETURNED TINYINT(1) default 0, RETURNEDAT DATETIME, SAMPLEIDS VARCHAR(255), SENDEMAILCOMPLETE TINYINT(1) default 0, SENDSMSCOMPLETE TINYINT(1) default 0, STATUS INTEGER, APPROVEDEPARTMENT_ID BIGINT, APPROVEINSTITUTION_ID BIGINT, APPROVEUSER_ID BIGINT, AUTOMATEDANALYZER_ID BIGINT, AUTOMATEDDEPARTMENT_ID BIGINT, AUTOMATEDDEPARTMENTANALYZER_ID BIGINT, AUTOMATEDINSTITUTION_ID BIGINT, AUTOMATEDUSER_ID BIGINT, CANCELLDEPARTMENT_ID BIGINT, CANCELLINSTITUTION_ID BIGINT, CANCELLEDUSER_ID BIGINT, CREATER_ID BIGINT, DATAENTRYDEPARTMENT_ID BIGINT, DATAENTRYINSTITUTION_ID BIGINT, DATAENTRYUSER_ID BIGINT, ITEM_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, PRINTINGDEPARTMENT_ID BIGINT, PRINTINGINSTITUTION_ID BIGINT, PRINTINGUSER_ID BIGINT, REPORTFORMAT_ID BIGINT, RETIRER_ID BIGINT, RETURNDEPARTMENT_ID BIGINT, RETURNINSTITUTION_ID BIGINT, RETURNEDUSER_ID BIGINT, UPLOADEDREPORT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTSAMPLE (ID BIGINT AUTO_INCREMENT NOT NULL, BARCODEGENERATED TINYINT(1) default 0, BARCODEGENERATEDAT DATETIME, CANCELLCOMMENTS VARCHAR(255), CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, CREATEDAT DATETIME, OUTSOURCED TINYINT(1) default 0, OUTSOURCEDAT DATETIME, PRIORITY INTEGER, READYTOSENTTOANALYZER TINYINT(1) default 0, RECEIVEDFROMANALYZER TINYINT(1) default 0, RECEIVEDFROMANALYZERAT DATETIME, RECEIVEDFROMANALYZERCOMMENTS LONGTEXT, REQUESTRECOLLECTED TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SAMPLECOLLECTED TINYINT(1) default 0, SAMPLECOLLECTEDAT DATETIME, SAMPLECOLLECTEDOUTSIDE TINYINT(1) default 0, SAMPLECOLLECTIONCOMMENTS VARCHAR(255), SAMPLEID BIGINT, SAMPLERECEIVEDATLAB TINYINT(1) default 0, SAMPLERECEIVEDATLABAT DATETIME, SAMPLERECEIVEDATLABCOMMENTS VARCHAR(255), SAMPLEREJECTED TINYINT(1) default 0, SAMPLEREJECTEDAT DATETIME, SAMPLEREJECTIONCOMMENT VARCHAR(255), SAMPLEREQUESTTYPE VARCHAR(255), SAMPLESENT TINYINT(1) default 0, SAMPLESENTAT DATETIME, SENTTOANALYZER TINYINT(1) default 0, SENTTOANALYZERAT DATETIME, SENTTOANALYZERCOMMENTS LONGTEXT, SEPARATED TINYINT(1) default 0, STATUS INTEGER, BARCODEGENERATEDDEPARTMENT_ID BIGINT, BARCODEGENERATEDINSTITUTION_ID BIGINT, BARCODEGENERATOR_ID BIGINT, BILL_ID BIGINT, CANCELLDEPARTMENT_ID BIGINT, CANCELLINSTITUTION_ID BIGINT, CANCELLEDUSER_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, DIVERTEDFROM_ID BIGINT, DIVERTEDTO_ID BIGINT, DUPLICATEDFROM_ID BIGINT, DUPLICATEDTO_ID BIGINT, INSTITUTION_ID BIGINT, INVESTIGATIONCOMPONANT_ID BIGINT, MACHINE_ID BIGINT, OUTSOURCEDEPARTMENT_ID BIGINT, OUTSOURCEINSTITUTION_ID BIGINT, OUTSOURCESAMPLETRANSPORTER_ID BIGINT, OUTSOURCESENTUSER_ID BIGINT, PATIENT_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, RECEIVEDFROMANALYZERBY_ID BIGINT, RECEIVEDFROMANALYZERDEPARTMENT_ID BIGINT, RECEIVEDFROMANALYZERINSTITUTION_ID BIGINT, REFERENCESAMPLE_ID BIGINT, RETIRER_ID BIGINT, SAMPLE_ID BIGINT, SAMPLECOLLECTEDDEPARTMENT_ID BIGINT, SAMPLECOLLECTEDINSTITUTION_ID BIGINT, SAMPLECOLLECTER_ID BIGINT, SAMPLERECEIVEDATLABDEPARTMENT_ID BIGINT, SAMPLERECEIVEDATLABINSTITUTION_ID BIGINT, SAMPLERECEIVERATLAB_ID BIGINT, SAMPLEREJECTEDBY_ID BIGINT, SAMPLESENTBY_ID BIGINT, SAMPLESENTTODEPARTMENT_ID BIGINT, SAMPLESENTTOINSTITUTION_ID BIGINT, SAMPLETRANSPORTEDTOLABBYSTAFF_ID BIGINT, SENTTOANALYZERBY_ID BIGINT, SENTTOANALYZERDEPARTMENT_ID BIGINT, SENTTOANALYZERINSTITUTION_ID BIGINT, SEPARATEDFROM_ID BIGINT, TEST_ID BIGINT, TUBE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMMAPPING (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AREA (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DESCRIPTION VARCHAR(255), NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SNAME VARCHAR(255), TNAME VARCHAR(255), CREATER_ID BIGINT, RETIRER_ID BIGINT, SUPERAREA_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTREPORTGROUP (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, GROUPNAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, PATIENTREPORT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ALLOWEDPAYMENTMETHOD (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, PAYMENTMETHOD INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, MEMBERSHIPSCHEME_ID BIGINT, PAYMENTSCHEME_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INVESTIGATIONCOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, COMPONENTNAME VARCHAR(255), INVESTIGATION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTENCOUNTER (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), ACTIVITYINSTRUCTIONS LONGTEXT, ADJUSTEDTOTAL DOUBLE, AMOUNTDUEATFINALPROCESSING DOUBLE, BHTLONG BIGINT, BHTNO VARCHAR(255), BMI DOUBLE, CLAIMABLE TINYINT(1) default 0, CLINICALDISCHARGEDATETIME DATETIME, CLINICALLYDISCHARGED TINYINT(1) default 0, COMMENTS LONGTEXT, CONVERTEDTOANOTHERENCOUNTER TINYINT(1) default 0, CREATEDAT DATETIME, CREDITLIMIT DOUBLE, CREDITPAIDAMOUNT DOUBLE, CREDITUSEDAMOUNT DOUBLE, DATEOFADMISSION DATETIME, DATEOFDISCHARGE DATETIME, DBP BIGINT, DIETINSTRUCTIONS LONGTEXT, DISCHARGED TINYINT(1) default 0, DISCOUNT DOUBLE, DISCOUNTAVAILABLEATFINALPROCESSING DOUBLE, ENCOUNTERDATE DATE, ENCOUNTERDATETIME DATETIME, ENCOUNTERID BIGINT, ENCOUNTERREGISTRATIONFLAG VARCHAR(255), ENCOUNTERTYPE INTEGER, FOLLOWUPPLAN LONGTEXT, FORIEGNER TINYINT(1) default 0, FROMTIME DATETIME, GRANTTOTAL DOUBLE, HEIGHT DOUBLE, LASTPROCESSAT DATETIME, NAME VARCHAR(255), NETTOTAL DOUBLE, NURSINGDISCHARGEDATETIME DATETIME, NURSINGDISCHARGENOTES LONGTEXT, NURSINGDISCHARGED TINYINT(1) default 0, PATIENTENCOUNTERTYPE VARCHAR(255), PAYMENTFINALIZED TINYINT(1) default 0, PAYMENTMETHOD VARCHAR(255), PFR INTEGER, PHYSICALDISCHARGEDATETIME DATETIME, PHYSICALDISCHARGED TINYINT(1) default 0, PLANOFACTION LONGTEXT, POLICYNO VARCHAR(255), PR BIGINT, PRINTINGADMISSIONTIME DATETIME, PRINTINGDISCHARGETIME DATETIME, PROFESSIONALPAYMENTSHOLDDATETIME DATETIME, PROFESSIONALPAYMENTSHOLDNOTES LONGTEXT, PROFESSIONALPAYMENTSONHOLD TINYINT(1) default 0, REFERANCENO VARCHAR(255), REFERRALID VARCHAR(255), REFERRINGMETHOD VARCHAR(255), RESPIRATORYRATE INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ROOMADMITTED TINYINT(1) default 0, ROOMDISCHARGEDATETIME DATETIME, SATURATION DOUBLE, SBP BIGINT, TEMPERATURE DOUBLE, TIMEOFADMISSION DATETIME, TIMEOFDISCHARGE DATETIME, TOTIME DATETIME, TOTALATFINALPROCESSING DOUBLE, TOTALCOMPANYPAIDATFINALPROCESSING DOUBLE, TOTALPATIENTPAIDATFINALPROCESSING DOUBLE, VISITWEIGHT DOUBLE, WEIGHT DOUBLE, ADMISSIONTYPE_ID BIGINT, BILLSESSION_ID BIGINT, CLINICALDISCHARGEDBY_ID BIGINT, CREATER_ID BIGINT, CREDITCOMPANY_ID BIGINT, CURRENTPATIENTROOM_ID BIGINT, DEPARTMENT_ID BIGINT, DISCHARGECONDITION_ID BIGINT, ENCOUNTERRESERVATION_ID BIGINT, FINALBILL_ID BIGINT, GUARDIAN_ID BIGINT, GUARDIANRELATIONSHIPTOPATIENT_ID BIGINT, INPATIENTPACKAGE_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, LASTPROCESSBY_ID BIGINT, NURSINGDISCHARGEDBY_ID BIGINT, OPDDOCTOR_ID BIGINT, PARENTENCOUNTER_ID BIGINT, PATIENT_ID BIGINT, PAYMENTSCHEME_ID BIGINT, PHYSICALDISCHARGEDBY_ID BIGINT, PRIMARYREASON_ID BIGINT, PROFESSIONALPAYMENTSHOLDBY_ID BIGINT, REFERREDBYINSTITUTION_ID BIGINT, REFERRINGCONSULTANT_ID BIGINT, REFERRINGDOCTOR_ID BIGINT, REFERRINGPERSON_ID BIGINT, REFERRINGSTAFF_ID BIGINT, RETIRER_ID BIGINT, ROOMDISCHARGEDBY_ID BIGINT, WORKPLACE_ID BIGINT, APPOINTMENTCANCEL TINYINT(1) default 0, APPOINTMENTCANCELAT DATETIME, APPOINTMENTCANCELREASON VARCHAR(255), APPOINTMENTCOMPLETE TINYINT(1) default 0, APPOINTMENTCOMPLETEAT DATETIME, APPOINTMENTDATE DATETIME, APPOINTMENTNUMBER VARCHAR(255), APPOINTMENTTIMEFROM DATETIME, APPOINTMENTTIMETO TIME, APPOINTMENTTYPE VARCHAR(255), STATUS VARCHAR(255), APPOINTMENTCANCELBILL_ID BIGINT, APPOINTMENTCANCELBY_ID BIGINT, APPOINTMENTCOMPLETEBY_ID BIGINT, SCHEDULEINSTANCE_ID BIGINT, BILL_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INVESTIGATIONITEMVALUE (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), CODE VARCHAR(255), CREATEDAT DATETIME, NAME VARCHAR(255), ORDERNO INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, INVESTIGATIONITEM_ID BIGINT, RETIRER_ID BIGINT, DISPLAYFLAGMESSAGE TINYINT(1) default 0, DISPLAYHIGHMESSAGE TINYINT(1) default 0, DISPLAYLOWMESSAGE TINYINT(1) default 0, DISPLAYNORMALMESSAGE TINYINT(1) default 0, FLAGMESSAGE LONGTEXT, FROMAGE BIGINT, FROMVAL DOUBLE, HIGHMESSAGE LONGTEXT, LOWMESSAGE LONGTEXT, NORMALMESSAGE LONGTEXT, SEX VARCHAR(255), TOAGE BIGINT, TOVAL DOUBLE, INVESTIGATIONITEMOFFLAGTYPE_ID BIGINT, INVESTIGATIONITEMOFLABELTYPE_ID BIGINT, INVESTIGATIONITEMOFVALUETYPE_ID BIGINT, ITEM_ID BIGINT, INVESTIGATIONITEMVALUECATEGORY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTFORMENTRY (ID BIGINT AUTO_INCREMENT NOT NULL, COMMENTS LONGTEXT, CREATEDAT DATETIME, EDITEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DESIGNCOMPONENT_ID BIGINT, EDITOR_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE REORDER (ID BIGINT AUTO_INCREMENT NOT NULL, BUFFERSTOCKS DOUBLE, DEMANDINUNITSPERDAY DOUBLE, GENERICORDERING TINYINT(1) default 0, LEADTIMEINDAYS INTEGER, MONTHSCONSIDEREDFORSHORTTERMANALYSIS INTEGER, PURCHASECYCLEDURATIONINDAYS INTEGER, ROL DOUBLE, ROQ DOUBLE, SERVICELEVEL DOUBLE, YEARSCONSIDEREDFORLOGNTERMANALYSIS INTEGER, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, PERSON_ID BIGINT, SUPPLIER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INSTITUTION (ID BIGINT AUTO_INCREMENT NOT NULL, COLLECTINGCENTREPAYMENTMETHOD VARCHAR(255), ACCOUNTNO VARCHAR(255), ADDRESS VARCHAR(255), AGENTBALANCE DOUBLE, ALLOWEDCREDIT DOUBLE, ALLOWEDCREDITLIMIT DOUBLE, BALLANCE DOUBLE, BANKNAME VARCHAR(255), BRANCHNAME VARCHAR(255), CASHIERBILLHEADING LONGTEXT, CHEQUEPRINTINGNAME VARCHAR(255), CODE VARCHAR(255), COMPANYBALANCE DOUBLE, CONTACTPERSONNAME VARCHAR(255), CREATEDAT DATETIME, DEFAULTINSTITUTION TINYINT(1) default 0, DESCREPTION LONGTEXT, EMAIL VARCHAR(255), EMAILSENDINGPASSWORD VARCHAR(255), EMAILSENDINGUSERNAME VARCHAR(255), FAX VARCHAR(255), INACTIVE TINYINT(1) default 0, INSTITUTIONCODE VARCHAR(255), INSTITUTIONTYPE VARCHAR(255), INWARDDISCOUNT DOUBLE, LABBILLDISCOUNT DOUBLE, LABBILLHEADING LONGTEXT, LEGALCOMPANY VARCHAR(255), MAXCREDITLIMIT DOUBLE, MOBILE VARCHAR(255), NAME VARCHAR(255), OPDBILLDISCOUNT DOUBLE, OPDBILLHEADING LONGTEXT, OWNEREMAIL VARCHAR(255), OWNERNAME VARCHAR(255), PAYMENTCOMPANYNAME VARCHAR(255), PERCENTAGE DOUBLE, PHARMACYBILLHEADING LONGTEXT, PHARMACYDISCOUNT DOUBLE, PHONE VARCHAR(255), POINTOFISSUENO VARCHAR(255), QBSUPPLIERNAME VARCHAR(255), RADIOLOGYBILLHEADING LONGTEXT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SMSSENDINGALIAS VARCHAR(255), SMSSENDINGPASSWORD VARCHAR(255), SMSSENDINGUSERNAME VARCHAR(255), STANDARDCREDITLIMIT DOUBLE, SVGCHILDVIEW LONGTEXT, SVGPARENTVIEW LONGTEXT, WEB VARCHAR(255), BANKBRANCH_ID BIGINT, CONTACTPERSON_ID BIGINT, CREATER_ID BIGINT, FEELISTTYPE_ID BIGINT, INSTITUTION_ID BIGINT, LABDEPARTMENT_ID BIGINT, LABINSTITUTION_ID BIGINT, PARENTINSTITUTION_ID BIGINT, RETIRER_ID BIGINT, ROUTE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERPAYMENTSCHEME (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, PAYMENTSCHEME_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE LABTESTHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, ANALYZERRECEIVEMESSAGE VARCHAR(255), COMMENT VARCHAR(255), CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STATUS VARCHAR(255), TESTHISTORYTYPE VARCHAR(255), ANALYZER_ID BIGINT, CREATEDBY_ID BIGINT, DEPARTMENT_ID BIGINT, EMAIL_ID BIGINT, FROMDEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, PATIENTREPORT_ID BIGINT, PATIENTSAMPLE_ID BIGINT, RETIREDBY_ID BIGINT, SAMPLECOMPONENT_ID BIGINT, SMS_ID BIGINT, STAFF_ID BIGINT, TODEPARTMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DETAILEDFINANCIALBILL (ID BIGINT AUTO_INCREMENT NOT NULL, AGENTDIFFERENCE DOUBLE, AGENTHANDOVERVALUE DOUBLE, AGENTVALUE DOUBLE, CARDDIFFERENCE DOUBLE, CARDHANDOVERVALUE DOUBLE, CARDVALUE DOUBLE, CASHDIFFERENCE DOUBLE, CASHHANDOVERVALUE DOUBLE, CASHVALUE DOUBLE, CHEQUEDIFFERENCE DOUBLE, CHEQUEHANDOVERVALUE DOUBLE, CHEQUEVALUE DOUBLE, CREATEDAT DATETIME, CREDITDIFFERENCE DOUBLE, CREDITHANDOVERVALUE DOUBLE, CREDITVALUE DOUBLE, EWALLETDIFFERENCE DOUBLE, EWALLETHANDOVERVALUE DOUBLE, EWALLETVALUE DOUBLE, FLOATBALANCEVALUE DOUBLE, FLOATINVALUE DOUBLE, FLOATOUTVALUE DOUBLE, IOUDIFFERENCE DOUBLE, IOUHANDOVERVALUE DOUBLE, IOUVALUE DOUBLE, MULTIPLEPAYMENTMETHODSDIFFERENCE DOUBLE, MULTIPLEPAYMENTMETHODSHANDOVERVALUE DOUBLE, MULTIPLEPAYMENTMETHODSVALUE DOUBLE, NONEDIFFERENCE DOUBLE, NONEHANDOVERVALUE DOUBLE, NONEVALUE DOUBLE, ONCALLDIFFERENCE DOUBLE, ONCALLHANDOVERVALUE DOUBLE, ONCALLVALUE DOUBLE, ONLINESETTLEMENTDIFFERENCE DOUBLE, ONLINESETTLEMENTHANDOVERVALUE DOUBLE, ONLINESETTLEMENTVALUE DOUBLE, PATIENTDEPOSITDIFFERENCE DOUBLE, PATIENTDEPOSITHANDOVERVALUE DOUBLE, PATIENTDEPOSITVALUE DOUBLE, PATIENTPOINTSDIFFERENCE DOUBLE, PATIENTPOINTSHANDOVERVALUE DOUBLE, PATIENTPOINTSVALUE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SLIPDIFFERENCE DOUBLE, SLIPHANDOVERVALUE DOUBLE, SLIPVALUE DOUBLE, STAFFDIFFERENCE DOUBLE, STAFFHANDOVERVALUE DOUBLE, STAFFVALUE DOUBLE, STAFFWELFAREDIFFERENCE DOUBLE, STAFFWELFAREHANDOVERVALUE DOUBLE, STAFFWELFAREVALUE DOUBLE, VOUCHERDIFFERENCE DOUBLE, VOUCHERHANDOVERVALUE DOUBLE, VOUCHERVALUE DOUBLE, YOUOWEMEDIFFERENCE DOUBLE, YOUOWEMEHANDOVERVALUE DOUBLE, YOUOWEMEVALUE DOUBLE, CREATER_ID BIGINT, RETIRER_ID BIGINT, BILL_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERROUTE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, ROUTE_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AICONVERSATION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TITLE VARCHAR(255), CREATER_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FAMILYMEMBER (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, EDITEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, EDITER_ID BIGINT, FAMILY_ID BIGINT, PATIENT_ID BIGINT, RELATIONTOCHH_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PERSONINSTITUTION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TYPE VARCHAR(255), CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PERSON_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SCHEDULEDPROCESSCONFIGURATION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, LASTPROCESSCOMPLETED TINYINT(1) default 0, LASTRUNENDED DATETIME, LASTRUNSTARTED DATETIME, LASTSUPPOSEDAT DATETIME, NEXTSUPPOSEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SCHEDULEDFREQUENCY VARCHAR(255), SCHEDULEDPROCESS VARCHAR(255), CREATEDBY_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, RETIREDBY_ID BIGINT, SITE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ADMISSIONNUMBER (ID BIGINT AUTO_INCREMENT NOT NULL, ADMISSIONTYPEENUM VARCHAR(255), LASTADMISSIONNUMBER BIGINT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ADMISSIONTYPE_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PROCESSSTEPDEFINITION (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVE TINYINT(1) default 0 NOT NULL, CREATEDAT DATETIME, DESCRIPTION VARCHAR(500), NAME VARCHAR(100) NOT NULL, RETIRED TINYINT(1) default 0 NOT NULL, RETIREDAT DATETIME, SEQUENCEORDER DOUBLE, VERSION VARCHAR(20) NOT NULL, CREATOR_ID BIGINT, PARENT_ID BIGINT, PROCESSDEFINITION_ID BIGINT NOT NULL, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DESIGNCOMPONENTCHOICE (ID BIGINT AUTO_INCREMENT NOT NULL, LABEL VARCHAR(255), ORDERNO INTEGER, RETIRED TINYINT(1) default 0, VALUE VARCHAR(255), DESIGNCOMPONENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DOCUMENTTEMPLATE (ID BIGINT AUTO_INCREMENT NOT NULL, AUTOGENERATE TINYINT(1) default 0, CONTENTS LONGTEXT, CREATEDAT DATETIME, DEFAULTTEMPLATE TINYINT(1) default 0, NAME VARCHAR(255), RETIRED TINYINT(1) default 0, SUBJECT VARCHAR(255), TYPE INTEGER, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ADJUSTMENTBILLITEM (ID BIGINT AUTO_INCREMENT NOT NULL, AFTERQTY DOUBLE, AFTEREXPIRYDATE DATE, AFTERPURCHASERATE DOUBLE, AFTERRETAILRATE DOUBLE, AFTERWHOLESALERATE DOUBLE, CREATEDAT DATETIME, EDITEDAT DATETIME, EXPIRYDATE DATE, PURCHASERATE DOUBLE, QTY DOUBLE, RETAILRATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, WHOLESALERATE DOUBLE, CREATER_ID BIGINT, EDITER_ID BIGINT, RETIRER_ID BIGINT, BILLITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE APPOINTMENTSCHEDULEINSTANCE (ID BIGINT AUTO_INCREMENT NOT NULL, BOOKEDCOUNT INTEGER, CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, CREATEDAT DATETIME, ENDTIME TIME, INSTANCEDATE DATE, MAXCOUNT INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STARTTIME TIME, CANCELLEDBY_ID BIGINT, CREATER_ID BIGINT, RETIRER_ID BIGINT, TEMPLATE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFSHIFTHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, ROSTER_ID BIGINT, SHIFT_ID BIGINT, STAFF_ID BIGINT, STAFFSHIFT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CASHBOOK (ID BIGINT AUTO_INCREMENT NOT NULL, NAME VARCHAR(255), AGENTBALANCE DOUBLE, CARDBALANCE DOUBLE, CASHBALANCE DOUBLE, CHEQUEBALANCE DOUBLE, CREATEDAT DATETIME, CREDITBALANCE DOUBLE, EDITEDAT DATETIME, EWALLETBALANCE DOUBLE, IOUBALANCE DOUBLE, MULTIPLEPAYMENTMETHODSBALANCE DOUBLE, NONEBALANCE DOUBLE, ONCALLBALANCE DOUBLE, ONLINESETTLEMENTBALANCE DOUBLE, PATIENTDEPOSITBALANCE DOUBLE, PATIENTPOINTSBALANCE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SLIPBALANCE DOUBLE, STAFFBALANCE DOUBLE, STAFFWELFAREBALANCE DOUBLE, VOUCHERBALANCE DOUBLE, YOUOWEMEBALANCE DOUBLE, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, SITE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE MEDICALPACKAGEITEM (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, ITEM_ID BIGINT, PACKEGE_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTDEPOSITHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, ALLPATIENTSDEPOSITBALANCEFORALLINSTITUTIONS DOUBLE, ALLPATIENTSDEPOSITBALANCEFORDEPARTMENT DOUBLE, ALLPATIENTSDEPOSITBALANCEFORINSTITUTION DOUBLE, ALLPATIENTSDEPOSITBALANCEFORSITE DOUBLE, BALANCEAFTERTRANSACTION DOUBLE, BALANCEBEFORETRANSACTION DOUBLE, COMMENT VARCHAR(255), CREATEDAT DATETIME, HISTORYTYPE INTEGER, PATIENTDEPOSITBALANCEFORALLINSTITUTIONS DOUBLE, PATIENTDEPOSITBALANCEFORINSTITUTION DOUBLE, PATIENTDEPOSITBALANCEFORSITE DOUBLE, REFERENCENUMBER VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TRANSACTIONVALUE DOUBLE, BILL_ID BIGINT, BILLITEM_ID BIGINT, BILLSESSION_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PATIENTDEPOSIT_ID BIGINT, RETIRER_ID BIGINT, SITE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMBATCHARCHIVE (ID BIGINT NOT NULL, ARCHIVEDAT DATETIME, BARCODE VARCHAR(255), BATCHNO VARCHAR(255), CHASSISNO VARCHAR(255), COLOUR VARCHAR(255), COSTRATE DOUBLE, DATEOFEXPIRE DATETIME, DATEOFMANUFACTURE DATETIME, DEPRECITIONRATE DOUBLE, DESCRIPTION LONGTEXT, ENGINENO VARCHAR(255), MODAL VARCHAR(255), NUMBEROFACCESSORIES INTEGER, OTHERNOTES LONGTEXT, PURCAHSERATE DOUBLE, REGISTRATIONNO VARCHAR(255), RETAILSALERATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SERIALNO VARCHAR(255), TOTALACQUICITIONCOST DOUBLE, WARRENTYCERTIFICATENUMBER VARCHAR(255), WARRENTYDURATION BIGINT, WHOLESALERATE DOUBLE, ITEM_ID BIGINT, LASTPURCHASEBILLITEM_ID BIGINT, MAKE_ID BIGINT, MANUFACTURER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STOCKARCHIVE (ID BIGINT NOT NULL, ARCHIVEDAT DATETIME, BARCODE VARCHAR(255), CODE VARCHAR(255), DATEOFEXPIRE DATE, ENDBARCODE BIGINT, ITEMNAME VARCHAR(255), LONGCODE BIGINT, RETAILSALERATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STARTBARCODE BIGINT, STOCK DOUBLE, STOCKLOCATOR VARCHAR(255), DEPARTMENT_ID BIGINT, ITEMBATCH_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLNUMBER (ID BIGINT AUTO_INCREMENT NOT NULL, APPOINTMENTTYPE VARCHAR(255), BILLCLASSTYPE VARCHAR(255), BILLTYPE VARCHAR(255), BILLTYPEATOMIC VARCHAR(255), BILLYEAR INTEGER, LASTBILLNUMBER BIGINT, OPDANDINPATIENTSERVICEBATCHBILLS TINYINT(1) default 0, OPDANDINPATIENTSERVICEBILLS TINYINT(1) default 0, PAYMENTMETHOD VARCHAR(255), REQUESTTYPE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, VOUCHERNUMBER TINYINT(1) default 0, ADMISSIONTYPE_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, TODEPARTMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERDEFAULTLOGINPAGE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, LOGINPAGE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CONFIGOPTION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, ENUMTYPE VARCHAR(255), ENUMVALUE VARCHAR(255), OPTIONKEY VARCHAR(255), OPTIONVALUE LONGTEXT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SCOPE VARCHAR(255), VALUETYPE VARCHAR(255), CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AGENTREFERENCEBOOK (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVE TINYINT(1) default 0, BOOKNUMBER DOUBLE, CHECKEAT DATETIME, CREATEDAT DATETIME, DEACTIVATE TINYINT(1) default 0, EDITEDAT DATETIME, ENDINGREFERENCENUMBER DOUBLE, FULLYUTILIZED TINYINT(1) default 0, REFERENCEBOOKENUM VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STARTINGREFERENCENUMBER DOUBLE, STRBOOKNUMBER VARCHAR(255), CHECKEDBY_ID BIGINT, CREATER_ID BIGINT, EDITOR_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE MRNNUMBER (ID BIGINT AUTO_INCREMENT NOT NULL, LASTMRNNUMBER BIGINT, YEAR INTEGER, PRIMARY KEY (ID))
CREATE TABLE DENOMINATION (ID BIGINT AUTO_INCREMENT NOT NULL, CODE VARCHAR(255), CREATEDAT DATETIME, DENOMINATIONVALUE DOUBLE, DISPLAYNAME VARCHAR(255), NAME VARCHAR(255), ORDERNUMBER DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFSTAFFCATEGORY (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFFEMPLOYMENT_ID BIGINT, STAFFCATEGORY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FINGERPRINTRECORD (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), allowedOverTime TINYINT(1) default 0, APPROVECOMMENTS VARCHAR(255), APPROVED TINYINT(1) default 0, APPROVEDAT DATETIME, COMMENTS VARCHAR(255), CREATEDAT DATETIME, DAYTYPE VARCHAR(255), FINGERPRINTRECORDTYPE VARCHAR(255), RECORDTIMESTAMP DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TIMES VARCHAR(255), APPROVER_ID BIGINT, CREATER_ID BIGINT, RETIRER_ID BIGINT, ROSTER_ID BIGINT, STAFF_ID BIGINT, STAFFSHIFT_ID BIGINT, LOGGEDRECORD_ID BIGINT, SESSIONDATE DATE, SERVICESESSION_ID BIGINT, SESSIONINSTANCE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE NOTIFICATION (ID BIGINT AUTO_INCREMENT NOT NULL, COMPLETED TINYINT(1) default 0, CREATEDAT DATETIME, MESSAGE LONGTEXT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TRIGGERTYPE INTEGER, BILL_ID BIGINT, CREATER_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PATIENTROOM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DENOMINATIONTRANSACTION (ID BIGINT AUTO_INCREMENT NOT NULL, CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, CREATEDAT DATETIME, DENOMINATIONQTY BIGINT, DENOMINATIONVALUE DOUBLE, PAYMENTMETHOD VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, BILL_ID BIGINT, CANCELLEDBY_ID BIGINT, CREATER_ID BIGINT, DENOMINATION_ID BIGINT, DETAILEDFINANCIALBILL_ID BIGINT, PAYMENT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ROOMFACILITYCHARGE (ID BIGINT AUTO_INCREMENT NOT NULL, ADMINSTRATIONCHARGE DOUBLE, CREATEDAT DATETIME, DESCRIPTION VARCHAR(255), LINENCHARGE DOUBLE, MAINTANANCECHARGE DOUBLE, MEDICALCARECHARGE DOUBLE, MOCHARGE DOUBLE, MOCHARGEFORAFTERDURATION DOUBLE, NAME VARCHAR(255), NURSINGCHARGE DOUBLE, ORDERNO INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ROOMCHARGE DOUBLE, SNAME VARCHAR(255), TNAME VARCHAR(255), COMPANY_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, PAYMENTSCHEME_ID BIGINT, RETIRER_ID BIGINT, ROOM_ID BIGINT, ROOMCATEGORY_ID BIGINT, TIMEDITEMFEE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ISSUERATEMARGINS (ID BIGINT AUTO_INCREMENT NOT NULL, ATPURCHASERATE TINYINT(1) default 0, CREATEDAT DATETIME, NAME VARCHAR(255), RATEFORCONSUMABLES DOUBLE, RATEFORINVENTORY DOUBLE, RATEFORPHARMACEUTICALS DOUBLE, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SHOWRATES TINYINT(1) default 0, CREATER_ID BIGINT, FROMDEPARTMENT_ID BIGINT, FROMINSTITUTION_ID BIGINT, RETIRER_ID BIGINT, TODEPARTMENT_ID BIGINT, TOINSTITUTION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMSCATEGORIES (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CATEGORY_ID BIGINT, CREATER_ID BIGINT, ITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ONLINEBOOKING (ID BIGINT AUTO_INCREMENT NOT NULL, ABSENT TINYINT(1) default 0, ADDRESS VARCHAR(255), APPOINMENTTOTALAMOUNT DOUBLE, CANCELED TINYINT(1) default 0, CANCELLEDBY VARCHAR(255), COMMENT VARCHAR(255), CREATEDAT DATETIME, DOCTORFEE DOUBLE, EDITED TINYINT(1) default 0, EDITEDAT DATETIME, EMAIL VARCHAR(255), FOREIGNSTATUS TINYINT(1) default 0, HOSPITALFEE DOUBLE, NEEDSMS TINYINT(1) default 0, NETTOTALFORONLINEBOOKING DOUBLE, NIC VARCHAR(255), NSR TINYINT(1) default 0, ONLINEBOOKINGPAYMENT DOUBLE, ONLINEBOOKINGSTATUS VARCHAR(255), PAID TINYINT(1) default 0, PAIDTOHOSPITAL TINYINT(1) default 0, PAIDTOHOSPITALBILLCANCELLEDAT DATETIME, PAIDTOHOSPITALDATE DATETIME, PATIENTNAME VARCHAR(255), PHONENO VARCHAR(255), REFERENCENO VARCHAR(255), REQUESTIP VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TITLE VARCHAR(255), AGENCY_ID BIGINT, DEPARTMENT_ID BIGINT, HOSPITAL_ID BIGINT, RETIRER_ID BIGINT, PAIDTOHOSPITALBILL_ID BIGINT, PAIDTOHOSPITALBILLCANCELLEDBY_ID BIGINT, PAIDTOHOSPITALCANCELLEDBILL_ID BIGINT, PAIDTOHOSPITALPROCESSEDBY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FORMITEMVALUE (ID BIGINT AUTO_INCREMENT NOT NULL, BAIMAGE LONGBLOB, DOUBLEVALUE DOUBLE, FILENAME VARCHAR(255), FILETYPE VARCHAR(255), LOBVALUE LONGTEXT, LONGVALUE BIGINT, STRVALUE VARCHAR(255), CATEGORY_ID BIGINT, ITEM_ID BIGINT, PATIENT_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PATIENTREPORT_ID BIGINT, PERSON_ID BIGINT, REFERRINGPERSON_ID BIGINT, REPORTITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PHARMACYBILL (ID BIGINT AUTO_INCREMENT NOT NULL, FREEVALUEPURCHASE DOUBLE, FREEVALUESALE DOUBLE, PURCHASEVALUE DOUBLE, SALEVALUE DOUBLE, PRIMARY KEY (ID))
CREATE TABLE SALARYHOLD (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMCOMMENT LONGTEXT, FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TOCOMMENTS LONGTEXT, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFLEAVE (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), CREATEDAT DATETIME, LEAVEDATE DATE, LEAVETYPE VARCHAR(255), QTY DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, FORM_ID BIGINT, RETIRER_ID BIGINT, ROSTER_ID BIGINT, STAFFSHIFT_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PROCESSSTEPINSTANCE (ID BIGINT AUTO_INCREMENT NOT NULL, COMPLETED TINYINT(1) default 0 NOT NULL, COMPLETEDAT DATETIME, CREATEDAT DATETIME, RETIRED TINYINT(1) default 0 NOT NULL, RETIREDAT DATETIME, STATUS VARCHAR(255), COMPLETEDBY_ID BIGINT, CREATOR_ID BIGINT, NEXTSTEPINSTANCE_ID BIGINT, PRECEDINGSTEPINSTANCE_ID BIGINT, PROCESSINSTANCE_ID BIGINT NOT NULL, PROCESSSTEPACTIONDEFINITION_ID BIGINT, PROCESSSTEPDEFINITION_ID BIGINT NOT NULL, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBTHEME (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DESCRIPTION VARCHAR(255), NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTINSURANCE (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVE TINYINT(1) default 0, CREATEDAT DATETIME, CREDITLIMIT DOUBLE, DESCRIPTION VARCHAR(255), EDITEDAT DATETIME, MEMBERID VARCHAR(255), POLICYNO VARCHAR(255), isPrimary TINYINT(1) default 0, REFERENCENO VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, VALIDFROM DATETIME, VALIDTO DATETIME, CREATER_ID BIGINT, CREDITCOMPANY_ID BIGINT, EDITER_ID BIGINT, PATIENT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERROLEUSER (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, WEBUSERROLE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBTEMPLATE (ID BIGINT AUTO_INCREMENT NOT NULL, CACHED TINYINT(1) default 0, CSS LONGTEXT, DEFAULTTEMPLATE TINYINT(1) default 0, DESCRIPTION LONGTEXT, JS LONGTEXT, NAME VARCHAR(255), PRIMARY KEY (ID))
CREATE TABLE PATIENTFLAG (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, INVESTIGATIONFLAG_ID BIGINT, PATIENT_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE USERFAVORITEREPORT (ID BIGINT AUTO_INCREMENT NOT NULL, CATEGORY VARCHAR(255), ORDERNUMBER DOUBLE, REPORTKEY VARCHAR(255), REPORTLABEL VARCHAR(255), RETIRED TINYINT(1) default 0, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PROCESSDEFINITION (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVE TINYINT(1) default 0 NOT NULL, CREATEDAT DATETIME, DESCRIPTION VARCHAR(500), NAME VARCHAR(100) NOT NULL, RETIRED TINYINT(1) default 0 NOT NULL, RETIREDAT DATETIME, VERSION VARCHAR(20) NOT NULL, CREATOR_ID BIGINT, PARENT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSER (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVATECOMMENTS VARCHAR(255), ACTIVATED TINYINT(1) default 0, ACTIVATEDAT DATETIME, ALLOWEDIPADDRESSES VARCHAR(255), CODE VARCHAR(255), CREATEDAT DATETIME, DEFLOCALE VARCHAR(255), DESCRIPTION VARCHAR(255), EMAIL VARCHAR(255), LASTPASSWORDRESETAT DATETIME, LOGINPAGE VARCHAR(255), NAME VARCHAR(255) NOT NULL UNIQUE, NEEDTORESETPASSWORD TINYINT(1) default 0, PRIMETHEME VARCHAR(255), RESTRICTLOGINBYIP TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TELNO VARCHAR(255), WEBUSERPASSWORD VARCHAR(255), ACTIVATOR_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, ROLE_ID BIGINT, SITE_ID BIGINT, STAFF_ID BIGINT, USERWEBTHEME_ID BIGINT, WEBUSERPERSON_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMUSAGE (ID BIGINT AUTO_INCREMENT NOT NULL, AGEINMONTHSFROM BIGINT, AGEINMONTHSTO BIGINT, CREATEDAT DATETIME, DBLVALUE1 DOUBLE, DBLVALUE2 DOUBLE, EDITEDAT DATETIME, INTVALUE1 INTEGER, INTVALUE2 INTEGER, ORDERNO INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SEX VARCHAR(255), TYPE VARCHAR(255), CATEGORY_ID BIGINT, CREATER_ID BIGINT, EDITER_ID BIGINT, FORDEPARTMENT_ID BIGINT, FORINSTITUTION_ID BIGINT, FORITEM_ID BIGINT, FORWEBUSER_ID BIGINT, ITEM_ID BIGINT, MEASUREMENTUNIT1_ID BIGINT, MEASUREMENTUNIT2_ID BIGINT, PARENT_ID BIGINT, PATIENT_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFGRADE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFFEMPLOYMENT_ID BIGINT, GRADE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTROOM (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), ADDEDADMINISTRATIONCHARGE DOUBLE, ADDEDLINENCHARGE DOUBLE, ADDEDMAINTAINCHARGE DOUBLE, ADDEDMEDICALCARECHARGE DOUBLE, ADDEDMOCHARGE DOUBLE, ADDEDNURSINGCHARGE DOUBLE, ADDEDROOMCHARGE DOUBLE, ADJUSTEDMAINTAINCHARGE DOUBLE, ADJUSTEDMOCHARGE DOUBLE, ADJUSTEDROOMCHARGE DOUBLE, ADMITTED TINYINT(1) default 0, ADMITTEDAT DATETIME, AJDUSTEDADMINISTRATIONCHARGE DOUBLE, AJDUSTEDLINENCHARGE DOUBLE, AJDUSTEDMEDICALCARECHARGE DOUBLE, AJDUSTEDNURSINGCHARGE DOUBLE, CALCULATEDADMINISTRATIONCHARGE DOUBLE, CALCULATEDLINENCHARGE DOUBLE, CALCULATEDMAINTAINCHARGE DOUBLE, CALCULATEDMEDICALCARECHARGE DOUBLE, CALCULATEDMOCHARGE DOUBLE, CALCULATEDNURSINGCHARGE DOUBLE, CALCULATEDROOMCHARGE DOUBLE, CREATEDAT DATETIME, CURRENTADMINISTRATIONCHARGE DOUBLE, CURRENTLINENCHARGE DOUBLE, CURRENTMAINTANANCECHARGE DOUBLE, CURRENTMEDICALCARECHARGE DOUBLE, CURRENTMOCHARGE DOUBLE, CURRENTMOCHARGEFORAFTERDURATION DOUBLE, CURRENTNURSINGCHARGE DOUBLE, CURRENTROOMCHARGE DOUBLE, DESCRIPTION VARCHAR(255), DISCHARGED TINYINT(1) default 0, DISCHARGEDAT DATETIME, DISCOUNTADMINISTRATIONCHARGE DOUBLE, DISCOUNTLINENCHARGE DOUBLE, DISCOUNTMAINTAINCHARGE DOUBLE, DISCOUNTMEDICALCARECHARGE DOUBLE, DISCOUNTMOCHARGE DOUBLE, DISCOUNTNURSINGCHARGE DOUBLE, DISCOUNTROOMCHARGE DOUBLE, FROMPACKAGE TINYINT(1) default 0, INCLUDEDROOMDURATIONHOURS DOUBLE, NAME VARCHAR(255), ORDERNO INTEGER, PRINTADMITTEDAT DATETIME, PRINTDISCHARGEAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SNAME VARCHAR(255), TNAME VARCHAR(255), ADDMITTEDBY_ID BIGINT, CREATER_ID BIGINT, DISCHARGEDBY_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PRINTROOMFACILITYCHARGE_ID BIGINT, RETIRER_ID BIGINT, ROOMFACILITYCHARGE_ID BIGINT, PREVIOUSROOM_ID BIGINT, REFERENCEPATIENTROOM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DEPARTMENTMACHINE (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVE TINYINT(1) default 0, CALIBRATIONDATE DATE, CODE VARCHAR(255), CREATEDAT DATETIME, DESCRIPTION LONGTEXT, INSTALLATIONDATE DATE, LOCATION VARCHAR(255), MAINTENANCESCHEDULE VARCHAR(255), MANUFACTUREDATE DATE, NAME VARCHAR(255), NETWORKSETTINGS VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SERIALNUMBER VARCHAR(255), STATUS VARCHAR(255), CREATER_ID BIGINT, RETIRER_ID BIGINT, SUPPLIER_ID BIGINT, DEPARTMENT_ID BIGINT, MACHINE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CASHTRANSACTION (ID BIGINT AUTO_INCREMENT NOT NULL, BALLANCEAMOUNT DOUBLE, CASHVALUE DOUBLE, CHEQUEVALUE DOUBLE, CREATEDAT DATETIME, CREDITCARDVALUE DOUBLE, INOUTTYPE VARCHAR(255), QTY1 DOUBLE, QTY10 DOUBLE, QTY100 DOUBLE, QTY1000 DOUBLE, QTY10000 DOUBLE, QTY2 DOUBLE, QTY20 DOUBLE, QTY200 DOUBLE, QTY2000 DOUBLE, QTY5 DOUBLE, QTY50 DOUBLE, QTY500 DOUBLE, QTY5000 DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SLIPVALUE DOUBLE, TENDEREDAMOUNT DOUBLE, CREATER_ID BIGINT, DRAWER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE TOKEN (ID BIGINT AUTO_INCREMENT NOT NULL, CALLED TINYINT(1) default 0, CALLEDAT DATETIME, COMPLETED TINYINT(1) default 0, COMPLETEDAT DATETIME, CREATEDAT DATETIME, DISPLAYTOKEN TINYINT(1) default 0, INPROGRESS TINYINT(1) default 0, ISSUEDAT DATETIME, RESTARTTOKENSERVICES TINYINT(1) default 0, RETIRED TINYINT(1) default 0, STARTEDAT DATETIME, TOKENAT DATETIME, TOKENDATE DATE, TOKENID VARCHAR(255), TOKENNUMBER VARCHAR(255), TOKENTYPE INTEGER, BILL_ID BIGINT, CATERORY_ID BIGINT, COUNTER_ID BIGINT, CREATEDBY_ID BIGINT, DEPARTMENT_ID BIGINT, DOCTOR_ID BIGINT, FROMDEPARTMENT_ID BIGINT, FROMINSTITUTION_ID BIGINT, FROMSTAFF_ID BIGINT, INSTITUTION_ID BIGINT, PATIENT_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, REFERATOKEN_ID BIGINT, RETIREDBY_ID BIGINT, SERVICECOUNTER_ID BIGINT, STAFF_ID BIGINT, TODEPARTMENT_ID BIGINT, TOINSTITUTION_ID BIGINT, TOSTAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLSESSION (ID BIGINT AUTO_INCREMENT NOT NULL, ABSENT TINYINT(1) default 0, ABSENTMARKEDAT DATETIME, ABSENTUNMARKEDAT DATETIME, COMPLETED TINYINT(1) default 0, COMPLETEDAT DATETIME, CREATEDAT DATETIME, CURRENTLYCONSULTED TINYINT(1) default 0, FIRSTVISIT TINYINT(1) default 0, MARKEDTOCANCEL TINYINT(1) default 0, MARKEDTOCANCELAT DATETIME, MARKEDTOREFUND TINYINT(1) default 0, MARKEDTOREFUNDAT DATETIME, NAME VARCHAR(255), NEXTINLINE TINYINT(1) default 0, RECHEDULEDSESSION TINYINT(1) default 0, RESERVEDBOOKING TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SERIALNO INTEGER, SESSIONDATE DATE, SESSIONTIME TIME, ABSENTMARKEDUSER_ID BIGINT, ABSENTUNMARKEDUSER_ID BIGINT, BILL_ID BIGINT, CATEGORY_ID BIGINT, COMPLETEDBY_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, MARKEDTOCANCELBY_ID BIGINT, MARKEDTOREFUNDBY_ID BIGINT, PACKEGE_ID BIGINT, PAIDBILLSESSION_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, REFERENCEBILLSESSION_ID BIGINT, RETIRER_ID BIGINT, SERVICESESSION_ID BIGINT, SERVICESESSIONINSTANCE_ID BIGINT, SESSIONINSTANCE_ID BIGINT, STAFF_ID BIGINT, BILLITEM_ID BIGINT, RESCHEDULEDFROMBILLSESSION_ID BIGINT, RESCHEDULEDTOBILLSESSION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMSDISTRIBUTORS (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, ORDERNO INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE MAPPING (ID BIGINT AUTO_INCREMENT NOT NULL, DESCREPTION LONGTEXT, ITEM1_ID BIGINT, ITEM2_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMPACKAGE (ID BIGINT AUTO_INCREMENT NOT NULL, PRIMARY KEY (ID))
CREATE TABLE WEBLANGUAGE (ID BIGINT AUTO_INCREMENT NOT NULL, CODE VARCHAR(255), DEFAULTLANGUAGE TINYINT(1) default 0, NAME VARCHAR(255), ORDERNO DOUBLE, RETIRED TINYINT(1) default 0, PRIMARY KEY (ID))
CREATE TABLE WEBUSERROLE (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVATECOMMENTS VARCHAR(255), ACTIVATED TINYINT(1) default 0, ACTIVATEDAT DATETIME, CREATEDAT DATETIME, DESCRIPTION VARCHAR(255), LOGINPAGE VARCHAR(255), NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ACTIVATOR_ID BIGINT, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FINGERPRINTRECORDHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, AFTERCHANGE DATETIME, BEFORECHANGE DATETIME, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, FINGERPRINTRECORD_ID BIGINT, RETIRER_ID BIGINT, ROSTER_ID BIGINT, SHIFT_ID BIGINT, STAFF_ID BIGINT, STAFFSHIFT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PERSON (ID BIGINT AUTO_INCREMENT NOT NULL, ADDRESS VARCHAR(255), CREATEDAT DATETIME, DESCRIPTION VARCHAR(255), DOB DATETIME, EDITEDAT DATETIME, EMAIL VARCHAR(255), FAX VARCHAR(255), FOREIGNER TINYINT(1) default 0, TNAME VARCHAR(255), INITIALS VARCHAR(255), LASTNAME VARCHAR(255), MOBILE VARCHAR(255), NAME VARCHAR(255), SNAME VARCHAR(255), NIC VARCHAR(255), PHONE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SEX VARCHAR(255), SURNAME VARCHAR(255), TITLE VARCHAR(255), WEBSITE VARCHAR(255), ZONECODE VARCHAR(255), AREA_ID BIGINT, BLOODGROUP_ID BIGINT, CIVILSTATUS_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, INSTITUTION_ID BIGINT, MEMBERSHIPSCHEME_ID BIGINT, OCCUPATION_ID BIGINT, RACE_ID BIGINT, RELIGION_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CLINICALFINDINGVALUE (ID BIGINT AUTO_INCREMENT NOT NULL, CLINICALFINDINGVALUETYPE VARCHAR(255), DOUBLEVALUE DOUBLE, IMAGENAME VARCHAR(255), IMAGETYPE VARCHAR(255), IMAGEVALUE LONGBLOB, LOBVALUE LONGTEXT, LONGVALUE BIGINT, ORDERNO DOUBLE, RETIRED TINYINT(1) default 0, STRINGVALUE VARCHAR(255), CATEGORYVALUE_ID BIGINT, CLINICALFINDINGITEM_ID BIGINT, DOCUMENTTEMPLATE_ID BIGINT, ENCOUNTER_ID BIGINT, ITEMVALUE_ID BIGINT, PATIENT_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, PATIENTREPORT_ID BIGINT, PERSON_ID BIGINT, PRESCRIPTION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE HRMVARIABLES (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, EPFCOMPANYRATE DOUBLE, EPFRATE DOUBLE, ETFCOMPANYRATE DOUBLE, ETFRATE DOUBLE, NAME VARCHAR(255), PAYEECOMPANYRATE DOUBLE, PAYEELIMIT DOUBLE, PAYEERATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE MEDICATIONADMINISTRATIONRECORD (ID BIGINT AUTO_INCREMENT NOT NULL, ADMINISTEREDAT DATETIME, COMMENTS VARCHAR(255), CREATEDAT DATETIME, DOSEDESCRIPTION VARCHAR(255), QTY DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STATUS VARCHAR(255), STOCKDEDUCTED TINYINT(1) default 0, ADMINISTEREDBY_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, ITEM_ID BIGINT, ITEMBATCH_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PRESCRIPTION_ID BIGINT, RETIRER_ID BIGINT, STOCKDEDUCTIONBILL_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SMS (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, OTP VARCHAR(255), PASSWORD VARCHAR(255), PENDING TINYINT(1) default 0, RECEIPIENTNUMBER VARCHAR(255), RECEIVEDMESSAGE LONGTEXT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SENDINGFAILED TINYINT(1) default 0, SENDINGMESSAGE LONGTEXT, SENDINGURL VARCHAR(255), SENTAT DATE, SENTSUCCESSFULLY TINYINT(1) default 0, SMSTYPE VARCHAR(255), USERID VARCHAR(255), BILL_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, PATIENTREPORT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE APIKEY (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DATEOFEXPIARY DATE, KEYTYPE INTEGER, KEYVALUE VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ENCOUNTERCREDITCOMPANY (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, CREDITLIMIT DOUBLE, DESCREPTION VARCHAR(255), POLICYNO VARCHAR(255), REFERANCENO VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, INSTITUTION_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INPATIENTPACKAGE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FIXEDROOMCHARGE DOUBLE, INCLUDEDROOMDURATIONHOURS DOUBLE, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TOTALPRICE DOUBLE, ADMISSIONTYPE_ID BIGINT, CREATER_ID BIGINT, RETIRER_ID BIGINT, ROOMCATEGORY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DESIGNCOMPONENTASSIGNMENT (ID BIGINT AUTO_INCREMENT NOT NULL, ASSIGNEDENTITYTYPE VARCHAR(255), DESIGNCOMPONENT_ID BIGINT, PROCESSDEFINITION_ID BIGINT, PROCESSSTEPACTIONDEFINITION_ID BIGINT, PROCESSSTEPDEFINITION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFBASICS (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFFEMPLOYMENT_ID BIGINT, BASIC_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CATEGORYITEM (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CATEGORY_ID BIGINT, CREATER_ID BIGINT, ITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DESIGNCOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, CODE VARCHAR(255), CODESYSTEM VARCHAR(255), COMPONENTDATATYPE VARCHAR(255), COMPONENTMAPPINGTYPE VARCHAR(255), COMPONENTPRESENTATIONTYPE VARCHAR(255), DESCRIPTION LONGTEXT, EDITHTML LONGTEXT, FORMCSSCLASS VARCHAR(255), MAXRATING INTEGER, max_value DOUBLE, min_value DOUBLE, NAME VARCHAR(255), OFFLABEL VARCHAR(255), ONLABEL VARCHAR(255), ORDERNO INTEGER, PLACEHOLDER VARCHAR(255), REQUIRED TINYINT(1) default 0, RETIRED TINYINT(1) default 0, STEPSIZE DOUBLE, TYPE VARCHAR(255), VIEWHTML LONGTEXT, DATAENTRYFORM_ID BIGINT, PARENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENT (ID BIGINT AUTO_INCREMENT NOT NULL, BAIMAGE LONGBLOB, BLACKLISTED TINYINT(1) default 0, BLACKLISTEDAT DATETIME, CARDISSUEDDATE DATE, CARDISSUES TINYINT(1) default 0, CODE VARCHAR(255), COMMENTS LONGTEXT, CREATEDAT DATETIME, CREDITLIMIT DOUBLE, EDITEDAT DATETIME, FILENAME VARCHAR(255), FILETYPE VARCHAR(255), FROMDATE DATETIME, HASANACCOUNT TINYINT(1) default 0, HINNO INTEGER, PATIENTID BIGINT, PATIENTMOBILENUMBER BIGINT, PATIENTPHONENUMBER BIGINT, PHN VARCHAR(255), PINNO INTEGER, REASONFORBLACKLIST LONGTEXT, REGISTRATIONSOURCE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, RUNNINGBALANCE DOUBLE, SPECIFICSTATUS VARCHAR(255), SPECIFICSTATUSCOMMENT VARCHAR(255), TODATE DATETIME, BLACKLISTEDBY_ID BIGINT, CREATEDINSTITUTION_ID BIGINT, CREATER_ID BIGINT, EDITER_ID BIGINT, PERSON_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PAYMENTSCHEME (ID BIGINT AUTO_INCREMENT NOT NULL, CLIANTTYPE VARCHAR(255), CREATEDAT DATETIME, EXPIRYDATE DATETIME, MEMBERORFAMILYREQUIRED TINYINT(1) default 0, MEMBERREQUIRED TINYINT(1) default 0, MEMBERSHIPREQUIRED TINYINT(1) default 0, NAME VARCHAR(255), ORDERNO INTEGER, PREGNANTMOTHERREQUIRED TINYINT(1) default 0, PRINTINGNAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SENIORCITIZENREQUIRED TINYINT(1) default 0, STAFFMEMBERREQUIRED TINYINT(1) default 0, STAFFORFAMILYREQUIRED TINYINT(1) default 0, STAFFREQUIRED TINYINT(1) default 0, VALIDFORBILLEDBILLS TINYINT(1) default 0, VALIDFORCHANNELING TINYINT(1) default 0, VALIDFORINPATIENTBILLS TINYINT(1) default 0, validForPayments TINYINT(1) default 0, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PERSON_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFWORKINGDEPARTMENT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFFEMPLOYMENT_ID BIGINT, DEPARTMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE USERSTOCK (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, UPDATIONQTY DOUBLE, CREATER_ID BIGINT, RETIRER_ID BIGINT, USERSTOCKCONTAINER_ID BIGINT, STOCK_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SESSIONINSTANCE (ID BIGINT AUTO_INCREMENT NOT NULL, ACCEPTONLINEBOOKINGS TINYINT(1) default 0, ADVANCEAPPOINTMENTPERIODUNIT INTEGER, ADVANCEAPPOINTMENTPERIOD BIGINT, AGENCYNUMBERS VARCHAR(255), ARRIVED TINYINT(1) default 0, BARCODE VARCHAR(255), BOOKEDPATIENTCOUNT BIGINT, BOOKEDPATIENTCOUNTFORFIRSTVISITS BIGINT, BOOKEDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, CANCELONCALLPATIENTCOUNT BIGINT, CANCELONCALLPATIENTCOUNTFORFIRSTVISITS BIGINT, CANCELONCALLPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, CANCELPAIDPATIENTCOUNT BIGINT, CANCELPAIDPATIENTCOUNTFORFIRSTVISITS BIGINT, CANCELPAIDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, CANCELPATIENTCOUNT BIGINT, CANCELPATIENTCOUNTFORFIRSTVISITS BIGINT, CANCELPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, CASHNUMBERS VARCHAR(255), CODE VARCHAR(255), COMMENTS LONGTEXT, COMPLETED TINYINT(1) default 0, COMPLETEDAT DATETIME, COMPLETEDPATIENTCOUNT BIGINT, COMPLETEDPATIENTCOUNTFORFIRSTVISITS BIGINT, COMPLETEDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, CONTINUENUMBERS TINYINT(1) default 0, CREATEDAT DATETIME, CREDITNUMBERS VARCHAR(255), DBLVALUE DOUBLE, DEACTIVATECOMMENT VARCHAR(255), DEACTIVATED TINYINT(1) default 0, DESCREPTION LONGTEXT, DISCOUNTALLOWED TINYINT(1) default 0, DISPLAYCOUNT INTEGER, DISPLAYPERCENT DOUBLE, DOCTORHOLIDAY TINYINT(1) default 0, DURATION DOUBLE, DURATIONINCREMENTCOUNT INTEGER, EDITEDAT DATETIME, EFFECTIVEFROM DATE, EFFECTIVETO DATE, ENDINGTIME DATETIME, FULLNAME VARCHAR(255), ITEMTYPE VARCHAR(255), MAXNO INTEGER, MAXNOFORFIRSTVISITS INTEGER, MAXNOFORSUBSEQUENTVISITS INTEGER, MAXTABLEROWS INTEGER, NAME VARCHAR(255), NEXTAVAILABLEAPPOINTMENTNUMBER BIGINT, NEXTAVAILABLEAPPOINTMENTNUMBERFORFIRSTVISITS BIGINT, NEXTAVAILABLEAPPOINTMENTNUMBERFORSUBSEQUENTVISITS BIGINT, NUMBERINCREMENT INTEGER, ONCALLPATIENTCOUNT BIGINT, ONCALLPATIENTCOUNTFORFIRSTVISITS BIGINT, ONCALLPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, ONCALLBOOKINGSALLOWED TINYINT(1) default 0, PAIDPATIENTCOUNT BIGINT, PAIDPATIENTCOUNTFORFIRSTVISITS BIGINT, PAIDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, PAIDTODOCTORPATIENTCOUNT BIGINT, PAIDTODOCTORPATIENTCOUNTFORFIRSTVISITS BIGINT, PAIDTODOCTORPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, PRINTFEESFORBILLS TINYINT(1) default 0, PRINTNAME VARCHAR(255), PRIORITY VARCHAR(255), PROFITMARGIN DOUBLE, REFUNDABLE TINYINT(1) default 0, REFUNDEDPATIENTCOUNT BIGINT, REFUNDEDPATIENTCOUNTFORFIRSTVISITS BIGINT, REFUNDEDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, REMAININGPATIENTCOUNT BIGINT, REMAININGPATIENTCOUNTFORFIRSTVISITS BIGINT, REMAININGPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT, REPORTPATIENTS INTEGER, RESERVENAME VARCHAR(255), RESERVENUMBERS VARCHAR(255), RESERVENUMBERSFORFIRSTVISIT VARCHAR(255), RESERVENUMBERSFORSUBSEQUENTVISITS VARCHAR(255), RESERVEDBOOKINGCOUNT BIGINT, RESERVEDBOOKINGCOUNTFORFIRSTVISITS BIGINT, RESERVEDBOOKINGCOUNTFORSUBSEQUENTVISITS BIGINT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ROOMNO INTEGER, SCANFEE TINYINT(1) default 0, SESSIONAT TIME, SESSIONDATE DATE, SESSIONNUMBERTYPE INTEGER, SESSIONTIME TIME, SESSIONWEEKDAY INTEGER, SHORTNAME VARCHAR(255), SHOWAPPOINTMENTCOUNT TINYINT(1) default 0, SHOWAPPOINTMENTTIME TINYINT(1) default 0, SNAME VARCHAR(255), SPECIALNOTICESESSIONINSTANCE LONGTEXT, STARTED TINYINT(1) default 0, STARTEDAT DATETIME, STARTINGNO INTEGER, STARTINGTIME DATETIME, TNAME VARCHAR(255), TOTAL DOUBLE, TOTALFORFOREIGNER DOUBLE, ARRIVALRECORD_ID BIGINT, CANCELLEDBY_ID BIGINT, COMPLETEDBY_ID BIGINT, CREATER_ID BIGINT, CURRENTLYCONSULTINGBILLSESSION_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, FORDEPARTMENT_ID BIGINT, FORINSTITUTION_ID BIGINT, INSTITUTION_ID BIGINT, LASTCOMPLETEDBILLSESSION_ID BIGINT, NEXTINLINEBILLSESSION_ID BIGINT, ORIGINATINGSESSION_ID BIGINT, RETIRER_ID BIGINT, SESSIONNUMBERGENERATOR_ID BIGINT, SPECIALITY_ID BIGINT, STAFF_ID BIGINT, STARTEDBY_ID BIGINT, AFTERSESSION_ID BIGINT, DOCTORHOLIDAYMARKEDBY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFLEAVEENTITLE (ID BIGINT AUTO_INCREMENT NOT NULL, COUNT DOUBLE, CREATEDAT DATETIME, FROMDATE DATE, LEAVETYPE VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SEX (ID BIGINT AUTO_INCREMENT NOT NULL, CODE VARCHAR(255), CREATEDAT DATETIME, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SNAME VARCHAR(255), TNAME VARCHAR(255), CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE AGENTHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, ADJUSTMENTTOAGENCYBALANCE DOUBLE, AGENTBALANCEAFTER DOUBLE, AGENTBALANCEBEFORE DOUBLE, AGENTTRANSACTIONVALUE DOUBLE, BALANCEAFTERTRANSACTION DOUBLE, BALANCEBEFORETRANSACTION DOUBLE, COLLECTINGCENTERTRANSACTIONVALUE DOUBLE, COMMENT LONGTEXT, COMPANYBALANCEAFTER DOUBLE, COMPANYBALANCEBEFORE DOUBLE, COMPANYTRANSACTIONVALUE DOUBLE, CREATEDAT DATETIME, HISTORYTYPE VARCHAR(255), PAIDAMOUNTBYAGENCY DOUBLE, PAIDAMOUNTTOAGENCY DOUBLE, PAYMENTDONE TINYINT(1) default 0 NOT NULL, PAYMENTDONEAT DATETIME, REFERENCENUMBER VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STAFFTRASNACTIONVALUE DOUBLE, TRANSACTIONVALUE DOUBLE, AGENCY_ID BIGINT, BILL_ID BIGINT, BILLITEM_ID BIGINT, BILLSESSION_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PAYMENTDONEUSER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PAYSHEETCOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), COMPONENTTYPE VARCHAR(255), COMPONENTVALUE DOUBLE, CREATEDAT DATETIME, INCLUDEFORALLOWANCE TINYINT(1) default 0, INCLUDEDFOREPF TINYINT(1) default 0, INCLUDEDFORETF TINYINT(1) default 0, INCLUDEDFORNOPAY TINYINT(1) default 0, INCLUDEDFOROT TINYINT(1) default 0, INCLUDEDFORPAYTAX TINYINT(1) default 0, INCLUDEDFORPH TINYINT(1) default 0, NAME VARCHAR(255), ORDERNO INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, SENDINGINSTITUTION_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLCOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, CATID VARCHAR(255), COMPONENTVALUE DOUBLE, CREATEDAT DATETIME, DEPTID VARCHAR(255), INSID VARCHAR(255), NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SESSIONID VARCHAR(255), BILL_ID BIGINT, BILLITEM_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, PACKEGE_ID BIGINT, RETIRER_ID BIGINT, SPECIALITY_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DEFAULTSERVICEDEPARTMENT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, BILLINGDEPARTMENT_ID BIGINT, CATEGORY_ID BIGINT, CREATEDBY_ID BIGINT, ITEM_ID BIGINT, PERFORMINGDEPARTMENT_ID BIGINT, RETIREDBY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLITEMFINANCEDETAILS (ID BIGINT AUTO_INCREMENT NOT NULL, BILLCOST DECIMAL(18,4), BILLCOSTRATE DECIMAL(18,4), BILLDISCOUNT DECIMAL(18,4), BILLDISCOUNTRATE DECIMAL(18,4), BILLEXPENSE DECIMAL(18,4), BILLEXPENSERATE DECIMAL(18,4), BILLGROSSRATE DECIMAL(18,4), BILLGROSSTOTAL DECIMAL(18,4), BILLNETRATE DECIMAL(18,4), BILLNETTOTAL DECIMAL(18,4), BILLTAX DECIMAL(18,4), BILLTAXRATE DECIMAL(18,4), COSTRATE DECIMAL(18,4), COSTRATEPERUNIT DECIMAL(18,4), CREATEDAT DATETIME, FREEQUANTITY DECIMAL(18,4), FREEQUANTITYBYUNITS DECIMAL(18,4), GROSSRATE DECIMAL(18,4), GROSSTOTAL DECIMAL(18,4), LINECOST DECIMAL(18,4), LINECOSTRATE DECIMAL(18,4), LINEDISCOUNT DECIMAL(18,4), LINEDISCOUNTRATE DECIMAL(18,4), LINEEXPENSE DECIMAL(18,4), LINEEXPENSERATE DECIMAL(18,4), LINEGROSSRATE DECIMAL(18,4), LINEGROSSTOTAL DECIMAL(18,4), LINENETRATE DECIMAL(18,4), LINENETTOTAL DECIMAL(18,4), LINETAX DECIMAL(18,4), LINETAXRATE DECIMAL(18,4), NETRATE DECIMAL(18,4), NETTOTAL DECIMAL(18,4), PROFITMARGIN DECIMAL(18,4), PURCHASERATE DECIMAL(18,4), PURCHASERATEPERUNIT DECIMAL(18,4), QUANTITY DECIMAL(18,4), QUANTITYBYUNITS DECIMAL(18,4), RETAILSALERATE DECIMAL(18,4), RETAILSALERATEPERUNIT DECIMAL(18,4), RETURNFREEQUANTITY DECIMAL(18,4), RETURNGROSSTOTAL DECIMAL(18,4), RETURNNETTOTAL DECIMAL(18,4), RETURNQUANTITY DECIMAL(18,4), TOTALCOST DECIMAL(18,4), TOTALCOSTRATE DECIMAL(18,4), TOTALDISCOUNT DECIMAL(18,4), TOTALDISCOUNTRATE DECIMAL(18,4), TOTALEXPENSE DECIMAL(18,4), TOTALEXPENSERATE DECIMAL(18,4), TOTALQUANTITY DECIMAL(18,4), TOTALQUANTITYBYUNITS DECIMAL(18,4), TOTALRETURNQUANTITY DECIMAL(18,4), TOTALTAX DECIMAL(18,4), TOTALTAXRATE DECIMAL(18,4), UNITSPERPACK DECIMAL(18,4) NOT NULL, VALUEATCOSTRATE DECIMAL(18,4), VALUEATPURCHASERATE DECIMAL(18,4), VALUEATRETAILRATE DECIMAL(18,4), VALUEATWHOLESALERATE DECIMAL(18,4), WHOLESALERATE DECIMAL(18,4), WHOLESALERATEPERUNIT DECIMAL(18,4), CREATEDBY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SERVICESESSIONINSTANCE (ID BIGINT AUTO_INCREMENT NOT NULL, AGENCYNUMBERS VARCHAR(255), BARCODE VARCHAR(255), BILLABLE TINYINT(1) default 0, CASHNUMBERS VARCHAR(255), CHARGESVISIBLEFORINWARD TINYINT(1) default 0, CODE VARCHAR(255), CONTINUENUMBERS TINYINT(1) default 0, CREATEDAT DATETIME, CREDITNUMBERS VARCHAR(255), DBLVALUE DOUBLE, DEACTIVATECOMMENT VARCHAR(255), DEACTIVATED TINYINT(1) default 0, DISCOUNTALLOWED TINYINT(1) default 0, DISPLAYCOUNT INTEGER, DISPLAYPERCENT DOUBLE, DURATION DOUBLE, EDITEDAT DATETIME, ENDINGTIME DATETIME, FORBILLTYPE VARCHAR(255), FORMATABLE TINYINT(1) default 0, FULLNAME VARCHAR(255), INWARDCHARGETYPE VARCHAR(255), MARGINNOTALLOWED TINYINT(1) default 0, MAXNO INTEGER, MAXTABLEROWS INTEGER, NAME VARCHAR(255), NUMBERINCREMENT INTEGER, PATIENTNOTREQUIRED TINYINT(1) default 0, PRICEBYBATCH TINYINT(1) default 0, PRINTNAME VARCHAR(255), PROFITMARGIN DOUBLE, REFUNDABLE TINYINT(1) default 0, REQUESTFORQUENTITY TINYINT(1) default 0, RESERVENAME VARCHAR(255), RESERVENUMBERS VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ROOMNO INTEGER, SCANFEE TINYINT(1) default 0, SESSIONAT TIME, SESSIONDATE DATE, SESSIONNUMBERTYPE INTEGER, SESSIONTIME TIME, SESSIONWEEKDAY INTEGER, SHORTNAME VARCHAR(255), SNAME VARCHAR(255), STARTINGNO INTEGER, STARTINGTIME DATETIME, TNAME VARCHAR(255), TOTAL DOUBLE, TOTALFORFOREIGNER DOUBLE, VATPERCENTAGE DOUBLE, VATABLE TINYINT(1) default 0, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, EDITER_ID BIGINT, FORDEPARTMENT_ID BIGINT, FORINSTITUTION_ID BIGINT, INSTITUTION_ID BIGINT, ORIGINATINGSESSION_ID BIGINT, RETIRER_ID BIGINT, SESSIONNUMBERGENERATOR_ID BIGINT, SPECIALITY_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTSESSIONINSTANCEACTIVITY (ID BIGINT AUTO_INCREMENT NOT NULL, COMPLETED TINYINT(1) default 0, APPOINTMENTACTIVITY_ID BIGINT, PATIENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE LOAN (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FIXEDDEDUCTION DOUBLE, INTERESTCALCULATIONTYPE VARCHAR(255), INTERESTRATE DOUBLE, LOANVALUE DOUBLE, MAXAMOUNT DOUBLE, MINAMOUNT DOUBLE, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE REPORTLOG (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME NOT NULL, ENDTIME DATETIME, EXECUTIONTIMEINMILLIS BIGINT, GENERATEDBYID BIGINT NOT NULL, REPORTNAME VARCHAR(255) NOT NULL, REPORTTYPE VARCHAR(255) NOT NULL, STARTTIME DATETIME NOT NULL, PRIMARY KEY (ID))
CREATE TABLE PATIENTTRANSFERREQUEST (ID BIGINT AUTO_INCREMENT NOT NULL, ACCEPTEDAT DATETIME, CANCELLEDAT DATETIME, CREATEDAT DATETIME, INRECOVERYAT DATETIME, INITIATEDAT DATETIME, NOTES VARCHAR(255), PROCEDUREENDAT DATETIME, PROCEDURESTARTAT DATETIME, RETIRED TINYINT(1) default 0, RETURNEDTOWARDAT DATETIME, STATUS VARCHAR(255), THEATREOCCUPANCYSTATUS VARCHAR(255), THEATRETRANSFERTYPE VARCHAR(255), ACCEPTEDBY_ID BIGINT, ADMISSION_ID BIGINT, CANCELLEDBY_ID BIGINT, CREATER_ID BIGINT, FROMPATIENTROOM_ID BIGINT, INITIATEDBY_ID BIGINT, SURGERYBILL_ID BIGINT, THEATREROOM_ID BIGINT, TOROOMFACILITYCHARGE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SHIFTPREFERENCE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATE, LEAVEDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE IXCAL (ID BIGINT AUTO_INCREMENT NOT NULL, CALCULATIONTYPE VARCHAR(255), CONSTANTVALUE DOUBLE, FEMALECONSTANTVALUE DOUBLE, JAVASCRIPT LONGTEXT, MALECONSTANTVALUE DOUBLE, ORDERNO INTEGER, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CALIXITEM_ID BIGINT, RETIRER_ID BIGINT, VALIXITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERDASHBOARD (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DASHBOARD INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMBATCH (ID BIGINT AUTO_INCREMENT NOT NULL, BARCODE VARCHAR(255), BATCHNO VARCHAR(255), CHASSISNO VARCHAR(255), COLOUR VARCHAR(255), COSTRATE DOUBLE, DATEOFEXPIRE DATETIME, DATEOFMANUFACTURE DATETIME, DEPRECITIONRATE DOUBLE, DESCRIPTION LONGTEXT, ENGINENO VARCHAR(255), MODAL VARCHAR(255), NUMBEROFACCESSORIES INTEGER, OTHERNOTES LONGTEXT, PURCAHSERATE DOUBLE, REGISTRATIONNO VARCHAR(255), RETAILSALERATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SERIALNO VARCHAR(255), TOTALACQUICITIONCOST DOUBLE, WARRENTYCERTIFICATENUMBER VARCHAR(255), WARRENTYDURATION BIGINT, WHOLESALERATE DOUBLE, ITEM_ID BIGINT, LASTPURCHASEBILLITEM_ID BIGINT, MAKE_ID BIGINT, MANUFACTURER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE UPLOAD (ID BIGINT AUTO_INCREMENT NOT NULL, BAIMAGE LONGBLOB, COMMENTS LONGTEXT, CREATEDAT DATETIME, FILENAME VARCHAR(255), FILETYPE VARCHAR(255), FILEURL VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, UPLOADTYPE VARCHAR(255), BILL_ID BIGINT, CATEGORY_ID BIGINT, CREATER_ID BIGINT, HISTORICALRECORD_ID BIGINT, INSTITUTION_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, PATIENTREPORT_ID BIGINT, RETIRER_ID BIGINT, WEBCONTENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTITEM (ID BIGINT AUTO_INCREMENT NOT NULL, ADJUSTEDVALUE DOUBLE, COMMENT VARCHAR(255), CREATEDAT DATETIME, DISCOUNT DOUBLE, FROMTIME DATETIME, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SERVICEVALUE DOUBLE, TOTIME DATETIME, BILL_ID BIGINT, BILLITEM_ID BIGINT, CREATER_ID BIGINT, ITEM_ID BIGINT, PACKEGE_ID BIGINT, PATIENT_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE FAMILY (ID BIGINT AUTO_INCREMENT NOT NULL, COMMENTS LONGTEXT, CREATEDAT DATETIME, EDITEDAT DATETIME, MEMBERSHIPCARDNO BIGINT, PHONENO VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CHIEFHOUSEHOLDER_ID BIGINT, CREATEDDEPARTMENT_ID BIGINT, CREATEDINSTITUTION_ID BIGINT, CREATER_ID BIGINT, EDITER_ID BIGINT, MEMBERSHIPSCHEME_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WORKINGTIME (ID BIGINT AUTO_INCREMENT NOT NULL, ADDEDTOSALARY TINYINT(1) default 0, CREATEDAT DATETIME, DURATIONINMINUTES BIGINT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, WORKINGTYPE VARCHAR(255), CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, ENDRECORD_ID BIGINT, INSTITUTION_ID BIGINT, PROFESSINOALPAYMENTBILL_ID BIGINT, RETIRER_ID BIGINT, STAFFSHIFT_ID BIGINT, STARTRECORD_ID BIGINT, CONTINUEDTO_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLENTRY (ID BIGINT AUTO_INCREMENT NOT NULL, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TOTCASH DOUBLE, TOTCREDIT DOUBLE, TOTCREDITCARD DOUBLE, TOTDISCOUNT DOUBLE, TOTVAT DOUBLE, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DRAWER (ID BIGINT AUTO_INCREMENT NOT NULL, AGENTBALANCE DOUBLE, AGENTINHANDVALUE DOUBLE, AGENTSHORTAGEOREXCESS DOUBLE, CARDBALANCE DOUBLE, CARDINHANDVALUE DOUBLE, CARDSHORTAGEOREXCESS DOUBLE, CASHBALANCE DOUBLE, CASHINHANDVALUE DOUBLE, CASHSHORTAGEOREXCESS DOUBLE, CHEQUEBALANCE DOUBLE, CHEQUEINHANDVALUE DOUBLE, CHEQUESHORTAGEOREXCESS DOUBLE, CREATEDAT DATETIME, CREDITBALANCE DOUBLE, CREDITINHANDVALUE DOUBLE, CREDITSHORTAGEOREXCESS DOUBLE, EWALLETBALANCE DOUBLE, EWALLETINHANDVALUE DOUBLE, EWALLETSHORTAGEOREXCESS DOUBLE, IOUBALANCE DOUBLE, IOUINHANDVALUE DOUBLE, IOUSHORTAGEOREXCESS DOUBLE, MULTIPLEPAYMENTMETHODSBALANCE DOUBLE, MULTIPLEPAYMENTMETHODSINHANDVALUE DOUBLE, MULTIPLEPAYMENTMETHODSSHORTAGEOREXCESS DOUBLE, NAME VARCHAR(255), NONEBALANCE DOUBLE, NONEINHANDVALUE DOUBLE, NONESHORTAGEOREXCESS DOUBLE, ONCALLBALANCE DOUBLE, ONCALLINHANDVALUE DOUBLE, ONCALLSHORTAGEOREXCESS DOUBLE, ONLINESETTLEMENTBALANCE DOUBLE, ONLINESETTLEMENTINHANDVALUE DOUBLE, ONLINESETTLEMENTSHORTAGEOREXCESS DOUBLE, PATIENTDEPOSITBALANCE DOUBLE, PATIENTDEPOSITINHANDVALUE DOUBLE, PATIENTDEPOSITSHORTAGEOREXCESS DOUBLE, PATIENTPOINTSBALANCE DOUBLE, PATIENTPOINTSINHANDVALUE DOUBLE, PATIENTPOINTSSHORTAGEOREXCESS DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SLIPBALANCE DOUBLE, SLIPINHANDVALUE DOUBLE, SLIPSHORTAGEOREXCESS DOUBLE, STAFFBALANCE DOUBLE, STAFFINHANDVALUE DOUBLE, STAFFSHORTAGEOREXCESS DOUBLE, STAFFWELFAREBALANCE DOUBLE, STAFFWELFAREINHANDVALUE DOUBLE, STAFFWELFARESHORTAGEOREXCESS DOUBLE, VOUCHERBALANCE DOUBLE, VOUCHERINHANDVALUE DOUBLE, VOUCHERSHORTAGEOREXCESS DOUBLE, YOUOWEMEBALANCE DOUBLE, YOUOWEMEINHANDVALUE DOUBLE, YOUOWEMESHORTAGEOREXCESS DOUBLE, CREATER_ID BIGINT, RETIRER_ID BIGINT, DRAWERUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DATABASEMIGRATION (ID BIGINT AUTO_INCREMENT NOT NULL, DESCRIPTION VARCHAR(255) NOT NULL, ERRORMESSAGE LONGTEXT, ESTIMATEDDURATIONMS BIGINT, EXECUTEDAT DATETIME NOT NULL, EXECUTIONLOG LONGTEXT, EXECUTIONTIMEMS BIGINT, FILENAME VARCHAR(100) NOT NULL, MIGRATIONMETADATA LONGTEXT, REQUIRESDOWNTIME TINYINT(1) default 0 NOT NULL, ROLLBACKAT DATETIME, ROLLBACKFILENAME VARCHAR(100), STATUS VARCHAR(255) NOT NULL, VERSION VARCHAR(50) NOT NULL UNIQUE, EXECUTEDBY_ID BIGINT, ROLLBACKBY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFDESIGNATION (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATE, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFFEMPLOYMENT_ID BIGINT, DESIGNATION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PAYMENTMETHODVALUE (ID BIGINT AUTO_INCREMENT NOT NULL, AMOUNT DOUBLE, CREATEDAT DATETIME, PAYMENTMETHOD INTEGER, RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE BILLFEEPAYMENT (ID BIGINT AUTO_INCREMENT NOT NULL, AMOUNT DOUBLE, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, BILLFEE_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, PAYMENT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE COMPONENTASIGNMENT (ID BIGINT AUTO_INCREMENT NOT NULL, NAME VARCHAR(255), DESCRIPTION VARCHAR(255), PRIMARY KEY (ID))
CREATE TABLE USERICON (ID BIGINT AUTO_INCREMENT NOT NULL, ICON INTEGER, ORDERNUMBER DOUBLE, RETIRED TINYINT(1) default 0, DEPARTMENT_ID BIGINT, WEBUSER_ID BIGINT, WEBUSERROLE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SALARYCYCLE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, DAYOFFPHFROMDATE DATETIME, DAYOFFPHTODATE DATETIME, EXTRADUTYFROMDATE DATETIME, EXTRADUTYTODATE DATETIME, NAME VARCHAR(255), OVERTIMEFROMDATE DATETIME, OVERTIMETODATE DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SALARYADVANCEFROMDATE DATE, SALARYADVANCETODATE DATE, SALARYDATE INTEGER, SALARYFROMDATE DATETIME, SALARYMONTH INTEGER, SALARYTODATE DATETIME, SALARYYEAR INTEGER, WORKEDFROMDATE DATETIME, WORKEDTODATE DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PATIENTINVESTIGATION (ID BIGINT AUTO_INCREMENT NOT NULL, APPROVEAT DATETIME, APPROVECOMMENTS VARCHAR(255), APPROVED TINYINT(1) default 0, BARCODEGENERATED TINYINT(1) default 0, BARCODEGENERATEDAT DATETIME, CANCELLCOMMENTS VARCHAR(255), CANCELLED TINYINT(1) default 0, CANCELLEDAT DATETIME, COLLECTED TINYINT(1) default 0, CREATEDAT DATETIME, DATAENTERED TINYINT(1) default 0, DATAENTRYAT DATETIME, DATAENTRYCOMMENTS VARCHAR(255), ORDERED TINYINT(1) default 0, ORDEREDAT DATETIME, OUTSOURCED TINYINT(1) default 0, OUTSOURCEDAT DATETIME, OUTSOURCEDCOMMENTS VARCHAR(255), OUTSOURCEDVALUE DOUBLE, PERFORMCOMMENTS VARCHAR(255), PERFORMED TINYINT(1) default 0, PERFORMEDAT DATETIME, PRINTED TINYINT(1) default 0, PRINTINGAT DATETIME, PRINTINGCOMMENTS VARCHAR(255), RECEIVECOMMENTS VARCHAR(255), RECEIVED TINYINT(1) default 0, RECEIVEDAT DATETIME, REPORTDISTRIBUTED TINYINT(1) default 0, REPORTDISTRIBUTEDAT DATETIME, REPORTHANDEDOVER TINYINT(1) default 0, REPORTHANDEDOVERAT DATETIME, REPORTPRINTED TINYINT(1) default 0, REPORTPRINTEDAT DATETIME, REPORTREACHEDCOLLECTINGCENTRE TINYINT(1) default 0, REPORTREACHEDCOLLECTINGCENTREAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, RETURNCOMMENTS VARCHAR(255), RETURNED TINYINT(1) default 0, RETURNEDAT DATETIME, SAMPLEACCEPTED TINYINT(1) default 0, SAMPLEACCEPTEDAT DATETIME, SAMPLEAPPROVED TINYINT(1) default 0, SAMPLEAPPROVEDANDREPEATED TINYINT(1) default 0, SAMPLEAPPROVEDANDREPEATEDAT DATETIME, SAMPLEAPPROVEDAT DATETIME, SAMPLECOLLECTED TINYINT(1) default 0, SAMPLECOLLECTEDAT DATETIME, SAMPLECOMMENTS VARCHAR(255), SAMPLEGENERATED TINYINT(1) default 0, SAMPLEGENERATEDAT DATETIME, SAMPLEIDS VARCHAR(255), SAMPLEINTERFACED TINYINT(1) default 0, SAMPLEINTERFACEDAT DATETIME, SAMPLEOUTSIDE TINYINT(1) default 0, SAMPLERECOLLECTED TINYINT(1) default 0, SAMPLERECOLLECTEDAT DATETIME, SAMPLEREJECTED TINYINT(1) default 0, SAMPLEREJECTEDAT DATETIME, SAMPLEREPEATED TINYINT(1) default 0, SAMPLEREPEATEDAT DATETIME, SAMPLERESENT TINYINT(1) default 0, SAMPLERESENTAT DATETIME, SAMPLEREVERTED TINYINT(1) default 0, SAMPLEREVERTEDAT DATETIME, SAMPLESENT TINYINT(1) default 0, SAMPLESENTAT DATETIME, SAMPLESENTCOMMENTS VARCHAR(255), SAMPLEDAT DATETIME, STATUS INTEGER, APPROVEDEPARTMENT_ID BIGINT, APPROVEINSTITUTION_ID BIGINT, APPROVEUSER_ID BIGINT, BARCODEGENERATEDBY_ID BIGINT, BILLCOMPONENT_ID BIGINT, CANCELLDEPARTMENT_ID BIGINT, CANCELLINSTITUTION_ID BIGINT, CANCELLEDUSER_ID BIGINT, CREATER_ID BIGINT, DATAENTRYDEPARTMENT_ID BIGINT, DATAENTRYINSTITUTION_ID BIGINT, DATAENTRYUSER_ID BIGINT, ENCOUNTER_ID BIGINT, INVESTIGATION_ID BIGINT, ORDEREDBY_ID BIGINT, ORDEREDDEPARTMENT_ID BIGINT, OUTSOURCEINSTITUTION_ID BIGINT, OUTSOURCEDDEPARTMENT_ID BIGINT, OUTSOURCEDINSTITUTION_ID BIGINT, OUTSOURCEDUSER_ID BIGINT, PACKEGE_ID BIGINT, PATIENT_ID BIGINT, PERFORMDEPARTMENT_ID BIGINT, PERFORMINSTITUTION_ID BIGINT, PERFORMEDUSER_ID BIGINT, PRINTINGDEPARTMENT_ID BIGINT, PRINTINGINSTITUTION_ID BIGINT, PRINTINGUSER_ID BIGINT, RECEIVEDEPARTMENT_ID BIGINT, RECEIVEINSTITUTION_ID BIGINT, RECEIVEDCOLLECTER_ID BIGINT, REPORTDISTRIBUTEDBY_ID BIGINT, REPORTHANDEDOVERBY_ID BIGINT, REPORTPRINTEDBY_ID BIGINT, REPORTREACHEDCOLLECTINGCENTREBY_ID BIGINT, RETIRER_ID BIGINT, RETURNDEPARTMENT_ID BIGINT, RETURNINSTITUTION_ID BIGINT, RETURNEDUSER_ID BIGINT, SAMPLEACCEPTEDBY_ID BIGINT, SAMPLEAPPROVEDANDREPEATEDBY_ID BIGINT, SAMPLEAPPROVEDBY_ID BIGINT, SAMPLECOLLECTEDBY_ID BIGINT, SAMPLECOLLECTER_ID BIGINT, SAMPLEDEPARTMENT_ID BIGINT, SAMPLEGENERATEDBY_ID BIGINT, SAMPLEINSTITUTION_ID BIGINT, SAMPLEINTERFACEDBY_ID BIGINT, SAMPLERECOLLECTEDBY_ID BIGINT, SAMPLEREJECTEDBY_ID BIGINT, SAMPLEREPEATEDBY_ID BIGINT, SAMPLERESENTBY_ID BIGINT, SAMPLEREVERTEDBY_ID BIGINT, SAMPLESENTBY_ID BIGINT, SAMPLETRANSPORTEDTOLABBYSTAFF_ID BIGINT, BILLITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CLIENTACCOUNT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, CREATEDVIA VARCHAR(255), EMAILVERIFIED TINYINT(1) default 0, PASSWORDHASH VARCHAR(255), PHONEVERIFIED TINYINT(1) default 0, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, VERIFIEDEMAIL VARCHAR(255), VERIFIEDPHONE VARCHAR(255), CREATEDBYWEBUSER_ID BIGINT, PERSON_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBUSERPASSWORDHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, PASSWORD VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE TEMPLATECOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, DESCRIPTION LONGTEXT, NAME VARCHAR(255), TYPE VARCHAR(255), PARENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE APPEMAIL (ID BIGINT AUTO_INCREMENT NOT NULL, ATTACHMENT1 VARCHAR(255), ATTACHMENT2 VARCHAR(255), ATTACHMENT3 VARCHAR(255), ATTACHMENT4 VARCHAR(255), ATTACHMENTNAMES VARCHAR(2000), BCCEMAILS VARCHAR(2000), CCEMAILS VARCHAR(2000), CREATEDAT DATETIME, MESSAGEBODY LONGTEXT, MESSAGESUBJECT VARCHAR(255), MESSAGETYPE VARCHAR(255), OTP VARCHAR(255), PENDING TINYINT(1) default 0, RECEIPIENTEMAIL VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SENDEREMAIL VARCHAR(255), SENDERPASSWORD VARCHAR(255), SENDERUSERNAME VARCHAR(255), SENTAT DATE, SENTSUCCESSFULLY TINYINT(1) default 0, SMSTYPE VARCHAR(255), BILL_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, ENCOUNTERCREDITCOMPANY_ID BIGINT, INSTITUTION_ID BIGINT, PATIENTENCOUNTER_ID BIGINT, PATIENTINVESTIGATION_ID BIGINT, PATIENTREPORT_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE LOGINS (ID BIGINT AUTO_INCREMENT NOT NULL, BROWSER VARCHAR(255), COMPUTERNAME VARCHAR(255), IPADDRESS VARCHAR(255), LOGEDAT DATETIME, LOGOUTAT DATETIME, OPERATINGSYSTEM VARCHAR(255), SCREENRESOLUTION VARCHAR(255), DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DRAWERENTRY (ID BIGINT AUTO_INCREMENT NOT NULL, AFTERBALANCE DOUBLE, AFTERINHANDVALUE DOUBLE, AFTERSHORTAGEEXCESS DOUBLE, BEFOREBALANCE DOUBLE, BEFOREINHANDVALUE DOUBLE, BEFORESHORTAGEEXCESS DOUBLE, CREATEDAT DATETIME, PAYMENTMETHOD VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TRANSACTIONVALUE DOUBLE, BILL_ID BIGINT, CREATER_ID BIGINT, DRAWER_ID BIGINT, PAYMENT_ID BIGINT, RETIRER_ID BIGINT, WEBUSER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STOCK (ID BIGINT AUTO_INCREMENT NOT NULL, BARCODE VARCHAR(255), CODE VARCHAR(255), DATEOFEXPIRE DATE, ENDBARCODE BIGINT, ITEMNAME VARCHAR(255), LONGCODE BIGINT, RETAILSALERATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STARTBARCODE BIGINT, STOCK DOUBLE, STOCKLOCATOR VARCHAR(255), DEPARTMENT_ID BIGINT, ITEMBATCH_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE SHIFTSTAFFREQUIREMENT (ID BIGINT NOT NULL, FRIDAYCOUNT INTEGER, MERCANTILEHOLIDAYCOUNT INTEGER, MONDAYCOUNT INTEGER, POYADAYCOUNT INTEGER, PUBLICHOLIDAYCOUNT INTEGER, SATURDAYCOUNT INTEGER, SUNDAYCOUNT INTEGER, THURSDAYCOUNT INTEGER, TUESDAYCOUNT INTEGER, WEDNESDAYCOUNT INTEGER, shift_id BIGINT UNIQUE, PRIMARY KEY (ID))
CREATE TABLE STOCKHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, COSTRATE DOUBLE, CREATEDAT DATETIME, FROMDATE DATETIME, HISTORYTYPE VARCHAR(255), HXDATE INTEGER, HXMONTH INTEGER, HXWEEK INTEGER, HXYEAR BIGINT, INSTITUIONBATCHQTY DOUBLE, INSTITUTIONBATCHSTOCKVALUEATCOSTRATE DOUBLE, INSTITUTIONBATCHSTOCKVALUEATPURCHASERATE DOUBLE, INSTITUTIONBATCHSTOCKVALUEATSALERATE DOUBLE, INSTITUTIONITEMSTOCK DOUBLE, INSTITUTIONITEMSTOCKVALUEATCOSTRATE DOUBLE, INSTITUTIONITEMSTOCKVALUEATPURCHASERATE DOUBLE, INSTITUTIONITEMSTOCKVALUEATSALERATE DOUBLE, ITEMSTOCK DOUBLE, ITEMSTOCKVALUEATCOSTRATE DOUBLE, ITEMSTOCKVALUEATPURCHASERATE DOUBLE, ITEMSTOCKVALUEATSALERATE DOUBLE, PURCHASERATE DOUBLE, RETAILRATE DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, STOCKAT DATE, STOCKCOSTVALUE DOUBLE, STOCKPURCHASEVALUE DOUBLE, STOCKQTY DOUBLE, STOCKSALEVALUE DOUBLE, TODATE DATETIME, TOTALBATCHQTY DOUBLE, TOTALBATCHSTOCKVALUEATCOSTRATE DOUBLE, TOTALBATCHSTOCKVALUEATPURCHASERATE DOUBLE, TOTALBATCHSTOCKVALUEATSALERATE DOUBLE, TOTALITEMSTOCK DOUBLE, TOTALITEMSTOCKVALUEATCOSTRATE DOUBLE, TOTALITEMSTOCKVALUEATPURCHASERATE DOUBLE, TOTALITEMSTOCKVALUEATSALERATE DOUBLE, WHOLESALERATE DOUBLE, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, INSTITUTION_ID BIGINT, ITEM_ID BIGINT, ITEMBATCH_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PBITEM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE WEBCONTENT (ID BIGINT AUTO_INCREMENT NOT NULL, ENGLISH LONGTEXT, LONGCONTEXT LONGTEXT, NAME VARCHAR(255), ORDERNO DOUBLE, RETIRED TINYINT(1) default 0, SHORTCONTEXT VARCHAR(255), SINHALA LONGTEXT, TAMIL LONGTEXT, TYPE INTEGER, PARENT_ID BIGINT, WEBLANGUAGE_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ITEMFORITEM (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CHILDITEM_ID BIGINT, CREATER_ID BIGINT, PARENTITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INPATIENTPACKAGEITEM (ID BIGINT AUTO_INCREMENT NOT NULL, COMPONENTTYPE VARCHAR(255), CREATEDAT DATETIME, FIXEDPRICE DOUBLE, QTY DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, ROLELABEL VARCHAR(255), CREATER_ID BIGINT, INPATIENTPACKAGE_ID BIGINT, ITEM_ID BIGINT, RETIRER_ID BIGINT, SPECIALITY_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE APPOINTMENTSCHEDULETEMPLATE (ID BIGINT AUTO_INCREMENT NOT NULL, ACTIVE TINYINT(1) default 0, ALLOWOVERLAP TINYINT(1) default 0, CREATEDAT DATETIME, DEFAULTDURATIONMINUTES DOUBLE, DESCRIPTION VARCHAR(255), EFFECTIVEFROM DATE, EFFECTIVETO DATE, ENDTIME TIME, MAXCOUNT INTEGER, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SCHEDULETYPE VARCHAR(255), SESSIONWEEKDAY INTEGER, STARTTIME TIME, CONSULTANT_ID BIGINT, CREATER_ID BIGINT, DEPARTMENT_ID BIGINT, PROCEDURE_ID BIGINT, RETIRER_ID BIGINT, ROOM_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFPAYSHEETCOMPONENT (ID BIGINT AUTO_INCREMENT NOT NULL, ACCOUNTNO VARCHAR(255), CHEQUEDATE DATETIME, CHEQUENUMBER VARCHAR(255), CHEQUEPAIDDATE DATETIME, COMMENT VARCHAR(255), COMPLETED TINYINT(1) default 0, COMPLETEDAT DATETIME, CREATEDAT DATETIME, CREATEDVALUE DOUBLE, DATEAFFECTFROM DATE, DBLVALUE DOUBLE, FROMDATE DATE, LASTEDITEDAT DATETIME, LOANFULLAMOUNT DOUBLE, LOANNO VARCHAR(255), MODIFIEDVALUE DOUBLE, NUMBEROFINSTALLMENT DOUBLE, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SHEDULEFORPAID TINYINT(1) default 0, STAFFPAYSHEETCOMPONENTVALUE DOUBLE, STARTINGBALANCE DOUBLE, TODATE DATE, BANKBRANCH_ID BIGINT, CHEQUEBANK_ID BIGINT, CHEQUEPAIDBY_ID BIGINT, COMPLETER_ID BIGINT, CREATER_ID BIGINT, LASTEDITOR_ID BIGINT, PAYSHEETCOMPONENT_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE DOCTORINSTITUTION (ID BIGINT AUTO_INCREMENT NOT NULL, BOOLEANVALUE TINYINT(1) default 0, CREATEDAT DATETIME, EDITEDAT DATETIME, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, DOCTOR_ID BIGINT, EDITER_ID BIGINT, INSTITUTION_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PERSONRELATIONSHIP (ID BIGINT AUTO_INCREMENT NOT NULL, APTOBPRELATIONSHIP VARCHAR(255), CREATEDAT DATETIME, ORDERNO INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, APERSON_ID BIGINT, BPERSON_ID BIGINT, CREATER_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE INVESTIGATIONREPORTITEMVALUE (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, NAME VARCHAR(255), ORDERNO INTEGER, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, CREATER_ID BIGINT, INVESTIGATIONITEM_ID BIGINT, RETIRER_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE ROSTER (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, NAME VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SHIFTPERDAY INTEGER, STARTINGTIME TIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, DEPARTMENT_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE STAFFEMPLOYMENT (ID BIGINT AUTO_INCREMENT NOT NULL, CREATEDAT DATETIME, FROMDATE DATETIME, LEAVINGCOMMENTS LONGTEXT, LEAVINGSTATUS VARCHAR(255), RECRUITCOMMENTS LONGTEXT, RECRUITSTATUS VARCHAR(255), RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, TODATE DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, STAFF_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE CASHTRANSACTIONHISTORY (ID BIGINT AUTO_INCREMENT NOT NULL, CASHAT DATE, CASHBALLANCE DOUBLE, CHEQUEBALLANCE DOUBLE, CREATEDAT DATETIME, CREDITCARDBALLANCE DOUBLE, FROMDATE DATETIME, HISTORYTYPE VARCHAR(255), HXDATE INTEGER, HXMONTH INTEGER, HXWEEK INTEGER, HXYEAR BIGINT, RETIRECOMMENTS VARCHAR(255), RETIRED TINYINT(1) default 0, RETIREDAT DATETIME, SLIPBALLANCE DOUBLE, TODATE DATETIME, CREATER_ID BIGINT, RETIRER_ID BIGINT, CASHTRANSACTION_ID BIGINT, PRIMARY KEY (ID))
CREATE TABLE PRESCRIPTIONTEMPLATE_PRESCRIPTIONTEMPLATE (PrescriptionTemplate_ID BIGINT NOT NULL, items_ID BIGINT NOT NULL, PRIMARY KEY (PrescriptionTemplate_ID, items_ID))
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD CONSTRAINT FK_APPOINTMENTSCHEDULEDATEOVERRIDE_TEMPLATE_ID FOREIGN KEY (TEMPLATE_ID) REFERENCES APPOINTMENTSCHEDULETEMPLATE (ID)
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD CONSTRAINT FK_APPOINTMENTSCHEDULEDATEOVERRIDE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD CONSTRAINT FK_APPOINTMENTSCHEDULEDATEOVERRIDE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TRIGGERSUBSCRIPTION ADD CONSTRAINT FK_TRIGGERSUBSCRIPTION_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TRIGGERSUBSCRIPTION ADD CONSTRAINT FK_TRIGGERSUBSCRIPTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TRIGGERSUBSCRIPTION ADD CONSTRAINT FK_TRIGGERSUBSCRIPTION_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE TRIGGERSUBSCRIPTION ADD CONSTRAINT FK_TRIGGERSUBSCRIPTION_WEBUSERROLE_ID FOREIGN KEY (WEBUSERROLE_ID) REFERENCES WEBUSERROLE (ID)
ALTER TABLE TRIGGERSUBSCRIPTION ADD CONSTRAINT FK_TRIGGERSUBSCRIPTION_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TRIGGERSUBSCRIPTION ADD CONSTRAINT FK_TRIGGERSUBSCRIPTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCKBILL ADD CONSTRAINT FK_STOCKBILL_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE INVESTIGATIONVALIDATOR ADD CONSTRAINT FK_INVESTIGATIONVALIDATOR_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INVESTIGATIONVALIDATOR ADD CONSTRAINT FK_INVESTIGATIONVALIDATOR_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE INVESTIGATIONVALIDATOR ADD CONSTRAINT FK_INVESTIGATIONVALIDATOR_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INVESTIGATIONVALIDATOR ADD CONSTRAINT NVSTIGATIONVALIDATORNVSTIGATIONVALIDATECOMPONENTID FOREIGN KEY (INVESTIGATIONVALIDATECOMPONENT_ID) REFERENCES INVESTIGATIONVALIDATERCOMPONENT (ID)
ALTER TABLE INVESTIGATIONVALIDATOR ADD CONSTRAINT FK_INVESTIGATIONVALIDATOR_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFINANCEDETAILS ADD CONSTRAINT FK_BILLFINANCEDETAILS_CREATEDBY_ID FOREIGN KEY (CREATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_PARENTCATEGORY_ID FOREIGN KEY (PARENTCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_ROOMFACILITYCHARGE_ID FOREIGN KEY (ROOMFACILITYCHARGE_ID) REFERENCES ROOMFACILITYCHARGE (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE CATEGORY ADD CONSTRAINT FK_CATEGORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_PBITEM_ID FOREIGN KEY (PBITEM_ID) REFERENCES PHARMACEUTICALBILLITEM (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_ITEMBATCH_ID FOREIGN KEY (ITEMBATCH_ID) REFERENCES ITEMBATCH (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STOCKHISTORYARCHIVE ADD CONSTRAINT FK_STOCKHISTORYARCHIVE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_AFTERSESSION_ID FOREIGN KEY (AFTERSESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_DOSAGEFORM_ID FOREIGN KEY (DOSAGEFORM_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_FORDEPARTMENT_ID FOREIGN KEY (FORDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_REPORTITEM_ID FOREIGN KEY (REPORTITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_BILLEDAS_ID FOREIGN KEY (BILLEDAS_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_MACHINE_ID FOREIGN KEY (MACHINE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_STRENGTHUNIT_ID FOREIGN KEY (STRENGTHUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_MANUFACTURER_ID FOREIGN KEY (MANUFACTURER_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_PACKUNIT_ID FOREIGN KEY (PACKUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_INVESTIGATIONTUBE_ID FOREIGN KEY (INVESTIGATIONTUBE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_ORIGINATINGSESSION_ID FOREIGN KEY (ORIGINATINGSESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_FINANCIALCATEGORY_ID FOREIGN KEY (FINANCIALCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_WORKSHEET_ID FOREIGN KEY (WORKSHEET_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_INVESTIGATIONCATEGORY_ID FOREIGN KEY (INVESTIGATIONCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_BASEUNIT_ID FOREIGN KEY (BASEUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_VMP_ID FOREIGN KEY (VMP_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_VTM_ID FOREIGN KEY (VTM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_PARENTITEM_ID FOREIGN KEY (PARENTITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_ISSUEUNIT_ID FOREIGN KEY (ISSUEUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_MEASUREMENTUNIT_ID FOREIGN KEY (MEASUREMENTUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_MINIMUMISSUEQUANTITYUNIT_ID FOREIGN KEY (MINIMUMISSUEQUANTITYUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_ATM_ID FOREIGN KEY (ATM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_REPORTEDAS_ID FOREIGN KEY (REPORTEDAS_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_AMP_ID FOREIGN KEY (AMP_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_ISSUEMULTIPLIESUNIT_ID FOREIGN KEY (ISSUEMULTIPLIESUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_REPORTFORMAT_ID FOREIGN KEY (REPORTFORMAT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_SAMPLE_ID FOREIGN KEY (SAMPLE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_FORINSTITUTION_ID FOREIGN KEY (FORINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_SESSIONNUMBERGENERATOR_ID FOREIGN KEY (SESSIONNUMBERGENERATOR_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_IMPORTER_ID FOREIGN KEY (IMPORTER_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_MASTERITEMREFERENCE_ID FOREIGN KEY (MASTERITEMREFERENCE_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_VMPP_ID FOREIGN KEY (VMPP_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEM ADD CONSTRAINT FK_ITEM_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE STOCKVARIENTBILLITEM ADD CONSTRAINT FK_STOCKVARIENTBILLITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCKVARIENTBILLITEM ADD CONSTRAINT STOCKVARIENTBILLITEMRFERENCESTOCKVARIANTBILLITEMID FOREIGN KEY (REFERENCESTOCKVARIANTBILLITEM_ID) REFERENCES STOCKVARIENTBILLITEM (ID)
ALTER TABLE STOCKVARIENTBILLITEM ADD CONSTRAINT FK_STOCKVARIENTBILLITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCKVARIENTBILLITEM ADD CONSTRAINT FK_STOCKVARIENTBILLITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE STOCKVARIENTBILLITEM ADD CONSTRAINT FK_STOCKVARIENTBILLITEM_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTDEPOSIT ADD CONSTRAINT FK_PATIENTDEPOSIT_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTDEPOSIT ADD CONSTRAINT FK_PATIENTDEPOSIT_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTDEPOSIT ADD CONSTRAINT FK_PATIENTDEPOSIT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTDEPOSIT ADD CONSTRAINT FK_PATIENTDEPOSIT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTDEPOSIT ADD CONSTRAINT FK_PATIENTDEPOSIT_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTDEPOSIT ADD CONSTRAINT FK_PATIENTDEPOSIT_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_EPFBANKBRANCH_ID FOREIGN KEY (EPFBANKBRANCH_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_HOLDUSER_ID FOREIGN KEY (HOLDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_BANKBRANCH_ID FOREIGN KEY (BANKBRANCH_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_HOLDPAIDBY_ID FOREIGN KEY (HOLDPAIDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_SALARYCYCLE_ID FOREIGN KEY (SALARYCYCLE_ID) REFERENCES SALARYCYCLE (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_BLOCKEDUSER_ID FOREIGN KEY (BLOCKEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARY ADD CONSTRAINT FK_STAFFSALARY_CHEQUEBANK_ID FOREIGN KEY (CHEQUEBANK_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE patientmergerecord ADD CONSTRAINT FK_patientmergerecord_SECONDARYPATIENT_ID FOREIGN KEY (SECONDARYPATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE patientmergerecord ADD CONSTRAINT FK_patientmergerecord_REVERSEDBY_ID FOREIGN KEY (REVERSEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE patientmergerecord ADD CONSTRAINT FK_patientmergerecord_MERGEDBY_ID FOREIGN KEY (MERGEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE patientmergerecord ADD CONSTRAINT FK_patientmergerecord_PRIMARYPATIENT_ID FOREIGN KEY (PRIMARYPATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT PAYMENTHANDOVERITEMHANDOVERCREATEDCOMPONANTBILL_ID FOREIGN KEY (HANDOVERCREATEDCOMPONANTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_PROOFMISSINGSETTLEMENT_ID FOREIGN KEY (PROOFMISSINGSETTLEMENT_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_HANDOVERSHIFTBILL_ID FOREIGN KEY (HANDOVERSHIFTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_HANDOVERACCEPTBILL_ID FOREIGN KEY (HANDOVERACCEPTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_PROOFMISSINGBILL_ID FOREIGN KEY (PROOFMISSINGBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_PAYMENT_ID FOREIGN KEY (PAYMENT_ID) REFERENCES PAYMENT (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_HANDOVERCREATEDBILL_ID FOREIGN KEY (HANDOVERCREATEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT PAYMENTHANDOVERITEM_HANDOVERACCEPTCOMPONANTBILL_ID FOREIGN KEY (HANDOVERACCEPTCOMPONANTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT PAYMENTHANDOVERITEM_HANDOVERSHIFTCOMPONANTBILL_ID FOREIGN KEY (HANDOVERSHIFTCOMPONANTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTHANDOVERITEM ADD CONSTRAINT FK_PAYMENTHANDOVERITEM_CURRENTHOLDER_ID FOREIGN KEY (CURRENTHOLDER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTACTIVITY ADD CONSTRAINT FK_APPOINTMENTACTIVITY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTACTIVITY ADD CONSTRAINT FK_APPOINTMENTACTIVITY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTROOMTIMEDITEMCHARGE ADD CONSTRAINT FK_PATIENTROOMTIMEDITEMCHARGE_TIMEDITEM_ID FOREIGN KEY (TIMEDITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTROOMTIMEDITEMCHARGE ADD CONSTRAINT FK_PATIENTROOMTIMEDITEMCHARGE_PATIENTROOM_ID FOREIGN KEY (PATIENTROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CANCELLEDPAYMENT_ID FOREIGN KEY (CANCELLEDPAYMENT_ID) REFERENCES PAYMENT (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_PAYMENTRECORDCOMPLETECOMPONANTBILL_ID FOREIGN KEY (PAYMENTRECORDCOMPLETECOMPONANTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_TOSTAFF_ID FOREIGN KEY (TOSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CURRENTHOLDER_ID FOREIGN KEY (CURRENTHOLDER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CHEQUEPAIDBILL_ID FOREIGN KEY (CHEQUEPAIDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_PAYMENTRECORDCOMPLETEBILL_ID FOREIGN KEY (PAYMENTRECORDCOMPLETEBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_PAYMENTRECORDCREATEBILL_ID FOREIGN KEY (PAYMENTRECORDCREATEBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CREDITCOMPANY_ID FOREIGN KEY (CREDITCOMPANY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_BANK_ID FOREIGN KEY (BANK_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CHEQUEREALIZER_ID FOREIGN KEY (CHEQUEREALIZER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_PAYMENTRECORDCREATECOMPONANTBILL_ID FOREIGN KEY (PAYMENTRECORDCREATECOMPONANTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CANCELLEDBY_ID FOREIGN KEY (CANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_FLOATRECIPIENT_ID FOREIGN KEY (FLOATRECIPIENT_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_FROMINSTITUTION_ID FOREIGN KEY (FROMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CHEQUEPAYER_ID FOREIGN KEY (CHEQUEPAYER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_REALIZER_ID FOREIGN KEY (REALIZER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_REFERANCEPAYMENT_ID FOREIGN KEY (REFERANCEPAYMENT_ID) REFERENCES PAYMENT (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CASHBOOKENTRY_ID FOREIGN KEY (CASHBOOKENTRY_ID) REFERENCES CASHBOOKENTRY (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CANCELLEDBILL_ID FOREIGN KEY (CANCELLEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_PAYMENTSETTLEMENTBILL_ID FOREIGN KEY (PAYMENTSETTLEMENTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CASHBOOK_ID FOREIGN KEY (CASHBOOK_ID) REFERENCES CASHBOOK (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_CHEQUEREALIZEDBILL_ID FOREIGN KEY (CHEQUEREALIZEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PAYMENT ADD CONSTRAINT FK_PAYMENT_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FEECHANGE ADD CONSTRAINT FK_FEECHANGE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FEECHANGE ADD CONSTRAINT FK_FEECHANGE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FEECHANGE ADD CONSTRAINT FK_FEECHANGE_FEE_ID FOREIGN KEY (FEE_ID) REFERENCES FEE (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_VALUEHEADER_ID FOREIGN KEY (VALUEHEADER_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_COMMENTLABEL_ID FOREIGN KEY (COMMENTLABEL_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_MACHINE_ID FOREIGN KEY (MACHINE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_SAMPLE_ID FOREIGN KEY (SAMPLE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_TESTLABEL_ID FOREIGN KEY (TESTLABEL_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_FLAGVALUE_ID FOREIGN KEY (FLAGVALUE_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_REFERRINGCATEGORY_ID FOREIGN KEY (REFERRINGCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_TESTHEADER_ID FOREIGN KEY (TESTHEADER_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_UNITHEADER_ID FOREIGN KEY (UNITHEADER_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_INVESTIGATIONCOMPONENT_ID FOREIGN KEY (INVESTIGATIONCOMPONENT_ID) REFERENCES INVESTIGATIONCOMPONENT (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_SAMPLECOMPONENT_ID FOREIGN KEY (SAMPLECOMPONENT_ID) REFERENCES ITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_UNITLABEL_ID FOREIGN KEY (UNITLABEL_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_TUBE_ID FOREIGN KEY (TUBE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_REFERENCEHEADER_ID FOREIGN KEY (REFERENCEHEADER_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_TEST_ID FOREIGN KEY (TEST_ID) REFERENCES ITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_REFERENCELABEL_ID FOREIGN KEY (REFERENCELABEL_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_REFERRINGITEM_ID FOREIGN KEY (REFERRINGITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE REPORTITEM ADD CONSTRAINT FK_REPORTITEM_VALUEVALUE_ID FOREIGN KEY (VALUEVALUE_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE USERPREFERENCE ADD CONSTRAINT FK_USERPREFERENCE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE USERPREFERENCE ADD CONSTRAINT FK_USERPREFERENCE_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERPREFERENCE ADD CONSTRAINT FK_USERPREFERENCE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PACKAGEITEM ADD CONSTRAINT FK_PACKAGEITEM_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PACKAGEITEM ADD CONSTRAINT FK_PACKAGEITEM_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PACKAGEITEM ADD CONSTRAINT FK_PACKAGEITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PACKAGEITEM ADD CONSTRAINT FK_PACKAGEITEM_PACKEGE_ID FOREIGN KEY (PACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE PACKAGEITEM ADD CONSTRAINT FK_PACKAGEITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PACKAGEITEM ADD CONSTRAINT FK_PACKAGEITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFEMPLOYEESTATUS ADD CONSTRAINT FK_STAFFEMPLOYEESTATUS_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFEMPLOYEESTATUS ADD CONSTRAINT FK_STAFFEMPLOYEESTATUS_STAFFEMPLOYMENT_ID FOREIGN KEY (STAFFEMPLOYMENT_ID) REFERENCES STAFFEMPLOYMENT (ID)
ALTER TABLE STAFFEMPLOYEESTATUS ADD CONSTRAINT FK_STAFFEMPLOYEESTATUS_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_BANK_ID FOREIGN KEY (BANK_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BANKACCOUNT ADD CONSTRAINT FK_BANKACCOUNT_BANKBRANCH_ID FOREIGN KEY (BANKBRANCH_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE WEBUSERDEPARTMENT ADD CONSTRAINT FK_WEBUSERDEPARTMENT_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE WEBUSERDEPARTMENT ADD CONSTRAINT FK_WEBUSERDEPARTMENT_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDEPARTMENT ADD CONSTRAINT FK_WEBUSERDEPARTMENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDEPARTMENT ADD CONSTRAINT FK_WEBUSERDEPARTMENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_CHILDENCOUNTER_ID FOREIGN KEY (CHILDENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_BILLFEE_ID FOREIGN KEY (BILLFEE_ID) REFERENCES BILLFEE (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE ENCOUNTERCOMPONENT ADD CONSTRAINT FK_ENCOUNTERCOMPONENT_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD CONSTRAINT FK_VIRTUALPRODUCTINGREDIENT_VTM_ID FOREIGN KEY (VTM_ID) REFERENCES ITEM (ID)
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD CONSTRAINT FK_VIRTUALPRODUCTINGREDIENT_STRENGTHUNIT_ID FOREIGN KEY (STRENGTHUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD CONSTRAINT FK_VIRTUALPRODUCTINGREDIENT_VMP_ID FOREIGN KEY (VMP_ID) REFERENCES ITEM (ID)
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD CONSTRAINT VRTUALPRODUCTINGREDIENTPHRMACEUTICALITEMCATEGORYID FOREIGN KEY (PHARMACEUTICALITEMCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD CONSTRAINT VIRTUALPRODUCTINGREDIENTBASISOFSTRENGTHSUBSTANCEID FOREIGN KEY (BASISOFSTRENGTHSUBSTANCE_ID) REFERENCES ITEM (ID)
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD CONSTRAINT FK_VIRTUALPRODUCTINGREDIENT_INGREDIENTSUBSTANCE_ID FOREIGN KEY (INGREDIENTSUBSTANCE_ID) REFERENCES ITEM (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_ISSUEUNIT_ID FOREIGN KEY (ISSUEUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_VERIFIEDBY_ID FOREIGN KEY (VERIFIEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_VERIFYINGDEPARTMENT_ID FOREIGN KEY (VERIFYINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_ENCOUNTER_ID FOREIGN KEY (ENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_DOSEUNIT_ID FOREIGN KEY (DOSEUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_OMITTINGDEPARTMENT_ID FOREIGN KEY (OMITTINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_ADMINISTRATIONSTARTEDBY_ID FOREIGN KEY (ADMINISTRATIONSTARTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_ADMINISTRATIONSTOPPEDDEPARTMENT_ID FOREIGN KEY (ADMINISTRATIONSTOPPEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_DISCHARGEREVIEWEDBY_ID FOREIGN KEY (DISCHARGEREVIEWEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_DURATIONUNIT_ID FOREIGN KEY (DURATIONUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_REVIEWINGDEPARTMENT_ID FOREIGN KEY (REVIEWINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_ADMINISTRATIONSTOPPEDBY_ID FOREIGN KEY (ADMINISTRATIONSTOPPEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_ADMINISTRATIONSTARTEDDEPARTMENT_ID FOREIGN KEY (ADMINISTRATIONSTARTEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_DISPENSEDBY_ID FOREIGN KEY (DISPENSEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_DISPENSINGDEPARTMENT_ID FOREIGN KEY (DISPENSINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_OMITTEDBY_ID FOREIGN KEY (OMITTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_PRESCRIBINGDEPARTMENT_ID FOREIGN KEY (PRESCRIBINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_PRESCRIBEDBY_ID FOREIGN KEY (PRESCRIBEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_LASTREVIEWEDBY_ID FOREIGN KEY (LASTREVIEWEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_FREQUENCYUNIT_ID FOREIGN KEY (FREQUENCYUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTION ADD CONSTRAINT FK_PRESCRIPTION_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES PRESCRIPTION (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_CREDITCOMPANY_ID FOREIGN KEY (CREDITCOMPANY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_ADMISSIONTYPE_ID FOREIGN KEY (ADMISSIONTYPE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_ROOMCATEGORY_ID FOREIGN KEY (ROOMCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_MEMBERSHIPSCHEME_ID FOREIGN KEY (MEMBERSHIPSCHEME_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_ROOMLOCATION_ID FOREIGN KEY (ROOMLOCATION_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRICEMATRIX ADD CONSTRAINT FK_PRICEMATRIX_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE RESERVATION ADD CONSTRAINT FK_RESERVATION_RESERVATIONENCOUNTER_ID FOREIGN KEY (RESERVATIONENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE RESERVATION ADD CONSTRAINT FK_RESERVATION_ROOM_ID FOREIGN KEY (ROOM_ID) REFERENCES ROOMFACILITYCHARGE (ID)
ALTER TABLE RESERVATION ADD CONSTRAINT FK_RESERVATION_APPOINTMENT_ID FOREIGN KEY (APPOINTMENT_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE RESERVATION ADD CONSTRAINT FK_RESERVATION_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE RESERVATION ADD CONSTRAINT FK_RESERVATION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE RESERVATION ADD CONSTRAINT FK_RESERVATION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYEETAXRANGE ADD CONSTRAINT FK_PAYEETAXRANGE_HRMVARIABLES_ID FOREIGN KEY (HRMVARIABLES_ID) REFERENCES HRMVARIABLES (ID)
ALTER TABLE PATIENTREPORTITEMVALUE ADD CONSTRAINT FK_PATIENTREPORTITEMVALUE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTREPORTITEMVALUE ADD CONSTRAINT FK_PATIENTREPORTITEMVALUE_PATIENTREPORTGROUP_ID FOREIGN KEY (PATIENTREPORTGROUP_ID) REFERENCES PATIENTREPORTGROUP (ID)
ALTER TABLE PATIENTREPORTITEMVALUE ADD CONSTRAINT FK_PATIENTREPORTITEMVALUE_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTREPORTITEMVALUE ADD CONSTRAINT FK_PATIENTREPORTITEMVALUE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORTITEMVALUE ADD CONSTRAINT FK_PATIENTREPORTITEMVALUE_INVESTIGATIONITEM_ID FOREIGN KEY (INVESTIGATIONITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE PATIENTREPORTITEMVALUE ADD CONSTRAINT FK_PATIENTREPORTITEMVALUE_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE AIMESSAGE ADD CONSTRAINT FK_AIMESSAGE_CONVERSATION_ID FOREIGN KEY (CONVERSATION_ID) REFERENCES AICONVERSATION (ID)
ALTER TABLE AIMESSAGE ADD CONSTRAINT FK_AIMESSAGE_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_FREQUENCYUNIT_ID FOREIGN KEY (FREQUENCYUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_ISSUEUNIT_ID FOREIGN KEY (ISSUEUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES PRESCRIPTIONTEMPLATE (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_DOSEUNIT_ID FOREIGN KEY (DOSEUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_FORINSTITUTION_ID FOREIGN KEY (FORINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_FORITEM_ID FOREIGN KEY (FORITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_DURATIONUNIT_ID FOREIGN KEY (DURATIONUNIT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_FORDEPARTMENT_ID FOREIGN KEY (FORDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD CONSTRAINT FK_PRESCRIPTIONTEMPLATE_FORWEBUSER_ID FOREIGN KEY (FORWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ANALYZERMESSAGE ADD CONSTRAINT FK_ANALYZERMESSAGE_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ANALYZERMESSAGE ADD CONSTRAINT FK_ANALYZERMESSAGE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE AGENTSFEES ADD CONSTRAINT FK_AGENTSFEES_FEE_ID FOREIGN KEY (FEE_ID) REFERENCES FEE (ID)
ALTER TABLE AGENTSFEES ADD CONSTRAINT FK_AGENTSFEES_SERVICESESSION_ID FOREIGN KEY (SERVICESESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE AGENTSFEES ADD CONSTRAINT FK_AGENTSFEES_AGENT_ID FOREIGN KEY (AGENT_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD CONSTRAINT FK_INVESTIGATIONVALIDATERCOMPONENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD CONSTRAINT INVESTIGATIONVALIDATERCOMPONENTINVESTIGATIONITEMID FOREIGN KEY (INVESTIGATIONITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD CONSTRAINT FK_INVESTIGATIONVALIDATERCOMPONENT_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD CONSTRAINT NVSTGATIONVALIDATERCOMPONENTNVSTIGATIONVALIDATORID FOREIGN KEY (INVESTIGATIONVALIDATOR_ID) REFERENCES INVESTIGATIONVALIDATOR (ID)
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD CONSTRAINT FK_INVESTIGATIONVALIDATERCOMPONENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_APPROVEUSER_ID FOREIGN KEY (APPROVEUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_SINGLEBILLSESSION_ID FOREIGN KEY (SINGLEBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CREDITCOMPANY_ID FOREIGN KEY (CREDITCOMPANY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_FROMWEBUSER_ID FOREIGN KEY (FROMWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PAYMENTGENERATEDBY_ID FOREIGN KEY (PAYMENTGENERATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_FULLRETURNEDBY_ID FOREIGN KEY (FULLRETURNEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_BILLPACKEGE_ID FOREIGN KEY (BILLPACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_MEMBERFAMILY_ID FOREIGN KEY (MEMBERFAMILY_ID) REFERENCES FAMILY (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_REFERREDBYINSTITUTION_ID FOREIGN KEY (REFERREDBYINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_SINGLEBILLITEM_ID FOREIGN KEY (SINGLEBILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_FROMINSTITUTION_ID FOREIGN KEY (FROMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CANCELLEDBILL_ID FOREIGN KEY (CANCELLEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_FROMSTAFF_ID FOREIGN KEY (FROMSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_REFERENCEINSTITUTION_ID FOREIGN KEY (REFERENCEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_FORWARDREFERENCEBILL_ID FOREIGN KEY (FORWARDREFERENCEBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_REFERENCEBILL_ID FOREIGN KEY (REFERENCEBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CHECKEDBY_ID FOREIGN KEY (CHECKEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_BANKACCOUNT_ID FOREIGN KEY (BANKACCOUNT_ID) REFERENCES BANKACCOUNT (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CASHTRANSACTION_ID FOREIGN KEY (CASHTRANSACTION_ID) REFERENCES CASHTRANSACTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_FULLYISSUEDBY_ID FOREIGN KEY (FULLYISSUEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CURRENTREQUEST_ID FOREIGN KEY (CURRENTREQUEST_ID) REFERENCES REQUEST (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_BILLEDBILL_ID FOREIGN KEY (BILLEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PROCEDURE_ID FOREIGN KEY (PROCEDURE_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PAYMENTCOMPLETEDBY_ID FOREIGN KEY (PAYMENTCOMPLETEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_REACTIVATEDBILL_ID FOREIGN KEY (REACTIVATEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_FROMDEPARTMENT_ID FOREIGN KEY (FROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_CHIEFHOUSEHOLDER_ID FOREIGN KEY (CHIEFHOUSEHOLDER_ID) REFERENCES PATIENT (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_BILLFINANCEDETAILS_ID FOREIGN KEY (BILLFINANCEDETAILS_ID) REFERENCES BILLFINANCEDETAILS (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_BACKWARDREFERENCEBILL_ID FOREIGN KEY (BACKWARDREFERENCEBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_ONLINEBOOKING_ID FOREIGN KEY (ONLINEBOOKING_ID) REFERENCES ONLINEBOOKING (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_REFUNDEDBILL_ID FOREIGN KEY (REFUNDEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_STOCKBILL_ID FOREIGN KEY (STOCKBILL_ID) REFERENCES STOCKBILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_MEMBERSHIPSCHEME_ID FOREIGN KEY (MEMBERSHIPSCHEME_ID) REFERENCES CATEGORY (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PAYMENTAPPROVEDBY_ID FOREIGN KEY (PAYMENTAPPROVEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PAYMENTSCHEMEINSTITUTION_ID FOREIGN KEY (PAYMENTSCHEMEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_COLLECTINGCENTRE_ID FOREIGN KEY (COLLECTINGCENTRE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PAIDBILL_ID FOREIGN KEY (PAIDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PHARMACYBILL_ID FOREIGN KEY (PHARMACYBILL_ID) REFERENCES PHARMACYBILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_REFERRINGDEPARTMENT_ID FOREIGN KEY (REFERRINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_TOWEBUSER_ID FOREIGN KEY (TOWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_SMSEDUSER_ID FOREIGN KEY (SMSEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_COMPLETEDBY_ID FOREIGN KEY (COMPLETEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_REFERREDBY_ID FOREIGN KEY (REFERREDBY_ID) REFERENCES STAFF (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_DUPLICATEPRINTEDUSER_ID FOREIGN KEY (DUPLICATEPRINTEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_TOSTAFF_ID FOREIGN KEY (TOSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PREVIOUSVERSION_ID FOREIGN KEY (PREVIOUSVERSION_ID) REFERENCES BILL (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_BANK_ID FOREIGN KEY (BANK_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILL ADD CONSTRAINT FK_BILL_PRINTEDUSER_ID FOREIGN KEY (PRINTEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FEEVALUE ADD CONSTRAINT FK_FEEVALUE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE FEEVALUE ADD CONSTRAINT FK_FEEVALUE_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE FEEVALUE ADD CONSTRAINT FK_FEEVALUE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FEEVALUE ADD CONSTRAINT FK_FEEVALUE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FEEVALUE ADD CONSTRAINT FK_FEEVALUE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE FEEVALUE ADD CONSTRAINT FK_FEEVALUE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_MANUFACTURER_ID FOREIGN KEY (MANUFACTURER_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_ITEMBATCH_ID FOREIGN KEY (ITEMBATCH_ID) REFERENCES ITEMBATCH (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_ARCHIVEDITEMBATCH_ID FOREIGN KEY (ARCHIVEDITEMBATCH_ID) REFERENCES ITEMBATCHARCHIVE (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_STOCK_ID FOREIGN KEY (STOCK_ID) REFERENCES STOCK (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_MAKE_ID FOREIGN KEY (MAKE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE PHARMACEUTICALBILLITEM ADD CONSTRAINT FK_PHARMACEUTICALBILLITEM_STAFFSTOCK_ID FOREIGN KEY (STAFFSTOCK_ID) REFERENCES STOCK (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_LABDEPARTMENT_ID FOREIGN KEY (LABDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_LABINSTITUTION_ID FOREIGN KEY (LABINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_SAMPLEINSTITUTION_ID FOREIGN KEY (SAMPLEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_SAMPLEDEPARTMENT_ID FOREIGN KEY (SAMPLEDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_SUPERDEPARTMENT_ID FOREIGN KEY (SUPERDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PRICE ADD CONSTRAINT FK_PRICE_ITEMBATCH_ID FOREIGN KEY (ITEMBATCH_ID) REFERENCES ITEMBATCH (ID)
ALTER TABLE PRICE ADD CONSTRAINT FK_PRICE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PRICE ADD CONSTRAINT FK_PRICE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE SHIFT ADD CONSTRAINT FK_SHIFT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SHIFT ADD CONSTRAINT FK_SHIFT_PREVIOUSSHIFT_ID FOREIGN KEY (PREVIOUSSHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE SHIFT ADD CONSTRAINT FK_SHIFT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SHIFT ADD CONSTRAINT FK_SHIFT_NEXTSHIFT_ID FOREIGN KEY (NEXTSHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE SHIFT ADD CONSTRAINT FK_SHIFT_ROSTER_ID FOREIGN KEY (ROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE SHIFT ADD CONSTRAINT FK_SHIFT_SHIFTPREFERENCE_ID FOREIGN KEY (SHIFTPREFERENCE_ID) REFERENCES SHIFTPREFERENCE (ID)
ALTER TABLE SHIFT ADD CONSTRAINT FK_SHIFT_SHIFT_ID FOREIGN KEY (SHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE SHIFTAMENDMENT ADD CONSTRAINT FK_SHIFTAMENDMENT_TOSHIFT_ID FOREIGN KEY (TOSHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE SHIFTAMENDMENT ADD CONSTRAINT FK_SHIFTAMENDMENT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE SHIFTAMENDMENT ADD CONSTRAINT FK_SHIFTAMENDMENT_APPROVED_ID FOREIGN KEY (APPROVED_ID) REFERENCES STAFF (ID)
ALTER TABLE SHIFTAMENDMENT ADD CONSTRAINT FK_SHIFTAMENDMENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SHIFTAMENDMENT ADD CONSTRAINT FK_SHIFTAMENDMENT_REFERENCESHIFTAMENDMENT_ID FOREIGN KEY (REFERENCESHIFTAMENDMENT_ID) REFERENCES SHIFTAMENDMENT (ID)
ALTER TABLE SHIFTAMENDMENT ADD CONSTRAINT FK_SHIFTAMENDMENT_FROMSHIFT_ID FOREIGN KEY (FROMSHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE SHIFTAMENDMENT ADD CONSTRAINT FK_SHIFTAMENDMENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE HISTORICALRECORD ADD CONSTRAINT FK_HISTORICALRECORD_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE HISTORICALRECORD ADD CONSTRAINT FK_HISTORICALRECORD_COLLECTIONCENTRE_ID FOREIGN KEY (COLLECTIONCENTRE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE HISTORICALRECORD ADD CONSTRAINT FK_HISTORICALRECORD_CREATEDBY_ID FOREIGN KEY (CREATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE HISTORICALRECORD ADD CONSTRAINT FK_HISTORICALRECORD_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE HISTORICALRECORD ADD CONSTRAINT FK_HISTORICALRECORD_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE HISTORICALRECORD ADD CONSTRAINT FK_HISTORICALRECORD_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE HISTORICALRECORD ADD CONSTRAINT FK_HISTORICALRECORD_RETIREDBY_ID FOREIGN KEY (RETIREDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_GRADE_ID FOREIGN KEY (GRADE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_EPFBANKBRANCH_ID FOREIGN KEY (EPFBANKBRANCH_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_STAFFCATEGORY_ID FOREIGN KEY (STAFFCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_WORKINGDEPARTMENT_ID FOREIGN KEY (WORKINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_DESIGNATION_ID FOREIGN KEY (DESIGNATION_ID) REFERENCES CATEGORY (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_BANKBRANCH_ID FOREIGN KEY (BANKBRANCH_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_ROSTER_ID FOREIGN KEY (ROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE STAFF ADD CONSTRAINT FK_STAFF_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_SHIFT_ID FOREIGN KEY (SHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_FROMSTAFF_ID FOREIGN KEY (FROMSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_TOSTAFFSHIFT_ID FOREIGN KEY (TOSTAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_FROMROSTER_ID FOREIGN KEY (FROMROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_FROMSTAFFSHIFTSECOND_ID FOREIGN KEY (FROMSTAFFSHIFTSECOND_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_TOROSTER_ID FOREIGN KEY (TOROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_FROMSTAFFSHIFT_ID FOREIGN KEY (FROMSTAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_TOSHIFTSECOND_ID FOREIGN KEY (TOSHIFTSECOND_ID) REFERENCES SHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_STAFFSHIFT_ID FOREIGN KEY (STAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_TOSHIFT_ID FOREIGN KEY (TOSHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_APPROVEDSTAFF_ID FOREIGN KEY (APPROVEDSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_TOSTAFFSHIFTSECOND_ID FOREIGN KEY (TOSTAFFSHIFTSECOND_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_TOSTAFF_ID FOREIGN KEY (TOSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FORM ADD CONSTRAINT FK_FORM_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD CONSTRAINT FK_WEBUSERROLEPRIVILEGE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD CONSTRAINT FK_WEBUSERROLEPRIVILEGE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD CONSTRAINT FK_WEBUSERROLEPRIVILEGE_WEBUSERROLE_ID FOREIGN KEY (WEBUSERROLE_ID) REFERENCES WEBUSERROLE (ID)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD CONSTRAINT FK_WEBUSERROLEPRIVILEGE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE patientmergeaffectedrecord ADD CONSTRAINT FK_patientmergeaffectedrecord_MERGERECORD_ID FOREIGN KEY (MERGERECORD_ID) REFERENCES patientmergerecord (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_FROMDEPARTMENT_ID FOREIGN KEY (FROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_TOSITE_ID FOREIGN KEY (TOSITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_PAYMENT_ID FOREIGN KEY (PAYMENT_ID) REFERENCES PAYMENT (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_FROMSITE_ID FOREIGN KEY (FROMSITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_FROMINSTITUTION_ID FOREIGN KEY (FROMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_CASHBOOK_ID FOREIGN KEY (CASHBOOK_ID) REFERENCES CASHBOOK (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHBOOKENTRY ADD CONSTRAINT FK_CASHBOOKENTRY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPRIVILEGE ADD CONSTRAINT FK_WEBUSERPRIVILEGE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPRIVILEGE ADD CONSTRAINT FK_WEBUSERPRIVILEGE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPRIVILEGE ADD CONSTRAINT FK_WEBUSERPRIVILEGE_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPRIVILEGE ADD CONSTRAINT FK_WEBUSERPRIVILEGE_WEBUSERROLE_ID FOREIGN KEY (WEBUSERROLE_ID) REFERENCES WEBUSERROLE (ID)
ALTER TABLE WEBUSERPRIVILEGE ADD CONSTRAINT FK_WEBUSERPRIVILEGE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD CONSTRAINT FK_RESTRICTEDPAYMENTMETHOD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD CONSTRAINT FK_RESTRICTEDPAYMENTMETHOD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD CONSTRAINT FK_RESTRICTEDPAYMENTMETHOD_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD CONSTRAINT FK_RESTRICTEDPAYMENTMETHOD_MEMBERSHIPSCHEME_ID FOREIGN KEY (MEMBERSHIPSCHEME_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PHDATE ADD CONSTRAINT FK_PHDATE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PHDATE ADD CONSTRAINT FK_PHDATE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_REVIEWEDBY_ID FOREIGN KEY (REVIEWEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_REQUESTER_ID FOREIGN KEY (REQUESTER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_CANCELLEDBY_ID FOREIGN KEY (CANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_REJECTEDBY_ID FOREIGN KEY (REJECTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_TARGETWEBUSER_ID FOREIGN KEY (TARGETWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_CREATOR_ID FOREIGN KEY (CREATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_APPROVEDBY_ID FOREIGN KEY (APPROVEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REQUEST ADD CONSTRAINT FK_REQUEST_COMPLETEDBY_ID FOREIGN KEY (COMPLETEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_NEXTSTAFFSHIFT_ID FOREIGN KEY (NEXTSTAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_ENDRECORD_ID FOREIGN KEY (ENDRECORD_ID) REFERENCES FINGERPRINTRECORD (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_SHIFT_ID FOREIGN KEY (SHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_STAFFSALARY_ID FOREIGN KEY (STAFFSALARY_ID) REFERENCES STAFFSALARY (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_STARTRECORD_ID FOREIGN KEY (STARTRECORD_ID) REFERENCES FINGERPRINTRECORD (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_ROSTER_ID FOREIGN KEY (ROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_REFERENCESTAFFSHIFTEARLYOUT_ID FOREIGN KEY (REFERENCESTAFFSHIFTEARLYOUT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_LEAVEFORM_ID FOREIGN KEY (LEAVEFORM_ID) REFERENCES FORM (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_AMENDMENTFORM_ID FOREIGN KEY (AMENDMENTFORM_ID) REFERENCES FORM (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_REFERENCESTAFFSHIFT_ID FOREIGN KEY (REFERENCESTAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_ADDITIONALFORM_ID FOREIGN KEY (ADDITIONALFORM_ID) REFERENCES FORM (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_REFERENCESTAFFSHIFTLATEIN_ID FOREIGN KEY (REFERENCESTAFFSHIFTLATEIN_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE STAFFSHIFT ADD CONSTRAINT FK_STAFFSHIFT_PREVIOUSSTAFFSHIFT_ID FOREIGN KEY (PREVIOUSSTAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_CANCELLEDBY_ID FOREIGN KEY (CANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_PROCESSDEFINITION_ID FOREIGN KEY (PROCESSDEFINITION_ID) REFERENCES PROCESSDEFINITION (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_PAUSEDBY_ID FOREIGN KEY (PAUSEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_COMPLETEDBY_ID FOREIGN KEY (COMPLETEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_REJECTEDBY_ID FOREIGN KEY (REJECTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSINSTANCE ADD CONSTRAINT FK_PROCESSINSTANCE_CREATOR_ID FOREIGN KEY (CREATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REPORTTEMPLATE ADD CONSTRAINT FK_REPORTTEMPLATE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REPORTTEMPLATE ADD CONSTRAINT FK_REPORTTEMPLATE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REPORTTEMPLATE ADD CONSTRAINT FK_REPORTTEMPLATE_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES REPORTTEMPLATE (ID)
ALTER TABLE REPORTTEMPLATE ADD CONSTRAINT FK_REPORTTEMPLATE_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD CONSTRAINT FK_PROCESSSTEPACTIONDEFINITION_CREATOR_ID FOREIGN KEY (CREATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD CONSTRAINT PRCSSSTPCTIONDEFINITIONDRCTDPRCESSSTEPDEFINITIONID FOREIGN KEY (DIRECTEDPROCESSSTEPDEFINITION_ID) REFERENCES PROCESSSTEPDEFINITION (ID)
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD CONSTRAINT PROCESSSTEPACTIONDEFINITIONPROCESSSTEPDEFINITIONID FOREIGN KEY (PROCESSSTEPDEFINITION_ID) REFERENCES PROCESSSTEPDEFINITION (ID)
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD CONSTRAINT FK_PROCESSSTEPACTIONDEFINITION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD CONSTRAINT FK_PROCESSSTEPACTIONDEFINITION_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES PROCESSSTEPACTIONDEFINITION (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_REQUESTEDTODEPARTMENT_ID FOREIGN KEY (REQUESTEDTODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_PEFORMEDDEPARTMENT_ID FOREIGN KEY (PEFORMEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_SOURCEPACKAGEITEM_ID FOREIGN KEY (SOURCEPACKAGEITEM_ID) REFERENCES INPATIENTPACKAGEITEM (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_REQUESTEDFROMDEPARTMENT_ID FOREIGN KEY (REQUESTEDFROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_PARENTBILLITEM_ID FOREIGN KEY (PARENTBILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_EXPENSEBILL_ID FOREIGN KEY (EXPENSEBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_PAIDFORBILLFEE_ID FOREIGN KEY (PAIDFORBILLFEE_ID) REFERENCES BILLFEE (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_PRIMARYSTAFF_ID FOREIGN KEY (PRIMARYSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_BILLITEMFINANCEDETAILS_ID FOREIGN KEY (BILLITEMFINANCEDETAILS_ID) REFERENCES BILLITEMFINANCEDETAILS (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_PRESCRIPTION_ID FOREIGN KEY (PRESCRIPTION_ID) REFERENCES PRESCRIPTION (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_REFERENCEBILL_ID FOREIGN KEY (REFERENCEBILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_PRICEMATRIX_ID FOREIGN KEY (PRICEMATRIX_ID) REFERENCES PRICEMATRIX (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLITEM ADD CONSTRAINT FK_BILLITEM_REFERANCEBILLITEM_ID FOREIGN KEY (REFERANCEBILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE ROOMFACILITYTIMEDITEM ADD CONSTRAINT FK_ROOMFACILITYTIMEDITEM_ROOMFACILITYCHARGE_ID FOREIGN KEY (ROOMFACILITYCHARGE_ID) REFERENCES ROOMFACILITYCHARGE (ID)
ALTER TABLE ROOMFACILITYTIMEDITEM ADD CONSTRAINT FK_ROOMFACILITYTIMEDITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ROOMFACILITYTIMEDITEM ADD CONSTRAINT FK_ROOMFACILITYTIMEDITEM_TIMEDITEM_ID FOREIGN KEY (TIMEDITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ROOMFACILITYTIMEDITEM ADD CONSTRAINT FK_ROOMFACILITYTIMEDITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_REFERENCEBILLFEE_ID FOREIGN KEY (REFERENCEBILLFEE_ID) REFERENCES BILLFEE (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_REFERENCEPATIENTROOM_ID FOREIGN KEY (REFERENCEPATIENTROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_CHILDENCOUNTER_ID FOREIGN KEY (CHILDENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_REFERENCEBILLITEM_ID FOREIGN KEY (REFERENCEBILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_PATIENENCOUNTER_ID FOREIGN KEY (PATIENENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_SOURCEPACKAGEITEM_ID FOREIGN KEY (SOURCEPACKAGEITEM_ID) REFERENCES INPATIENTPACKAGEITEM (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_PRICEMATRIX_ID FOREIGN KEY (PRICEMATRIX_ID) REFERENCES PRICEMATRIX (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_FEEPAYMENTHOLDBY_ID FOREIGN KEY (FEEPAYMENTHOLDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_PATIENTITEM_ID FOREIGN KEY (PATIENTITEM_ID) REFERENCES PATIENTITEM (ID)
ALTER TABLE BILLFEE ADD CONSTRAINT FK_BILLFEE_FEE_ID FOREIGN KEY (FEE_ID) REFERENCES FEE (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_SAMPLEINSTITUTION_ID FOREIGN KEY (SAMPLEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_SEPARATEDFROM_ID FOREIGN KEY (SEPARATEDFROM_ID) REFERENCES PATIENTSAMPLECOMPONANT (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_SAMPLECOLLECTER_ID FOREIGN KEY (SAMPLECOLLECTER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_SAMPLE_ID FOREIGN KEY (SAMPLE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_PATIENTSAMPLE_ID FOREIGN KEY (PATIENTSAMPLE_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_CANCELLEDUSER_ID FOREIGN KEY (CANCELLEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT PATIENTSAMPLECOMPONANT_INVESTIGATIONCOMPONANT_ID FOREIGN KEY (INVESTIGATIONCOMPONANT_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_MACHINE_ID FOREIGN KEY (MACHINE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_TUBE_ID FOREIGN KEY (TUBE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_CANCELLINSTITUTION_ID FOREIGN KEY (CANCELLINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_SAMPLEDEPARTMENT_ID FOREIGN KEY (SAMPLEDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_TEST_ID FOREIGN KEY (TEST_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD CONSTRAINT FK_PATIENTSAMPLECOMPONANT_CANCELLDEPARTMENT_ID FOREIGN KEY (CANCELLDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_FROMSPECIALITY_ID FOREIGN KEY (FROMSPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_FROMSTAFF_ID FOREIGN KEY (FROMSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_FROMINSTITUTION_ID FOREIGN KEY (FROMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_FORDEPARTMENT_ID FOREIGN KEY (FORDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_PACKEGE_ID FOREIGN KEY (PACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_FROMDEPARTMENT_ID FOREIGN KEY (FROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_TOSPACIALITY_ID FOREIGN KEY (TOSPACIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_TOSTAFF_ID FOREIGN KEY (TOSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_SERVICESESSION_ID FOREIGN KEY (SERVICESESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_FORCATEGORY_ID FOREIGN KEY (FORCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_SESSION_ID FOREIGN KEY (SESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE FEE ADD CONSTRAINT FK_FEE_FORINSTITUTION_ID FOREIGN KEY (FORINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_FROMWEBUSER_ID FOREIGN KEY (FROMWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_FROMDEPARTMENT_ID FOREIGN KEY (FROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_TOSTAFF_ID FOREIGN KEY (TOSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_FROMINSTITUTION_ID FOREIGN KEY (FROMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_TOWEBUSER_ID FOREIGN KEY (TOWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGGREGATEDRECORD ADD CONSTRAINT FK_AGGREGATEDRECORD_FROMSTAFF_ID FOREIGN KEY (FROMSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE SESSIONINSTANCEACTIVITY ADD CONSTRAINT FK_SESSIONINSTANCEACTIVITY_SESSIONINSTANCE_ID FOREIGN KEY (SESSIONINSTANCE_ID) REFERENCES SESSIONINSTANCE (ID)
ALTER TABLE SESSIONINSTANCEACTIVITY ADD CONSTRAINT FK_SESSIONINSTANCEACTIVITY_APPOINTMENTACTIVITY_ID FOREIGN KEY (APPOINTMENTACTIVITY_ID) REFERENCES APPOINTMENTACTIVITY (ID)
ALTER TABLE SESSIONINSTANCEACTIVITY ADD CONSTRAINT FK_SESSIONINSTANCEACTIVITY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCEACTIVITY ADD CONSTRAINT FK_SESSIONINSTANCEACTIVITY_BILLSESSION_ID FOREIGN KEY (BILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE SESSIONINSTANCEACTIVITY ADD CONSTRAINT FK_SESSIONINSTANCEACTIVITY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CAPTURECOMPONENT ADD CONSTRAINT FK_CAPTURECOMPONENT_DESIGNCOMPONENT_ID FOREIGN KEY (DESIGNCOMPONENT_ID) REFERENCES DESIGNCOMPONENT (ID)
ALTER TABLE CAPTURECOMPONENT ADD CONSTRAINT FK_CAPTURECOMPONENT_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES CAPTURECOMPONENT (ID)
ALTER TABLE CAPTURECOMPONENT ADD CONSTRAINT FK_CAPTURECOMPONENT_ITEMVALUE_ID FOREIGN KEY (ITEMVALUE_ID) REFERENCES ITEM (ID)
ALTER TABLE CAPTURECOMPONENT ADD CONSTRAINT FK_CAPTURECOMPONENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CAPTURECOMPONENT ADD CONSTRAINT FK_CAPTURECOMPONENT_PATIENTFORMENTRY_ID FOREIGN KEY (PATIENTFORMENTRY_ID) REFERENCES PATIENTFORMENTRY (ID)
ALTER TABLE CAPTURECOMPONENT ADD CONSTRAINT FK_CAPTURECOMPONENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFWORKDAY ADD CONSTRAINT FK_STAFFWORKDAY_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE USERSTOCKCONTAINER ADD CONSTRAINT FK_USERSTOCKCONTAINER_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERSTOCKCONTAINER ADD CONSTRAINT FK_USERSTOCKCONTAINER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT STFFSLARYCOMPONANTSTFFPYSHEETCOMPONENTPERCENTAGEID FOREIGN KEY (STAFFPAYSHEETCOMPONENTPERCENTAGE_ID) REFERENCES STAFFPAYSHEETCOMPONENT (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_STAFFSALARY_ID FOREIGN KEY (STAFFSALARY_ID) REFERENCES STAFFSALARY (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_LASTEDITOR_ID FOREIGN KEY (LASTEDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_STAFFPAYSHEETCOMPONENT_ID FOREIGN KEY (STAFFPAYSHEETCOMPONENT_ID) REFERENCES STAFFPAYSHEETCOMPONENT (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_SALARYCYCLE_ID FOREIGN KEY (SALARYCYCLE_ID) REFERENCES SALARYCYCLE (ID)
ALTER TABLE STAFFSALARYCOMPONANT ADD CONSTRAINT FK_STAFFSALARYCOMPONANT_PAIDBY_ID FOREIGN KEY (PAIDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD CONSTRAINT FK_PAYMENTGATEWAYTRANSACTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD CONSTRAINT FK_PAYMENTGATEWAYTRANSACTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD CONSTRAINT FK_PAYMENTGATEWAYTRANSACTION_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD CONSTRAINT FK_PAYMENTGATEWAYTRANSACTION_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD CONSTRAINT FK_PAYMENTGATEWAYTRANSACTION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD CONSTRAINT FK_PAYMENTGATEWAYTRANSACTION_SESSIONINSTANCE_ID FOREIGN KEY (SESSIONINSTANCE_ID) REFERENCES SESSIONINSTANCE (ID)
ALTER TABLE USERNOTIFICATION ADD CONSTRAINT FK_USERNOTIFICATION_NOTIFICATION_ID FOREIGN KEY (NOTIFICATION_ID) REFERENCES NOTIFICATION (ID)
ALTER TABLE USERNOTIFICATION ADD CONSTRAINT FK_USERNOTIFICATION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERNOTIFICATION ADD CONSTRAINT FK_USERNOTIFICATION_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERNOTIFICATION ADD CONSTRAINT FK_USERNOTIFICATION_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE USERNOTIFICATION ADD CONSTRAINT FK_USERNOTIFICATION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_AUTOMATEDINSTITUTION_ID FOREIGN KEY (AUTOMATEDINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_DATAENTRYDEPARTMENT_ID FOREIGN KEY (DATAENTRYDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_PRINTINGDEPARTMENT_ID FOREIGN KEY (PRINTINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_APPROVEINSTITUTION_ID FOREIGN KEY (APPROVEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_CANCELLDEPARTMENT_ID FOREIGN KEY (CANCELLDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_AUTOMATEDANALYZER_ID FOREIGN KEY (AUTOMATEDANALYZER_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_DATAENTRYUSER_ID FOREIGN KEY (DATAENTRYUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_AUTOMATEDDEPARTMENTANALYZER_ID FOREIGN KEY (AUTOMATEDDEPARTMENTANALYZER_ID) REFERENCES DEPARTMENTMACHINE (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_AUTOMATEDDEPARTMENT_ID FOREIGN KEY (AUTOMATEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_CANCELLEDUSER_ID FOREIGN KEY (CANCELLEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_UPLOADEDREPORT_ID FOREIGN KEY (UPLOADEDREPORT_ID) REFERENCES UPLOAD (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_PRINTINGINSTITUTION_ID FOREIGN KEY (PRINTINGINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_RETURNEDUSER_ID FOREIGN KEY (RETURNEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_APPROVEUSER_ID FOREIGN KEY (APPROVEUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_REPORTFORMAT_ID FOREIGN KEY (REPORTFORMAT_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_PRINTINGUSER_ID FOREIGN KEY (PRINTINGUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_RETURNDEPARTMENT_ID FOREIGN KEY (RETURNDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_DATAENTRYINSTITUTION_ID FOREIGN KEY (DATAENTRYINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_CANCELLINSTITUTION_ID FOREIGN KEY (CANCELLINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_APPROVEDEPARTMENT_ID FOREIGN KEY (APPROVEDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_AUTOMATEDUSER_ID FOREIGN KEY (AUTOMATEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORT ADD CONSTRAINT FK_PATIENTREPORT_RETURNINSTITUTION_ID FOREIGN KEY (RETURNINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLESENTTODEPARTMENT_ID FOREIGN KEY (SAMPLESENTTODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_OUTSOURCESENTUSER_ID FOREIGN KEY (OUTSOURCESENTUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLERECEIVEDATLABDEPARTMENT_ID FOREIGN KEY (SAMPLERECEIVEDATLABDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SENTTOANALYZERDEPARTMENT_ID FOREIGN KEY (SENTTOANALYZERDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_DUPLICATEDTO_ID FOREIGN KEY (DUPLICATEDTO_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_CANCELLEDUSER_ID FOREIGN KEY (CANCELLEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_OUTSOURCEINSTITUTION_ID FOREIGN KEY (OUTSOURCEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLETRANSPORTEDTOLABBYSTAFF_ID FOREIGN KEY (SAMPLETRANSPORTEDTOLABBYSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLECOLLECTEDINSTITUTION_ID FOREIGN KEY (SAMPLECOLLECTEDINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_BARCODEGENERATEDINSTITUTION_ID FOREIGN KEY (BARCODEGENERATEDINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_REFERENCESAMPLE_ID FOREIGN KEY (REFERENCESAMPLE_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLERECEIVEDATLABINSTITUTION_ID FOREIGN KEY (SAMPLERECEIVEDATLABINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_CANCELLDEPARTMENT_ID FOREIGN KEY (CANCELLDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLERECEIVERATLAB_ID FOREIGN KEY (SAMPLERECEIVERATLAB_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLEREJECTEDBY_ID FOREIGN KEY (SAMPLEREJECTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_RECEIVEDFROMANALYZERBY_ID FOREIGN KEY (RECEIVEDFROMANALYZERBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_BARCODEGENERATOR_ID FOREIGN KEY (BARCODEGENERATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SEPARATEDFROM_ID FOREIGN KEY (SEPARATEDFROM_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_CANCELLINSTITUTION_ID FOREIGN KEY (CANCELLINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_OUTSOURCEDEPARTMENT_ID FOREIGN KEY (OUTSOURCEDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLECOLLECTER_ID FOREIGN KEY (SAMPLECOLLECTER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_TEST_ID FOREIGN KEY (TEST_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLECOLLECTEDDEPARTMENT_ID FOREIGN KEY (SAMPLECOLLECTEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_DIVERTEDFROM_ID FOREIGN KEY (DIVERTEDFROM_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_MACHINE_ID FOREIGN KEY (MACHINE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_RECEIVEDFROMANALYZERDEPARTMENT_ID FOREIGN KEY (RECEIVEDFROMANALYZERDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLE_ID FOREIGN KEY (SAMPLE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_INVESTIGATIONCOMPONANT_ID FOREIGN KEY (INVESTIGATIONCOMPONANT_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_BARCODEGENERATEDDEPARTMENT_ID FOREIGN KEY (BARCODEGENERATEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_DUPLICATEDFROM_ID FOREIGN KEY (DUPLICATEDFROM_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SENTTOANALYZERBY_ID FOREIGN KEY (SENTTOANALYZERBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_OUTSOURCESAMPLETRANSPORTER_ID FOREIGN KEY (OUTSOURCESAMPLETRANSPORTER_ID) REFERENCES STAFF (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLESENTBY_ID FOREIGN KEY (SAMPLESENTBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SAMPLESENTTOINSTITUTION_ID FOREIGN KEY (SAMPLESENTTOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_DIVERTEDTO_ID FOREIGN KEY (DIVERTEDTO_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_TUBE_ID FOREIGN KEY (TUBE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT FK_PATIENTSAMPLE_SENTTOANALYZERINSTITUTION_ID FOREIGN KEY (SENTTOANALYZERINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTSAMPLE ADD CONSTRAINT PATIENTSAMPLE_RECEIVEDFROMANALYZERINSTITUTION_ID FOREIGN KEY (RECEIVEDFROMANALYZERINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEMMAPPING ADD CONSTRAINT FK_ITEMMAPPING_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEMMAPPING ADD CONSTRAINT FK_ITEMMAPPING_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ITEMMAPPING ADD CONSTRAINT FK_ITEMMAPPING_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEMMAPPING ADD CONSTRAINT FK_ITEMMAPPING_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMMAPPING ADD CONSTRAINT FK_ITEMMAPPING_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AREA ADD CONSTRAINT FK_AREA_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AREA ADD CONSTRAINT FK_AREA_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AREA ADD CONSTRAINT FK_AREA_SUPERAREA_ID FOREIGN KEY (SUPERAREA_ID) REFERENCES AREA (ID)
ALTER TABLE PATIENTREPORTGROUP ADD CONSTRAINT FK_PATIENTREPORTGROUP_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE PATIENTREPORTGROUP ADD CONSTRAINT FK_PATIENTREPORTGROUP_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTREPORTGROUP ADD CONSTRAINT FK_PATIENTREPORTGROUP_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD CONSTRAINT FK_ALLOWEDPAYMENTMETHOD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD CONSTRAINT FK_ALLOWEDPAYMENTMETHOD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD CONSTRAINT FK_ALLOWEDPAYMENTMETHOD_MEMBERSHIPSCHEME_ID FOREIGN KEY (MEMBERSHIPSCHEME_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD CONSTRAINT FK_ALLOWEDPAYMENTMETHOD_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE INVESTIGATIONCOMPONENT ADD CONSTRAINT FK_INVESTIGATIONCOMPONENT_INVESTIGATION_ID FOREIGN KEY (INVESTIGATION_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_LASTPROCESSBY_ID FOREIGN KEY (LASTPROCESSBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_INPATIENTPACKAGE_ID FOREIGN KEY (INPATIENTPACKAGE_ID) REFERENCES INPATIENTPACKAGE (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_REFERREDBYINSTITUTION_ID FOREIGN KEY (REFERREDBYINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_APPOINTMENTCANCELBY_ID FOREIGN KEY (APPOINTMENTCANCELBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_NURSINGDISCHARGEDBY_ID FOREIGN KEY (NURSINGDISCHARGEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_REFERRINGDOCTOR_ID FOREIGN KEY (REFERRINGDOCTOR_ID) REFERENCES STAFF (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_PHYSICALDISCHARGEDBY_ID FOREIGN KEY (PHYSICALDISCHARGEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_ENCOUNTERRESERVATION_ID FOREIGN KEY (ENCOUNTERRESERVATION_ID) REFERENCES RESERVATION (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT PATIENTENCOUNTER_GUARDIANRELATIONSHIPTOPATIENT_ID FOREIGN KEY (GUARDIANRELATIONSHIPTOPATIENT_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_PARENTENCOUNTER_ID FOREIGN KEY (PARENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_PROFESSIONALPAYMENTSHOLDBY_ID FOREIGN KEY (PROFESSIONALPAYMENTSHOLDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_DISCHARGECONDITION_ID FOREIGN KEY (DISCHARGECONDITION_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_APPOINTMENTCANCELBILL_ID FOREIGN KEY (APPOINTMENTCANCELBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_BILLSESSION_ID FOREIGN KEY (BILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_CREDITCOMPANY_ID FOREIGN KEY (CREDITCOMPANY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_APPOINTMENTCOMPLETEBY_ID FOREIGN KEY (APPOINTMENTCOMPLETEBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_WORKPLACE_ID FOREIGN KEY (WORKPLACE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_REFERRINGSTAFF_ID FOREIGN KEY (REFERRINGSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_CLINICALDISCHARGEDBY_ID FOREIGN KEY (CLINICALDISCHARGEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_SCHEDULEINSTANCE_ID FOREIGN KEY (SCHEDULEINSTANCE_ID) REFERENCES APPOINTMENTSCHEDULEINSTANCE (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_GUARDIAN_ID FOREIGN KEY (GUARDIAN_ID) REFERENCES PERSON (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_REFERRINGCONSULTANT_ID FOREIGN KEY (REFERRINGCONSULTANT_ID) REFERENCES STAFF (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_ADMISSIONTYPE_ID FOREIGN KEY (ADMISSIONTYPE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_PRIMARYREASON_ID FOREIGN KEY (PRIMARYREASON_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_CURRENTPATIENTROOM_ID FOREIGN KEY (CURRENTPATIENTROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_OPDDOCTOR_ID FOREIGN KEY (OPDDOCTOR_ID) REFERENCES STAFF (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_FINALBILL_ID FOREIGN KEY (FINALBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_REFERRINGPERSON_ID FOREIGN KEY (REFERRINGPERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_ROOMDISCHARGEDBY_ID FOREIGN KEY (ROOMDISCHARGEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTENCOUNTER ADD CONSTRAINT FK_PATIENTENCOUNTER_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT FK_INVESTIGATIONITEMVALUE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT FK_INVESTIGATIONITEMVALUE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT NVESTIGATIONITEMVALUENVESTIGATIONITEMOFLABELTYPEID FOREIGN KEY (INVESTIGATIONITEMOFLABELTYPE_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT NVESTIGATIONITEMVALUENVESTIGATIONITEMOFVALUETYPEID FOREIGN KEY (INVESTIGATIONITEMOFVALUETYPE_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT FK_INVESTIGATIONITEMVALUE_INVESTIGATIONITEM_ID FOREIGN KEY (INVESTIGATIONITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT NVESTIGATIONITEMVALUEINVESTIGATIONITEMOFFLAGTYPEID FOREIGN KEY (INVESTIGATIONITEMOFFLAGTYPE_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT NVSTIGATIONITEMVALUENVSTIGATIONITEMVALUECATEGORYID FOREIGN KEY (INVESTIGATIONITEMVALUECATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE INVESTIGATIONITEMVALUE ADD CONSTRAINT FK_INVESTIGATIONITEMVALUE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTFORMENTRY ADD CONSTRAINT FK_PATIENTFORMENTRY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTFORMENTRY ADD CONSTRAINT FK_PATIENTFORMENTRY_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTFORMENTRY ADD CONSTRAINT FK_PATIENTFORMENTRY_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTFORMENTRY ADD CONSTRAINT FK_PATIENTFORMENTRY_DESIGNCOMPONENT_ID FOREIGN KEY (DESIGNCOMPONENT_ID) REFERENCES DESIGNCOMPONENT (ID)
ALTER TABLE PATIENTFORMENTRY ADD CONSTRAINT FK_PATIENTFORMENTRY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE REORDER ADD CONSTRAINT FK_REORDER_SUPPLIER_ID FOREIGN KEY (SUPPLIER_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE REORDER ADD CONSTRAINT FK_REORDER_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE REORDER ADD CONSTRAINT FK_REORDER_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE REORDER ADD CONSTRAINT FK_REORDER_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE REORDER ADD CONSTRAINT FK_REORDER_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_PARENTINSTITUTION_ID FOREIGN KEY (PARENTINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_BANKBRANCH_ID FOREIGN KEY (BANKBRANCH_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_LABDEPARTMENT_ID FOREIGN KEY (LABDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_CONTACTPERSON_ID FOREIGN KEY (CONTACTPERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_FEELISTTYPE_ID FOREIGN KEY (FEELISTTYPE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_LABINSTITUTION_ID FOREIGN KEY (LABINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE INSTITUTION ADD CONSTRAINT FK_INSTITUTION_ROUTE_ID FOREIGN KEY (ROUTE_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE WEBUSERPAYMENTSCHEME ADD CONSTRAINT FK_WEBUSERPAYMENTSCHEME_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPAYMENTSCHEME ADD CONSTRAINT FK_WEBUSERPAYMENTSCHEME_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPAYMENTSCHEME ADD CONSTRAINT FK_WEBUSERPAYMENTSCHEME_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPAYMENTSCHEME ADD CONSTRAINT FK_WEBUSERPAYMENTSCHEME_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_CREATEDBY_ID FOREIGN KEY (CREATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_ANALYZER_ID FOREIGN KEY (ANALYZER_ID) REFERENCES CATEGORY (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_FROMDEPARTMENT_ID FOREIGN KEY (FROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_RETIREDBY_ID FOREIGN KEY (RETIREDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_SAMPLECOMPONENT_ID FOREIGN KEY (SAMPLECOMPONENT_ID) REFERENCES PATIENTSAMPLECOMPONANT (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_EMAIL_ID FOREIGN KEY (EMAIL_ID) REFERENCES APPEMAIL (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_SMS_ID FOREIGN KEY (SMS_ID) REFERENCES SMS (ID)
ALTER TABLE LABTESTHISTORY ADD CONSTRAINT FK_LABTESTHISTORY_PATIENTSAMPLE_ID FOREIGN KEY (PATIENTSAMPLE_ID) REFERENCES PATIENTSAMPLE (ID)
ALTER TABLE DETAILEDFINANCIALBILL ADD CONSTRAINT FK_DETAILEDFINANCIALBILL_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DETAILEDFINANCIALBILL ADD CONSTRAINT FK_DETAILEDFINANCIALBILL_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE DETAILEDFINANCIALBILL ADD CONSTRAINT FK_DETAILEDFINANCIALBILL_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROUTE ADD CONSTRAINT FK_WEBUSERROUTE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROUTE ADD CONSTRAINT FK_WEBUSERROUTE_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROUTE ADD CONSTRAINT FK_WEBUSERROUTE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROUTE ADD CONSTRAINT FK_WEBUSERROUTE_ROUTE_ID FOREIGN KEY (ROUTE_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE AICONVERSATION ADD CONSTRAINT FK_AICONVERSATION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AICONVERSATION ADD CONSTRAINT FK_AICONVERSATION_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AICONVERSATION ADD CONSTRAINT FK_AICONVERSATION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AICONVERSATION ADD CONSTRAINT FK_AICONVERSATION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FAMILYMEMBER ADD CONSTRAINT FK_FAMILYMEMBER_FAMILY_ID FOREIGN KEY (FAMILY_ID) REFERENCES FAMILY (ID)
ALTER TABLE FAMILYMEMBER ADD CONSTRAINT FK_FAMILYMEMBER_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE FAMILYMEMBER ADD CONSTRAINT FK_FAMILYMEMBER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FAMILYMEMBER ADD CONSTRAINT FK_FAMILYMEMBER_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FAMILYMEMBER ADD CONSTRAINT FK_FAMILYMEMBER_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FAMILYMEMBER ADD CONSTRAINT FK_FAMILYMEMBER_RELATIONTOCHH_ID FOREIGN KEY (RELATIONTOCHH_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PERSONINSTITUTION ADD CONSTRAINT FK_PERSONINSTITUTION_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PERSONINSTITUTION ADD CONSTRAINT FK_PERSONINSTITUTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PERSONINSTITUTION ADD CONSTRAINT FK_PERSONINSTITUTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PERSONINSTITUTION ADD CONSTRAINT FK_PERSONINSTITUTION_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE PERSONINSTITUTION ADD CONSTRAINT FK_PERSONINSTITUTION_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE PERSONINSTITUTION ADD CONSTRAINT FK_PERSONINSTITUTION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD CONSTRAINT FK_SCHEDULEDPROCESSCONFIGURATION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD CONSTRAINT FK_SCHEDULEDPROCESSCONFIGURATION_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD CONSTRAINT FK_SCHEDULEDPROCESSCONFIGURATION_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD CONSTRAINT FK_SCHEDULEDPROCESSCONFIGURATION_CREATEDBY_ID FOREIGN KEY (CREATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD CONSTRAINT FK_SCHEDULEDPROCESSCONFIGURATION_RETIREDBY_ID FOREIGN KEY (RETIREDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ADMISSIONNUMBER ADD CONSTRAINT FK_ADMISSIONNUMBER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ADMISSIONNUMBER ADD CONSTRAINT FK_ADMISSIONNUMBER_ADMISSIONTYPE_ID FOREIGN KEY (ADMISSIONTYPE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ADMISSIONNUMBER ADD CONSTRAINT FK_ADMISSIONNUMBER_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PROCESSSTEPDEFINITION ADD CONSTRAINT FK_PROCESSSTEPDEFINITION_PROCESSDEFINITION_ID FOREIGN KEY (PROCESSDEFINITION_ID) REFERENCES PROCESSDEFINITION (ID)
ALTER TABLE PROCESSSTEPDEFINITION ADD CONSTRAINT FK_PROCESSSTEPDEFINITION_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES PROCESSDEFINITION (ID)
ALTER TABLE PROCESSSTEPDEFINITION ADD CONSTRAINT FK_PROCESSSTEPDEFINITION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSSTEPDEFINITION ADD CONSTRAINT FK_PROCESSSTEPDEFINITION_CREATOR_ID FOREIGN KEY (CREATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DESIGNCOMPONENTCHOICE ADD CONSTRAINT FK_DESIGNCOMPONENTCHOICE_DESIGNCOMPONENT_ID FOREIGN KEY (DESIGNCOMPONENT_ID) REFERENCES DESIGNCOMPONENT (ID)
ALTER TABLE DOCUMENTTEMPLATE ADD CONSTRAINT FK_DOCUMENTTEMPLATE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE DOCUMENTTEMPLATE ADD CONSTRAINT FK_DOCUMENTTEMPLATE_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DOCUMENTTEMPLATE ADD CONSTRAINT FK_DOCUMENTTEMPLATE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE DOCUMENTTEMPLATE ADD CONSTRAINT FK_DOCUMENTTEMPLATE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE DOCUMENTTEMPLATE ADD CONSTRAINT FK_DOCUMENTTEMPLATE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ADJUSTMENTBILLITEM ADD CONSTRAINT FK_ADJUSTMENTBILLITEM_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ADJUSTMENTBILLITEM ADD CONSTRAINT FK_ADJUSTMENTBILLITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ADJUSTMENTBILLITEM ADD CONSTRAINT FK_ADJUSTMENTBILLITEM_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE ADJUSTMENTBILLITEM ADD CONSTRAINT FK_ADJUSTMENTBILLITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD CONSTRAINT FK_APPOINTMENTSCHEDULEINSTANCE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD CONSTRAINT FK_APPOINTMENTSCHEDULEINSTANCE_CANCELLEDBY_ID FOREIGN KEY (CANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD CONSTRAINT FK_APPOINTMENTSCHEDULEINSTANCE_TEMPLATE_ID FOREIGN KEY (TEMPLATE_ID) REFERENCES APPOINTMENTSCHEDULETEMPLATE (ID)
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD CONSTRAINT FK_APPOINTMENTSCHEDULEINSTANCE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSHIFTHISTORY ADD CONSTRAINT FK_STAFFSHIFTHISTORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSHIFTHISTORY ADD CONSTRAINT FK_STAFFSHIFTHISTORY_STAFFSHIFT_ID FOREIGN KEY (STAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE STAFFSHIFTHISTORY ADD CONSTRAINT FK_STAFFSHIFTHISTORY_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STAFFSHIFTHISTORY ADD CONSTRAINT FK_STAFFSHIFTHISTORY_ROSTER_ID FOREIGN KEY (ROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE STAFFSHIFTHISTORY ADD CONSTRAINT FK_STAFFSHIFTHISTORY_SHIFT_ID FOREIGN KEY (SHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE STAFFSHIFTHISTORY ADD CONSTRAINT FK_STAFFSHIFTHISTORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHBOOK ADD CONSTRAINT FK_CASHBOOK_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHBOOK ADD CONSTRAINT FK_CASHBOOK_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOK ADD CONSTRAINT FK_CASHBOOK_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHBOOK ADD CONSTRAINT FK_CASHBOOK_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CASHBOOK ADD CONSTRAINT FK_CASHBOOK_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE CASHBOOK ADD CONSTRAINT FK_CASHBOOK_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE MEDICALPACKAGEITEM ADD CONSTRAINT FK_MEDICALPACKAGEITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE MEDICALPACKAGEITEM ADD CONSTRAINT FK_MEDICALPACKAGEITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE MEDICALPACKAGEITEM ADD CONSTRAINT FK_MEDICALPACKAGEITEM_PACKEGE_ID FOREIGN KEY (PACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE MEDICALPACKAGEITEM ADD CONSTRAINT FK_MEDICALPACKAGEITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_BILLSESSION_ID FOREIGN KEY (BILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_PATIENTDEPOSIT_ID FOREIGN KEY (PATIENTDEPOSIT_ID) REFERENCES PATIENTDEPOSIT (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTDEPOSITHISTORY ADD CONSTRAINT FK_PATIENTDEPOSITHISTORY_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE ITEMBATCHARCHIVE ADD CONSTRAINT FK_ITEMBATCHARCHIVE_MAKE_ID FOREIGN KEY (MAKE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEMBATCHARCHIVE ADD CONSTRAINT FK_ITEMBATCHARCHIVE_LASTPURCHASEBILLITEM_ID FOREIGN KEY (LASTPURCHASEBILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE ITEMBATCHARCHIVE ADD CONSTRAINT FK_ITEMBATCHARCHIVE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMBATCHARCHIVE ADD CONSTRAINT FK_ITEMBATCHARCHIVE_MANUFACTURER_ID FOREIGN KEY (MANUFACTURER_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEMBATCHARCHIVE ADD CONSTRAINT FK_ITEMBATCHARCHIVE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE STOCKARCHIVE ADD CONSTRAINT FK_STOCKARCHIVE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STOCKARCHIVE ADD CONSTRAINT FK_STOCKARCHIVE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STOCKARCHIVE ADD CONSTRAINT FK_STOCKARCHIVE_ITEMBATCH_ID FOREIGN KEY (ITEMBATCH_ID) REFERENCES ITEMBATCHARCHIVE (ID)
ALTER TABLE STOCKARCHIVE ADD CONSTRAINT FK_STOCKARCHIVE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLNUMBER ADD CONSTRAINT FK_BILLNUMBER_ADMISSIONTYPE_ID FOREIGN KEY (ADMISSIONTYPE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE BILLNUMBER ADD CONSTRAINT FK_BILLNUMBER_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILLNUMBER ADD CONSTRAINT FK_BILLNUMBER_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLNUMBER ADD CONSTRAINT FK_BILLNUMBER_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLNUMBER ADD CONSTRAINT FK_BILLNUMBER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD CONSTRAINT FK_WEBUSERDEFAULTLOGINPAGE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD CONSTRAINT FK_WEBUSERDEFAULTLOGINPAGE_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD CONSTRAINT FK_WEBUSERDEFAULTLOGINPAGE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD CONSTRAINT FK_WEBUSERDEFAULTLOGINPAGE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE CONFIGOPTION ADD CONSTRAINT FK_CONFIGOPTION_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE CONFIGOPTION ADD CONSTRAINT FK_CONFIGOPTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CONFIGOPTION ADD CONSTRAINT FK_CONFIGOPTION_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CONFIGOPTION ADD CONSTRAINT FK_CONFIGOPTION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE CONFIGOPTION ADD CONSTRAINT FK_CONFIGOPTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTREFERENCEBOOK ADD CONSTRAINT FK_AGENTREFERENCEBOOK_EDITOR_ID FOREIGN KEY (EDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTREFERENCEBOOK ADD CONSTRAINT FK_AGENTREFERENCEBOOK_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE AGENTREFERENCEBOOK ADD CONSTRAINT FK_AGENTREFERENCEBOOK_CHECKEDBY_ID FOREIGN KEY (CHECKEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTREFERENCEBOOK ADD CONSTRAINT FK_AGENTREFERENCEBOOK_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTREFERENCEBOOK ADD CONSTRAINT FK_AGENTREFERENCEBOOK_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DENOMINATION ADD CONSTRAINT FK_DENOMINATION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DENOMINATION ADD CONSTRAINT FK_DENOMINATION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSTAFFCATEGORY ADD CONSTRAINT FK_STAFFSTAFFCATEGORY_STAFFCATEGORY_ID FOREIGN KEY (STAFFCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE STAFFSTAFFCATEGORY ADD CONSTRAINT FK_STAFFSTAFFCATEGORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFSTAFFCATEGORY ADD CONSTRAINT FK_STAFFSTAFFCATEGORY_STAFFEMPLOYMENT_ID FOREIGN KEY (STAFFEMPLOYMENT_ID) REFERENCES STAFFEMPLOYMENT (ID)
ALTER TABLE STAFFSTAFFCATEGORY ADD CONSTRAINT FK_STAFFSTAFFCATEGORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_STAFFSHIFT_ID FOREIGN KEY (STAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_SERVICESESSION_ID FOREIGN KEY (SERVICESESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_ROSTER_ID FOREIGN KEY (ROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_APPROVER_ID FOREIGN KEY (APPROVER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_SESSIONINSTANCE_ID FOREIGN KEY (SESSIONINSTANCE_ID) REFERENCES SESSIONINSTANCE (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_LOGGEDRECORD_ID FOREIGN KEY (LOGGEDRECORD_ID) REFERENCES FINGERPRINTRECORD (ID)
ALTER TABLE FINGERPRINTRECORD ADD CONSTRAINT FK_FINGERPRINTRECORD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE NOTIFICATION ADD CONSTRAINT FK_NOTIFICATION_PATIENTROOM_ID FOREIGN KEY (PATIENTROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE NOTIFICATION ADD CONSTRAINT FK_NOTIFICATION_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE NOTIFICATION ADD CONSTRAINT FK_NOTIFICATION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE NOTIFICATION ADD CONSTRAINT FK_NOTIFICATION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE NOTIFICATION ADD CONSTRAINT FK_NOTIFICATION_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE DENOMINATIONTRANSACTION ADD CONSTRAINT FK_DENOMINATIONTRANSACTION_PAYMENT_ID FOREIGN KEY (PAYMENT_ID) REFERENCES PAYMENT (ID)
ALTER TABLE DENOMINATIONTRANSACTION ADD CONSTRAINT DENOMINATIONTRANSACTION_DETAILEDFINANCIALBILL_ID FOREIGN KEY (DETAILEDFINANCIALBILL_ID) REFERENCES DETAILEDFINANCIALBILL (ID)
ALTER TABLE DENOMINATIONTRANSACTION ADD CONSTRAINT FK_DENOMINATIONTRANSACTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DENOMINATIONTRANSACTION ADD CONSTRAINT FK_DENOMINATIONTRANSACTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DENOMINATIONTRANSACTION ADD CONSTRAINT FK_DENOMINATIONTRANSACTION_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE DENOMINATIONTRANSACTION ADD CONSTRAINT FK_DENOMINATIONTRANSACTION_DENOMINATION_ID FOREIGN KEY (DENOMINATION_ID) REFERENCES DENOMINATION (ID)
ALTER TABLE DENOMINATIONTRANSACTION ADD CONSTRAINT FK_DENOMINATIONTRANSACTION_CANCELLEDBY_ID FOREIGN KEY (CANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_ROOM_ID FOREIGN KEY (ROOM_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_TIMEDITEMFEE_ID FOREIGN KEY (TIMEDITEMFEE_ID) REFERENCES FEE (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_COMPANY_ID FOREIGN KEY (COMPANY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_PAYMENTSCHEME_ID FOREIGN KEY (PAYMENTSCHEME_ID) REFERENCES PAYMENTSCHEME (ID)
ALTER TABLE ROOMFACILITYCHARGE ADD CONSTRAINT FK_ROOMFACILITYCHARGE_ROOMCATEGORY_ID FOREIGN KEY (ROOMCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ISSUERATEMARGINS ADD CONSTRAINT FK_ISSUERATEMARGINS_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ISSUERATEMARGINS ADD CONSTRAINT FK_ISSUERATEMARGINS_FROMINSTITUTION_ID FOREIGN KEY (FROMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ISSUERATEMARGINS ADD CONSTRAINT FK_ISSUERATEMARGINS_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ISSUERATEMARGINS ADD CONSTRAINT FK_ISSUERATEMARGINS_FROMDEPARTMENT_ID FOREIGN KEY (FROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ISSUERATEMARGINS ADD CONSTRAINT FK_ISSUERATEMARGINS_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ISSUERATEMARGINS ADD CONSTRAINT FK_ISSUERATEMARGINS_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ITEMSCATEGORIES ADD CONSTRAINT FK_ITEMSCATEGORIES_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEMSCATEGORIES ADD CONSTRAINT FK_ITEMSCATEGORIES_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMSCATEGORIES ADD CONSTRAINT FK_ITEMSCATEGORIES_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMSCATEGORIES ADD CONSTRAINT FK_ITEMSCATEGORIES_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_PAIDTOHOSPITALPROCESSEDBY_ID FOREIGN KEY (PAIDTOHOSPITALPROCESSEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_HOSPITAL_ID FOREIGN KEY (HOSPITAL_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_AGENCY_ID FOREIGN KEY (AGENCY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_PAIDTOHOSPITALBILL_ID FOREIGN KEY (PAIDTOHOSPITALBILL_ID) REFERENCES BILL (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_PAIDTOHOSPITALCANCELLEDBILL_ID FOREIGN KEY (PAIDTOHOSPITALCANCELLEDBILL_ID) REFERENCES BILL (ID)
ALTER TABLE ONLINEBOOKING ADD CONSTRAINT FK_ONLINEBOOKING_PAIDTOHOSPITALBILLCANCELLEDBY_ID FOREIGN KEY (PAIDTOHOSPITALBILLCANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_REFERRINGPERSON_ID FOREIGN KEY (REFERRINGPERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_REPORTITEM_ID FOREIGN KEY (REPORTITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE FORMITEMVALUE ADD CONSTRAINT FK_FORMITEMVALUE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE SALARYHOLD ADD CONSTRAINT FK_SALARYHOLD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SALARYHOLD ADD CONSTRAINT FK_SALARYHOLD_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE SALARYHOLD ADD CONSTRAINT FK_SALARYHOLD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFLEAVE ADD CONSTRAINT FK_STAFFLEAVE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STAFFLEAVE ADD CONSTRAINT FK_STAFFLEAVE_FORM_ID FOREIGN KEY (FORM_ID) REFERENCES FORM (ID)
ALTER TABLE STAFFLEAVE ADD CONSTRAINT FK_STAFFLEAVE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFLEAVE ADD CONSTRAINT FK_STAFFLEAVE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFLEAVE ADD CONSTRAINT FK_STAFFLEAVE_ROSTER_ID FOREIGN KEY (ROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE STAFFLEAVE ADD CONSTRAINT FK_STAFFLEAVE_STAFFSHIFT_ID FOREIGN KEY (STAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT FK_PROCESSSTEPINSTANCE_CREATOR_ID FOREIGN KEY (CREATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT FK_PROCESSSTEPINSTANCE_PROCESSSTEPDEFINITION_ID FOREIGN KEY (PROCESSSTEPDEFINITION_ID) REFERENCES PROCESSSTEPDEFINITION (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT FK_PROCESSSTEPINSTANCE_PROCESSINSTANCE_ID FOREIGN KEY (PROCESSINSTANCE_ID) REFERENCES PROCESSINSTANCE (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT FK_PROCESSSTEPINSTANCE_NEXTSTEPINSTANCE_ID FOREIGN KEY (NEXTSTEPINSTANCE_ID) REFERENCES PROCESSSTEPINSTANCE (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT FK_PROCESSSTEPINSTANCE_COMPLETEDBY_ID FOREIGN KEY (COMPLETEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT PROCESSSTEPINSTANCE_PROCESSSTEPACTIONDEFINITION_ID FOREIGN KEY (PROCESSSTEPACTIONDEFINITION_ID) REFERENCES PROCESSSTEPACTIONDEFINITION (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT FK_PROCESSSTEPINSTANCE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSSTEPINSTANCE ADD CONSTRAINT FK_PROCESSSTEPINSTANCE_PRECEDINGSTEPINSTANCE_ID FOREIGN KEY (PRECEDINGSTEPINSTANCE_ID) REFERENCES PROCESSSTEPINSTANCE (ID)
ALTER TABLE WEBTHEME ADD CONSTRAINT FK_WEBTHEME_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBTHEME ADD CONSTRAINT FK_WEBTHEME_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINSURANCE ADD CONSTRAINT FK_PATIENTINSURANCE_CREDITCOMPANY_ID FOREIGN KEY (CREDITCOMPANY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINSURANCE ADD CONSTRAINT FK_PATIENTINSURANCE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINSURANCE ADD CONSTRAINT FK_PATIENTINSURANCE_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINSURANCE ADD CONSTRAINT FK_PATIENTINSURANCE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINSURANCE ADD CONSTRAINT FK_PATIENTINSURANCE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE WEBUSERROLEUSER ADD CONSTRAINT FK_WEBUSERROLEUSER_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROLEUSER ADD CONSTRAINT FK_WEBUSERROLEUSER_WEBUSERROLE_ID FOREIGN KEY (WEBUSERROLE_ID) REFERENCES WEBUSERROLE (ID)
ALTER TABLE WEBUSERROLEUSER ADD CONSTRAINT FK_WEBUSERROLEUSER_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROLEUSER ADD CONSTRAINT FK_WEBUSERROLEUSER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROLEUSER ADD CONSTRAINT FK_WEBUSERROLEUSER_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTFLAG ADD CONSTRAINT FK_PATIENTFLAG_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTFLAG ADD CONSTRAINT FK_PATIENTFLAG_INVESTIGATIONFLAG_ID FOREIGN KEY (INVESTIGATIONFLAG_ID) REFERENCES INVESTIGATIONITEMVALUE (ID)
ALTER TABLE PATIENTFLAG ADD CONSTRAINT FK_PATIENTFLAG_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTFLAG ADD CONSTRAINT FK_PATIENTFLAG_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTFLAG ADD CONSTRAINT FK_PATIENTFLAG_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERFAVORITEREPORT ADD CONSTRAINT FK_USERFAVORITEREPORT_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSDEFINITION ADD CONSTRAINT FK_PROCESSDEFINITION_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES PROCESSDEFINITION (ID)
ALTER TABLE PROCESSDEFINITION ADD CONSTRAINT FK_PROCESSDEFINITION_CREATOR_ID FOREIGN KEY (CREATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PROCESSDEFINITION ADD CONSTRAINT FK_PROCESSDEFINITION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_SITE_ID FOREIGN KEY (SITE_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_WEBUSERPERSON_ID FOREIGN KEY (WEBUSERPERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_ACTIVATOR_ID FOREIGN KEY (ACTIVATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_ROLE_ID FOREIGN KEY (ROLE_ID) REFERENCES WEBUSERROLE (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_USERWEBTHEME_ID FOREIGN KEY (USERWEBTHEME_ID) REFERENCES WEBTHEME (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE WEBUSER ADD CONSTRAINT FK_WEBUSER_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_MEASUREMENTUNIT1_ID FOREIGN KEY (MEASUREMENTUNIT1_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_MEASUREMENTUNIT2_ID FOREIGN KEY (MEASUREMENTUNIT2_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_FORWEBUSER_ID FOREIGN KEY (FORWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_FORINSTITUTION_ID FOREIGN KEY (FORINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES ITEMUSAGE (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_FORITEM_ID FOREIGN KEY (FORITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_FORDEPARTMENT_ID FOREIGN KEY (FORDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE ITEMUSAGE ADD CONSTRAINT FK_ITEMUSAGE_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE STAFFGRADE ADD CONSTRAINT FK_STAFFGRADE_GRADE_ID FOREIGN KEY (GRADE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE STAFFGRADE ADD CONSTRAINT FK_STAFFGRADE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFGRADE ADD CONSTRAINT FK_STAFFGRADE_STAFFEMPLOYMENT_ID FOREIGN KEY (STAFFEMPLOYMENT_ID) REFERENCES STAFFEMPLOYMENT (ID)
ALTER TABLE STAFFGRADE ADD CONSTRAINT FK_STAFFGRADE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_PRINTROOMFACILITYCHARGE_ID FOREIGN KEY (PRINTROOMFACILITYCHARGE_ID) REFERENCES ROOMFACILITYCHARGE (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_ADDMITTEDBY_ID FOREIGN KEY (ADDMITTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_DISCHARGEDBY_ID FOREIGN KEY (DISCHARGEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_PREVIOUSROOM_ID FOREIGN KEY (PREVIOUSROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_REFERENCEPATIENTROOM_ID FOREIGN KEY (REFERENCEPATIENTROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTROOM ADD CONSTRAINT FK_PATIENTROOM_ROOMFACILITYCHARGE_ID FOREIGN KEY (ROOMFACILITYCHARGE_ID) REFERENCES ROOMFACILITYCHARGE (ID)
ALTER TABLE DEPARTMENTMACHINE ADD CONSTRAINT FK_DEPARTMENTMACHINE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE DEPARTMENTMACHINE ADD CONSTRAINT FK_DEPARTMENTMACHINE_MACHINE_ID FOREIGN KEY (MACHINE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE DEPARTMENTMACHINE ADD CONSTRAINT FK_DEPARTMENTMACHINE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DEPARTMENTMACHINE ADD CONSTRAINT FK_DEPARTMENTMACHINE_SUPPLIER_ID FOREIGN KEY (SUPPLIER_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE DEPARTMENTMACHINE ADD CONSTRAINT FK_DEPARTMENTMACHINE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHTRANSACTION ADD CONSTRAINT FK_CASHTRANSACTION_DRAWER_ID FOREIGN KEY (DRAWER_ID) REFERENCES DRAWER (ID)
ALTER TABLE CASHTRANSACTION ADD CONSTRAINT FK_CASHTRANSACTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHTRANSACTION ADD CONSTRAINT FK_CASHTRANSACTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_TOINSTITUTION_ID FOREIGN KEY (TOINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_RETIREDBY_ID FOREIGN KEY (RETIREDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_REFERATOKEN_ID FOREIGN KEY (REFERATOKEN_ID) REFERENCES TOKEN (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_DOCTOR_ID FOREIGN KEY (DOCTOR_ID) REFERENCES STAFF (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_FROMINSTITUTION_ID FOREIGN KEY (FROMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_FROMDEPARTMENT_ID FOREIGN KEY (FROMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_CATERORY_ID FOREIGN KEY (CATERORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_TOSTAFF_ID FOREIGN KEY (TOSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_SERVICECOUNTER_ID FOREIGN KEY (SERVICECOUNTER_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_COUNTER_ID FOREIGN KEY (COUNTER_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_FROMSTAFF_ID FOREIGN KEY (FROMSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_CREATEDBY_ID FOREIGN KEY (CREATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TOKEN ADD CONSTRAINT FK_TOKEN_TODEPARTMENT_ID FOREIGN KEY (TODEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_ABSENTMARKEDUSER_ID FOREIGN KEY (ABSENTMARKEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_SESSIONINSTANCE_ID FOREIGN KEY (SESSIONINSTANCE_ID) REFERENCES SESSIONINSTANCE (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_REFERENCEBILLSESSION_ID FOREIGN KEY (REFERENCEBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_MARKEDTOREFUNDBY_ID FOREIGN KEY (MARKEDTOREFUNDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_RESCHEDULEDTOBILLSESSION_ID FOREIGN KEY (RESCHEDULEDTOBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_SERVICESESSION_ID FOREIGN KEY (SERVICESESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_ABSENTUNMARKEDUSER_ID FOREIGN KEY (ABSENTUNMARKEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_PACKEGE_ID FOREIGN KEY (PACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_MARKEDTOCANCELBY_ID FOREIGN KEY (MARKEDTOCANCELBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_SERVICESESSIONINSTANCE_ID FOREIGN KEY (SERVICESESSIONINSTANCE_ID) REFERENCES SERVICESESSIONINSTANCE (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_RESCHEDULEDFROMBILLSESSION_ID FOREIGN KEY (RESCHEDULEDFROMBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_COMPLETEDBY_ID FOREIGN KEY (COMPLETEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_PAIDBILLSESSION_ID FOREIGN KEY (PAIDBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE BILLSESSION ADD CONSTRAINT FK_BILLSESSION_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE ITEMSDISTRIBUTORS ADD CONSTRAINT FK_ITEMSDISTRIBUTORS_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEMSDISTRIBUTORS ADD CONSTRAINT FK_ITEMSDISTRIBUTORS_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEMSDISTRIBUTORS ADD CONSTRAINT FK_ITEMSDISTRIBUTORS_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMSDISTRIBUTORS ADD CONSTRAINT FK_ITEMSDISTRIBUTORS_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE MAPPING ADD CONSTRAINT FK_MAPPING_ITEM1_ID FOREIGN KEY (ITEM1_ID) REFERENCES ITEM (ID)
ALTER TABLE MAPPING ADD CONSTRAINT FK_MAPPING_ITEM2_ID FOREIGN KEY (ITEM2_ID) REFERENCES ITEM (ID)
ALTER TABLE WEBUSERROLE ADD CONSTRAINT FK_WEBUSERROLE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROLE ADD CONSTRAINT FK_WEBUSERROLE_ACTIVATOR_ID FOREIGN KEY (ACTIVATOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERROLE ADD CONSTRAINT FK_WEBUSERROLE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD CONSTRAINT FK_FINGERPRINTRECORDHISTORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD CONSTRAINT FK_FINGERPRINTRECORDHISTORY_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD CONSTRAINT FK_FINGERPRINTRECORDHISTORY_STAFFSHIFT_ID FOREIGN KEY (STAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD CONSTRAINT FK_FINGERPRINTRECORDHISTORY_FINGERPRINTRECORD_ID FOREIGN KEY (FINGERPRINTRECORD_ID) REFERENCES FINGERPRINTRECORD (ID)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD CONSTRAINT FK_FINGERPRINTRECORDHISTORY_ROSTER_ID FOREIGN KEY (ROSTER_ID) REFERENCES ROSTER (ID)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD CONSTRAINT FK_FINGERPRINTRECORDHISTORY_SHIFT_ID FOREIGN KEY (SHIFT_ID) REFERENCES SHIFT (ID)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD CONSTRAINT FK_FINGERPRINTRECORDHISTORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_OCCUPATION_ID FOREIGN KEY (OCCUPATION_ID) REFERENCES ITEM (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_RELIGION_ID FOREIGN KEY (RELIGION_ID) REFERENCES ITEM (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_AREA_ID FOREIGN KEY (AREA_ID) REFERENCES AREA (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_BLOODGROUP_ID FOREIGN KEY (BLOODGROUP_ID) REFERENCES ITEM (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_MEMBERSHIPSCHEME_ID FOREIGN KEY (MEMBERSHIPSCHEME_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_CIVILSTATUS_ID FOREIGN KEY (CIVILSTATUS_ID) REFERENCES ITEM (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PERSON ADD CONSTRAINT FK_PERSON_RACE_ID FOREIGN KEY (RACE_ID) REFERENCES ITEM (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_CLINICALFINDINGITEM_ID FOREIGN KEY (CLINICALFINDINGITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_ITEMVALUE_ID FOREIGN KEY (ITEMVALUE_ID) REFERENCES ITEM (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_ENCOUNTER_ID FOREIGN KEY (ENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_DOCUMENTTEMPLATE_ID FOREIGN KEY (DOCUMENTTEMPLATE_ID) REFERENCES DOCUMENTTEMPLATE (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_PRESCRIPTION_ID FOREIGN KEY (PRESCRIPTION_ID) REFERENCES PRESCRIPTION (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_CATEGORYVALUE_ID FOREIGN KEY (CATEGORYVALUE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE CLINICALFINDINGVALUE ADD CONSTRAINT FK_CLINICALFINDINGVALUE_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE HRMVARIABLES ADD CONSTRAINT FK_HRMVARIABLES_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE HRMVARIABLES ADD CONSTRAINT FK_HRMVARIABLES_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT FK_MEDICATIONADMINISTRATIONRECORD_ITEMBATCH_ID FOREIGN KEY (ITEMBATCH_ID) REFERENCES ITEMBATCH (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT FK_MEDICATIONADMINISTRATIONRECORD_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT MEDICATIONADMINISTRATIONRECORD_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT FK_MEDICATIONADMINISTRATIONRECORD_PRESCRIPTION_ID FOREIGN KEY (PRESCRIPTION_ID) REFERENCES PRESCRIPTION (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT MEDICATIONADMINISTRATIONRECORD_ADMINISTEREDBY_ID FOREIGN KEY (ADMINISTEREDBY_ID) REFERENCES STAFF (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT FK_MEDICATIONADMINISTRATIONRECORD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT MEDICATIONADMINISTRATIONRECORDSTOCKDEDUCTIONBILLID FOREIGN KEY (STOCKDEDUCTIONBILL_ID) REFERENCES BILL (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT FK_MEDICATIONADMINISTRATIONRECORD_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD CONSTRAINT FK_MEDICATIONADMINISTRATIONRECORD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SMS ADD CONSTRAINT FK_SMS_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE SMS ADD CONSTRAINT FK_SMS_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SMS ADD CONSTRAINT FK_SMS_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE SMS ADD CONSTRAINT FK_SMS_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SMS ADD CONSTRAINT FK_SMS_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SMS ADD CONSTRAINT FK_SMS_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE SMS ADD CONSTRAINT FK_SMS_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE APIKEY ADD CONSTRAINT FK_APIKEY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APIKEY ADD CONSTRAINT FK_APIKEY_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APIKEY ADD CONSTRAINT FK_APIKEY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APIKEY ADD CONSTRAINT FK_APIKEY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD CONSTRAINT FK_ENCOUNTERCREDITCOMPANY_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD CONSTRAINT FK_ENCOUNTERCREDITCOMPANY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD CONSTRAINT FK_ENCOUNTERCREDITCOMPANY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD CONSTRAINT FK_ENCOUNTERCREDITCOMPANY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE INPATIENTPACKAGE ADD CONSTRAINT FK_INPATIENTPACKAGE_ADMISSIONTYPE_ID FOREIGN KEY (ADMISSIONTYPE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE INPATIENTPACKAGE ADD CONSTRAINT FK_INPATIENTPACKAGE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INPATIENTPACKAGE ADD CONSTRAINT FK_INPATIENTPACKAGE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INPATIENTPACKAGE ADD CONSTRAINT FK_INPATIENTPACKAGE_ROOMCATEGORY_ID FOREIGN KEY (ROOMCATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD CONSTRAINT FK_DESIGNCOMPONENTASSIGNMENT_DESIGNCOMPONENT_ID FOREIGN KEY (DESIGNCOMPONENT_ID) REFERENCES DESIGNCOMPONENT (ID)
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD CONSTRAINT DESIGNCOMPONENTASSIGNMENT_PROCESSSTEPDEFINITION_ID FOREIGN KEY (PROCESSSTEPDEFINITION_ID) REFERENCES PROCESSSTEPDEFINITION (ID)
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD CONSTRAINT FK_DESIGNCOMPONENTASSIGNMENT_PROCESSDEFINITION_ID FOREIGN KEY (PROCESSDEFINITION_ID) REFERENCES PROCESSDEFINITION (ID)
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD CONSTRAINT DSGNCOMPONENTASSIGNMENTPRCSSSTEPACTIONDEFINITIONID FOREIGN KEY (PROCESSSTEPACTIONDEFINITION_ID) REFERENCES PROCESSSTEPACTIONDEFINITION (ID)
ALTER TABLE STAFFBASICS ADD CONSTRAINT FK_STAFFBASICS_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFBASICS ADD CONSTRAINT FK_STAFFBASICS_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFBASICS ADD CONSTRAINT FK_STAFFBASICS_BASIC_ID FOREIGN KEY (BASIC_ID) REFERENCES STAFFPAYSHEETCOMPONENT (ID)
ALTER TABLE STAFFBASICS ADD CONSTRAINT FK_STAFFBASICS_STAFFEMPLOYMENT_ID FOREIGN KEY (STAFFEMPLOYMENT_ID) REFERENCES STAFFEMPLOYMENT (ID)
ALTER TABLE CATEGORYITEM ADD CONSTRAINT FK_CATEGORYITEM_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE CATEGORYITEM ADD CONSTRAINT FK_CATEGORYITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CATEGORYITEM ADD CONSTRAINT FK_CATEGORYITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE CATEGORYITEM ADD CONSTRAINT FK_CATEGORYITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DESIGNCOMPONENT ADD CONSTRAINT FK_DESIGNCOMPONENT_DATAENTRYFORM_ID FOREIGN KEY (DATAENTRYFORM_ID) REFERENCES DESIGNCOMPONENT (ID)
ALTER TABLE DESIGNCOMPONENT ADD CONSTRAINT FK_DESIGNCOMPONENT_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES DESIGNCOMPONENT (ID)
ALTER TABLE PATIENT ADD CONSTRAINT FK_PATIENT_CREATEDINSTITUTION_ID FOREIGN KEY (CREATEDINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENT ADD CONSTRAINT FK_PATIENT_BLACKLISTEDBY_ID FOREIGN KEY (BLACKLISTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENT ADD CONSTRAINT FK_PATIENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENT ADD CONSTRAINT FK_PATIENT_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENT ADD CONSTRAINT FK_PATIENT_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE PATIENT ADD CONSTRAINT FK_PATIENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTSCHEME ADD CONSTRAINT FK_PAYMENTSCHEME_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYMENTSCHEME ADD CONSTRAINT FK_PAYMENTSCHEME_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTSCHEME ADD CONSTRAINT FK_PAYMENTSCHEME_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE PAYMENTSCHEME ADD CONSTRAINT FK_PAYMENTSCHEME_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PAYMENTSCHEME ADD CONSTRAINT FK_PAYMENTSCHEME_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFWORKINGDEPARTMENT ADD CONSTRAINT FK_STAFFWORKINGDEPARTMENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFWORKINGDEPARTMENT ADD CONSTRAINT FK_STAFFWORKINGDEPARTMENT_STAFFEMPLOYMENT_ID FOREIGN KEY (STAFFEMPLOYMENT_ID) REFERENCES STAFFEMPLOYMENT (ID)
ALTER TABLE STAFFWORKINGDEPARTMENT ADD CONSTRAINT FK_STAFFWORKINGDEPARTMENT_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STAFFWORKINGDEPARTMENT ADD CONSTRAINT FK_STAFFWORKINGDEPARTMENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERSTOCK ADD CONSTRAINT FK_USERSTOCK_USERSTOCKCONTAINER_ID FOREIGN KEY (USERSTOCKCONTAINER_ID) REFERENCES USERSTOCKCONTAINER (ID)
ALTER TABLE USERSTOCK ADD CONSTRAINT FK_USERSTOCK_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERSTOCK ADD CONSTRAINT FK_USERSTOCK_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERSTOCK ADD CONSTRAINT FK_USERSTOCK_STOCK_ID FOREIGN KEY (STOCK_ID) REFERENCES STOCK (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_DOCTORHOLIDAYMARKEDBY_ID FOREIGN KEY (DOCTORHOLIDAYMARKEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_FORINSTITUTION_ID FOREIGN KEY (FORINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT SESSIONINSTANCE_CURRENTLYCONSULTINGBILLSESSION_ID FOREIGN KEY (CURRENTLYCONSULTINGBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_ORIGINATINGSESSION_ID FOREIGN KEY (ORIGINATINGSESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_CANCELLEDBY_ID FOREIGN KEY (CANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_NEXTINLINEBILLSESSION_ID FOREIGN KEY (NEXTINLINEBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_COMPLETEDBY_ID FOREIGN KEY (COMPLETEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_FORDEPARTMENT_ID FOREIGN KEY (FORDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_STARTEDBY_ID FOREIGN KEY (STARTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_SESSIONNUMBERGENERATOR_ID FOREIGN KEY (SESSIONNUMBERGENERATOR_ID) REFERENCES CATEGORY (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_AFTERSESSION_ID FOREIGN KEY (AFTERSESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_LASTCOMPLETEDBILLSESSION_ID FOREIGN KEY (LASTCOMPLETEDBILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SESSIONINSTANCE ADD CONSTRAINT FK_SESSIONINSTANCE_ARRIVALRECORD_ID FOREIGN KEY (ARRIVALRECORD_ID) REFERENCES FINGERPRINTRECORD (ID)
ALTER TABLE STAFFLEAVEENTITLE ADD CONSTRAINT FK_STAFFLEAVEENTITLE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFLEAVEENTITLE ADD CONSTRAINT FK_STAFFLEAVEENTITLE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFLEAVEENTITLE ADD CONSTRAINT FK_STAFFLEAVEENTITLE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE SEX ADD CONSTRAINT FK_SEX_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SEX ADD CONSTRAINT FK_SEX_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_BILLSESSION_ID FOREIGN KEY (BILLSESSION_ID) REFERENCES BILLSESSION (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_PAYMENTDONEUSER_ID FOREIGN KEY (PAYMENTDONEUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE AGENTHISTORY ADD CONSTRAINT FK_AGENTHISTORY_AGENCY_ID FOREIGN KEY (AGENCY_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYSHEETCOMPONENT ADD CONSTRAINT FK_PAYSHEETCOMPONENT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE PAYSHEETCOMPONENT ADD CONSTRAINT FK_PAYSHEETCOMPONENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYSHEETCOMPONENT ADD CONSTRAINT FK_PAYSHEETCOMPONENT_SENDINGINSTITUTION_ID FOREIGN KEY (SENDINGINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PAYSHEETCOMPONENT ADD CONSTRAINT FK_PAYSHEETCOMPONENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_PACKEGE_ID FOREIGN KEY (PACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLCOMPONENT ADD CONSTRAINT FK_BILLCOMPONENT_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD CONSTRAINT DEFAULTSERVICEDEPARTMENT_PERFORMINGDEPARTMENT_ID FOREIGN KEY (PERFORMINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD CONSTRAINT FK_DEFAULTSERVICEDEPARTMENT_RETIREDBY_ID FOREIGN KEY (RETIREDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD CONSTRAINT FK_DEFAULTSERVICEDEPARTMENT_CREATEDBY_ID FOREIGN KEY (CREATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD CONSTRAINT FK_DEFAULTSERVICEDEPARTMENT_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD CONSTRAINT FK_DEFAULTSERVICEDEPARTMENT_BILLINGDEPARTMENT_ID FOREIGN KEY (BILLINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD CONSTRAINT FK_DEFAULTSERVICEDEPARTMENT_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE BILLITEMFINANCEDETAILS ADD CONSTRAINT FK_BILLITEMFINANCEDETAILS_CREATEDBY_ID FOREIGN KEY (CREATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_ORIGINATINGSESSION_ID FOREIGN KEY (ORIGINATINGSESSION_ID) REFERENCES ITEM (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_FORDEPARTMENT_ID FOREIGN KEY (FORDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT SERVICESESSIONINSTANCE_SESSIONNUMBERGENERATOR_ID FOREIGN KEY (SESSIONNUMBERGENERATOR_ID) REFERENCES CATEGORY (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_FORINSTITUTION_ID FOREIGN KEY (FORINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE SERVICESESSIONINSTANCE ADD CONSTRAINT FK_SERVICESESSIONINSTANCE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTSESSIONINSTANCEACTIVITY ADD CONSTRAINT PATIENTSESSIONINSTANCEACTIVITYPPOINTMENTACTIVITYID FOREIGN KEY (APPOINTMENTACTIVITY_ID) REFERENCES APPOINTMENTACTIVITY (ID)
ALTER TABLE PATIENTSESSIONINSTANCEACTIVITY ADD CONSTRAINT FK_PATIENTSESSIONINSTANCEACTIVITY_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE LOAN ADD CONSTRAINT FK_LOAN_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE LOAN ADD CONSTRAINT FK_LOAN_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_TOROOMFACILITYCHARGE_ID FOREIGN KEY (TOROOMFACILITYCHARGE_ID) REFERENCES ROOMFACILITYCHARGE (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_CANCELLEDBY_ID FOREIGN KEY (CANCELLEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_FROMPATIENTROOM_ID FOREIGN KEY (FROMPATIENTROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_ACCEPTEDBY_ID FOREIGN KEY (ACCEPTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_SURGERYBILL_ID FOREIGN KEY (SURGERYBILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_ADMISSION_ID FOREIGN KEY (ADMISSION_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_INITIATEDBY_ID FOREIGN KEY (INITIATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTTRANSFERREQUEST ADD CONSTRAINT FK_PATIENTTRANSFERREQUEST_THEATREROOM_ID FOREIGN KEY (THEATREROOM_ID) REFERENCES PATIENTROOM (ID)
ALTER TABLE SHIFTPREFERENCE ADD CONSTRAINT FK_SHIFTPREFERENCE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SHIFTPREFERENCE ADD CONSTRAINT FK_SHIFTPREFERENCE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SHIFTPREFERENCE ADD CONSTRAINT FK_SHIFTPREFERENCE_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE IXCAL ADD CONSTRAINT FK_IXCAL_CALIXITEM_ID FOREIGN KEY (CALIXITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE IXCAL ADD CONSTRAINT FK_IXCAL_VALIXITEM_ID FOREIGN KEY (VALIXITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE IXCAL ADD CONSTRAINT FK_IXCAL_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDASHBOARD ADD CONSTRAINT FK_WEBUSERDASHBOARD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDASHBOARD ADD CONSTRAINT FK_WEBUSERDASHBOARD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERDASHBOARD ADD CONSTRAINT FK_WEBUSERDASHBOARD_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMBATCH ADD CONSTRAINT FK_ITEMBATCH_MANUFACTURER_ID FOREIGN KEY (MANUFACTURER_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE ITEMBATCH ADD CONSTRAINT FK_ITEMBATCH_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMBATCH ADD CONSTRAINT FK_ITEMBATCH_LASTPURCHASEBILLITEM_ID FOREIGN KEY (LASTPURCHASEBILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE ITEMBATCH ADD CONSTRAINT FK_ITEMBATCH_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEMBATCH ADD CONSTRAINT FK_ITEMBATCH_MAKE_ID FOREIGN KEY (MAKE_ID) REFERENCES CATEGORY (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_WEBCONTENT_ID FOREIGN KEY (WEBCONTENT_ID) REFERENCES WEBCONTENT (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE UPLOAD ADD CONSTRAINT FK_UPLOAD_HISTORICALRECORD_ID FOREIGN KEY (HISTORICALRECORD_ID) REFERENCES HISTORICALRECORD (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_PACKEGE_ID FOREIGN KEY (PACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE PATIENTITEM ADD CONSTRAINT FK_PATIENTITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FAMILY ADD CONSTRAINT FK_FAMILY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FAMILY ADD CONSTRAINT FK_FAMILY_CREATEDDEPARTMENT_ID FOREIGN KEY (CREATEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE FAMILY ADD CONSTRAINT FK_FAMILY_CHIEFHOUSEHOLDER_ID FOREIGN KEY (CHIEFHOUSEHOLDER_ID) REFERENCES PATIENT (ID)
ALTER TABLE FAMILY ADD CONSTRAINT FK_FAMILY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FAMILY ADD CONSTRAINT FK_FAMILY_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE FAMILY ADD CONSTRAINT FK_FAMILY_CREATEDINSTITUTION_ID FOREIGN KEY (CREATEDINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE FAMILY ADD CONSTRAINT FK_FAMILY_MEMBERSHIPSCHEME_ID FOREIGN KEY (MEMBERSHIPSCHEME_ID) REFERENCES CATEGORY (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_CONTINUEDTO_ID FOREIGN KEY (CONTINUEDTO_ID) REFERENCES WORKINGTIME (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_STAFFSHIFT_ID FOREIGN KEY (STAFFSHIFT_ID) REFERENCES STAFFSHIFT (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_ENDRECORD_ID FOREIGN KEY (ENDRECORD_ID) REFERENCES FINGERPRINTRECORD (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_PROFESSINOALPAYMENTBILL_ID FOREIGN KEY (PROFESSINOALPAYMENTBILL_ID) REFERENCES BILL (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_STARTRECORD_ID FOREIGN KEY (STARTRECORD_ID) REFERENCES FINGERPRINTRECORD (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WORKINGTIME ADD CONSTRAINT FK_WORKINGTIME_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLENTRY ADD CONSTRAINT FK_BILLENTRY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DRAWER ADD CONSTRAINT FK_DRAWER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DRAWER ADD CONSTRAINT FK_DRAWER_DRAWERUSER_ID FOREIGN KEY (DRAWERUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DRAWER ADD CONSTRAINT FK_DRAWER_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DATABASEMIGRATION ADD CONSTRAINT FK_DATABASEMIGRATION_ROLLBACKBY_ID FOREIGN KEY (ROLLBACKBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DATABASEMIGRATION ADD CONSTRAINT FK_DATABASEMIGRATION_EXECUTEDBY_ID FOREIGN KEY (EXECUTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFDESIGNATION ADD CONSTRAINT FK_STAFFDESIGNATION_STAFFEMPLOYMENT_ID FOREIGN KEY (STAFFEMPLOYMENT_ID) REFERENCES STAFFEMPLOYMENT (ID)
ALTER TABLE STAFFDESIGNATION ADD CONSTRAINT FK_STAFFDESIGNATION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFDESIGNATION ADD CONSTRAINT FK_STAFFDESIGNATION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFDESIGNATION ADD CONSTRAINT FK_STAFFDESIGNATION_DESIGNATION_ID FOREIGN KEY (DESIGNATION_ID) REFERENCES CATEGORY (ID)
ALTER TABLE PAYMENTMETHODVALUE ADD CONSTRAINT FK_PAYMENTMETHODVALUE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PAYMENTMETHODVALUE ADD CONSTRAINT FK_PAYMENTMETHODVALUE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFEEPAYMENT ADD CONSTRAINT FK_BILLFEEPAYMENT_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE BILLFEEPAYMENT ADD CONSTRAINT FK_BILLFEEPAYMENT_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE BILLFEEPAYMENT ADD CONSTRAINT FK_BILLFEEPAYMENT_BILLFEE_ID FOREIGN KEY (BILLFEE_ID) REFERENCES BILLFEE (ID)
ALTER TABLE BILLFEEPAYMENT ADD CONSTRAINT FK_BILLFEEPAYMENT_PAYMENT_ID FOREIGN KEY (PAYMENT_ID) REFERENCES PAYMENT (ID)
ALTER TABLE BILLFEEPAYMENT ADD CONSTRAINT FK_BILLFEEPAYMENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE BILLFEEPAYMENT ADD CONSTRAINT FK_BILLFEEPAYMENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERICON ADD CONSTRAINT FK_USERICON_WEBUSERROLE_ID FOREIGN KEY (WEBUSERROLE_ID) REFERENCES WEBUSERROLE (ID)
ALTER TABLE USERICON ADD CONSTRAINT FK_USERICON_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE USERICON ADD CONSTRAINT FK_USERICON_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE SALARYCYCLE ADD CONSTRAINT FK_SALARYCYCLE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE SALARYCYCLE ADD CONSTRAINT FK_SALARYCYCLE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLECOLLECTEDBY_ID FOREIGN KEY (SAMPLECOLLECTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_CANCELLINSTITUTION_ID FOREIGN KEY (CANCELLINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT PTIENTINVESTIGATIONSAMPLETRANSPORTEDTOLABBYSTAFFID FOREIGN KEY (SAMPLETRANSPORTEDTOLABBYSTAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_CANCELLDEPARTMENT_ID FOREIGN KEY (CANCELLDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_CANCELLEDUSER_ID FOREIGN KEY (CANCELLEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_REPORTDISTRIBUTEDBY_ID FOREIGN KEY (REPORTDISTRIBUTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_REPORTPRINTEDBY_ID FOREIGN KEY (REPORTPRINTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEREPEATEDBY_ID FOREIGN KEY (SAMPLEREPEATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_RECEIVEDEPARTMENT_ID FOREIGN KEY (RECEIVEDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PACKEGE_ID FOREIGN KEY (PACKEGE_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_RETURNDEPARTMENT_ID FOREIGN KEY (RETURNDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_INVESTIGATION_ID FOREIGN KEY (INVESTIGATION_ID) REFERENCES ITEM (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_OUTSOURCEDUSER_ID FOREIGN KEY (OUTSOURCEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PATIENT_ID FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_RECEIVEDCOLLECTER_ID FOREIGN KEY (RECEIVEDCOLLECTER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_APPROVEDEPARTMENT_ID FOREIGN KEY (APPROVEDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_ORDEREDBY_ID FOREIGN KEY (ORDEREDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_ENCOUNTER_ID FOREIGN KEY (ENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_RETURNINSTITUTION_ID FOREIGN KEY (RETURNINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_REPORTHANDEDOVERBY_ID FOREIGN KEY (REPORTHANDEDOVERBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT PTENTINVESTIGATIONRPORTREACHEDCOLLECTINGCENTREBYID FOREIGN KEY (REPORTREACHEDCOLLECTINGCENTREBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEGENERATEDBY_ID FOREIGN KEY (SAMPLEGENERATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLERESENTBY_ID FOREIGN KEY (SAMPLERESENTBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEINSTITUTION_ID FOREIGN KEY (SAMPLEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_APPROVEUSER_ID FOREIGN KEY (APPROVEUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_DATAENTRYDEPARTMENT_ID FOREIGN KEY (DATAENTRYDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PERFORMEDUSER_ID FOREIGN KEY (PERFORMEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_OUTSOURCEINSTITUTION_ID FOREIGN KEY (OUTSOURCEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_OUTSOURCEDINSTITUTION_ID FOREIGN KEY (OUTSOURCEDINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEACCEPTEDBY_ID FOREIGN KEY (SAMPLEACCEPTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_DATAENTRYINSTITUTION_ID FOREIGN KEY (DATAENTRYINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_RECEIVEINSTITUTION_ID FOREIGN KEY (RECEIVEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEREVERTEDBY_ID FOREIGN KEY (SAMPLEREVERTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_BARCODEGENERATEDBY_ID FOREIGN KEY (BARCODEGENERATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEINTERFACEDBY_ID FOREIGN KEY (SAMPLEINTERFACEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEAPPROVEDBY_ID FOREIGN KEY (SAMPLEAPPROVEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT PATIENTINVESTIGATIONSAMPLEAPPROVEDANDREPEATEDBY_ID FOREIGN KEY (SAMPLEAPPROVEDANDREPEATEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_ORDEREDDEPARTMENT_ID FOREIGN KEY (ORDEREDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLERECOLLECTEDBY_ID FOREIGN KEY (SAMPLERECOLLECTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLECOLLECTER_ID FOREIGN KEY (SAMPLECOLLECTER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_RETURNEDUSER_ID FOREIGN KEY (RETURNEDUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PRINTINGINSTITUTION_ID FOREIGN KEY (PRINTINGINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_BILLITEM_ID FOREIGN KEY (BILLITEM_ID) REFERENCES BILLITEM (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PERFORMDEPARTMENT_ID FOREIGN KEY (PERFORMDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PRINTINGUSER_ID FOREIGN KEY (PRINTINGUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PERFORMINSTITUTION_ID FOREIGN KEY (PERFORMINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_OUTSOURCEDDEPARTMENT_ID FOREIGN KEY (OUTSOURCEDDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_APPROVEINSTITUTION_ID FOREIGN KEY (APPROVEINSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLESENTBY_ID FOREIGN KEY (SAMPLESENTBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_BILLCOMPONENT_ID FOREIGN KEY (BILLCOMPONENT_ID) REFERENCES BILLCOMPONENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_PRINTINGDEPARTMENT_ID FOREIGN KEY (PRINTINGDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_DATAENTRYUSER_ID FOREIGN KEY (DATAENTRYUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEDEPARTMENT_ID FOREIGN KEY (SAMPLEDEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE PATIENTINVESTIGATION ADD CONSTRAINT FK_PATIENTINVESTIGATION_SAMPLEREJECTEDBY_ID FOREIGN KEY (SAMPLEREJECTEDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CLIENTACCOUNT ADD CONSTRAINT FK_CLIENTACCOUNT_CREATEDBYWEBUSER_ID FOREIGN KEY (CREATEDBYWEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CLIENTACCOUNT ADD CONSTRAINT FK_CLIENTACCOUNT_PERSON_ID FOREIGN KEY (PERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE CLIENTACCOUNT ADD CONSTRAINT FK_CLIENTACCOUNT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPASSWORDHISTORY ADD CONSTRAINT FK_WEBUSERPASSWORDHISTORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPASSWORDHISTORY ADD CONSTRAINT FK_WEBUSERPASSWORDHISTORY_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBUSERPASSWORDHISTORY ADD CONSTRAINT FK_WEBUSERPASSWORDHISTORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE TEMPLATECOMPONENT ADD CONSTRAINT FK_TEMPLATECOMPONENT_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES TEMPLATECOMPONENT (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_PATIENTENCOUNTER_ID FOREIGN KEY (PATIENTENCOUNTER_ID) REFERENCES PATIENTENCOUNTER (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_ENCOUNTERCREDITCOMPANY_ID FOREIGN KEY (ENCOUNTERCREDITCOMPANY_ID) REFERENCES ENCOUNTERCREDITCOMPANY (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_PATIENTINVESTIGATION_ID FOREIGN KEY (PATIENTINVESTIGATION_ID) REFERENCES PATIENTINVESTIGATION (ID)
ALTER TABLE APPEMAIL ADD CONSTRAINT FK_APPEMAIL_PATIENTREPORT_ID FOREIGN KEY (PATIENTREPORT_ID) REFERENCES PATIENTREPORT (ID)
ALTER TABLE LOGINS ADD CONSTRAINT FK_LOGINS_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE LOGINS ADD CONSTRAINT FK_LOGINS_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE LOGINS ADD CONSTRAINT FK_LOGINS_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE DRAWERENTRY ADD CONSTRAINT FK_DRAWERENTRY_BILL_ID FOREIGN KEY (BILL_ID) REFERENCES BILL (ID)
ALTER TABLE DRAWERENTRY ADD CONSTRAINT FK_DRAWERENTRY_DRAWER_ID FOREIGN KEY (DRAWER_ID) REFERENCES DRAWER (ID)
ALTER TABLE DRAWERENTRY ADD CONSTRAINT FK_DRAWERENTRY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DRAWERENTRY ADD CONSTRAINT FK_DRAWERENTRY_WEBUSER_ID FOREIGN KEY (WEBUSER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DRAWERENTRY ADD CONSTRAINT FK_DRAWERENTRY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DRAWERENTRY ADD CONSTRAINT FK_DRAWERENTRY_PAYMENT_ID FOREIGN KEY (PAYMENT_ID) REFERENCES PAYMENT (ID)
ALTER TABLE STOCK ADD CONSTRAINT FK_STOCK_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STOCK ADD CONSTRAINT FK_STOCK_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STOCK ADD CONSTRAINT FK_STOCK_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCK ADD CONSTRAINT FK_STOCK_ITEMBATCH_ID FOREIGN KEY (ITEMBATCH_ID) REFERENCES ITEMBATCH (ID)
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD CONSTRAINT FK_SHIFTSTAFFREQUIREMENT_shift_id FOREIGN KEY (shift_id) REFERENCES SHIFT (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_ITEMBATCH_ID FOREIGN KEY (ITEMBATCH_ID) REFERENCES ITEMBATCH (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_PBITEM_ID FOREIGN KEY (PBITEM_ID) REFERENCES PHARMACEUTICALBILLITEM (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STOCKHISTORY ADD CONSTRAINT FK_STOCKHISTORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE WEBCONTENT ADD CONSTRAINT FK_WEBCONTENT_WEBLANGUAGE_ID FOREIGN KEY (WEBLANGUAGE_ID) REFERENCES WEBLANGUAGE (ID)
ALTER TABLE WEBCONTENT ADD CONSTRAINT FK_WEBCONTENT_PARENT_ID FOREIGN KEY (PARENT_ID) REFERENCES WEBCONTENT (ID)
ALTER TABLE ITEMFORITEM ADD CONSTRAINT FK_ITEMFORITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMFORITEM ADD CONSTRAINT FK_ITEMFORITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ITEMFORITEM ADD CONSTRAINT FK_ITEMFORITEM_PARENTITEM_ID FOREIGN KEY (PARENTITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE ITEMFORITEM ADD CONSTRAINT FK_ITEMFORITEM_CHILDITEM_ID FOREIGN KEY (CHILDITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE INPATIENTPACKAGEITEM ADD CONSTRAINT FK_INPATIENTPACKAGEITEM_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INPATIENTPACKAGEITEM ADD CONSTRAINT FK_INPATIENTPACKAGEITEM_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INPATIENTPACKAGEITEM ADD CONSTRAINT FK_INPATIENTPACKAGEITEM_SPECIALITY_ID FOREIGN KEY (SPECIALITY_ID) REFERENCES CATEGORY (ID)
ALTER TABLE INPATIENTPACKAGEITEM ADD CONSTRAINT FK_INPATIENTPACKAGEITEM_ITEM_ID FOREIGN KEY (ITEM_ID) REFERENCES ITEM (ID)
ALTER TABLE INPATIENTPACKAGEITEM ADD CONSTRAINT FK_INPATIENTPACKAGEITEM_INPATIENTPACKAGE_ID FOREIGN KEY (INPATIENTPACKAGE_ID) REFERENCES INPATIENTPACKAGE (ID)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD CONSTRAINT FK_APPOINTMENTSCHEDULETEMPLATE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD CONSTRAINT FK_APPOINTMENTSCHEDULETEMPLATE_PROCEDURE_ID FOREIGN KEY (PROCEDURE_ID) REFERENCES ITEM (ID)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD CONSTRAINT FK_APPOINTMENTSCHEDULETEMPLATE_CONSULTANT_ID FOREIGN KEY (CONSULTANT_ID) REFERENCES STAFF (ID)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD CONSTRAINT FK_APPOINTMENTSCHEDULETEMPLATE_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD CONSTRAINT FK_APPOINTMENTSCHEDULETEMPLATE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD CONSTRAINT FK_APPOINTMENTSCHEDULETEMPLATE_ROOM_ID FOREIGN KEY (ROOM_ID) REFERENCES ROOMFACILITYCHARGE (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_LASTEDITOR_ID FOREIGN KEY (LASTEDITOR_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_CHEQUEBANK_ID FOREIGN KEY (CHEQUEBANK_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_CHEQUEPAIDBY_ID FOREIGN KEY (CHEQUEPAIDBY_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_COMPLETER_ID FOREIGN KEY (COMPLETER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_PAYSHEETCOMPONENT_ID FOREIGN KEY (PAYSHEETCOMPONENT_ID) REFERENCES PAYSHEETCOMPONENT (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_BANKBRANCH_ID FOREIGN KEY (BANKBRANCH_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD CONSTRAINT FK_STAFFPAYSHEETCOMPONENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DOCTORINSTITUTION ADD CONSTRAINT FK_DOCTORINSTITUTION_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DOCTORINSTITUTION ADD CONSTRAINT FK_DOCTORINSTITUTION_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DOCTORINSTITUTION ADD CONSTRAINT FK_DOCTORINSTITUTION_DOCTOR_ID FOREIGN KEY (DOCTOR_ID) REFERENCES STAFF (ID)
ALTER TABLE DOCTORINSTITUTION ADD CONSTRAINT FK_DOCTORINSTITUTION_EDITER_ID FOREIGN KEY (EDITER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE DOCTORINSTITUTION ADD CONSTRAINT FK_DOCTORINSTITUTION_INSTITUTION_ID FOREIGN KEY (INSTITUTION_ID) REFERENCES INSTITUTION (ID)
ALTER TABLE PERSONRELATIONSHIP ADD CONSTRAINT FK_PERSONRELATIONSHIP_APERSON_ID FOREIGN KEY (APERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE PERSONRELATIONSHIP ADD CONSTRAINT FK_PERSONRELATIONSHIP_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PERSONRELATIONSHIP ADD CONSTRAINT FK_PERSONRELATIONSHIP_BPERSON_ID FOREIGN KEY (BPERSON_ID) REFERENCES PERSON (ID)
ALTER TABLE PERSONRELATIONSHIP ADD CONSTRAINT FK_PERSONRELATIONSHIP_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD CONSTRAINT INVESTIGATIONREPORTITEMVALUE_INVESTIGATIONITEM_ID FOREIGN KEY (INVESTIGATIONITEM_ID) REFERENCES REPORTITEM (ID)
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD CONSTRAINT FK_INVESTIGATIONREPORTITEMVALUE_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD CONSTRAINT FK_INVESTIGATIONREPORTITEMVALUE_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ROSTER ADD CONSTRAINT FK_ROSTER_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ROSTER ADD CONSTRAINT FK_ROSTER_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE ROSTER ADD CONSTRAINT FK_ROSTER_DEPARTMENT_ID FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID)
ALTER TABLE STAFFEMPLOYMENT ADD CONSTRAINT FK_STAFFEMPLOYMENT_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFEMPLOYMENT ADD CONSTRAINT FK_STAFFEMPLOYMENT_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE STAFFEMPLOYMENT ADD CONSTRAINT FK_STAFFEMPLOYMENT_STAFF_ID FOREIGN KEY (STAFF_ID) REFERENCES STAFF (ID)
ALTER TABLE CASHTRANSACTIONHISTORY ADD CONSTRAINT FK_CASHTRANSACTIONHISTORY_CASHTRANSACTION_ID FOREIGN KEY (CASHTRANSACTION_ID) REFERENCES CASHTRANSACTION (ID)
ALTER TABLE CASHTRANSACTIONHISTORY ADD CONSTRAINT FK_CASHTRANSACTIONHISTORY_RETIRER_ID FOREIGN KEY (RETIRER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE CASHTRANSACTIONHISTORY ADD CONSTRAINT FK_CASHTRANSACTIONHISTORY_CREATER_ID FOREIGN KEY (CREATER_ID) REFERENCES WEBUSER (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE_PRESCRIPTIONTEMPLATE ADD CONSTRAINT PRSCRPTNTMPLTEPRESCRIPTIONTEMPLATEPrscrptnTmplteID FOREIGN KEY (PrescriptionTemplate_ID) REFERENCES PRESCRIPTIONTEMPLATE (ID)
ALTER TABLE PRESCRIPTIONTEMPLATE_PRESCRIPTIONTEMPLATE ADD CONSTRAINT PRESCRIPTIONTEMPLATE_PRESCRIPTIONTEMPLATE_items_ID FOREIGN KEY (items_ID) REFERENCES PRESCRIPTIONTEMPLATE (ID)
CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38), PRIMARY KEY (SEQ_NAME))
INSERT INTO SEQUENCE(SEQ_NAME, SEQ_COUNT) values ('SEQ_GEN', 0)
CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38), PRIMARY KEY (SEQ_NAME))
INSERT INTO SEQUENCE(SEQ_NAME, SEQ_COUNT) values ('SEQ_GEN', 0)

ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN OVERRIDDENENDTIME TIME
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN OVERRIDDENMAXCOUNT INTEGER
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN OVERRIDDENSTARTTIME TIME
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN OVERRIDEDATE DATE
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN OVERRIDETYPE VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN REASON VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULEDATEOVERRIDE ADD COLUMN TEMPLATE_ID BIGINT
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN EDITEDAT DATETIME
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN ORDERNUMBER DOUBLE
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN TRIGGERTYPE INTEGER
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN EDITER_ID BIGINT
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE TRIGGERSUBSCRIPTION ADD COLUMN WEBUSERROLE_ID BIGINT
ALTER TABLE STOCKBILL ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STOCKBILL ADD COLUMN STOCKVALUEASCOSTRATE DOUBLE
ALTER TABLE STOCKBILL ADD COLUMN STOCKVALUEASSALERATE DOUBLE
ALTER TABLE STOCKBILL ADD COLUMN STOCKVALUEATPURCHASERATES DOUBLE
ALTER TABLE STOCKBILL ADD COLUMN BILL_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN CREATEDAT DATETIME
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN EDITEDAT DATETIME
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN MAXIMUMVALUE DOUBLE
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN MINIMUMVALUE DOUBLE
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN NAME VARCHAR(255)
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN RETIREDAT DATETIME
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN CREATER_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN INVESTIGATIONVALIDATECOMPONENT_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN ITEM_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATOR ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN ACTUALNETVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLCOSTVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLDISCOUNT DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLEXPENSE DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLEXPENSESCONSIDEREDFORCOSTING DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLEXPENSESNOTCONSIDEREDFORCOSTING DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLGROSSTOTAL DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLNETTOTAL DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN BILLTAXVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN GROSSTOTAL DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN ITEMTAXVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN LINECOSTVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN LINEDISCOUNT DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN LINEEXPENSE DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN LINEGROSSTOTAL DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN LINENETTOTAL DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN NETTOTAL DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN NETVALUEADJUSTMENT DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALAFTERADJUSTMENTVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALBEFOREADJUSTMENTVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALBILLVALUE DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALCOSTVALUE DECIMAL(38,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALCOSTVALUEFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALCOSTVALUENONFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALDISCOUNT DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALEXPENSE DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALFREEQUANTITY DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALFREEQUANTITYINATOMICUNITOFMEASUREMENT DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALOFFREEITEMVALUES DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALOFFREEITEMVALUESFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALOFFREEITEMVALUESNONFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALPURCHASEVALUE DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALPURCHASEVALUEFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALPURCHASEVALUENONFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALQUANTITY DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALQUANTITYINATOMICUNITOFMEASUREMENT DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALRETAILSALEVALUE DECIMAL(20,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALRETAILSALEVALUEFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALRETAILSALEVALUENONFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALTAXVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALWHOLESALEVALUE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALWHOLESALEVALUEFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN TOTALWHOLESALEVALUENONFREE DECIMAL(18,4)
ALTER TABLE BILLFINANCEDETAILS ADD COLUMN CREATEDBY_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CATEGORY ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE CATEGORY ADD COLUMN CATEGORYTYPE VARCHAR(255)
ALTER TABLE CATEGORY ADD COLUMN CODE VARCHAR(255)
ALTER TABLE CATEGORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CATEGORY ADD COLUMN DBLVALUE DOUBLE
ALTER TABLE CATEGORY ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE CATEGORY ADD COLUMN FILLED TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN LONGVALUE BIGINT
ALTER TABLE CATEGORY ADD COLUMN NAME VARCHAR(255)
ALTER TABLE CATEGORY ADD COLUMN ORDERNO INTEGER
ALTER TABLE CATEGORY ADD COLUMN POINTESFORTHOUSAND DOUBLE
ALTER TABLE CATEGORY ADD COLUMN PROFITMARGIN DOUBLE
ALTER TABLE CATEGORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CATEGORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CATEGORY ADD COLUMN SALEMARGIN DOUBLE
ALTER TABLE CATEGORY ADD COLUMN SYMANTICTYPE INTEGER
ALTER TABLE CATEGORY ADD COLUMN WHOLESALEMARGIN DOUBLE
ALTER TABLE CATEGORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN PARENTCATEGORY_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN DURATIONINHOURS DOUBLE
ALTER TABLE CATEGORY ADD COLUMN DURATIONUNIT TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN FREQUENCYINHOURS DOUBLE
ALTER TABLE CATEGORY ADD COLUMN FREQUENCYUNIT TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN ISSUEUNIT TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN PACKUNIT TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN STRENGTHUNIT TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN STAFF_ID BIGINT
ALTER TABLE CATEGORY ADD COLUMN BED_STATUS VARCHAR(255)
ALTER TABLE CATEGORY ADD COLUMN SVGCHILDVIEW LONGTEXT
ALTER TABLE CATEGORY ADD COLUMN ADDITIONTOCOUNT INTEGER
ALTER TABLE CATEGORY ADD COLUMN ADMISSIONFEE DOUBLE
ALTER TABLE CATEGORY ADD COLUMN ADMISSIONTYPEENUM VARCHAR(255)
ALTER TABLE CATEGORY ADD COLUMN ALLOWTOCALCULATEMARGIN TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN GENERATESEPARATEADMISSIONNUMBER TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN INWARDPACKAGE TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN ROOMCHARGESALLOWED TINYINT(1) default 0
ALTER TABLE CATEGORY ADD COLUMN ROOMFACILITYCHARGE_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ID BIGINT NOT NULL
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ARCHIVEDAT DATETIME
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN COSTRATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN FROMDATE DATETIME
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN HISTORYTYPE VARCHAR(255)
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN HXDATE INTEGER
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN HXMONTH INTEGER
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN HXWEEK INTEGER
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN HXYEAR BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUIONBATCHQTY DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTIONBATCHSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTIONBATCHSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTIONBATCHSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTIONITEMSTOCK DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTIONITEMSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTIONITEMSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTIONITEMSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ITEMSTOCK DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ITEMSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ITEMSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ITEMSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN PURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN RETAILRATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN STOCKAT DATE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN STOCKCOSTVALUE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN STOCKPURCHASEVALUE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN STOCKQTY DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN STOCKSALEVALUE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TODATE DATETIME
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALBATCHQTY DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALBATCHSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALBATCHSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALBATCHSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALITEMSTOCK DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALITEMSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALITEMSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN TOTALITEMSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN WHOLESALERATE DOUBLE
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN ITEMBATCH_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE STOCKHISTORYARCHIVE ADD COLUMN PBITEM_ID BIGINT
ALTER TABLE ITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ITEM ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE ITEM ADD COLUMN AGENCYNUMBERS VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN ALLOWFRACTIONS TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN ALLOWTOSENDSMS TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN ALLOWEDFORBILLINGPRIORITY TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN ALTERNATIVEREPORTALLOWED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN BASEUNITSPERISSUEUNIT DOUBLE
ALTER TABLE ITEM ADD COLUMN BILLABLE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CALCULATEDREQUERD TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CANREMOVEITEMFROMPACKAGE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CANSECHDULEFOROTHERDAYS TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CANUPLOADPATINRTREPORT TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CASHNUMBERS VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN CHARGESVISIBLEFORINWARD TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CODE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN CODESYSTEM VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE ITEM ADD COLUMN CONSIDEREDFORCOSTING TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CONSUMPTIONALLOWED TINYINT(1) default 0 NOT NULL
ALTER TABLE ITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ITEM ADD COLUMN CREDITNUMBERS VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN DBLVALUE DOUBLE
ALTER TABLE ITEM ADD COLUMN DEPARTMENTTYPE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN DESCREPTION LONGTEXT
ALTER TABLE ITEM ADD COLUMN DISCOUNTALLOWED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN EDITEDAT DATETIME
ALTER TABLE ITEM ADD COLUMN EFFECTIVEFROM DATE
ALTER TABLE ITEM ADD COLUMN EFFECTIVETO DATE
ALTER TABLE ITEM ADD COLUMN EXPIRYDATE DATETIME
ALTER TABLE ITEM ADD COLUMN FORBILLTYPE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN FORGENDER LONGTEXT
ALTER TABLE ITEM ADD COLUMN FORMATABLE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN FULLNAME VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN HASMORETHANONECOMPONANT TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN HASREPORTFORMAT TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN INACTIVE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN INSTRUCTIONS LONGTEXT
ALTER TABLE ITEM ADD COLUMN INWARDCHARGETYPE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN ISMASTERITEM TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN ISSUEMULTIPLIESQUANTITY DOUBLE
ALTER TABLE ITEM ADD COLUMN ISSUETYPE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN ISSUEUNITSPERPACKUNIT DOUBLE
ALTER TABLE ITEM ADD COLUMN ITEMBARCODEGENERATIONSTRATEGY INTEGER
ALTER TABLE ITEM ADD COLUMN ITEMID BIGINT
ALTER TABLE ITEM ADD COLUMN ITEMTYPE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN LASTBARCODE BIGINT
ALTER TABLE ITEM ADD COLUMN MARGINNOTALLOWED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN MAXTABLEROWS INTEGER
ALTER TABLE ITEM ADD COLUMN MINIMUMISSUEQUANTITY DOUBLE
ALTER TABLE ITEM ADD COLUMN MULTIPLEREPORTSALLOWED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN NAME VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN NUMBEROFDAYSTOMARKASSHORTEXPIARY INTEGER
ALTER TABLE ITEM ADD COLUMN ORDERNO INTEGER
ALTER TABLE ITEM ADD COLUMN PATIENTNOTREQUIRED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN PRICEBYBATCH TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN PRINTFEESFORBILLS TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN PRINTNAME VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN PRINTSESSIONNUMBER TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN PRIORITY VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN PROFITMARGIN DOUBLE
ALTER TABLE ITEM ADD COLUMN REFUNDSALLOWED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN REQUESTFORQUENTITY TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN RESERVENAME VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN RESERVENUMBERS VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN RESERVENUMBERSFORFIRSTVISIT VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN RESERVENUMBERSFORSUBSEQUENTVISITS VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEM ADD COLUMN SCANFEE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN SESSIONNUMBERTYPE INTEGER
ALTER TABLE ITEM ADD COLUMN SHORTNAME VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN STRENGTHOFANISSUEUNIT DOUBLE
ALTER TABLE ITEM ADD COLUMN SYMANTICTYPE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN TOTAL DOUBLE
ALTER TABLE ITEM ADD COLUMN TOTALFORFOREIGNER DOUBLE
ALTER TABLE ITEM ADD COLUMN USERCHANGABLE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN VATPERCENTAGE DOUBLE
ALTER TABLE ITEM ADD COLUMN VATABLE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN AMP_ID BIGINT
ALTER TABLE ITEM ADD COLUMN BASEUNIT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN BILLEDAS_ID BIGINT
ALTER TABLE ITEM ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE ITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ITEM ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN DOSAGEFORM_ID BIGINT
ALTER TABLE ITEM ADD COLUMN EDITER_ID BIGINT
ALTER TABLE ITEM ADD COLUMN FINANCIALCATEGORY_ID BIGINT
ALTER TABLE ITEM ADD COLUMN FORDEPARTMENT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN FORINSTITUTION_ID BIGINT
ALTER TABLE ITEM ADD COLUMN IMPORTER_ID BIGINT
ALTER TABLE ITEM ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE ITEM ADD COLUMN ISSUEMULTIPLIESUNIT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN ISSUEUNIT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN MACHINE_ID BIGINT
ALTER TABLE ITEM ADD COLUMN MANUFACTURER_ID BIGINT
ALTER TABLE ITEM ADD COLUMN MASTERITEMREFERENCE_ID BIGINT
ALTER TABLE ITEM ADD COLUMN MEASUREMENTUNIT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN MINIMUMISSUEQUANTITYUNIT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN PACKUNIT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN PARENTITEM_ID BIGINT
ALTER TABLE ITEM ADD COLUMN REPORTFORMAT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN REPORTEDAS_ID BIGINT
ALTER TABLE ITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ITEM ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE ITEM ADD COLUMN STAFF_ID BIGINT
ALTER TABLE ITEM ADD COLUMN STRENGTHUNIT_ID BIGINT
ALTER TABLE ITEM ADD COLUMN VMP_ID BIGINT
ALTER TABLE ITEM ADD COLUMN VMPP_ID BIGINT
ALTER TABLE ITEM ADD COLUMN VTM_ID BIGINT
ALTER TABLE ITEM ADD COLUMN WORKSHEET_ID BIGINT
ALTER TABLE ITEM ADD COLUMN REPORTITEM_ID BIGINT
ALTER TABLE ITEM ADD COLUMN ATM_ID BIGINT
ALTER TABLE ITEM ADD COLUMN SAMPLEVOLUME DOUBLE
ALTER TABLE ITEM ADD COLUMN BYPASSSAMPLEWORKFLOW TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN REPORTTYPE VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN INVESTIGATIONCATEGORY_ID BIGINT
ALTER TABLE ITEM ADD COLUMN INVESTIGATIONTUBE_ID BIGINT
ALTER TABLE ITEM ADD COLUMN SAMPLE_ID BIGINT
ALTER TABLE ITEM ADD COLUMN ACCEPTONLINEBOOKINGS TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN ACTIONS LONGTEXT
ALTER TABLE ITEM ADD COLUMN ACTIVITIES LONGTEXT
ALTER TABLE ITEM ADD COLUMN CANCHANGEPATIENT TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN CONTINUENUMBERS TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN DATAENTRYFORMS LONGTEXT
ALTER TABLE ITEM ADD COLUMN DEACTIVATECOMMENT VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN DEACTIVATED TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN DISPLAYCOUNT INTEGER
ALTER TABLE ITEM ADD COLUMN DISPLAYPERCENT DOUBLE
ALTER TABLE ITEM ADD COLUMN DURATION DOUBLE
ALTER TABLE ITEM ADD COLUMN ENDINGTIME DATETIME
ALTER TABLE ITEM ADD COLUMN EXCLUDEFROMPATIENTPORTAL TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN MAXNO INTEGER
ALTER TABLE ITEM ADD COLUMN NOTIFICATIONROLES LONGTEXT
ALTER TABLE ITEM ADD COLUMN NUMBERINCREMENT INTEGER
ALTER TABLE ITEM ADD COLUMN NUMBEROFDAYSFORAUTOMATICINSTANCECREATION INTEGER
ALTER TABLE ITEM ADD COLUMN PAIDAPPOINTMENTSONLY TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN RECERVEDNUMBERS INTEGER
ALTER TABLE ITEM ADD COLUMN REFUNDABLE TINYINT(1) default 0
ALTER TABLE ITEM ADD COLUMN ROOMNO INTEGER
ALTER TABLE ITEM ADD COLUMN SESSIONAT TIME
ALTER TABLE ITEM ADD COLUMN SESSIONDATE DATE
ALTER TABLE ITEM ADD COLUMN SESSIONSTARTINGNUMBER VARCHAR(255)
ALTER TABLE ITEM ADD COLUMN SESSIONTIME TIME
ALTER TABLE ITEM ADD COLUMN SESSIONWEEKDAY INTEGER
ALTER TABLE ITEM ADD COLUMN SPECIALNOTICE LONGTEXT
ALTER TABLE ITEM ADD COLUMN STARTINGNO INTEGER
ALTER TABLE ITEM ADD COLUMN STARTINGTIME DATETIME
ALTER TABLE ITEM ADD COLUMN ORIGINATINGSESSION_ID BIGINT
ALTER TABLE ITEM ADD COLUMN SESSIONNUMBERGENERATOR_ID BIGINT
ALTER TABLE ITEM ADD COLUMN AFTERSESSION_ID BIGINT
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN ADJUSTEDSTOCK DOUBLE
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN CALCULATEDSTOCK DOUBLE
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN PHYSICALSTOCK DOUBLE
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN PURCHASERATE DOUBLE
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN SYSTEMSTOCK DOUBLE
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN BILL_ID BIGINT
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN REFERENCESTOCKVARIANTBILLITEM_ID BIGINT
ALTER TABLE STOCKVARIENTBILLITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTDEPOSIT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTDEPOSIT ADD COLUMN BALANCE DOUBLE
ALTER TABLE PATIENTDEPOSIT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTDEPOSIT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTDEPOSIT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTDEPOSIT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTDEPOSIT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTDEPOSIT ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PATIENTDEPOSIT ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PATIENTDEPOSIT ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTDEPOSIT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTDEPOSIT ADD COLUMN SITE_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFSALARY ADD COLUMN ACCOUNTNO VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN ADJUSTMENTTOALLOWANCE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN ADJUSTMENTTOBASIC DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN BASICRATEPERMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN BASICVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN BLOCKED TINYINT(1) default 0
ALTER TABLE STAFFSALARY ADD COLUMN BLOCKEDCOMMENT VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN BLOCKEDDATE DATETIME
ALTER TABLE STAFFSALARY ADD COLUMN BRVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN CHEQUEDATE DATE
ALTER TABLE STAFFSALARY ADD COLUMN CHEQUENUMBEROVERTIME VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN CHEQUENUMBERSALARY VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN CHEQUENUMBERSALARYANDOVERTIME VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN COMMENTS VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN COMPONENTVALUEADDITION DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN COMPONENTVALUESUBSTRACTION DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFSALARY ADD COLUMN DAYOFFALLOWANCE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN DAYOFFCOUNT DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EPFBANKACCOUNT VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN EPFCOMPANYVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EPFSTAFFVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN ETFCOMPANYVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN ETFSATFFVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYDAYOFFMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYDAYOFFVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYMERCHANTILEMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYMERCHANTILEVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYNORMALMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYNORMALVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYPOYAMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYPOYAVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYSLEEPINGDAYMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN EXTRADUTYSLEEPINGDAYVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN HOLD TINYINT(1) default 0
ALTER TABLE STAFFSALARY ADD COLUMN HOLDCOMMENT VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN HOLDDATE DATETIME
ALTER TABLE STAFFSALARY ADD COLUMN HOLDPAID TINYINT(1) default 0
ALTER TABLE STAFFSALARY ADD COLUMN HOLDPAIDAT DATETIME
ALTER TABLE STAFFSALARY ADD COLUMN LATENOPAYALLOVANCEVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN LATENOPAYBASICVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN LATENOPAYCOUNT DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN MERCHANTILEALLOWANCEVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN MERCHANTILECOUNT DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN NOPAYCOUNT DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN NOPAYVALUEALLOWANCE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN NOPAYVALUEBASIC DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN OVERTIMEMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN OVERTIMERATEPERMINUTE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN OVERTIMEVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN PAYEEVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN POYAALLOWANCEVALUE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN POYACOUNT DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFSALARY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFSALARY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFSALARY ADD COLUMN SLEEPINGDAYALLOWANCE DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN SLEEPINGDAYCOUNT DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN TRANSADVANCESALARY DOUBLE
ALTER TABLE STAFFSALARY ADD COLUMN BANKBRANCH_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN BLOCKEDUSER_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN CHEQUEBANK_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN EPFBANKBRANCH_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN HOLDPAIDBY_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN HOLDUSER_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN SALARYCYCLE_ID BIGINT
ALTER TABLE STAFFSALARY ADD COLUMN STAFF_ID BIGINT
ALTER TABLE patientmergerecord ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE patientmergerecord ADD COLUMN MERGEDATE DATETIME
ALTER TABLE patientmergerecord ADD COLUMN MERGEREASON VARCHAR(255)
ALTER TABLE patientmergerecord ADD COLUMN MERGETYPE VARCHAR(255)
ALTER TABLE patientmergerecord ADD COLUMN PRIMARYSNAPSHOTJSON LONGTEXT
ALTER TABLE patientmergerecord ADD COLUMN REVERSEDAT DATETIME
ALTER TABLE patientmergerecord ADD COLUMN SECONDARYSNAPSHOTJSON LONGTEXT
ALTER TABLE patientmergerecord ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE patientmergerecord ADD COLUMN MERGEDBY_ID BIGINT
ALTER TABLE patientmergerecord ADD COLUMN PRIMARYPATIENT_ID BIGINT
ALTER TABLE patientmergerecord ADD COLUMN REVERSEDBY_ID BIGINT
ALTER TABLE patientmergerecord ADD COLUMN SECONDARYPATIENT_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN HANDOVERPROOFMISSING TINYINT(1) default 0
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN CURRENTHOLDER_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN HANDOVERACCEPTBILL_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN HANDOVERACCEPTCOMPONANTBILL_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN HANDOVERCREATEDBILL_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN HANDOVERCREATEDCOMPONANTBILL_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN HANDOVERSHIFTBILL_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN HANDOVERSHIFTCOMPONANTBILL_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN PAYMENT_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN PROOFMISSINGBILL_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN PROOFMISSINGSETTLEMENT_ID BIGINT
ALTER TABLE PAYMENTHANDOVERITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN CODE VARCHAR(255)
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN DISCRIPTION LONGTEXT
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN IMAGELINK LONGTEXT
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN NAME VARCHAR(255)
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE APPOINTMENTACTIVITY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTROOMTIMEDITEMCHARGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTROOMTIMEDITEMCHARGE ADD COLUMN CALCULATEDCHARGE DOUBLE
ALTER TABLE PATIENTROOMTIMEDITEMCHARGE ADD COLUMN DISCOUNTCHARGE DOUBLE
ALTER TABLE PATIENTROOMTIMEDITEMCHARGE ADD COLUMN PATIENTROOM_ID BIGINT
ALTER TABLE PATIENTROOMTIMEDITEMCHARGE ADD COLUMN TIMEDITEM_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PAYMENT ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE PAYMENT ADD COLUMN CASHBOOKENTRYCOMPLETED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN CASHBOOKENTRYSTATED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN CHEQUEDATE DATE
ALTER TABLE PAYMENT ADD COLUMN CHEQUEPAID TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN CHEQUEPAIDAT DATETIME
ALTER TABLE PAYMENT ADD COLUMN CHEQUEREALIZED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN CHEQUEREALIZEDAT DATETIME
ALTER TABLE PAYMENT ADD COLUMN CHEQUEREFNO VARCHAR(255)
ALTER TABLE PAYMENT ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE PAYMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PAYMENT ADD COLUMN CREDITCARDREFNO VARCHAR(255)
ALTER TABLE PAYMENT ADD COLUMN CREDITDURATIONINDAYS INTEGER
ALTER TABLE PAYMENT ADD COLUMN CURRENCYDENOMINATIONSJSON LONGTEXT
ALTER TABLE PAYMENT ADD COLUMN DEPOSITED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN DISCOUNTVALUE DECIMAL(18,4)
ALTER TABLE PAYMENT ADD COLUMN HANDINGOVERCOMPLETED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN HANDINGOVERSTARTED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN HANDOVERPROOFMISSING TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN PAIDVALUE DOUBLE
ALTER TABLE PAYMENT ADD COLUMN PAYMENTDATE DATE
ALTER TABLE PAYMENT ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE PAYMENT ADD COLUMN PAYMENTRECORDCOMPLETED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN PAYMENTRECORDSTATED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN PAYMENTSETTLED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN POLICYNO VARCHAR(255)
ALTER TABLE PAYMENT ADD COLUMN REALIZECOMMENTS LONGTEXT
ALTER TABLE PAYMENT ADD COLUMN REALIZED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN REALIZEDAT DATE
ALTER TABLE PAYMENT ADD COLUMN REFERENCENO VARCHAR(255)
ALTER TABLE PAYMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PAYMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PAYMENT ADD COLUMN SELECTEDFORCASHBOOKENTRY TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN SELECTEDFORHANDOVER TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN SELECTEDFORRECORDING TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN SELECTEDFORRECORDINGCONFIRMATION TINYINT(1) default 0
ALTER TABLE PAYMENT ADD COLUMN TOREALIZEAT DATE
ALTER TABLE PAYMENT ADD COLUMN WRITTENAT DATE
ALTER TABLE PAYMENT ADD COLUMN BANK_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN BILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CANCELLEDBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CANCELLEDBY_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CANCELLEDPAYMENT_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CASHBOOK_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CASHBOOKENTRY_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CHEQUEPAIDBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CHEQUEPAYER_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CHEQUEREALIZEDBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CHEQUEREALIZER_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CREDITCOMPANY_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN CURRENTHOLDER_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN FLOATRECIPIENT_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN FROMINSTITUTION_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN PAYMENTRECORDCOMPLETEBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN PAYMENTRECORDCOMPLETECOMPONANTBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN PAYMENTRECORDCREATEBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN PAYMENTRECORDCREATECOMPONANTBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN PAYMENTSETTLEMENTBILL_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN REALIZER_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN REFERANCEPAYMENT_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE PAYMENT ADD COLUMN TOSTAFF_ID BIGINT
ALTER TABLE FEECHANGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FEECHANGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FEECHANGE ADD COLUMN DONE TINYINT(1) default 0
ALTER TABLE FEECHANGE ADD COLUMN DONEAT DATETIME
ALTER TABLE FEECHANGE ADD COLUMN FEECHANGETYPE VARCHAR(255)
ALTER TABLE FEECHANGE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FEECHANGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FEECHANGE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FEECHANGE ADD COLUMN VALIDFROM DATE
ALTER TABLE FEECHANGE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FEECHANGE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE FEECHANGE ADD COLUMN FEE_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE REPORTITEM ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE REPORTITEM ADD COLUMN ABOVEABSOLUTEWARNING VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN ABSOLUTEHIGHVALUE DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN ABSOLUTELOWVALUE DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN ALLOWTOEXPORTCHART TINYINT(1) default 0
ALTER TABLE REPORTITEM ADD COLUMN AUTOMATED TINYINT(1) default 0
ALTER TABLE REPORTITEM ADD COLUMN BELOWABSOLUTEWARNING VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CANNOTAPPROVEIFVALUEISABOVEABSOLUTEHIGHVALUE TINYINT(1) default 0
ALTER TABLE REPORTITEM ADD COLUMN CANNOTAPPROVEIFVALUEISBELOWABSOLUTELOWVALUE TINYINT(1) default 0
ALTER TABLE REPORTITEM ADD COLUMN CANNOTAPPROVEIFVALUEISEMPTY TINYINT(1) default 0
ALTER TABLE REPORTITEM ADD COLUMN CODE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE REPORTITEM ADD COLUMN CSSBACKCOLOR VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSBORDER VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSBORDERRADIUS VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSCLIP VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSCOLOR VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSFONTFAMILY VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSFONTSIZE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSFONTSTYLE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSFONTVARIANT VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSFONTWEIGHT VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSHEIGHT VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSLEFT VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSLINEHEIGHT VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSMARGIN VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSOVERFLOW VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSPADDING VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSPOSITION VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSTEXTALIGN VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSTEXTDECORATION VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSTOP VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSVERTICALALIGN VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSWIDTH VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CSSZORDER VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN CUSTOMCSS LONGTEXT
ALTER TABLE REPORTITEM ADD COLUMN DATAENTRYMETHOD VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE REPORTITEM ADD COLUMN EMPTYVALUEWARNING VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN FORMATPREFIX VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN FORMATSTRING VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN FORMATSUFFIX VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN HTPIX DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN HTMLTEXT LONGTEXT
ALTER TABLE REPORTITEM ADD COLUMN IXITEMTYPE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN IXITEMVALUETYPE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN NAME VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN ORDERNO INTEGER
ALTER TABLE REPORTITEM ADD COLUMN PAGENO INTEGER
ALTER TABLE REPORTITEM ADD COLUMN REPORTITEMTYPE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN RESULTCODE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE REPORTITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE REPORTITEM ADD COLUMN RIFONTSIZE DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN RIHEIGHT DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN RILEFT DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN RITOP DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN RIWIDTH DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN VALUECODE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN VALUECODESYSTEM VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN VALUEUNITCODE VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN VALUEUNITCODESYSTEM VARCHAR(255)
ALTER TABLE REPORTITEM ADD COLUMN WTPIX DOUBLE
ALTER TABLE REPORTITEM ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN COMMENTLABEL_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN FLAGVALUE_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN INVESTIGATIONCOMPONENT_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN MACHINE_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN REFERRINGCATEGORY_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN REFERRINGITEM_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN SAMPLE_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN SAMPLECOMPONENT_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN TEST_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN TUBE_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN VALUEVALUE_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN REFERENCEHEADER_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN REFERENCELABEL_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN TESTHEADER_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN TESTLABEL_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN UNITHEADER_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN UNITLABEL_ID BIGINT
ALTER TABLE REPORTITEM ADD COLUMN VALUEHEADER_ID BIGINT
ALTER TABLE USERPREFERENCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE USERPREFERENCE ADD COLUMN ABBREVIATIONFOREXAMINATION VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN ABBREVIATIONFORHISTORY VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN ABBREVIATIONFORINVESTIGATIONS VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN ABBREVIATIONFORMANAGEMENT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN ABBREVIATIONFORTREATMENTS VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN ALLOWTOCHANGEPAYMENTMETHODDURINGPAYMENT TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN APPLICATIONINSTITUTION VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN AUTODISPLAYMENU TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN BHTNUMBERWITHOUTADMISSIONTYPE TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN BHTNUMBERWITHYEAR TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN CANSETTLEOPDBILLWITHINVESTIGATIONSWITHOUTREFERRINGDOCTOR TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN CCITEMLISTINGSTRATEGY VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN CHANGETEXTCASESPATIENTNAME VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELBILLDOUBLE TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELBILLPAPERTYPE VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELDOCTORARIVALMSGSEND TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELSETTLEWITHOUTPATIENTPHONENUMBER TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELWITHOUTREFERENCENUMBER TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELINGBILLHEADERTEMPLATE VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELINGDOCTORPAYMENTBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELLINGBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELLINGCANCELLATIONBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN CHANNELLINGPAYMENTMETHOD VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN DEPNUMGENFROMTODEPARTMENT TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN EMAILREGEX VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN ENCRPTIONKEY VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN FAMILYMEMBERSHIP TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN FIVEFIVEPAPERWITHHEADINGS TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN GENARATEOPDTOKENNUMBERSTOCOUNTERWISE TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN GRNBILLDETAILED TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN HASAWEBSITEASFRONTEND TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN INPATIENTFINALBILLPRINTHEADER LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN INSTITUTIONRESTRICTEDBILLING TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN INSTITUTIONSPECIFICITEMS TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDADDSERVICEBILLTIMECHECK TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDADDMISSIONSTATEMENETENGLISH LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDADDMISSIONSTATEMENETSINHALA LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDCHANGEADMISSIONFEE TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDDEPOSITBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDDEPOSITCANCELBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDDEPOSITPAYMENTBILLPAPER VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDITEMLISTINGSTRATEGY VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDMOCHARGECALCULATEINITIALTIME TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN INWARDSERVICEBILLPAPERTYPE VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN LENGTHOFOTPINDEXES VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN LOGGINGHEADER VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN LOGGINGTEXT LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN LOGONAME VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN LOGOURL VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN LONGDATEFORMAT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN LONGDATETIMEFORMAT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN LONGTIMEFORMAT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN MEMBERSHIPEXPIRES TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN MICROBIOLOGYFONT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN MOBILEREGEX VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN NAMEREGEX VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN NEEDAREAFORPATIENTREGISTRATION TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN NEEDNICFORPATIENTREGISTRATION TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN NEEDPHONENUMBERFORPATIENTREGISTRATION TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN NICREGEX VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN NUMBEROFCCBILLCOPIES INTEGER
ALTER TABLE USERPREFERENCE ADD COLUMN NUMBEROFCHANNELLINGBILLCOPIES INTEGER
ALTER TABLE USERPREFERENCE ADD COLUMN NUMBEROFOPDBILLCOPIES INTEGER
ALTER TABLE USERPREFERENCE ADD COLUMN OPDBILLFORCASHIERTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN OPDBILLPAPERTYPE VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN OPDBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN OPDBILLINGAFTERSHIFTSTART TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN OPDBILLINGSTRATEGY VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN OPDITEMLISTINGSTRATEGY VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN OPDSETTLEWITHOUTCASHTENDERED TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN OPDSETTLEWITHOUTPATIENTAREA TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN OPDSETTLEWITHOUTPATIENTPHONENUMBER TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN OPDSETTLEWITHOUTREFERRALDETAILS TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN OPDTOKENNUMBERGENERATIONSTRATEGY VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN PARTIALPAYMENTOFOPDBILLSALLOWED TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PARTIALPAYMENTOFOPDPREBILLSALLOWED TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PARTIALPAYMENTOFPHARMACYBILLSALLOWED TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PAYMENTMETHODALLOWEDININWARDMATRIX TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMACYBILLFOOTER VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMACYBILLHEADER VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMACYBILLPAPERTYPE VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMACYBILLPRABODHA TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMACYBILLWITHOUTITEM TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMACYRETAILBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMACYWHOLESALEBILLTEMPLATE LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN PHARMAYPURCHASEWITHLASTRATE TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PRINTBARCODEINOPDBILL TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN PRINTOPDTOKENNUMBER TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENDBULKSMS TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENDSMSONCHANNELBOOKING TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENDSMSONCHANNELBOOKINGCANCELLATION TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENDSMSONCHANNELBOOKINGCOMPLETION TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENDSMSONCHANNELBOOKINGDOCTERPAYMENT TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENDSMSONCHANNELBOOKINGNOSHOW TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENDSMSONCHANNELDOCTORARRIVAL TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENTDAILYSMSSUMMERYFORREFERRINGDOCTORS TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENTEMAILWITHINVESTIGATIONREPORTAPPROVAL TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SENTSMSWITHINVESTIGATIONREQUESTAPPROVAL TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SHORTDATEFORMAT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN SHORTDATETIMEFORMAT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN SHORTTIMEFORMAT VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN SHOWBARCODEINCHANNELBOOKINGBILL TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SHOWBILLWISEDETAILS TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SHOWONLYMARKEDDOCTORS TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN SMSAUTHENTICATIONTYPE INTEGER
ALTER TABLE USERPREFERENCE ADD COLUMN SMSMESSAGEPARAMETERNAME VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSPASSWORD VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSPASSWORDPARAMETERNAME VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSPHONENUMBERPARAMETERNAME VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSTEMPLATEFORCHANNELBOOKING LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN SMSTEMPLATEFORCHANNELBOOKINGCANCELLATION LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN SMSTEMPLATEFORCHANNELBOOKINGCOMPLETION LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN SMSTEMPLATEFORCHANNELBOOKINGDOCTORPAYMENT LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN SMSTEMPLATEFORCHANNELBOOKINGNOSHOW LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN SMSTEMPLATEFORCHANNELDOCTORARRIVAL LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN SMSTEMPLATEFOROPDBILLSETTING LONGTEXT
ALTER TABLE USERPREFERENCE ADD COLUMN SMSURL VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSUSERALIAS VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSUSERALIASPARAMETERNAME VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSUSERNAME VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN SMSUSERNAMEPARAMETERNAME VARCHAR(100)
ALTER TABLE USERPREFERENCE ADD COLUMN THEMENAME VARCHAR(255)
ALTER TABLE USERPREFERENCE ADD COLUMN TRANFERNETTOTALBYRETAILRATE TINYINT(1) default 0
ALTER TABLE USERPREFERENCE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE USERPREFERENCE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE USERPREFERENCE ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE PACKAGEITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PACKAGEITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PACKAGEITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PACKAGEITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PACKAGEITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PACKAGEITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PACKAGEITEM ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PACKAGEITEM ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PACKAGEITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE PACKAGEITEM ADD COLUMN PACKEGE_ID BIGINT
ALTER TABLE PACKAGEITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN EMPLOYEESTATUS VARCHAR(255)
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN TODATE DATE
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFEMPLOYEESTATUS ADD COLUMN STAFFEMPLOYMENT_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BANKACCOUNT ADD COLUMN ACCOUNTNAME VARCHAR(255)
ALTER TABLE BANKACCOUNT ADD COLUMN ACCOUNTNO VARCHAR(255)
ALTER TABLE BANKACCOUNT ADD COLUMN BANKACCOUNTTYPE VARCHAR(255)
ALTER TABLE BANKACCOUNT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BANKACCOUNT ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE BANKACCOUNT ADD COLUMN EDITEDAT DATETIME
ALTER TABLE BANKACCOUNT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BANKACCOUNT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BANKACCOUNT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BANKACCOUNT ADD COLUMN BANK_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN BANKBRANCH_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN EDITER_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE BANKACCOUNT ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERDEPARTMENT ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN ORDERNO INTEGER
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN PATIENTENCOUNTERCOMPONENTTYPE INTEGER
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN BILLFEE_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN CHILDENCOUNTER_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN ITEM_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ENCOUNTERCOMPONENT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN BASISOFPHARMACEUTICALSTRENGTH INTEGER
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN STRENGTH DOUBLE
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN BASISOFSTRENGTHSUBSTANCE_ID BIGINT
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN INGREDIENTSUBSTANCE_ID BIGINT
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN PHARMACEUTICALITEMCATEGORY_ID BIGINT
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN STRENGTHUNIT_ID BIGINT
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN VMP_ID BIGINT
ALTER TABLE VIRTUALPRODUCTINGREDIENT ADD COLUMN VTM_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PRESCRIPTION ADD COLUMN ADMINISTRATIONSTARTEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN ADMINISTRATIONSTOPREASON VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN ADMINISTRATIONSTOPPEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN ALLERGIES VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN CLINICALINDICATION VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN COMMENT VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN CONTINUEONDISCHARGE TINYINT(1) default 0
ALTER TABLE PRESCRIPTION ADD COLUMN CONTRAINDICATIONS VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN DISCHARGEDATE DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN DISCHARGEINSTRUCTIONS VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN DISPENSEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN DISPENSEDQUANTITY DOUBLE
ALTER TABLE PRESCRIPTION ADD COLUMN DISPENSINGNOTES VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN DOSE DOUBLE
ALTER TABLE PRESCRIPTION ADD COLUMN DOSESGIVEN INTEGER
ALTER TABLE PRESCRIPTION ADD COLUMN DOSESREMAINING INTEGER
ALTER TABLE PRESCRIPTION ADD COLUMN DURATION DOUBLE
ALTER TABLE PRESCRIPTION ADD COLUMN EDITEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN INDOOR TINYINT(1) default 0
ALTER TABLE PRESCRIPTION ADD COLUMN INTERACTIONS VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN ISSUE DOUBLE
ALTER TABLE PRESCRIPTION ADD COLUMN LASTREVIEWEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN MONITORINGPLAN VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN OMISSIONREASON VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN OMITTEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN ORDERNO DOUBLE
ALTER TABLE PRESCRIPTION ADD COLUMN PRESCRIBEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN PRESCRIBEDFROM DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN PRESCRIBEDTO DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN PRESCRIPTIONSTATUS VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN PRIORITY VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN PRN TINYINT(1) default 0
ALTER TABLE PRESCRIPTION ADD COLUMN PRNINDICATION VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN REQUIRESNURSEADMINISTRATION TINYINT(1) default 0
ALTER TABLE PRESCRIPTION ADD COLUMN REQUIRESPHARMACISTREVIEW TINYINT(1) default 0
ALTER TABLE PRESCRIPTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PRESCRIPTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN ROUTE VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN SIDEEFFECTSTOMONITOR VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN THERAPEUTICGOAL VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN TOTALDOSES INTEGER
ALTER TABLE PRESCRIPTION ADD COLUMN VERIFIEDAT DATETIME
ALTER TABLE PRESCRIPTION ADD COLUMN WORKFLOWSTAGE VARCHAR(255)
ALTER TABLE PRESCRIPTION ADD COLUMN ADMINISTRATIONSTARTEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN ADMINISTRATIONSTARTEDDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN ADMINISTRATIONSTOPPEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN ADMINISTRATIONSTOPPEDDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN DISCHARGEREVIEWEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN DISPENSEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN DISPENSINGDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN DOSEUNIT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN DURATIONUNIT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN EDITER_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN ENCOUNTER_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN FREQUENCYUNIT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN ISSUEUNIT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN ITEM_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN LASTREVIEWEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN OMITTEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN OMITTINGDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN PARENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN PRESCRIBEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN PRESCRIBINGDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN REVIEWINGDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN VERIFIEDBY_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN VERIFYINGDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTION ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PRICEMATRIX ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE PRICEMATRIX ADD COLUMN BILLTYPE INTEGER
ALTER TABLE PRICEMATRIX ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PRICEMATRIX ADD COLUMN DISCOUNTPERCENT DOUBLE
ALTER TABLE PRICEMATRIX ADD COLUMN FROMPRICE DOUBLE
ALTER TABLE PRICEMATRIX ADD COLUMN INWARDCHARGETYPE VARCHAR(255)
ALTER TABLE PRICEMATRIX ADD COLUMN MARGIN DOUBLE
ALTER TABLE PRICEMATRIX ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE PRICEMATRIX ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PRICEMATRIX ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PRICEMATRIX ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PRICEMATRIX ADD COLUMN TOPRICE DOUBLE
ALTER TABLE PRICEMATRIX ADD COLUMN ADMISSIONTYPE_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN CREDITCOMPANY_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN ITEM_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN MEMBERSHIPSCHEME_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN ROOMCATEGORY_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN ROOMLOCATION_ID BIGINT
ALTER TABLE PRICEMATRIX ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE RESERVATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE RESERVATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE RESERVATION ADD COLUMN RESERVEDFROM DATETIME
ALTER TABLE RESERVATION ADD COLUMN RESERVEDTO DATETIME
ALTER TABLE RESERVATION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE RESERVATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE RESERVATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE RESERVATION ADD COLUMN APPOINTMENT_ID BIGINT
ALTER TABLE RESERVATION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE RESERVATION ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE RESERVATION ADD COLUMN RESERVATIONENCOUNTER_ID BIGINT
ALTER TABLE RESERVATION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE RESERVATION ADD COLUMN ROOM_ID BIGINT
ALTER TABLE PAYEETAXRANGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PAYEETAXRANGE ADD COLUMN FROMSALARY DOUBLE
ALTER TABLE PAYEETAXRANGE ADD COLUMN TAXRATE DOUBLE
ALTER TABLE PAYEETAXRANGE ADD COLUMN TOSALARY DOUBLE
ALTER TABLE PAYEETAXRANGE ADD COLUMN HRMVARIABLES_ID BIGINT
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN ALLOWTOEXPORTCHART TINYINT(1) default 0
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN BAIMAGE LONGBLOB
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN CODESYSTEM VARCHAR(255)
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN CODESYSTEMCODE VARCHAR(255)
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN DOUBLEVALUE DOUBLE
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN FILENAME VARCHAR(255)
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN FILETYPE VARCHAR(255)
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN LOBVALUE LONGTEXT
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN STRVALUE VARCHAR(255)
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN INVESTIGATIONITEM_ID BIGINT
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN PATIENTREPORTGROUP_ID BIGINT
ALTER TABLE PATIENTREPORTITEMVALUE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE AIMESSAGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AIMESSAGE ADD COLUMN ATTACHMENTBASE64 LONGTEXT
ALTER TABLE AIMESSAGE ADD COLUMN ATTACHMENTMIMETYPE VARCHAR(255)
ALTER TABLE AIMESSAGE ADD COLUMN ATTACHMENTNAME VARCHAR(255)
ALTER TABLE AIMESSAGE ADD COLUMN CONTENT LONGTEXT
ALTER TABLE AIMESSAGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE AIMESSAGE ADD COLUMN INPUTTOKENS BIGINT
ALTER TABLE AIMESSAGE ADD COLUMN OUTPUTTOKENS BIGINT
ALTER TABLE AIMESSAGE ADD COLUMN ROLE VARCHAR(255)
ALTER TABLE AIMESSAGE ADD COLUMN CONVERSATION_ID BIGINT
ALTER TABLE AIMESSAGE ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN AGEINMONTHSFROM BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN AGEINMONTHSTO BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN DOSE DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN DURATION DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FAVOURITETYPE INTEGER
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FROMDAYS DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FROMKG DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN INDOOR TINYINT(1) default 0
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN ISSUE DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN ORDERNO DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN SEX VARCHAR(255)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN TEMPLATEFROM DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN TEMPLATETO DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN TODAYS DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN TOKG DOUBLE
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN TYPE VARCHAR(255)
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN DOSEUNIT_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN DURATIONUNIT_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FORDEPARTMENT_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FORINSTITUTION_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FORITEM_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FORWEBUSER_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN FREQUENCYUNIT_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN ISSUEUNIT_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN PARENT_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE ANALYZERMESSAGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ANALYZERMESSAGE ADD COLUMN MESSAGE LONGTEXT
ALTER TABLE ANALYZERMESSAGE ADD COLUMN MESSAGEID VARCHAR(255)
ALTER TABLE ANALYZERMESSAGE ADD COLUMN MESSAGETYPE VARCHAR(255)
ALTER TABLE ANALYZERMESSAGE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE ANALYZERMESSAGE ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE AGENTSFEES ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AGENTSFEES ADD COLUMN AGENT_ID BIGINT
ALTER TABLE AGENTSFEES ADD COLUMN FEE_ID BIGINT
ALTER TABLE AGENTSFEES ADD COLUMN SERVICESESSION_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN EDITEDAT DATETIME
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN NEWVALIDATOR VARCHAR(255)
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN INVESTIGATIONITEM_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN INVESTIGATIONVALIDATOR_ID BIGINT
ALTER TABLE INVESTIGATIONVALIDATERCOMPONENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILL ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILL ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE BILL ADD COLUMN ACCEPTEDAT DATETIME
ALTER TABLE BILL ADD COLUMN AGENTREFNO VARCHAR(255)
ALTER TABLE BILL ADD COLUMN APPOINTMENTAT DATETIME
ALTER TABLE BILL ADD COLUMN APPROVEAT DATETIME
ALTER TABLE BILL ADD COLUMN BALANCE DOUBLE
ALTER TABLE BILL ADD COLUMN BILLCLASSTYPE VARCHAR(255)
ALTER TABLE BILL ADD COLUMN BILLCLOSED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN BILLDATE DATE
ALTER TABLE BILL ADD COLUMN BILLPAYMENTCOMPLETELYSETTLED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN BILLTIME DATETIME
ALTER TABLE BILL ADD COLUMN BILLTOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN BILLTYPE VARCHAR(255)
ALTER TABLE BILL ADD COLUMN BILLTYPEATOMIC VARCHAR(255)
ALTER TABLE BILL ADD COLUMN BILLERFEE DOUBLE
ALTER TABLE BILL ADD COLUMN BOOKINGID VARCHAR(255)
ALTER TABLE BILL ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN CASHBALANCE DOUBLE
ALTER TABLE BILL ADD COLUMN CASHPAID DOUBLE
ALTER TABLE BILL ADD COLUMN CATID VARCHAR(255)
ALTER TABLE BILL ADD COLUMN CCBALANCEAFTERTRANSACTION DOUBLE
ALTER TABLE BILL ADD COLUMN CCBALANCEBEFORETRANSACTION DOUBLE
ALTER TABLE BILL ADD COLUMN CCEXCESSAMOUNT DOUBLE
ALTER TABLE BILL ADD COLUMN CCTOTALCENTERVALUE DOUBLE
ALTER TABLE BILL ADD COLUMN CCTOTALRECEIVED DOUBLE
ALTER TABLE BILL ADD COLUMN CCTRANSACTIONAMOUNT DOUBLE
ALTER TABLE BILL ADD COLUMN CHEQUEDATE DATE
ALTER TABLE BILL ADD COLUMN CHEQUEREFNO VARCHAR(255)
ALTER TABLE BILL ADD COLUMN CLAIMABLETOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN COLLCTINGCENTREFEE DOUBLE
ALTER TABLE BILL ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE BILL ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE BILL ADD COLUMN CONFIRMEDFINALBILL TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN CONSIGNMENT TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILL ADD COLUMN CREDITBILL TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN CREDITCARDREFNO VARCHAR(255)
ALTER TABLE BILL ADD COLUMN CREDITDURATION INTEGER
ALTER TABLE BILL ADD COLUMN DEPARTMENTTYPE VARCHAR(255)
ALTER TABLE BILL ADD COLUMN DEPTID VARCHAR(255)
ALTER TABLE BILL ADD COLUMN DISCOUNT DOUBLE
ALTER TABLE BILL ADD COLUMN DISCOUNTPERCENT DOUBLE
ALTER TABLE BILL ADD COLUMN DUPLICATEPRINTEDAT DATETIME
ALTER TABLE BILL ADD COLUMN DUPLICATEDPRINTED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN EDITEDAT DATETIME
ALTER TABLE BILL ADD COLUMN EXPENSETOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN EXPENSESTOTALCONSIDEREDFORCOSTING DOUBLE
ALTER TABLE BILL ADD COLUMN EXPENSESTOTALNOTCONSIDEREDFORCOSTING DOUBLE
ALTER TABLE BILL ADD COLUMN EXTERNALDOCTOR VARCHAR(255)
ALTER TABLE BILL ADD COLUMN FINALBILLVERSIONSERIAL INTEGER
ALTER TABLE BILL ADD COLUMN FREEVALUE DOUBLE
ALTER TABLE BILL ADD COLUMN FROMDATE DATETIME
ALTER TABLE BILL ADD COLUMN FULLRETURNED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN FULLRETURNEDAT DATETIME
ALTER TABLE BILL ADD COLUMN FULLYISSUED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN FULLYISSUEDAT DATETIME
ALTER TABLE BILL ADD COLUMN GRANTTOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN GRNNETTOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN HOSPITALFEE DOUBLE
ALTER TABLE BILL ADD COLUMN INDICATION LONGTEXT
ALTER TABLE BILL ADD COLUMN INSID VARCHAR(255)
ALTER TABLE BILL ADD COLUMN INVOICEDATE DATE
ALTER TABLE BILL ADD COLUMN INVOICENUMBER VARCHAR(255)
ALTER TABLE BILL ADD COLUMN IPOPORCC VARCHAR(255)
ALTER TABLE BILL ADD COLUMN LOCALNUMBER VARCHAR(255)
ALTER TABLE BILL ADD COLUMN MARGIN DOUBLE
ALTER TABLE BILL ADD COLUMN NETTOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN PAID TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN PAIDAMOUNT DOUBLE
ALTER TABLE BILL ADD COLUMN PAIDAT DATETIME
ALTER TABLE BILL ADD COLUMN PAYMENTAPPROVALCOMMENTS LONGTEXT
ALTER TABLE BILL ADD COLUMN PAYMENTAPPROVED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN PAYMENTAPPROVEDAT DATETIME
ALTER TABLE BILL ADD COLUMN PAYMENTBREAKDOWN LONGTEXT
ALTER TABLE BILL ADD COLUMN PAYMENTCOMPLETED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN PAYMENTCOMPLETEDAT DATETIME
ALTER TABLE BILL ADD COLUMN PAYMENTCOMPLETIONCOMMENTS LONGTEXT
ALTER TABLE BILL ADD COLUMN PAYMENTGENERATED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN PAYMENTGENERATEDAT DATETIME
ALTER TABLE BILL ADD COLUMN PAYMENTGENERATIONCOMMENTS LONGTEXT
ALTER TABLE BILL ADD COLUMN PAYMENTMEMO LONGTEXT
ALTER TABLE BILL ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE BILL ADD COLUMN PERFORMINSTITUTIONFEE DOUBLE
ALTER TABLE BILL ADD COLUMN PRINTED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN PRINTEDAT DATETIME
ALTER TABLE BILL ADD COLUMN PRIORITY VARCHAR(255)
ALTER TABLE BILL ADD COLUMN PROFESSIONALFEE DOUBLE
ALTER TABLE BILL ADD COLUMN QTY DOUBLE
ALTER TABLE BILL ADD COLUMN QUTATIONNUMBER VARCHAR(255)
ALTER TABLE BILL ADD COLUMN REACTIVATED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN REFERENCENUMBER VARCHAR(255)
ALTER TABLE BILL ADD COLUMN REFUNDAMOUNT DOUBLE
ALTER TABLE BILL ADD COLUMN REFUNDED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN RELEASEDAT DATETIME
ALTER TABLE BILL ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BILL ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILL ADD COLUMN SALEVALUE DOUBLE
ALTER TABLE BILL ADD COLUMN SERVICECHARGE DOUBLE
ALTER TABLE BILL ADD COLUMN SESSIONID VARCHAR(255)
ALTER TABLE BILL ADD COLUMN SETTLEDAMOUNTBYPATIENT DOUBLE
ALTER TABLE BILL ADD COLUMN SETTLEDAMOUNTBYSPONSOR DOUBLE
ALTER TABLE BILL ADD COLUMN SMSED TINYINT(1) default 0
ALTER TABLE BILL ADD COLUMN SMSEDAT DATETIME
ALTER TABLE BILL ADD COLUMN STAFFFEE DOUBLE
ALTER TABLE BILL ADD COLUMN STATUS INTEGER
ALTER TABLE BILL ADD COLUMN SURGERYBILLTYPE VARCHAR(255)
ALTER TABLE BILL ADD COLUMN TAX DOUBLE
ALTER TABLE BILL ADD COLUMN TENDEREDAMOUNT DOUBLE
ALTER TABLE BILL ADD COLUMN TODATE DATETIME
ALTER TABLE BILL ADD COLUMN TOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN TOTALCENTERFEE DOUBLE
ALTER TABLE BILL ADD COLUMN TOTALHOSPITALFEE DOUBLE
ALTER TABLE BILL ADD COLUMN TOTALSTAFFFEE DOUBLE
ALTER TABLE BILL ADD COLUMN VAT DOUBLE
ALTER TABLE BILL ADD COLUMN VATPLUSNETTOTAL DOUBLE
ALTER TABLE BILL ADD COLUMN VOUCHERNO BIGINT
ALTER TABLE BILL ADD COLUMN APPROVEUSER_ID BIGINT
ALTER TABLE BILL ADD COLUMN BACKWARDREFERENCEBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN BANK_ID BIGINT
ALTER TABLE BILL ADD COLUMN BILLPACKEGE_ID BIGINT
ALTER TABLE BILL ADD COLUMN BILLEDBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN CANCELLEDBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE BILL ADD COLUMN CHIEFHOUSEHOLDER_ID BIGINT
ALTER TABLE BILL ADD COLUMN COLLECTINGCENTRE_ID BIGINT
ALTER TABLE BILL ADD COLUMN COMPLETEDBY_ID BIGINT
ALTER TABLE BILL ADD COLUMN CREATER_ID BIGINT
ALTER TABLE BILL ADD COLUMN CREDITCOMPANY_ID BIGINT
ALTER TABLE BILL ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE BILL ADD COLUMN DUPLICATEPRINTEDUSER_ID BIGINT
ALTER TABLE BILL ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE BILL ADD COLUMN FORWARDREFERENCEBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN FROMDEPARTMENT_ID BIGINT
ALTER TABLE BILL ADD COLUMN FROMINSTITUTION_ID BIGINT
ALTER TABLE BILL ADD COLUMN FROMSTAFF_ID BIGINT
ALTER TABLE BILL ADD COLUMN FROMWEBUSER_ID BIGINT
ALTER TABLE BILL ADD COLUMN FULLRETURNEDBY_ID BIGINT
ALTER TABLE BILL ADD COLUMN FULLYISSUEDBY_ID BIGINT
ALTER TABLE BILL ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE BILL ADD COLUMN ITEM_ID BIGINT
ALTER TABLE BILL ADD COLUMN MEMBERFAMILY_ID BIGINT
ALTER TABLE BILL ADD COLUMN MEMBERSHIPSCHEME_ID BIGINT
ALTER TABLE BILL ADD COLUMN PAIDBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE BILL ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE BILL ADD COLUMN PAYMENTAPPROVEDBY_ID BIGINT
ALTER TABLE BILL ADD COLUMN PAYMENTCOMPLETEDBY_ID BIGINT
ALTER TABLE BILL ADD COLUMN PAYMENTGENERATEDBY_ID BIGINT
ALTER TABLE BILL ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE BILL ADD COLUMN PAYMENTSCHEMEINSTITUTION_ID BIGINT
ALTER TABLE BILL ADD COLUMN PERSON_ID BIGINT
ALTER TABLE BILL ADD COLUMN PREVIOUSVERSION_ID BIGINT
ALTER TABLE BILL ADD COLUMN PRINTEDUSER_ID BIGINT
ALTER TABLE BILL ADD COLUMN PROCEDURE_ID BIGINT
ALTER TABLE BILL ADD COLUMN REACTIVATEDBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN REFERENCEBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN REFERENCEINSTITUTION_ID BIGINT
ALTER TABLE BILL ADD COLUMN REFERREDBY_ID BIGINT
ALTER TABLE BILL ADD COLUMN REFERREDBYINSTITUTION_ID BIGINT
ALTER TABLE BILL ADD COLUMN REFERRINGDEPARTMENT_ID BIGINT
ALTER TABLE BILL ADD COLUMN REFUNDEDBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILL ADD COLUMN SINGLEBILLITEM_ID BIGINT
ALTER TABLE BILL ADD COLUMN SINGLEBILLSESSION_ID BIGINT
ALTER TABLE BILL ADD COLUMN SITE_ID BIGINT
ALTER TABLE BILL ADD COLUMN SMSEDUSER_ID BIGINT
ALTER TABLE BILL ADD COLUMN STAFF_ID BIGINT
ALTER TABLE BILL ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE BILL ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE BILL ADD COLUMN TOSTAFF_ID BIGINT
ALTER TABLE BILL ADD COLUMN TOWEBUSER_ID BIGINT
ALTER TABLE BILL ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE BILL ADD COLUMN BANKACCOUNT_ID BIGINT
ALTER TABLE BILL ADD COLUMN BILLFINANCEDETAILS_ID BIGINT UNIQUE
ALTER TABLE BILL ADD COLUMN CASHTRANSACTION_ID BIGINT
ALTER TABLE BILL ADD COLUMN CURRENTREQUEST_ID BIGINT
ALTER TABLE BILL ADD COLUMN ONLINEBOOKING_ID BIGINT
ALTER TABLE BILL ADD COLUMN PHARMACYBILL_ID BIGINT
ALTER TABLE BILL ADD COLUMN STOCKBILL_ID BIGINT
ALTER TABLE FEEVALUE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FEEVALUE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FEEVALUE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FEEVALUE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FEEVALUE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FEEVALUE ADD COLUMN TOTALVALUEFORFOREIGNERS DOUBLE
ALTER TABLE FEEVALUE ADD COLUMN TOTALVALUEFORLOCALS DOUBLE
ALTER TABLE FEEVALUE ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE FEEVALUE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FEEVALUE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE FEEVALUE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE FEEVALUE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE FEEVALUE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN AFTERADJUSTMENTEXPIRY DATE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN AFTERADJUSTMENTVALUE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN BEFOREADJUSTMENTEXPIRY DATE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN BEFOREADJUSTMENTVALUE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN CHASSISNO VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN CODE VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN COLOUR VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN COMPLETEDFREEQTY DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN COMPLETEDQTY DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN COSTRATE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN COSTRATEPACK DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN COSTVALUE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN DEPRECITIONRATE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN DOE DATE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN ENGINENO VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN FREEQTY DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN FREEQTYPACKS DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN LASTPURCHASERATE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN LASTPURCHASERATEPACK DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN MODEL VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN NUMBEROFACCESSORIES INTEGER
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN OTHERNOTES LONGTEXT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN PURCHASERATE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN PURCHASERATEPACK DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN PURCHASERATEPACKVALUE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN PURCHASEVALUE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN QTY DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN QTYPACKS DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN REGISTRATIONNO VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN REMAININGFREEQTY DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN REMAININGFREEQTYPACK DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN REMAININGQTY DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN REMAININGQTYPACK DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETAILPACKVALUE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETAILRATE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETAILRATEPACK DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETAILVALUE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETIRECOMMENTS LONGTEXT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN SERIALNO VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN STRINGVALUE VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN TOTALACQUICITIONCOST DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN WARRENTYCERTIFICATENUMBER VARCHAR(255)
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN WARRENTYDURATION BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN WHOLESALERATE DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN WHOLESALERATEPACK DOUBLE
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN ARCHIVEDITEMBATCH_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN ITEMBATCH_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN MAKE_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN MANUFACTURER_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN STAFFSTOCK_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN STOCK_ID BIGINT
ALTER TABLE PHARMACEUTICALBILLITEM ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DEPARTMENT ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE DEPARTMENT ADD COLUMN ACTIVE TINYINT(1) default 0
ALTER TABLE DEPARTMENT ADD COLUMN ADDRESS VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN CODE VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DEPARTMENT ADD COLUMN DEPARTMENTCODE VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN DEPARTMENTTYPE VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE DEPARTMENT ADD COLUMN EMAIL VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN FAX VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN INACTIVE TINYINT(1) default 0
ALTER TABLE DEPARTMENT ADD COLUMN MARGIN DOUBLE
ALTER TABLE DEPARTMENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN PHARMACYMARGINFROMPURCHASERATE DOUBLE
ALTER TABLE DEPARTMENT ADD COLUMN PRINTINGNAME VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DEPARTMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DEPARTMENT ADD COLUMN SVGCHILDVIEW LONGTEXT
ALTER TABLE DEPARTMENT ADD COLUMN SVGPARENTVIEW LONGTEXT
ALTER TABLE DEPARTMENT ADD COLUMN TELEPHONE1 VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN TELEPHONE2 VARCHAR(255)
ALTER TABLE DEPARTMENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN LABDEPARTMENT_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN LABINSTITUTION_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN SAMPLEDEPARTMENT_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN SAMPLEINSTITUTION_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN SITE_ID BIGINT
ALTER TABLE DEPARTMENT ADD COLUMN SUPERDEPARTMENT_ID BIGINT
ALTER TABLE PRICE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PRICE ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE PRICE ADD COLUMN PRICE DOUBLE
ALTER TABLE PRICE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PRICE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PRICE ADD COLUMN ITEMBATCH_ID BIGINT
ALTER TABLE SHIFT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SHIFT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SHIFT ADD COLUMN DAYOFF TINYINT(1) default 0
ALTER TABLE SHIFT ADD COLUMN DAYTYPE VARCHAR(255)
ALTER TABLE SHIFT ADD COLUMN ENDINGTIME TIME
ALTER TABLE SHIFT ADD COLUMN FIRSTSHIFT TINYINT(1) default 0
ALTER TABLE SHIFT ADD COLUMN GROUPED TINYINT(1) default 0
ALTER TABLE SHIFT ADD COLUMN HALFSHIFT TINYINT(1) default 0
ALTER TABLE SHIFT ADD COLUMN HIDESHIFT TINYINT(1) default 0
ALTER TABLE SHIFT ADD COLUMN LASTSHIFT TINYINT(1) default 0
ALTER TABLE SHIFT ADD COLUMN LEAVEHOURFULL DOUBLE
ALTER TABLE SHIFT ADD COLUMN LEAVEHOURHALF DOUBLE
ALTER TABLE SHIFT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE SHIFT ADD COLUMN REPEATEDDAY INTEGER
ALTER TABLE SHIFT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SHIFT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SHIFT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SHIFT ADD COLUMN SHIFTDURATION DOUBLE
ALTER TABLE SHIFT ADD COLUMN SHIFTORDER INTEGER
ALTER TABLE SHIFT ADD COLUMN STARTINGTIME TIME
ALTER TABLE SHIFT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SHIFT ADD COLUMN NEXTSHIFT_ID BIGINT
ALTER TABLE SHIFT ADD COLUMN PREVIOUSSHIFT_ID BIGINT
ALTER TABLE SHIFT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE SHIFT ADD COLUMN ROSTER_ID BIGINT
ALTER TABLE SHIFT ADD COLUMN SHIFT_ID BIGINT
ALTER TABLE SHIFT ADD COLUMN SHIFTPREFERENCE_ID BIGINT
ALTER TABLE SHIFTAMENDMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SHIFTAMENDMENT ADD COLUMN COMMENTS VARCHAR(255)
ALTER TABLE SHIFTAMENDMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SHIFTAMENDMENT ADD COLUMN FROMDATE DATE
ALTER TABLE SHIFTAMENDMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SHIFTAMENDMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SHIFTAMENDMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SHIFTAMENDMENT ADD COLUMN TODATE DATE
ALTER TABLE SHIFTAMENDMENT ADD COLUMN APPROVED_ID BIGINT
ALTER TABLE SHIFTAMENDMENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SHIFTAMENDMENT ADD COLUMN FROMSHIFT_ID BIGINT
ALTER TABLE SHIFTAMENDMENT ADD COLUMN REFERENCESHIFTAMENDMENT_ID BIGINT
ALTER TABLE SHIFTAMENDMENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE SHIFTAMENDMENT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE SHIFTAMENDMENT ADD COLUMN TOSHIFT_ID BIGINT
ALTER TABLE HISTORICALRECORD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE HISTORICALRECORD ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE HISTORICALRECORD ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE HISTORICALRECORD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE HISTORICALRECORD ADD COLUMN FROMDATETIME DATETIME
ALTER TABLE HISTORICALRECORD ADD COLUMN HISTORICALRECORDTYPE VARCHAR(255)
ALTER TABLE HISTORICALRECORD ADD COLUMN RECORDDATE DATE
ALTER TABLE HISTORICALRECORD ADD COLUMN RECORDDATETIME DATETIME
ALTER TABLE HISTORICALRECORD ADD COLUMN RECORDVALUE DOUBLE
ALTER TABLE HISTORICALRECORD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE HISTORICALRECORD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE HISTORICALRECORD ADD COLUMN STARTEDAT DATETIME
ALTER TABLE HISTORICALRECORD ADD COLUMN TODATETIME DATETIME
ALTER TABLE HISTORICALRECORD ADD COLUMN VARIABLENAME VARCHAR(255)
ALTER TABLE HISTORICALRECORD ADD COLUMN COLLECTIONCENTRE_ID BIGINT
ALTER TABLE HISTORICALRECORD ADD COLUMN CREATEDBY_ID BIGINT
ALTER TABLE HISTORICALRECORD ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE HISTORICALRECORD ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE HISTORICALRECORD ADD COLUMN RETIREDBY_ID BIGINT
ALTER TABLE HISTORICALRECORD ADD COLUMN SITE_ID BIGINT
ALTER TABLE HISTORICALRECORD ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE STAFF ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFF ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE STAFF ADD COLUMN ACNO VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN ACCOUNTNO VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN ALLOWEDEARLYOUTLEAVE TINYINT(1) default 0
ALTER TABLE STAFF ADD COLUMN ALLOWEDLATEINLEAVE TINYINT(1) default 0
ALTER TABLE STAFF ADD COLUMN ANNUALWELFAREQUALIFIED DOUBLE
ALTER TABLE STAFF ADD COLUMN ANNUALWELFAREUTILIZED DOUBLE
ALTER TABLE STAFF ADD COLUMN BAIMAGE LONGBLOB
ALTER TABLE STAFF ADD COLUMN CHARGE DOUBLE
ALTER TABLE STAFF ADD COLUMN CODE VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN CODEINTERGER INTEGER
ALTER TABLE STAFF ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFF ADD COLUMN CREDITLIMITQUALIFIED DOUBLE
ALTER TABLE STAFF ADD COLUMN CURRENTCREDITVALUE DOUBLE
ALTER TABLE STAFF ADD COLUMN DATEJOINED DATE
ALTER TABLE STAFF ADD COLUMN DATELEFT DATE
ALTER TABLE STAFF ADD COLUMN DATERETIRED DATE
ALTER TABLE STAFF ADD COLUMN DATEWITHOUTNOTICE DATE
ALTER TABLE STAFF ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE STAFF ADD COLUMN EMPLOYEELEAVINGSTATUS VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN EMPLOYEESTATUS VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN EPFACCOUNTNO VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN EPFNO VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN FILENAME VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN FILETYPE VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN ORDERNO INTEGER
ALTER TABLE STAFF ADD COLUMN PAYINGMETHOD VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN QUALIFICATION LONGTEXT
ALTER TABLE STAFF ADD COLUMN REGISTRATION VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFF ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFF ADD COLUMN SALARYPAYMENTMETHOD VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN SIGNATUREURL LONGTEXT
ALTER TABLE STAFF ADD COLUMN STAFFCODE VARCHAR(255)
ALTER TABLE STAFF ADD COLUMN STAFFWELFAREPERIOD INTEGER
ALTER TABLE STAFF ADD COLUMN WITHOUTNOTICE TINYINT(1) default 0
ALTER TABLE STAFF ADD COLUMN WORKINGTIMEFORNOPAYPERWEEK DOUBLE
ALTER TABLE STAFF ADD COLUMN WORKINGTIMEFOROVERTIMEPERWEEK DOUBLE
ALTER TABLE STAFF ADD COLUMN BANKBRANCH_ID BIGINT
ALTER TABLE STAFF ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFF ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE STAFF ADD COLUMN DESIGNATION_ID BIGINT
ALTER TABLE STAFF ADD COLUMN EPFBANKBRANCH_ID BIGINT
ALTER TABLE STAFF ADD COLUMN GRADE_ID BIGINT
ALTER TABLE STAFF ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE STAFF ADD COLUMN PERSON_ID BIGINT
ALTER TABLE STAFF ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFF ADD COLUMN ROSTER_ID BIGINT
ALTER TABLE STAFF ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE STAFF ADD COLUMN STAFFCATEGORY_ID BIGINT
ALTER TABLE STAFF ADD COLUMN WORKINGDEPARTMENT_ID BIGINT
ALTER TABLE FORM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FORM ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE FORM ADD COLUMN CODE VARCHAR(255)
ALTER TABLE FORM ADD COLUMN COMMENTS VARCHAR(255)
ALTER TABLE FORM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FORM ADD COLUMN EDITEDAT DATETIME
ALTER TABLE FORM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FORM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FORM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FORM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FORM ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE FORM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE FORM ADD COLUMN APPROVEDAT DATETIME
ALTER TABLE FORM ADD COLUMN FROMTIME DATETIME
ALTER TABLE FORM ADD COLUMN TIMES VARCHAR(255)
ALTER TABLE FORM ADD COLUMN TOTIME DATETIME
ALTER TABLE FORM ADD COLUMN APPROVEDSTAFF_ID BIGINT
ALTER TABLE FORM ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE FORM ADD COLUMN FROMROSTER_ID BIGINT
ALTER TABLE FORM ADD COLUMN STAFF_ID BIGINT
ALTER TABLE FORM ADD COLUMN TOROSTER_ID BIGINT
ALTER TABLE FORM ADD COLUMN STAFFSHIFT_ID BIGINT
ALTER TABLE FORM ADD COLUMN FROMDATE DATETIME
ALTER TABLE FORM ADD COLUMN LEAVETYPE VARCHAR(255)
ALTER TABLE FORM ADD COLUMN NUMBEROFLEAVE DOUBLE
ALTER TABLE FORM ADD COLUMN REQUESTEDDATE DATETIME
ALTER TABLE FORM ADD COLUMN TODATE DATETIME
ALTER TABLE FORM ADD COLUMN SHIFT_ID BIGINT
ALTER TABLE FORM ADD COLUMN FROMSTAFF_ID BIGINT
ALTER TABLE FORM ADD COLUMN FROMSTAFFSHIFT_ID BIGINT
ALTER TABLE FORM ADD COLUMN FROMSTAFFSHIFTSECOND_ID BIGINT
ALTER TABLE FORM ADD COLUMN TOSHIFT_ID BIGINT
ALTER TABLE FORM ADD COLUMN TOSHIFTSECOND_ID BIGINT
ALTER TABLE FORM ADD COLUMN TOSTAFF_ID BIGINT
ALTER TABLE FORM ADD COLUMN TOSTAFFSHIFT_ID BIGINT
ALTER TABLE FORM ADD COLUMN TOSTAFFSHIFTSECOND_ID BIGINT
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN PRIVILEGE VARCHAR(255)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERROLEPRIVILEGE ADD COLUMN WEBUSERROLE_ID BIGINT
ALTER TABLE patientmergeaffectedrecord ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE patientmergeaffectedrecord ADD COLUMN ENTITYCLASS VARCHAR(255)
ALTER TABLE patientmergeaffectedrecord ADD COLUMN ENTITYID BIGINT
ALTER TABLE patientmergeaffectedrecord ADD COLUMN NEWPATIENTID BIGINT
ALTER TABLE patientmergeaffectedrecord ADD COLUMN OLDPATIENTID BIGINT
ALTER TABLE patientmergeaffectedrecord ADD COLUMN MERGERECORD_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CASHBOOKENTRY ADD COLUMN AGENTVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN CARDVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN CASHVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN CASHBOOKDATE DATE
ALTER TABLE CASHBOOKENTRY ADD COLUMN CHEQUEVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CASHBOOKENTRY ADD COLUMN CREDITVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN EDITEDAT DATETIME
ALTER TABLE CASHBOOKENTRY ADD COLUMN ENTRYVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN EWALLETVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTAGENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTAGENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCARDBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCARDBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCASHBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCASHBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCHEQUEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCHEQUEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCREDITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTCREDITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTEWALLETBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTEWALLETBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTIOUBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTIOUBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTONCALLBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTONCALLBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTONLINESETTLEMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTONLINESETTLEMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTPATIENTDEPOSITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTPATIENTDEPOSITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTPATIENTPOINTSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTPATIENTPOINTSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTSLIPBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTSLIPBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTSTAFFBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTSTAFFBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTSTAFFWELFAREBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTSTAFFWELFAREBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTVOUCHERBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENTVOUCHERBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONAGENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONAGENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCARDBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCARDBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCASHBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCASHBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCHEQUEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCHEQUEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCREDITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONCREDITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONEWALLETBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONEWALLETBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONIOUBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONIOUBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONONCALLBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONONCALLBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONONLINESETTLEMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONONLINESETTLEMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONPATIENTDEPOSITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONPATIENTDEPOSITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONPATIENTPOINTSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONPATIENTPOINTSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONSLIPBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONSLIPBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONSTAFFBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONSTAFFBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONSTAFFWELFAREBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONSTAFFWELFAREBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONVOUCHERBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTIONVOUCHERBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEAGENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEAGENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECARDBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECARDBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECASHBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECASHBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECHEQUEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECHEQUEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECREDITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITECREDITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEEWALLETBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEEWALLETBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEIOUBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEIOUBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEONCALLBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEONCALLBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEONLINESETTLEMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEONLINESETTLEMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEPATIENTDEPOSITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEPATIENTDEPOSITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEPATIENTPOINTSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEPATIENTPOINTSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITESLIPBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITESLIPBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITESTAFFBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITESTAFFBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITESTAFFWELFAREBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITESTAFFWELFAREBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEVOUCHERBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITEVOUCHERBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN IOUVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN MULTIPLEPAYMENTMETHODSVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN NAME VARCHAR(255)
ALTER TABLE CASHBOOKENTRY ADD COLUMN ONCALLVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN ONLINESETTLEMENTVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN PATIENTDEPOSITVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN PATIENTPOINTSVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN PAYMENTMETHOD INTEGER
ALTER TABLE CASHBOOKENTRY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CASHBOOKENTRY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CASHBOOKENTRY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CASHBOOKENTRY ADD COLUMN SLIPVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN STAFFVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN STAFFWELFAREVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTAGENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTAGENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCARDBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCARDBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCASHBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCASHBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCHEQUEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCHEQUEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCREDITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTCREDITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTEWALLETBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTEWALLETBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTIOUBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTIOUBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTONCALLBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTONCALLBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTONLINESETTLEMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTONLINESETTLEMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTPATIENTDEPOSITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTPATIENTDEPOSITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTPATIENTPOINTSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTPATIENTPOINTSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTSLIPBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTSLIPBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTSTAFFBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTSTAFFBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTSTAFFWELFAREBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTSTAFFWELFAREBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTVOUCHERBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENTVOUCHERBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONAGENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONAGENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCARDBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCARDBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCASHBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCASHBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCHEQUEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCHEQUEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCREDITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONCREDITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONEWALLETBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONEWALLETBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONIOUBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONIOUBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONONCALLBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONONCALLBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONONLINESETTLEMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONONLINESETTLEMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONPATIENTDEPOSITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONPATIENTDEPOSITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONPATIENTPOINTSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONPATIENTPOINTSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONSLIPBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONSLIPBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONSTAFFBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONSTAFFBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONSTAFFWELFAREBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONSTAFFWELFAREBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONVOUCHERBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTIONVOUCHERBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEAGENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEAGENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECARDBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECARDBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECASHBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECASHBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECHEQUEBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECHEQUEBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECREDITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITECREDITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEEWALLETBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEEWALLETBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEIOUBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEIOUBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEMULTIPLEPAYMENTMETHODSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEMULTIPLEPAYMENTMETHODSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEONCALLBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEONCALLBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEONLINESETTLEMENTBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEONLINESETTLEMENTBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEPATIENTDEPOSITBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEPATIENTDEPOSITBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEPATIENTPOINTSBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEPATIENTPOINTSBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITESLIPBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITESLIPBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITESTAFFBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITESTAFFBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITESTAFFWELFAREBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITESTAFFWELFAREBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEVOUCHERBALANCEAFTER DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITEVOUCHERBALANCEBEFORE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN VOUCHERVALUE DOUBLE
ALTER TABLE CASHBOOKENTRY ADD COLUMN BILL_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN CASHBOOK_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN EDITER_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMDEPARTMENT_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMINSTITUTION_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN FROMSITE_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN PAYMENT_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN SITE_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN TOSITE_ID BIGINT
ALTER TABLE CASHBOOKENTRY ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN PRIVILEGE VARCHAR(255)
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE WEBUSERPRIVILEGE ADD COLUMN WEBUSERROLE_ID BIGINT
ALTER TABLE AUDITEVENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AUDITEVENT ADD COLUMN AFTERJSON LONGTEXT
ALTER TABLE AUDITEVENT ADD COLUMN BEFOREJSON LONGTEXT
ALTER TABLE AUDITEVENT ADD COLUMN DEPARTMENTID BIGINT
ALTER TABLE AUDITEVENT ADD COLUMN ENTITYTYPE VARCHAR(255)
ALTER TABLE AUDITEVENT ADD COLUMN EVENTDATATIME DATETIME
ALTER TABLE AUDITEVENT ADD COLUMN EVENTDURATION BIGINT
ALTER TABLE AUDITEVENT ADD COLUMN EVENTENDTIME DATETIME
ALTER TABLE AUDITEVENT ADD COLUMN EVENTSTATUS VARCHAR(255)
ALTER TABLE AUDITEVENT ADD COLUMN EVENTTRIGGER VARCHAR(255)
ALTER TABLE AUDITEVENT ADD COLUMN HOST VARCHAR(255)
ALTER TABLE AUDITEVENT ADD COLUMN INSTITUTIONID BIGINT
ALTER TABLE AUDITEVENT ADD COLUMN IPADDRESS VARCHAR(255)
ALTER TABLE AUDITEVENT ADD COLUMN OBJECTID BIGINT
ALTER TABLE AUDITEVENT ADD COLUMN PATIENTENCOUNTERID BIGINT
ALTER TABLE AUDITEVENT ADD COLUMN URL LONGTEXT
ALTER TABLE AUDITEVENT ADD COLUMN UUID CHAR(36)
ALTER TABLE AUDITEVENT ADD COLUMN WEBUSERID BIGINT
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN PAYMENTMETHOD INTEGER
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN MEMBERSHIPSCHEME_ID BIGINT
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE RESTRICTEDPAYMENTMETHOD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PHDATE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PHDATE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PHDATE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PHDATE ADD COLUMN PHDATE DATE
ALTER TABLE PHDATE ADD COLUMN PHTYPE VARCHAR(255)
ALTER TABLE PHDATE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PHDATE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PHDATE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PHDATE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PHDATE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE REQUEST ADD COLUMN APPROVED TINYINT(1) default 0
ALTER TABLE REQUEST ADD COLUMN APPROVEDAT DATETIME
ALTER TABLE REQUEST ADD COLUMN CANCELLATIONREASON LONGTEXT
ALTER TABLE REQUEST ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE REQUEST ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE REQUEST ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE REQUEST ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE REQUEST ADD COLUMN CREATEDAT DATETIME
ALTER TABLE REQUEST ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE REQUEST ADD COLUMN REFERENCENUMBER VARCHAR(255)
ALTER TABLE REQUEST ADD COLUMN REJECTED TINYINT(1) default 0
ALTER TABLE REQUEST ADD COLUMN REJECTEDAT DATETIME
ALTER TABLE REQUEST ADD COLUMN REJECTIONREASON LONGTEXT
ALTER TABLE REQUEST ADD COLUMN REQUESTAT DATETIME
ALTER TABLE REQUEST ADD COLUMN REQUESTNO VARCHAR(255)
ALTER TABLE REQUEST ADD COLUMN REQUESTREASON LONGTEXT
ALTER TABLE REQUEST ADD COLUMN REQUESTTYPE VARCHAR(255)
ALTER TABLE REQUEST ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE REQUEST ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE REQUEST ADD COLUMN RETIREDAT DATETIME
ALTER TABLE REQUEST ADD COLUMN REVIEWED TINYINT(1) default 0
ALTER TABLE REQUEST ADD COLUMN REVIEWEDAT DATETIME
ALTER TABLE REQUEST ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE REQUEST ADD COLUMN APPROVEDBY_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN BILL_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN CANCELLEDBY_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN COMPLETEDBY_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN CREATOR_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN REJECTEDBY_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN REQUESTER_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN REVIEWEDBY_ID BIGINT
ALTER TABLE REQUEST ADD COLUMN TARGETWEBUSER_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFSHIFT ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE STAFFSHIFT ADD COLUMN AUTOLEAVE TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN CONSIDERFOREARLYOUT TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN CONSIDERFORLATEIN TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN CONSIDEREDFORSALARY TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFSHIFT ADD COLUMN DAYOFWEEK INTEGER
ALTER TABLE STAFFSHIFT ADD COLUMN DAYOFF TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN DAYTYPE VARCHAR(255)
ALTER TABLE STAFFSHIFT ADD COLUMN EARLYINLOGGED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN EARLYINVARIFIED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN EARLYOUTLOGGED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN EARLYOUTVARIFIED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN overTimeCompleteRecordLogged DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN overTimeCompleteRecordVarified DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN overTimeFromEndRecordLogged DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN overTimeFromEndRecordVarified DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN overTimeFromStartRecordLogged DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN overTimeFromStartRecordVarified DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LATEINLOGGED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LATEINVARIFIED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LATEOUTLOGGED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LATEOUTVARIFIED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LEAVETYPE VARCHAR(255)
ALTER TABLE STAFFSHIFT ADD COLUMN LEAVEDTIME DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LEAVEDTIMENOPAY DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LEAVEDTIMEOTHER DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LIEUALLOWED TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN LIEUPAID TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN LIEUPAYMENTALLOWED TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN LIEUQTY DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN LIEUQTYUTILIZED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN MULTIPLYINGFACTOROVERTIME DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN multiplyingFactor DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN basicPerSecond DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN QTY DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN REPEATEDCOUNT INTEGER
ALTER TABLE STAFFSHIFT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFSHIFT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFSHIFT ADD COLUMN SHIFTDATE DATETIME
ALTER TABLE STAFFSHIFT ADD COLUMN SHIFTENDTIME DATETIME
ALTER TABLE STAFFSHIFT ADD COLUMN SHIFTSTARTTIME DATETIME
ALTER TABLE STAFFSHIFT ADD COLUMN SLEEPINGDAY TINYINT(1) default 0
ALTER TABLE STAFFSHIFT ADD COLUMN WORKEDOUTSIDETIMEFRAMELOGGED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN WORKEDOUTSIDETIMEFRAMEVARIFIED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN WORKEDTIMELOGGED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN WORKEDTIMEVARIFIED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN WORKEDWITHINTIMEFRAMELOGGED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN WORKEDWITHINTIMEFRAMEVARIFIED DOUBLE
ALTER TABLE STAFFSHIFT ADD COLUMN WORKINGTYPE VARCHAR(255)
ALTER TABLE STAFFSHIFT ADD COLUMN ADDITIONALFORM_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN AMENDMENTFORM_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN ENDRECORD_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN LEAVEFORM_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN NEXTSTAFFSHIFT_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN PREVIOUSSTAFFSHIFT_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN REFERENCESTAFFSHIFT_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN REFERENCESTAFFSHIFTEARLYOUT_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN REFERENCESTAFFSHIFTLATEIN_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN ROSTER_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN SHIFT_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN STAFFSALARY_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN STARTRECORD_ID BIGINT
ALTER TABLE STAFFSHIFT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PROCESSINSTANCE ADD COLUMN CANCELLED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSINSTANCE ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE PROCESSINSTANCE ADD COLUMN COMPLETED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSINSTANCE ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE PROCESSINSTANCE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PROCESSINSTANCE ADD COLUMN PAUSED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSINSTANCE ADD COLUMN PAUSEDAT DATETIME
ALTER TABLE PROCESSINSTANCE ADD COLUMN REJECTED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSINSTANCE ADD COLUMN REJECTEDAT DATETIME
ALTER TABLE PROCESSINSTANCE ADD COLUMN RETIRED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSINSTANCE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PROCESSINSTANCE ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE PROCESSINSTANCE ADD COLUMN CANCELLEDBY_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN COMPLETEDBY_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN CREATOR_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN PAUSEDBY_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN PROCESSDEFINITION_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN REJECTEDBY_ID BIGINT
ALTER TABLE PROCESSINSTANCE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE REPORTTEMPLATE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE REPORTTEMPLATE ADD COLUMN BILLTYPES LONGTEXT
ALTER TABLE REPORTTEMPLATE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE REPORTTEMPLATE ADD COLUMN COLUMNS LONGTEXT
ALTER TABLE REPORTTEMPLATE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE REPORTTEMPLATE ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE REPORTTEMPLATE ADD COLUMN FILTERS LONGTEXT
ALTER TABLE REPORTTEMPLATE ADD COLUMN KEYWORDS VARCHAR(255)
ALTER TABLE REPORTTEMPLATE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE REPORTTEMPLATE ADD COLUMN ORDERNO INTEGER
ALTER TABLE REPORTTEMPLATE ADD COLUMN REPORTTEMPLATETYPE INTEGER
ALTER TABLE REPORTTEMPLATE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE REPORTTEMPLATE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE REPORTTEMPLATE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE REPORTTEMPLATE ADD COLUMN REPORT_ROWS LONGTEXT
ALTER TABLE REPORTTEMPLATE ADD COLUMN TOTALS LONGTEXT
ALTER TABLE REPORTTEMPLATE ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE REPORTTEMPLATE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE REPORTTEMPLATE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE REPORTTEMPLATE ADD COLUMN PARENT_ID BIGINT
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN ACTIONTYPE VARCHAR(255) NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN ACTIVE TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN ALLOWSMULTIPLEACTIONS TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN DESCRIPTION VARCHAR(500)
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN NAME VARCHAR(100) NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN RETIRED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN SEQUENCEORDER DOUBLE
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN VERSION VARCHAR(20) NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN CREATOR_ID BIGINT
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN DIRECTEDPROCESSSTEPDEFINITION_ID BIGINT
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN PARENT_ID BIGINT
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN PROCESSSTEPDEFINITION_ID BIGINT NOT NULL
ALTER TABLE PROCESSSTEPACTIONDEFINITION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLITEM ADD COLUMN RATE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN ADJUSTEDVALUE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN AGENTREFNO VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN BILLITEMREFUNDED TINYINT(1) default 0
ALTER TABLE BILLITEM ADD COLUMN BILLITEMSTATUS INTEGER
ALTER TABLE BILLITEM ADD COLUMN BILLTIME DATETIME
ALTER TABLE BILLITEM ADD COLUMN CATID VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN CHARGETYPEDISCOUNT DOUBLE
ALTER TABLE BILLITEM ADD COLUMN COLLECTINGCENTREFEE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN CONSIDEREDFORCOSTING TINYINT(1) default 0
ALTER TABLE BILLITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILLITEM ADD COLUMN DEPTID VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN DESCREPTION LONGTEXT
ALTER TABLE BILLITEM ADD COLUMN DISCOUNT DOUBLE
ALTER TABLE BILLITEM ADD COLUMN DISCOUNTRATE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN EDITEDAT DATETIME
ALTER TABLE BILLITEM ADD COLUMN FEEVALUE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN FROMPACKAGE TINYINT(1) default 0
ALTER TABLE BILLITEM ADD COLUMN FROMTIME DATETIME
ALTER TABLE BILLITEM ADD COLUMN GROSSVALUE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN HOSPITALFEE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN INSID VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN INSTRUCTIONS LONGTEXT
ALTER TABLE BILLITEM ADD COLUMN INWARDCHARGETYPE VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN ITEMID VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN MARGINRATE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN MARGINVALUE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN NETRATE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN NETVALUE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN OTHERFEE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN OVERRIDDENRATE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN PRIORITY VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN QTY DOUBLE
ALTER TABLE BILLITEM ADD COLUMN REAGENTFEE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN REFUNDED TINYINT(1) default 0
ALTER TABLE BILLITEM ADD COLUMN REMAININGQTY DOUBLE
ALTER TABLE BILLITEM ADD COLUMN RETIRECOMMENTS LONGTEXT
ALTER TABLE BILLITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILLITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILLITEM ADD COLUMN SEARIALNO INTEGER
ALTER TABLE BILLITEM ADD COLUMN SESSIONDATE DATE
ALTER TABLE BILLITEM ADD COLUMN SESSIONID VARCHAR(255)
ALTER TABLE BILLITEM ADD COLUMN STAFFFEE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN TOTIME DATETIME
ALTER TABLE BILLITEM ADD COLUMN VAT DOUBLE
ALTER TABLE BILLITEM ADD COLUMN VATPERCENTAGE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN VATPLUSNETVALUE DOUBLE
ALTER TABLE BILLITEM ADD COLUMN BILL_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN EXPENSEBILL_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN PARENTBILLITEM_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN PEFORMEDDEPARTMENT_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN PRICEMATRIX_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN PRIMARYSTAFF_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN REFERENCEBILL_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN REQUESTEDFROMDEPARTMENT_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN REQUESTEDTODEPARTMENT_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN SOURCEPACKAGEITEM_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN BILLITEMFINANCEDETAILS_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN PAIDFORBILLFEE_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN PRESCRIPTION_ID BIGINT
ALTER TABLE BILLITEM ADD COLUMN REFERANCEBILLITEM_ID BIGINT
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN ROOMFACILITYCHARGE_ID BIGINT
ALTER TABLE ROOMFACILITYTIMEDITEM ADD COLUMN TIMEDITEM_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLFEE ADD COLUMN FEEAT DATETIME
ALTER TABLE BILLFEE ADD COLUMN COMPLETEDPAYMENT TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILLFEE ADD COLUMN EDITEDAT DATETIME
ALTER TABLE BILLFEE ADD COLUMN FEEADJUSTED DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEECOLLECTEDBYDOCTOR TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN FEEDISCOUNT DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEGROSSVALUE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEMARGIN DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEPAYMENTHOLDDATETIME DATETIME
ALTER TABLE BILLFEE ADD COLUMN FEEPAYMENTHOLDNOTES LONGTEXT
ALTER TABLE BILLFEE ADD COLUMN FEEPAYMENTONHOLD TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN FEEUNITDISCOUNT DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEUNITGROSSVALUE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEUNITMARGIN DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEUNITVALUE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEVALUE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEVAT DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FEEVATPLUSVALUE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN FREEOFCHARGE TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN FROMPACKAGE TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN FULLYSETTLED TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN ORDERNO INTEGER
ALTER TABLE BILLFEE ADD COLUMN OVERRIDDENRATE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN PAIDVALUE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BILLFEE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILLFEE ADD COLUMN RETURNED TINYINT(1) default 0
ALTER TABLE BILLFEE ADD COLUMN SETTLEVALUE DOUBLE
ALTER TABLE BILLFEE ADD COLUMN BILL_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN CHILDENCOUNTER_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN FEE_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN FEEPAYMENTHOLDBY_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN PATIENENCOUNTER_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN PATIENTITEM_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN PRICEMATRIX_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN REFERENCEBILLFEE_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN REFERENCEBILLITEM_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN REFERENCEPATIENTROOM_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN SOURCEPACKAGEITEM_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE BILLFEE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CANCELLCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN COLLECTED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SAMPLECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SAMPLEOUTSIDE TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SAMPLEDAT DATETIME
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SEPARATED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN BILL_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CANCELLDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CANCELLINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CANCELLEDUSER_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN INVESTIGATIONCOMPONANT_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN MACHINE_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN PATIENTSAMPLE_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SAMPLE_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SAMPLECOLLECTER_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SAMPLEDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SAMPLEINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN SEPARATEDFROM_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN TEST_ID BIGINT
ALTER TABLE PATIENTSAMPLECOMPONANT ADD COLUMN TUBE_ID BIGINT
ALTER TABLE FEE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FEE ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE FEE ADD COLUMN BOOLEANVALUE TINYINT(1) default 0
ALTER TABLE FEE ADD COLUMN CCFEE DOUBLE
ALTER TABLE FEE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE FEE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FEE ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE FEE ADD COLUMN DISCOUNTALLOWED TINYINT(1) default 0
ALTER TABLE FEE ADD COLUMN EDITEDAT DATETIME
ALTER TABLE FEE ADD COLUMN FEE DOUBLE
ALTER TABLE FEE ADD COLUMN FEETYPE VARCHAR(255)
ALTER TABLE FEE ADD COLUMN FFEE DOUBLE
ALTER TABLE FEE ADD COLUMN MARGINALLOWED TINYINT(1) default 0
ALTER TABLE FEE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE FEE ADD COLUMN PRIMARYFEE TINYINT(1) default 0
ALTER TABLE FEE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FEE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FEE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FEE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FEE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE FEE ADD COLUMN EDITER_ID BIGINT
ALTER TABLE FEE ADD COLUMN FORCATEGORY_ID BIGINT
ALTER TABLE FEE ADD COLUMN FORDEPARTMENT_ID BIGINT
ALTER TABLE FEE ADD COLUMN FORINSTITUTION_ID BIGINT
ALTER TABLE FEE ADD COLUMN FROMDEPARTMENT_ID BIGINT
ALTER TABLE FEE ADD COLUMN FROMINSTITUTION_ID BIGINT
ALTER TABLE FEE ADD COLUMN FROMSPECIALITY_ID BIGINT
ALTER TABLE FEE ADD COLUMN FROMSTAFF_ID BIGINT
ALTER TABLE FEE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE FEE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE FEE ADD COLUMN PACKEGE_ID BIGINT
ALTER TABLE FEE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE FEE ADD COLUMN SERVICESESSION_ID BIGINT
ALTER TABLE FEE ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE FEE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE FEE ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE FEE ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE FEE ADD COLUMN TOSPACIALITY_ID BIGINT
ALTER TABLE FEE ADD COLUMN TOSTAFF_ID BIGINT
ALTER TABLE FEE ADD COLUMN DURATIONDAYSFORMOCHARGE BIGINT
ALTER TABLE FEE ADD COLUMN DURATIONHOURS DOUBLE
ALTER TABLE FEE ADD COLUMN OVERSHOOTHOURS DOUBLE
ALTER TABLE FEE ADD COLUMN REPEATING TINYINT(1) default 0
ALTER TABLE FEE ADD COLUMN SORTORDER INTEGER
ALTER TABLE FEE ADD COLUMN SESSION_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AGGREGATEDRECORD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE AGGREGATEDRECORD ADD COLUMN FROMDATE DATE
ALTER TABLE AGGREGATEDRECORD ADD COLUMN `key` VARCHAR(255)
ALTER TABLE AGGREGATEDRECORD ADD COLUMN RECORDDATE DATE
ALTER TABLE AGGREGATEDRECORD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE AGGREGATEDRECORD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE AGGREGATEDRECORD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE AGGREGATEDRECORD ADD COLUMN TODATE DATE
ALTER TABLE AGGREGATEDRECORD ADD COLUMN VALUE DOUBLE
ALTER TABLE AGGREGATEDRECORD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN FROMDEPARTMENT_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN FROMINSTITUTION_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN FROMSTAFF_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN FROMWEBUSER_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN STAFF_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN TOSTAFF_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN TOWEBUSER_ID BIGINT
ALTER TABLE AGGREGATEDRECORD ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN ACTIVITYCOMPLETED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN APPOINTMENTACTIVITY_ID BIGINT
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN SESSIONINSTANCE_ID BIGINT
ALTER TABLE SESSIONINSTANCEACTIVITY ADD COLUMN BILLSESSION_ID BIGINT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CAPTURECOMPONENT ADD COLUMN BOOLEANVALUE TINYINT(1) default 0
ALTER TABLE CAPTURECOMPONENT ADD COLUMN BYTEARRAYVALUE LONGBLOB
ALTER TABLE CAPTURECOMPONENT ADD COLUMN COMPONENTDATATYPE VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN COMPONENTPRESENTATIONTYPE VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CAPTURECOMPONENT ADD COLUMN DATEVALUE DATETIME
ALTER TABLE CAPTURECOMPONENT ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN DOUBLEVALUE DOUBLE
ALTER TABLE CAPTURECOMPONENT ADD COLUMN EDITHTML LONGTEXT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN INTVALUE INTEGER
ALTER TABLE CAPTURECOMPONENT ADD COLUMN LONGTEXTVALUE LONGTEXT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN LONGVALUE BIGINT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN MAXRATING INTEGER
ALTER TABLE CAPTURECOMPONENT ADD COLUMN max_value DOUBLE
ALTER TABLE CAPTURECOMPONENT ADD COLUMN min_value DOUBLE
ALTER TABLE CAPTURECOMPONENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN OFFLABEL VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN ONLABEL VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN PLACEHOLDER VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN RATINGINTVALUE INTEGER
ALTER TABLE CAPTURECOMPONENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CAPTURECOMPONENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CAPTURECOMPONENT ADD COLUMN SHORTTEXTVALUE VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN STEPSIZE DOUBLE
ALTER TABLE CAPTURECOMPONENT ADD COLUMN TYPE VARCHAR(255)
ALTER TABLE CAPTURECOMPONENT ADD COLUMN VIEWHTML LONGTEXT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN DESIGNCOMPONENT_ID BIGINT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN ITEMVALUE_ID BIGINT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN PARENT_ID BIGINT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN PATIENTFORMENTRY_ID BIGINT
ALTER TABLE CAPTURECOMPONENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFWORKDAY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFWORKDAY ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFWORKDAY ADD COLUMN HOLIDAY INTEGER
ALTER TABLE STAFFWORKDAY ADD COLUMN SATURDAY INTEGER
ALTER TABLE STAFFWORKDAY ADD COLUMN SUNDAY INTEGER
ALTER TABLE STAFFWORKDAY ADD COLUMN TODATE DATE
ALTER TABLE STAFFWORKDAY ADD COLUMN WEEKDAYS INTEGER
ALTER TABLE STAFFWORKDAY ADD COLUMN WORKHOUR DOUBLE
ALTER TABLE STAFFWORKDAY ADD COLUMN STAFF_ID BIGINT
ALTER TABLE USERSTOCKCONTAINER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE USERSTOCKCONTAINER ADD COLUMN CREATEDAT DATETIME
ALTER TABLE USERSTOCKCONTAINER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE USERSTOCKCONTAINER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE USERSTOCKCONTAINER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE USERSTOCKCONTAINER ADD COLUMN CREATER_ID BIGINT
ALTER TABLE USERSTOCKCONTAINER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN COMMENTS VARCHAR(255)
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN COMPONANTVALUE DOUBLE
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN EPFCOMPANYVALUE DOUBLE
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN EPFVALUE DOUBLE
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN ETFCOMPANYVALUE DOUBLE
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN ETFVALUE DOUBLE
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN LASTEDITEDAT DATE
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN PAID TINYINT(1) default 0
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN PAIDAT DATETIME
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN LASTEDITOR_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN PAIDBY_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN SALARYCYCLE_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN STAFFPAYSHEETCOMPONENT_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN STAFFPAYSHEETCOMPONENTPERCENTAGE_ID BIGINT
ALTER TABLE STAFFSALARYCOMPONANT ADD COLUMN STAFFSALARY_ID BIGINT
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN ORDERAMOUNT DOUBLE
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN ORDERID VARCHAR(255)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN ORDERSTATUS VARCHAR(255)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN SESSIONID VARCHAR(255)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN TRANSACTIONID VARCHAR(255)
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN BILL_ID BIGINT
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PAYMENTGATEWAYTRANSACTION ADD COLUMN SESSIONINSTANCE_ID BIGINT
ALTER TABLE USERNOTIFICATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE USERNOTIFICATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE USERNOTIFICATION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE USERNOTIFICATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE USERNOTIFICATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE USERNOTIFICATION ADD COLUMN SEEN TINYINT(1) default 0
ALTER TABLE USERNOTIFICATION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE USERNOTIFICATION ADD COLUMN NOTIFICATION_ID BIGINT
ALTER TABLE USERNOTIFICATION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE USERNOTIFICATION ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE USERNOTIFICATION ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTREPORT ADD COLUMN APPROVEAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN APPROVECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN APPROVED TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN AUTOMATED TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN AUTOMATEDAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN CANCELLCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN DATAENTERED TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN DATAENTRYAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN DATAENTRYCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN HANDOVERCOMPLETE TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN PATIENTAGE VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN PATIENTGENDER VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN PATIENTNAME VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN PRINTCOMPLETE TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN PRINTED TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN PRINTINGAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN PRINTINGCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN QRCODECONTENTSDETAILED LONGTEXT
ALTER TABLE PATIENTREPORT ADD COLUMN QRCODECONTENTSLINK LONGTEXT
ALTER TABLE PATIENTREPORT ADD COLUMN REPORTTYPE VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN REQUIRESIMMEDIATEDOCTORREVIEW TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN RETURNCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN RETURNED TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN RETURNEDAT DATETIME
ALTER TABLE PATIENTREPORT ADD COLUMN SAMPLEIDS VARCHAR(255)
ALTER TABLE PATIENTREPORT ADD COLUMN SENDEMAILCOMPLETE TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN SENDSMSCOMPLETE TINYINT(1) default 0
ALTER TABLE PATIENTREPORT ADD COLUMN STATUS INTEGER
ALTER TABLE PATIENTREPORT ADD COLUMN APPROVEDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN APPROVEINSTITUTION_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN APPROVEUSER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN AUTOMATEDANALYZER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN AUTOMATEDDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN AUTOMATEDDEPARTMENTANALYZER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN AUTOMATEDINSTITUTION_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN AUTOMATEDUSER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN CANCELLDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN CANCELLINSTITUTION_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN CANCELLEDUSER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN DATAENTRYDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN DATAENTRYINSTITUTION_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN DATAENTRYUSER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN ITEM_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN PRINTINGDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN PRINTINGINSTITUTION_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN PRINTINGUSER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN REPORTFORMAT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN RETURNDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN RETURNINSTITUTION_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN RETURNEDUSER_ID BIGINT
ALTER TABLE PATIENTREPORT ADD COLUMN UPLOADEDREPORT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTSAMPLE ADD COLUMN BARCODEGENERATED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN BARCODEGENERATEDAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN CANCELLCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTSAMPLE ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN OUTSOURCED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN OUTSOURCEDAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN PRIORITY INTEGER
ALTER TABLE PATIENTSAMPLE ADD COLUMN READYTOSENTTOANALYZER TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN RECEIVEDFROMANALYZER TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN RECEIVEDFROMANALYZERAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN RECEIVEDFROMANALYZERCOMMENTS LONGTEXT
ALTER TABLE PATIENTSAMPLE ADD COLUMN REQUESTRECOLLECTED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTSAMPLE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLECOLLECTED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLECOLLECTEDAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLECOLLECTEDOUTSIDE TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLECOLLECTIONCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLEID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLERECEIVEDATLAB TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLERECEIVEDATLABAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLERECEIVEDATLABCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLEREJECTED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLEREJECTEDAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLEREJECTIONCOMMENT VARCHAR(255)
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLEREQUESTTYPE VARCHAR(255)
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLESENT TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLESENTAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN SENTTOANALYZER TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN SENTTOANALYZERAT DATETIME
ALTER TABLE PATIENTSAMPLE ADD COLUMN SENTTOANALYZERCOMMENTS LONGTEXT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SEPARATED TINYINT(1) default 0
ALTER TABLE PATIENTSAMPLE ADD COLUMN STATUS INTEGER
ALTER TABLE PATIENTSAMPLE ADD COLUMN BARCODEGENERATEDDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN BARCODEGENERATEDINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN BARCODEGENERATOR_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN BILL_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN CANCELLDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN CANCELLINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN CANCELLEDUSER_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN DIVERTEDFROM_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN DIVERTEDTO_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN DUPLICATEDFROM_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN DUPLICATEDTO_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN INVESTIGATIONCOMPONANT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN MACHINE_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN OUTSOURCEDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN OUTSOURCEINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN OUTSOURCESAMPLETRANSPORTER_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN OUTSOURCESENTUSER_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN RECEIVEDFROMANALYZERBY_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN RECEIVEDFROMANALYZERDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN RECEIVEDFROMANALYZERINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN REFERENCESAMPLE_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLE_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLECOLLECTEDDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLECOLLECTEDINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLECOLLECTER_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLERECEIVEDATLABDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLERECEIVEDATLABINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLERECEIVERATLAB_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLEREJECTEDBY_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLESENTBY_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLESENTTODEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLESENTTOINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SAMPLETRANSPORTEDTOLABBYSTAFF_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SENTTOANALYZERBY_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SENTTOANALYZERDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SENTTOANALYZERINSTITUTION_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN SEPARATEDFROM_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN TEST_ID BIGINT
ALTER TABLE PATIENTSAMPLE ADD COLUMN TUBE_ID BIGINT
ALTER TABLE ITEMMAPPING ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ITEMMAPPING ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ITEMMAPPING ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEMMAPPING ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEMMAPPING ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ITEMMAPPING ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE ITEMMAPPING ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE ITEMMAPPING ADD COLUMN ITEM_ID BIGINT
ALTER TABLE ITEMMAPPING ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE AREA ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AREA ADD COLUMN CREATEDAT DATETIME
ALTER TABLE AREA ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE AREA ADD COLUMN NAME VARCHAR(255)
ALTER TABLE AREA ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE AREA ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE AREA ADD COLUMN RETIREDAT DATETIME
ALTER TABLE AREA ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE AREA ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE AREA ADD COLUMN CREATER_ID BIGINT
ALTER TABLE AREA ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE AREA ADD COLUMN SUPERAREA_ID BIGINT
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN GROUPNAME VARCHAR(255)
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE PATIENTREPORTGROUP ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN PAYMENTMETHOD INTEGER
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN MEMBERSHIPSCHEME_ID BIGINT
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE ALLOWEDPAYMENTMETHOD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INVESTIGATIONCOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INVESTIGATIONCOMPONENT ADD COLUMN COMPONENTNAME VARCHAR(255)
ALTER TABLE INVESTIGATIONCOMPONENT ADD COLUMN INVESTIGATION_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ACTIVITYINSTRUCTIONS LONGTEXT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ADJUSTEDTOTAL DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN AMOUNTDUEATFINALPROCESSING DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN BHTLONG BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN BHTNO VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN BMI DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CLAIMABLE TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CLINICALDISCHARGEDATETIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CLINICALLYDISCHARGED TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CONVERTEDTOANOTHERENCOUNTER TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CREDITLIMIT DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CREDITPAIDAMOUNT DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CREDITUSEDAMOUNT DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DATEOFADMISSION DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DATEOFDISCHARGE DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DBP BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DIETINSTRUCTIONS LONGTEXT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DISCHARGED TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DISCOUNT DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DISCOUNTAVAILABLEATFINALPROCESSING DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ENCOUNTERDATE DATE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ENCOUNTERDATETIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ENCOUNTERID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ENCOUNTERREGISTRATIONFLAG VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ENCOUNTERTYPE INTEGER
ALTER TABLE PATIENTENCOUNTER ADD COLUMN FOLLOWUPPLAN LONGTEXT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN FORIEGNER TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN FROMTIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN GRANTTOTAL DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN HEIGHT DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN LASTPROCESSAT DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN NETTOTAL DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN NURSINGDISCHARGEDATETIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN NURSINGDISCHARGENOTES LONGTEXT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN NURSINGDISCHARGED TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PATIENTENCOUNTERTYPE VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PAYMENTFINALIZED TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PFR INTEGER
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PHYSICALDISCHARGEDATETIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PHYSICALDISCHARGED TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PLANOFACTION LONGTEXT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN POLICYNO VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PR BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PRINTINGADMISSIONTIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PRINTINGDISCHARGETIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PROFESSIONALPAYMENTSHOLDDATETIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PROFESSIONALPAYMENTSHOLDNOTES LONGTEXT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PROFESSIONALPAYMENTSONHOLD TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERANCENO VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERRALID VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERRINGMETHOD VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN RESPIRATORYRATE INTEGER
ALTER TABLE PATIENTENCOUNTER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ROOMADMITTED TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ROOMDISCHARGEDATETIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN SATURATION DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN SBP BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN TEMPERATURE DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN TIMEOFADMISSION DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN TIMEOFDISCHARGE DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN TOTIME DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN TOTALATFINALPROCESSING DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN TOTALCOMPANYPAIDATFINALPROCESSING DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN TOTALPATIENTPAIDATFINALPROCESSING DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN VISITWEIGHT DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN WEIGHT DOUBLE
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ADMISSIONTYPE_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN BILLSESSION_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CLINICALDISCHARGEDBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CREDITCOMPANY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN CURRENTPATIENTROOM_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN DISCHARGECONDITION_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ENCOUNTERRESERVATION_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN FINALBILL_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN GUARDIAN_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN GUARDIANRELATIONSHIPTOPATIENT_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN INPATIENTPACKAGE_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ITEM_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN LASTPROCESSBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN NURSINGDISCHARGEDBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN OPDDOCTOR_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PARENTENCOUNTER_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PHYSICALDISCHARGEDBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PRIMARYREASON_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PROFESSIONALPAYMENTSHOLDBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERREDBYINSTITUTION_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERRINGCONSULTANT_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERRINGDOCTOR_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERRINGPERSON_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN REFERRINGSTAFF_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN ROOMDISCHARGEDBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN WORKPLACE_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCANCEL TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCANCELAT DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCANCELREASON VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCOMPLETE TINYINT(1) default 0
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCOMPLETEAT DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTDATE DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTNUMBER VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTTIMEFROM DATETIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTTIMETO TIME
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTTYPE VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCANCELBILL_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCANCELBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN APPOINTMENTCOMPLETEBY_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN SCHEDULEINSTANCE_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN BILL_ID BIGINT
ALTER TABLE PATIENTENCOUNTER ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN ORDERNO INTEGER
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN INVESTIGATIONITEM_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN DISPLAYFLAGMESSAGE TINYINT(1) default 0
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN DISPLAYHIGHMESSAGE TINYINT(1) default 0
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN DISPLAYLOWMESSAGE TINYINT(1) default 0
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN DISPLAYNORMALMESSAGE TINYINT(1) default 0
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN FLAGMESSAGE LONGTEXT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN FROMAGE BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN FROMVAL DOUBLE
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN HIGHMESSAGE LONGTEXT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN LOWMESSAGE LONGTEXT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN NORMALMESSAGE LONGTEXT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN SEX VARCHAR(255)
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN TOAGE BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN TOVAL DOUBLE
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN INVESTIGATIONITEMOFFLAGTYPE_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN INVESTIGATIONITEMOFLABELTYPE_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN INVESTIGATIONITEMOFVALUETYPE_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE INVESTIGATIONITEMVALUE ADD COLUMN INVESTIGATIONITEMVALUECATEGORY_ID BIGINT
ALTER TABLE PATIENTFORMENTRY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTFORMENTRY ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE PATIENTFORMENTRY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTFORMENTRY ADD COLUMN EDITEDAT DATETIME
ALTER TABLE PATIENTFORMENTRY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTFORMENTRY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTFORMENTRY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTFORMENTRY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTFORMENTRY ADD COLUMN DESIGNCOMPONENT_ID BIGINT
ALTER TABLE PATIENTFORMENTRY ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE PATIENTFORMENTRY ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE PATIENTFORMENTRY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE REORDER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE REORDER ADD COLUMN BUFFERSTOCKS DOUBLE
ALTER TABLE REORDER ADD COLUMN DEMANDINUNITSPERDAY DOUBLE
ALTER TABLE REORDER ADD COLUMN GENERICORDERING TINYINT(1) default 0
ALTER TABLE REORDER ADD COLUMN LEADTIMEINDAYS INTEGER
ALTER TABLE REORDER ADD COLUMN MONTHSCONSIDEREDFORSHORTTERMANALYSIS INTEGER
ALTER TABLE REORDER ADD COLUMN PURCHASECYCLEDURATIONINDAYS INTEGER
ALTER TABLE REORDER ADD COLUMN ROL DOUBLE
ALTER TABLE REORDER ADD COLUMN ROQ DOUBLE
ALTER TABLE REORDER ADD COLUMN SERVICELEVEL DOUBLE
ALTER TABLE REORDER ADD COLUMN YEARSCONSIDEREDFORLOGNTERMANALYSIS INTEGER
ALTER TABLE REORDER ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE REORDER ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE REORDER ADD COLUMN ITEM_ID BIGINT
ALTER TABLE REORDER ADD COLUMN PERSON_ID BIGINT
ALTER TABLE REORDER ADD COLUMN SUPPLIER_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INSTITUTION ADD COLUMN COLLECTINGCENTREPAYMENTMETHOD VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN ACCOUNTNO VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN ADDRESS VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN AGENTBALANCE DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN ALLOWEDCREDIT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN ALLOWEDCREDITLIMIT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN BALLANCE DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN BANKNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN BRANCHNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN CASHIERBILLHEADING LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN CHEQUEPRINTINGNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN CODE VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN COMPANYBALANCE DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN CONTACTPERSONNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE INSTITUTION ADD COLUMN DEFAULTINSTITUTION TINYINT(1) default 0
ALTER TABLE INSTITUTION ADD COLUMN DESCREPTION LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN EMAIL VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN EMAILSENDINGPASSWORD VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN EMAILSENDINGUSERNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN FAX VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN INACTIVE TINYINT(1) default 0
ALTER TABLE INSTITUTION ADD COLUMN INSTITUTIONCODE VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN INSTITUTIONTYPE VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN INWARDDISCOUNT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN LABBILLDISCOUNT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN LABBILLHEADING LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN LEGALCOMPANY VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN MAXCREDITLIMIT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN MOBILE VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN NAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN OPDBILLDISCOUNT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN OPDBILLHEADING LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN OWNEREMAIL VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN OWNERNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN PAYMENTCOMPANYNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN PERCENTAGE DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN PHARMACYBILLHEADING LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN PHARMACYDISCOUNT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN PHONE VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN POINTOFISSUENO VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN QBSUPPLIERNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN RADIOLOGYBILLHEADING LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE INSTITUTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE INSTITUTION ADD COLUMN SMSSENDINGALIAS VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN SMSSENDINGPASSWORD VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN SMSSENDINGUSERNAME VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN STANDARDCREDITLIMIT DOUBLE
ALTER TABLE INSTITUTION ADD COLUMN SVGCHILDVIEW LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN SVGPARENTVIEW LONGTEXT
ALTER TABLE INSTITUTION ADD COLUMN WEB VARCHAR(255)
ALTER TABLE INSTITUTION ADD COLUMN BANKBRANCH_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN CONTACTPERSON_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN FEELISTTYPE_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN LABDEPARTMENT_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN LABINSTITUTION_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN PARENTINSTITUTION_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INSTITUTION ADD COLUMN ROUTE_ID BIGINT
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERPAYMENTSCHEME ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE LABTESTHISTORY ADD COLUMN ANALYZERRECEIVEMESSAGE VARCHAR(255)
ALTER TABLE LABTESTHISTORY ADD COLUMN COMMENT VARCHAR(255)
ALTER TABLE LABTESTHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE LABTESTHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE LABTESTHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE LABTESTHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE LABTESTHISTORY ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE LABTESTHISTORY ADD COLUMN TESTHISTORYTYPE VARCHAR(255)
ALTER TABLE LABTESTHISTORY ADD COLUMN ANALYZER_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN CREATEDBY_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN EMAIL_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN FROMDEPARTMENT_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN PATIENTSAMPLE_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN RETIREDBY_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN SAMPLECOMPONENT_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN SMS_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN STAFF_ID BIGINT
ALTER TABLE LABTESTHISTORY ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN AGENTDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN AGENTHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN AGENTVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CARDDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CARDHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CARDVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CASHDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CASHHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CASHVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CHEQUEDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CHEQUEHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CHEQUEVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CREDITDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CREDITHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CREDITVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN EWALLETDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN EWALLETHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN EWALLETVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN FLOATBALANCEVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN FLOATINVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN FLOATOUTVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN IOUDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN IOUHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN IOUVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN MULTIPLEPAYMENTMETHODSDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN MULTIPLEPAYMENTMETHODSHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN MULTIPLEPAYMENTMETHODSVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN NONEDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN NONEHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN NONEVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN ONCALLDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN ONCALLHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN ONCALLVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN ONLINESETTLEMENTDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN ONLINESETTLEMENTHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN ONLINESETTLEMENTVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN PATIENTDEPOSITDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN PATIENTDEPOSITHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN PATIENTDEPOSITVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN PATIENTPOINTSDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN PATIENTPOINTSHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN PATIENTPOINTSVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN SLIPDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN SLIPHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN SLIPVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN STAFFDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN STAFFHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN STAFFVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN STAFFWELFAREDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN STAFFWELFAREHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN STAFFWELFAREVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN VOUCHERDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN VOUCHERHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN VOUCHERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN YOUOWEMEDIFFERENCE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN YOUOWEMEHANDOVERVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN YOUOWEMEVALUE DOUBLE
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DETAILEDFINANCIALBILL ADD COLUMN BILL_ID BIGINT
ALTER TABLE WEBUSERROUTE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERROUTE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERROUTE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERROUTE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERROUTE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERROUTE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERROUTE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERROUTE ADD COLUMN ROUTE_ID BIGINT
ALTER TABLE WEBUSERROUTE ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE AICONVERSATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AICONVERSATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE AICONVERSATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE AICONVERSATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE AICONVERSATION ADD COLUMN TITLE VARCHAR(255)
ALTER TABLE AICONVERSATION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE AICONVERSATION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE AICONVERSATION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE AICONVERSATION ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE FAMILYMEMBER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FAMILYMEMBER ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FAMILYMEMBER ADD COLUMN EDITEDAT DATETIME
ALTER TABLE FAMILYMEMBER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FAMILYMEMBER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FAMILYMEMBER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FAMILYMEMBER ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FAMILYMEMBER ADD COLUMN EDITER_ID BIGINT
ALTER TABLE FAMILYMEMBER ADD COLUMN FAMILY_ID BIGINT
ALTER TABLE FAMILYMEMBER ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE FAMILYMEMBER ADD COLUMN RELATIONTOCHH_ID BIGINT
ALTER TABLE FAMILYMEMBER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PERSONINSTITUTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PERSONINSTITUTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PERSONINSTITUTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PERSONINSTITUTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PERSONINSTITUTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PERSONINSTITUTION ADD COLUMN TYPE VARCHAR(255)
ALTER TABLE PERSONINSTITUTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PERSONINSTITUTION ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PERSONINSTITUTION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PERSONINSTITUTION ADD COLUMN PERSON_ID BIGINT
ALTER TABLE PERSONINSTITUTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PERSONINSTITUTION ADD COLUMN STAFF_ID BIGINT
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN LASTPROCESSCOMPLETED TINYINT(1) default 0
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN LASTRUNENDED DATETIME
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN LASTRUNSTARTED DATETIME
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN LASTSUPPOSEDAT DATETIME
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN NEXTSUPPOSEDAT DATETIME
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN SCHEDULEDFREQUENCY VARCHAR(255)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN SCHEDULEDPROCESS VARCHAR(255)
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN CREATEDBY_ID BIGINT
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN RETIREDBY_ID BIGINT
ALTER TABLE SCHEDULEDPROCESSCONFIGURATION ADD COLUMN SITE_ID BIGINT
ALTER TABLE ADMISSIONNUMBER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ADMISSIONNUMBER ADD COLUMN ADMISSIONTYPEENUM VARCHAR(255)
ALTER TABLE ADMISSIONNUMBER ADD COLUMN LASTADMISSIONNUMBER BIGINT
ALTER TABLE ADMISSIONNUMBER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ADMISSIONNUMBER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ADMISSIONNUMBER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ADMISSIONNUMBER ADD COLUMN ADMISSIONTYPE_ID BIGINT
ALTER TABLE ADMISSIONNUMBER ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE ADMISSIONNUMBER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN ACTIVE TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN DESCRIPTION VARCHAR(500)
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN NAME VARCHAR(100) NOT NULL
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN RETIRED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN SEQUENCEORDER DOUBLE
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN VERSION VARCHAR(20) NOT NULL
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN CREATOR_ID BIGINT
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN PARENT_ID BIGINT
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN PROCESSDEFINITION_ID BIGINT NOT NULL
ALTER TABLE PROCESSSTEPDEFINITION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DESIGNCOMPONENTCHOICE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DESIGNCOMPONENTCHOICE ADD COLUMN LABEL VARCHAR(255)
ALTER TABLE DESIGNCOMPONENTCHOICE ADD COLUMN ORDERNO INTEGER
ALTER TABLE DESIGNCOMPONENTCHOICE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DESIGNCOMPONENTCHOICE ADD COLUMN VALUE VARCHAR(255)
ALTER TABLE DESIGNCOMPONENTCHOICE ADD COLUMN DESIGNCOMPONENT_ID BIGINT
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN AUTOGENERATE TINYINT(1) default 0
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN CONTENTS LONGTEXT
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN DEFAULTTEMPLATE TINYINT(1) default 0
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN SUBJECT VARCHAR(255)
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN TYPE INTEGER
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE DOCUMENTTEMPLATE ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN AFTERQTY DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN AFTEREXPIRYDATE DATE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN AFTERPURCHASERATE DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN AFTERRETAILRATE DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN AFTERWHOLESALERATE DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN EDITEDAT DATETIME
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN EXPIRYDATE DATE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN PURCHASERATE DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN QTY DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN RETAILRATE DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN WHOLESALERATE DOUBLE
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN EDITER_ID BIGINT
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ADJUSTMENTBILLITEM ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN BOOKEDCOUNT INTEGER
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN ENDTIME TIME
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN INSTANCEDATE DATE
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN MAXCOUNT INTEGER
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN STARTTIME TIME
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN CANCELLEDBY_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULEINSTANCE ADD COLUMN TEMPLATE_ID BIGINT
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN ROSTER_ID BIGINT
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN SHIFT_ID BIGINT
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN STAFF_ID BIGINT
ALTER TABLE STAFFSHIFTHISTORY ADD COLUMN STAFFSHIFT_ID BIGINT
ALTER TABLE CASHBOOK ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CASHBOOK ADD COLUMN NAME VARCHAR(255)
ALTER TABLE CASHBOOK ADD COLUMN AGENTBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN CARDBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN CASHBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN CHEQUEBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CASHBOOK ADD COLUMN CREDITBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN EDITEDAT DATETIME
ALTER TABLE CASHBOOK ADD COLUMN EWALLETBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN IOUBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN MULTIPLEPAYMENTMETHODSBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN NONEBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN ONCALLBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN ONLINESETTLEMENTBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN PATIENTDEPOSITBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN PATIENTPOINTSBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CASHBOOK ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CASHBOOK ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CASHBOOK ADD COLUMN SLIPBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN STAFFBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN STAFFWELFAREBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN VOUCHERBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN YOUOWEMEBALANCE DOUBLE
ALTER TABLE CASHBOOK ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CASHBOOK ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE CASHBOOK ADD COLUMN EDITER_ID BIGINT
ALTER TABLE CASHBOOK ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE CASHBOOK ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE CASHBOOK ADD COLUMN SITE_ID BIGINT
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN PACKEGE_ID BIGINT
ALTER TABLE MEDICALPACKAGEITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN ALLPATIENTSDEPOSITBALANCEFORALLINSTITUTIONS DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN ALLPATIENTSDEPOSITBALANCEFORDEPARTMENT DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN ALLPATIENTSDEPOSITBALANCEFORINSTITUTION DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN ALLPATIENTSDEPOSITBALANCEFORSITE DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN BALANCEAFTERTRANSACTION DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN BALANCEBEFORETRANSACTION DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN COMMENT VARCHAR(255)
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN HISTORYTYPE INTEGER
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN PATIENTDEPOSITBALANCEFORALLINSTITUTIONS DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN PATIENTDEPOSITBALANCEFORINSTITUTION DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN PATIENTDEPOSITBALANCEFORSITE DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN REFERENCENUMBER VARCHAR(255)
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN TRANSACTIONVALUE DOUBLE
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN BILL_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN BILLSESSION_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN PATIENTDEPOSIT_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTDEPOSITHISTORY ADD COLUMN SITE_ID BIGINT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN ID BIGINT NOT NULL
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN ARCHIVEDAT DATETIME
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN BATCHNO VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN CHASSISNO VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN COLOUR VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN COSTRATE DOUBLE
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN DATEOFEXPIRE DATETIME
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN DATEOFMANUFACTURE DATETIME
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN DEPRECITIONRATE DOUBLE
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN ENGINENO VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN MODAL VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN NUMBEROFACCESSORIES INTEGER
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN OTHERNOTES LONGTEXT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN PURCAHSERATE DOUBLE
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN REGISTRATIONNO VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN RETAILSALERATE DOUBLE
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN SERIALNO VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN TOTALACQUICITIONCOST DOUBLE
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN WARRENTYCERTIFICATENUMBER VARCHAR(255)
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN WARRENTYDURATION BIGINT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN WHOLESALERATE DOUBLE
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN LASTPURCHASEBILLITEM_ID BIGINT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN MAKE_ID BIGINT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN MANUFACTURER_ID BIGINT
ALTER TABLE ITEMBATCHARCHIVE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STOCKARCHIVE ADD COLUMN ID BIGINT NOT NULL
ALTER TABLE STOCKARCHIVE ADD COLUMN ARCHIVEDAT DATETIME
ALTER TABLE STOCKARCHIVE ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE STOCKARCHIVE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE STOCKARCHIVE ADD COLUMN DATEOFEXPIRE DATE
ALTER TABLE STOCKARCHIVE ADD COLUMN ENDBARCODE BIGINT
ALTER TABLE STOCKARCHIVE ADD COLUMN ITEMNAME VARCHAR(255)
ALTER TABLE STOCKARCHIVE ADD COLUMN LONGCODE BIGINT
ALTER TABLE STOCKARCHIVE ADD COLUMN RETAILSALERATE DOUBLE
ALTER TABLE STOCKARCHIVE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STOCKARCHIVE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STOCKARCHIVE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STOCKARCHIVE ADD COLUMN STARTBARCODE BIGINT
ALTER TABLE STOCKARCHIVE ADD COLUMN STOCK DOUBLE
ALTER TABLE STOCKARCHIVE ADD COLUMN STOCKLOCATOR VARCHAR(255)
ALTER TABLE STOCKARCHIVE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE STOCKARCHIVE ADD COLUMN ITEMBATCH_ID BIGINT
ALTER TABLE STOCKARCHIVE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STOCKARCHIVE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE BILLNUMBER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLNUMBER ADD COLUMN APPOINTMENTTYPE VARCHAR(255)
ALTER TABLE BILLNUMBER ADD COLUMN BILLCLASSTYPE VARCHAR(255)
ALTER TABLE BILLNUMBER ADD COLUMN BILLTYPE VARCHAR(255)
ALTER TABLE BILLNUMBER ADD COLUMN BILLTYPEATOMIC VARCHAR(255)
ALTER TABLE BILLNUMBER ADD COLUMN BILLYEAR INTEGER
ALTER TABLE BILLNUMBER ADD COLUMN LASTBILLNUMBER BIGINT
ALTER TABLE BILLNUMBER ADD COLUMN OPDANDINPATIENTSERVICEBATCHBILLS TINYINT(1) default 0
ALTER TABLE BILLNUMBER ADD COLUMN OPDANDINPATIENTSERVICEBILLS TINYINT(1) default 0
ALTER TABLE BILLNUMBER ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE BILLNUMBER ADD COLUMN REQUESTTYPE VARCHAR(255)
ALTER TABLE BILLNUMBER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BILLNUMBER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILLNUMBER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILLNUMBER ADD COLUMN VOUCHERNUMBER TINYINT(1) default 0
ALTER TABLE BILLNUMBER ADD COLUMN ADMISSIONTYPE_ID BIGINT
ALTER TABLE BILLNUMBER ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE BILLNUMBER ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE BILLNUMBER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLNUMBER ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN LOGINPAGE VARCHAR(255)
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERDEFAULTLOGINPAGE ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE CONFIGOPTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CONFIGOPTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CONFIGOPTION ADD COLUMN ENUMTYPE VARCHAR(255)
ALTER TABLE CONFIGOPTION ADD COLUMN ENUMVALUE VARCHAR(255)
ALTER TABLE CONFIGOPTION ADD COLUMN OPTIONKEY VARCHAR(255)
ALTER TABLE CONFIGOPTION ADD COLUMN OPTIONVALUE LONGTEXT
ALTER TABLE CONFIGOPTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CONFIGOPTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CONFIGOPTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CONFIGOPTION ADD COLUMN SCOPE VARCHAR(255)
ALTER TABLE CONFIGOPTION ADD COLUMN VALUETYPE VARCHAR(255)
ALTER TABLE CONFIGOPTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CONFIGOPTION ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE CONFIGOPTION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE CONFIGOPTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE CONFIGOPTION ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN ACTIVE TINYINT(1) default 0
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN BOOKNUMBER DOUBLE
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN CREATEDAT DATETIME
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN DEACTIVATE TINYINT(1) default 0
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN EDITEDAT DATETIME
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN ENDINGREFERENCENUMBER DOUBLE
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN FULLYUTILIZED TINYINT(1) default 0
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN REFERENCEBOOKENUM VARCHAR(255)
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN RETIREDAT DATETIME
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN STARTINGREFERENCENUMBER DOUBLE
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN STRBOOKNUMBER VARCHAR(255)
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN CREATER_ID BIGINT
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN EDITOR_ID BIGINT
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE AGENTREFERENCEBOOK ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE MRNNUMBER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE MRNNUMBER ADD COLUMN LASTMRNNUMBER BIGINT
ALTER TABLE MRNNUMBER ADD COLUMN YEAR INTEGER
ALTER TABLE DENOMINATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DENOMINATION ADD COLUMN CODE VARCHAR(255)
ALTER TABLE DENOMINATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DENOMINATION ADD COLUMN DENOMINATIONVALUE DOUBLE
ALTER TABLE DENOMINATION ADD COLUMN DISPLAYNAME VARCHAR(255)
ALTER TABLE DENOMINATION ADD COLUMN NAME VARCHAR(255)
ALTER TABLE DENOMINATION ADD COLUMN ORDERNUMBER DOUBLE
ALTER TABLE DENOMINATION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DENOMINATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DENOMINATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DENOMINATION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DENOMINATION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN TODATE DATE
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN STAFFEMPLOYMENT_ID BIGINT
ALTER TABLE STAFFSTAFFCATEGORY ADD COLUMN STAFFCATEGORY_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FINGERPRINTRECORD ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE FINGERPRINTRECORD ADD COLUMN allowedOverTime TINYINT(1) default 0
ALTER TABLE FINGERPRINTRECORD ADD COLUMN APPROVECOMMENTS VARCHAR(255)
ALTER TABLE FINGERPRINTRECORD ADD COLUMN APPROVED TINYINT(1) default 0
ALTER TABLE FINGERPRINTRECORD ADD COLUMN APPROVEDAT DATETIME
ALTER TABLE FINGERPRINTRECORD ADD COLUMN COMMENTS VARCHAR(255)
ALTER TABLE FINGERPRINTRECORD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FINGERPRINTRECORD ADD COLUMN DAYTYPE VARCHAR(255)
ALTER TABLE FINGERPRINTRECORD ADD COLUMN FINGERPRINTRECORDTYPE VARCHAR(255)
ALTER TABLE FINGERPRINTRECORD ADD COLUMN RECORDTIMESTAMP DATETIME
ALTER TABLE FINGERPRINTRECORD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FINGERPRINTRECORD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FINGERPRINTRECORD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FINGERPRINTRECORD ADD COLUMN TIMES VARCHAR(255)
ALTER TABLE FINGERPRINTRECORD ADD COLUMN APPROVER_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN ROSTER_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN STAFF_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN STAFFSHIFT_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN LOGGEDRECORD_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN SESSIONDATE DATE
ALTER TABLE FINGERPRINTRECORD ADD COLUMN SERVICESESSION_ID BIGINT
ALTER TABLE FINGERPRINTRECORD ADD COLUMN SESSIONINSTANCE_ID BIGINT
ALTER TABLE NOTIFICATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE NOTIFICATION ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE NOTIFICATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE NOTIFICATION ADD COLUMN MESSAGE LONGTEXT
ALTER TABLE NOTIFICATION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE NOTIFICATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE NOTIFICATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE NOTIFICATION ADD COLUMN TRIGGERTYPE INTEGER
ALTER TABLE NOTIFICATION ADD COLUMN BILL_ID BIGINT
ALTER TABLE NOTIFICATION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE NOTIFICATION ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE NOTIFICATION ADD COLUMN PATIENTROOM_ID BIGINT
ALTER TABLE NOTIFICATION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN DENOMINATIONQTY BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN DENOMINATIONVALUE DOUBLE
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN BILL_ID BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN CANCELLEDBY_ID BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN DENOMINATION_ID BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN DETAILEDFINANCIALBILL_ID BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN PAYMENT_ID BIGINT
ALTER TABLE DENOMINATIONTRANSACTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN ADMINSTRATIONCHARGE DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN LINENCHARGE DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN MAINTANANCECHARGE DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN MEDICALCARECHARGE DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN MOCHARGE DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN MOCHARGEFORAFTERDURATION DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN NURSINGCHARGE DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN ORDERNO INTEGER
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN ROOMCHARGE DOUBLE
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN COMPANY_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN PAYMENTSCHEME_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN ROOM_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN ROOMCATEGORY_ID BIGINT
ALTER TABLE ROOMFACILITYCHARGE ADD COLUMN TIMEDITEMFEE_ID BIGINT
ALTER TABLE ISSUERATEMARGINS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ISSUERATEMARGINS ADD COLUMN ATPURCHASERATE TINYINT(1) default 0
ALTER TABLE ISSUERATEMARGINS ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ISSUERATEMARGINS ADD COLUMN NAME VARCHAR(255)
ALTER TABLE ISSUERATEMARGINS ADD COLUMN RATEFORCONSUMABLES DOUBLE
ALTER TABLE ISSUERATEMARGINS ADD COLUMN RATEFORINVENTORY DOUBLE
ALTER TABLE ISSUERATEMARGINS ADD COLUMN RATEFORPHARMACEUTICALS DOUBLE
ALTER TABLE ISSUERATEMARGINS ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ISSUERATEMARGINS ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ISSUERATEMARGINS ADD COLUMN SHOWRATES TINYINT(1) default 0
ALTER TABLE ISSUERATEMARGINS ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ISSUERATEMARGINS ADD COLUMN FROMDEPARTMENT_ID BIGINT
ALTER TABLE ISSUERATEMARGINS ADD COLUMN FROMINSTITUTION_ID BIGINT
ALTER TABLE ISSUERATEMARGINS ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ISSUERATEMARGINS ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE ISSUERATEMARGINS ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE ITEMSCATEGORIES ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ITEMSCATEGORIES ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ITEMSCATEGORIES ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ITEMSCATEGORIES ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEMSCATEGORIES ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEMSCATEGORIES ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE ITEMSCATEGORIES ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ITEMSCATEGORIES ADD COLUMN ITEM_ID BIGINT
ALTER TABLE ITEMSCATEGORIES ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ONLINEBOOKING ADD COLUMN ABSENT TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN ADDRESS VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN APPOINMENTTOTALAMOUNT DOUBLE
ALTER TABLE ONLINEBOOKING ADD COLUMN CANCELED TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN CANCELLEDBY VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN COMMENT VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ONLINEBOOKING ADD COLUMN DOCTORFEE DOUBLE
ALTER TABLE ONLINEBOOKING ADD COLUMN EDITED TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN EDITEDAT DATETIME
ALTER TABLE ONLINEBOOKING ADD COLUMN EMAIL VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN FOREIGNSTATUS TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN HOSPITALFEE DOUBLE
ALTER TABLE ONLINEBOOKING ADD COLUMN NEEDSMS TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN NETTOTALFORONLINEBOOKING DOUBLE
ALTER TABLE ONLINEBOOKING ADD COLUMN NIC VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN NSR TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN ONLINEBOOKINGPAYMENT DOUBLE
ALTER TABLE ONLINEBOOKING ADD COLUMN ONLINEBOOKINGSTATUS VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN PAID TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN PAIDTOHOSPITAL TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN PAIDTOHOSPITALBILLCANCELLEDAT DATETIME
ALTER TABLE ONLINEBOOKING ADD COLUMN PAIDTOHOSPITALDATE DATETIME
ALTER TABLE ONLINEBOOKING ADD COLUMN PATIENTNAME VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN PHONENO VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN REFERENCENO VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN REQUESTIP VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ONLINEBOOKING ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ONLINEBOOKING ADD COLUMN TITLE VARCHAR(255)
ALTER TABLE ONLINEBOOKING ADD COLUMN AGENCY_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN HOSPITAL_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN PAIDTOHOSPITALBILL_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN PAIDTOHOSPITALBILLCANCELLEDBY_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN PAIDTOHOSPITALCANCELLEDBILL_ID BIGINT
ALTER TABLE ONLINEBOOKING ADD COLUMN PAIDTOHOSPITALPROCESSEDBY_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FORMITEMVALUE ADD COLUMN BAIMAGE LONGBLOB
ALTER TABLE FORMITEMVALUE ADD COLUMN DOUBLEVALUE DOUBLE
ALTER TABLE FORMITEMVALUE ADD COLUMN FILENAME VARCHAR(255)
ALTER TABLE FORMITEMVALUE ADD COLUMN FILETYPE VARCHAR(255)
ALTER TABLE FORMITEMVALUE ADD COLUMN LOBVALUE LONGTEXT
ALTER TABLE FORMITEMVALUE ADD COLUMN LONGVALUE BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN STRVALUE VARCHAR(255)
ALTER TABLE FORMITEMVALUE ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN PERSON_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN REFERRINGPERSON_ID BIGINT
ALTER TABLE FORMITEMVALUE ADD COLUMN REPORTITEM_ID BIGINT
ALTER TABLE PHARMACYBILL ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PHARMACYBILL ADD COLUMN FREEVALUEPURCHASE DOUBLE
ALTER TABLE PHARMACYBILL ADD COLUMN FREEVALUESALE DOUBLE
ALTER TABLE PHARMACYBILL ADD COLUMN PURCHASEVALUE DOUBLE
ALTER TABLE PHARMACYBILL ADD COLUMN SALEVALUE DOUBLE
ALTER TABLE SALARYHOLD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SALARYHOLD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SALARYHOLD ADD COLUMN FROMCOMMENT LONGTEXT
ALTER TABLE SALARYHOLD ADD COLUMN FROMDATE DATE
ALTER TABLE SALARYHOLD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SALARYHOLD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SALARYHOLD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SALARYHOLD ADD COLUMN TOCOMMENTS LONGTEXT
ALTER TABLE SALARYHOLD ADD COLUMN TODATE DATE
ALTER TABLE SALARYHOLD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SALARYHOLD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE SALARYHOLD ADD COLUMN STAFF_ID BIGINT
ALTER TABLE STAFFLEAVE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFLEAVE ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE STAFFLEAVE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFLEAVE ADD COLUMN LEAVEDATE DATE
ALTER TABLE STAFFLEAVE ADD COLUMN LEAVETYPE VARCHAR(255)
ALTER TABLE STAFFLEAVE ADD COLUMN QTY DOUBLE
ALTER TABLE STAFFLEAVE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFLEAVE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFLEAVE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFLEAVE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFLEAVE ADD COLUMN FORM_ID BIGINT
ALTER TABLE STAFFLEAVE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFLEAVE ADD COLUMN ROSTER_ID BIGINT
ALTER TABLE STAFFLEAVE ADD COLUMN STAFFSHIFT_ID BIGINT
ALTER TABLE STAFFLEAVE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN COMPLETED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN RETIRED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN COMPLETEDBY_ID BIGINT
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN CREATOR_ID BIGINT
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN NEXTSTEPINSTANCE_ID BIGINT
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN PRECEDINGSTEPINSTANCE_ID BIGINT
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN PROCESSINSTANCE_ID BIGINT NOT NULL
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN PROCESSSTEPACTIONDEFINITION_ID BIGINT
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN PROCESSSTEPDEFINITION_ID BIGINT NOT NULL
ALTER TABLE PROCESSSTEPINSTANCE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBTHEME ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBTHEME ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBTHEME ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE WEBTHEME ADD COLUMN NAME VARCHAR(255)
ALTER TABLE WEBTHEME ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBTHEME ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBTHEME ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBTHEME ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBTHEME ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTINSURANCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTINSURANCE ADD COLUMN ACTIVE TINYINT(1) default 0
ALTER TABLE PATIENTINSURANCE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTINSURANCE ADD COLUMN CREDITLIMIT DOUBLE
ALTER TABLE PATIENTINSURANCE ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE PATIENTINSURANCE ADD COLUMN EDITEDAT DATETIME
ALTER TABLE PATIENTINSURANCE ADD COLUMN MEMBERID VARCHAR(255)
ALTER TABLE PATIENTINSURANCE ADD COLUMN POLICYNO VARCHAR(255)
ALTER TABLE PATIENTINSURANCE ADD COLUMN isPrimary TINYINT(1) default 0
ALTER TABLE PATIENTINSURANCE ADD COLUMN REFERENCENO VARCHAR(255)
ALTER TABLE PATIENTINSURANCE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINSURANCE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTINSURANCE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTINSURANCE ADD COLUMN VALIDFROM DATETIME
ALTER TABLE PATIENTINSURANCE ADD COLUMN VALIDTO DATETIME
ALTER TABLE PATIENTINSURANCE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTINSURANCE ADD COLUMN CREDITCOMPANY_ID BIGINT
ALTER TABLE PATIENTINSURANCE ADD COLUMN EDITER_ID BIGINT
ALTER TABLE PATIENTINSURANCE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTINSURANCE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERROLEUSER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERROLEUSER ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERROLEUSER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERROLEUSER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERROLEUSER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERROLEUSER ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERROLEUSER ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE WEBUSERROLEUSER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERROLEUSER ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE WEBUSERROLEUSER ADD COLUMN WEBUSERROLE_ID BIGINT
ALTER TABLE WEBTEMPLATE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBTEMPLATE ADD COLUMN CACHED TINYINT(1) default 0
ALTER TABLE WEBTEMPLATE ADD COLUMN CSS LONGTEXT
ALTER TABLE WEBTEMPLATE ADD COLUMN DEFAULTTEMPLATE TINYINT(1) default 0
ALTER TABLE WEBTEMPLATE ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE WEBTEMPLATE ADD COLUMN JS LONGTEXT
ALTER TABLE WEBTEMPLATE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PATIENTFLAG ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTFLAG ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTFLAG ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTFLAG ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTFLAG ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTFLAG ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTFLAG ADD COLUMN INVESTIGATIONFLAG_ID BIGINT
ALTER TABLE PATIENTFLAG ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTFLAG ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE PATIENTFLAG ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE USERFAVORITEREPORT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE USERFAVORITEREPORT ADD COLUMN CATEGORY VARCHAR(255)
ALTER TABLE USERFAVORITEREPORT ADD COLUMN ORDERNUMBER DOUBLE
ALTER TABLE USERFAVORITEREPORT ADD COLUMN REPORTKEY VARCHAR(255)
ALTER TABLE USERFAVORITEREPORT ADD COLUMN REPORTLABEL VARCHAR(255)
ALTER TABLE USERFAVORITEREPORT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE USERFAVORITEREPORT ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE PROCESSDEFINITION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PROCESSDEFINITION ADD COLUMN ACTIVE TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSDEFINITION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PROCESSDEFINITION ADD COLUMN DESCRIPTION VARCHAR(500)
ALTER TABLE PROCESSDEFINITION ADD COLUMN NAME VARCHAR(100) NOT NULL
ALTER TABLE PROCESSDEFINITION ADD COLUMN RETIRED TINYINT(1) default 0 NOT NULL
ALTER TABLE PROCESSDEFINITION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PROCESSDEFINITION ADD COLUMN VERSION VARCHAR(20) NOT NULL
ALTER TABLE PROCESSDEFINITION ADD COLUMN CREATOR_ID BIGINT
ALTER TABLE PROCESSDEFINITION ADD COLUMN PARENT_ID BIGINT
ALTER TABLE PROCESSDEFINITION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSER ADD COLUMN ACTIVATECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN ACTIVATED TINYINT(1) default 0
ALTER TABLE WEBUSER ADD COLUMN ACTIVATEDAT DATETIME
ALTER TABLE WEBUSER ADD COLUMN ALLOWEDIPADDRESSES VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN CODE VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSER ADD COLUMN DEFLOCALE VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN EMAIL VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN LASTPASSWORDRESETAT DATETIME
ALTER TABLE WEBUSER ADD COLUMN LOGINPAGE VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN NAME VARCHAR(255) NOT NULL UNIQUE
ALTER TABLE WEBUSER ADD COLUMN NEEDTORESETPASSWORD TINYINT(1) default 0
ALTER TABLE WEBUSER ADD COLUMN PRIMETHEME VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN RESTRICTLOGINBYIP TINYINT(1) default 0
ALTER TABLE WEBUSER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSER ADD COLUMN TELNO VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN WEBUSERPASSWORD VARCHAR(255)
ALTER TABLE WEBUSER ADD COLUMN ACTIVATOR_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN ROLE_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN SITE_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN STAFF_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN USERWEBTHEME_ID BIGINT
ALTER TABLE WEBUSER ADD COLUMN WEBUSERPERSON_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ITEMUSAGE ADD COLUMN AGEINMONTHSFROM BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN AGEINMONTHSTO BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ITEMUSAGE ADD COLUMN DBLVALUE1 DOUBLE
ALTER TABLE ITEMUSAGE ADD COLUMN DBLVALUE2 DOUBLE
ALTER TABLE ITEMUSAGE ADD COLUMN EDITEDAT DATETIME
ALTER TABLE ITEMUSAGE ADD COLUMN INTVALUE1 INTEGER
ALTER TABLE ITEMUSAGE ADD COLUMN INTVALUE2 INTEGER
ALTER TABLE ITEMUSAGE ADD COLUMN ORDERNO INTEGER
ALTER TABLE ITEMUSAGE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ITEMUSAGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEMUSAGE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEMUSAGE ADD COLUMN SEX VARCHAR(255)
ALTER TABLE ITEMUSAGE ADD COLUMN TYPE VARCHAR(255)
ALTER TABLE ITEMUSAGE ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN EDITER_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN FORDEPARTMENT_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN FORINSTITUTION_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN FORITEM_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN FORWEBUSER_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN ITEM_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN MEASUREMENTUNIT1_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN MEASUREMENTUNIT2_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN PARENT_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE ITEMUSAGE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFGRADE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFGRADE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFGRADE ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFGRADE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFGRADE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFGRADE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFGRADE ADD COLUMN TODATE DATE
ALTER TABLE STAFFGRADE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFGRADE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFGRADE ADD COLUMN STAFFEMPLOYMENT_ID BIGINT
ALTER TABLE STAFFGRADE ADD COLUMN GRADE_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTROOM ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE PATIENTROOM ADD COLUMN ADDEDADMINISTRATIONCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADDEDLINENCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADDEDMAINTAINCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADDEDMEDICALCARECHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADDEDMOCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADDEDNURSINGCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADDEDROOMCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADJUSTEDMAINTAINCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADJUSTEDMOCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADJUSTEDROOMCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN ADMITTED TINYINT(1) default 0
ALTER TABLE PATIENTROOM ADD COLUMN ADMITTEDAT DATETIME
ALTER TABLE PATIENTROOM ADD COLUMN AJDUSTEDADMINISTRATIONCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN AJDUSTEDLINENCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN AJDUSTEDMEDICALCARECHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN AJDUSTEDNURSINGCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CALCULATEDADMINISTRATIONCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CALCULATEDLINENCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CALCULATEDMAINTAINCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CALCULATEDMEDICALCARECHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CALCULATEDMOCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CALCULATEDNURSINGCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CALCULATEDROOMCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTADMINISTRATIONCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTLINENCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTMAINTANANCECHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTMEDICALCARECHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTMOCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTMOCHARGEFORAFTERDURATION DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTNURSINGCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN CURRENTROOMCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE PATIENTROOM ADD COLUMN DISCHARGED TINYINT(1) default 0
ALTER TABLE PATIENTROOM ADD COLUMN DISCHARGEDAT DATETIME
ALTER TABLE PATIENTROOM ADD COLUMN DISCOUNTADMINISTRATIONCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN DISCOUNTLINENCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN DISCOUNTMAINTAINCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN DISCOUNTMEDICALCARECHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN DISCOUNTMOCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN DISCOUNTNURSINGCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN DISCOUNTROOMCHARGE DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN FROMPACKAGE TINYINT(1) default 0
ALTER TABLE PATIENTROOM ADD COLUMN INCLUDEDROOMDURATIONHOURS DOUBLE
ALTER TABLE PATIENTROOM ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PATIENTROOM ADD COLUMN ORDERNO INTEGER
ALTER TABLE PATIENTROOM ADD COLUMN PRINTADMITTEDAT DATETIME
ALTER TABLE PATIENTROOM ADD COLUMN PRINTDISCHARGEAT DATETIME
ALTER TABLE PATIENTROOM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTROOM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTROOM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTROOM ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE PATIENTROOM ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE PATIENTROOM ADD COLUMN ADDMITTEDBY_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN DISCHARGEDBY_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN PRINTROOMFACILITYCHARGE_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN ROOMFACILITYCHARGE_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN PREVIOUSROOM_ID BIGINT
ALTER TABLE PATIENTROOM ADD COLUMN REFERENCEPATIENTROOM_ID BIGINT
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN ACTIVE TINYINT(1) default 0
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN CALIBRATIONDATE DATE
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN INSTALLATIONDATE DATE
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN LOCATION VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN MAINTENANCESCHEDULE VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN MANUFACTUREDATE DATE
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN NETWORKSETTINGS VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN SERIALNUMBER VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN SUPPLIER_ID BIGINT
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE DEPARTMENTMACHINE ADD COLUMN MACHINE_ID BIGINT
ALTER TABLE CASHTRANSACTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CASHTRANSACTION ADD COLUMN BALLANCEAMOUNT DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN CASHVALUE DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN CHEQUEVALUE DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CASHTRANSACTION ADD COLUMN CREDITCARDVALUE DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN INOUTTYPE VARCHAR(255)
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY1 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY10 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY100 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY1000 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY10000 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY2 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY20 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY200 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY2000 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY5 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY50 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY500 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN QTY5000 DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CASHTRANSACTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CASHTRANSACTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CASHTRANSACTION ADD COLUMN SLIPVALUE DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN TENDEREDAMOUNT DOUBLE
ALTER TABLE CASHTRANSACTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CASHTRANSACTION ADD COLUMN DRAWER_ID BIGINT
ALTER TABLE CASHTRANSACTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE TOKEN ADD COLUMN CALLED TINYINT(1) default 0
ALTER TABLE TOKEN ADD COLUMN CALLEDAT DATETIME
ALTER TABLE TOKEN ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE TOKEN ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE TOKEN ADD COLUMN CREATEDAT DATETIME
ALTER TABLE TOKEN ADD COLUMN DISPLAYTOKEN TINYINT(1) default 0
ALTER TABLE TOKEN ADD COLUMN INPROGRESS TINYINT(1) default 0
ALTER TABLE TOKEN ADD COLUMN ISSUEDAT DATETIME
ALTER TABLE TOKEN ADD COLUMN RESTARTTOKENSERVICES TINYINT(1) default 0
ALTER TABLE TOKEN ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE TOKEN ADD COLUMN STARTEDAT DATETIME
ALTER TABLE TOKEN ADD COLUMN TOKENAT DATETIME
ALTER TABLE TOKEN ADD COLUMN TOKENDATE DATE
ALTER TABLE TOKEN ADD COLUMN TOKENID VARCHAR(255)
ALTER TABLE TOKEN ADD COLUMN TOKENNUMBER VARCHAR(255)
ALTER TABLE TOKEN ADD COLUMN TOKENTYPE INTEGER
ALTER TABLE TOKEN ADD COLUMN BILL_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN CATERORY_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN COUNTER_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN CREATEDBY_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN DOCTOR_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN FROMDEPARTMENT_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN FROMINSTITUTION_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN FROMSTAFF_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN REFERATOKEN_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN RETIREDBY_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN SERVICECOUNTER_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN STAFF_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN TODEPARTMENT_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN TOINSTITUTION_ID BIGINT
ALTER TABLE TOKEN ADD COLUMN TOSTAFF_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLSESSION ADD COLUMN ABSENT TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN ABSENTMARKEDAT DATETIME
ALTER TABLE BILLSESSION ADD COLUMN ABSENTUNMARKEDAT DATETIME
ALTER TABLE BILLSESSION ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE BILLSESSION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILLSESSION ADD COLUMN CURRENTLYCONSULTED TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN FIRSTVISIT TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN MARKEDTOCANCEL TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN MARKEDTOCANCELAT DATETIME
ALTER TABLE BILLSESSION ADD COLUMN MARKEDTOREFUND TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN MARKEDTOREFUNDAT DATETIME
ALTER TABLE BILLSESSION ADD COLUMN NAME VARCHAR(255)
ALTER TABLE BILLSESSION ADD COLUMN NEXTINLINE TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN RECHEDULEDSESSION TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN RESERVEDBOOKING TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BILLSESSION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILLSESSION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILLSESSION ADD COLUMN SERIALNO INTEGER
ALTER TABLE BILLSESSION ADD COLUMN SESSIONDATE DATE
ALTER TABLE BILLSESSION ADD COLUMN SESSIONTIME TIME
ALTER TABLE BILLSESSION ADD COLUMN ABSENTMARKEDUSER_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN ABSENTUNMARKEDUSER_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN BILL_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN COMPLETEDBY_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN ITEM_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN MARKEDTOCANCELBY_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN MARKEDTOREFUNDBY_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN PACKEGE_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN PAIDBILLSESSION_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN REFERENCEBILLSESSION_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN SERVICESESSION_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN SERVICESESSIONINSTANCE_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN SESSIONINSTANCE_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN STAFF_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN RESCHEDULEDFROMBILLSESSION_ID BIGINT
ALTER TABLE BILLSESSION ADD COLUMN RESCHEDULEDTOBILLSESSION_ID BIGINT
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN ORDERNO INTEGER
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN ITEM_ID BIGINT
ALTER TABLE ITEMSDISTRIBUTORS ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE MAPPING ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE MAPPING ADD COLUMN DESCREPTION LONGTEXT
ALTER TABLE MAPPING ADD COLUMN ITEM1_ID BIGINT
ALTER TABLE MAPPING ADD COLUMN ITEM2_ID BIGINT
ALTER TABLE ITEMPACKAGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBLANGUAGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBLANGUAGE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE WEBLANGUAGE ADD COLUMN DEFAULTLANGUAGE TINYINT(1) default 0
ALTER TABLE WEBLANGUAGE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE WEBLANGUAGE ADD COLUMN ORDERNO DOUBLE
ALTER TABLE WEBLANGUAGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERROLE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERROLE ADD COLUMN ACTIVATECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERROLE ADD COLUMN ACTIVATED TINYINT(1) default 0
ALTER TABLE WEBUSERROLE ADD COLUMN ACTIVATEDAT DATETIME
ALTER TABLE WEBUSERROLE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERROLE ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE WEBUSERROLE ADD COLUMN LOGINPAGE VARCHAR(255)
ALTER TABLE WEBUSERROLE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE WEBUSERROLE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERROLE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERROLE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERROLE ADD COLUMN ACTIVATOR_ID BIGINT
ALTER TABLE WEBUSERROLE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERROLE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN AFTERCHANGE DATETIME
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN BEFORECHANGE DATETIME
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN FINGERPRINTRECORD_ID BIGINT
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN ROSTER_ID BIGINT
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN SHIFT_ID BIGINT
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN STAFF_ID BIGINT
ALTER TABLE FINGERPRINTRECORDHISTORY ADD COLUMN STAFFSHIFT_ID BIGINT
ALTER TABLE PERSON ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PERSON ADD COLUMN ADDRESS VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PERSON ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN DOB DATETIME
ALTER TABLE PERSON ADD COLUMN EDITEDAT DATETIME
ALTER TABLE PERSON ADD COLUMN EMAIL VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN FAX VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN FOREIGNER TINYINT(1) default 0
ALTER TABLE PERSON ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN INITIALS VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN LASTNAME VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN MOBILE VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN NIC VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN PHONE VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PERSON ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PERSON ADD COLUMN SEX VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN SURNAME VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN TITLE VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN WEBSITE VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN ZONECODE VARCHAR(255)
ALTER TABLE PERSON ADD COLUMN AREA_ID BIGINT
ALTER TABLE PERSON ADD COLUMN BLOODGROUP_ID BIGINT
ALTER TABLE PERSON ADD COLUMN CIVILSTATUS_ID BIGINT
ALTER TABLE PERSON ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PERSON ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PERSON ADD COLUMN EDITER_ID BIGINT
ALTER TABLE PERSON ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PERSON ADD COLUMN MEMBERSHIPSCHEME_ID BIGINT
ALTER TABLE PERSON ADD COLUMN OCCUPATION_ID BIGINT
ALTER TABLE PERSON ADD COLUMN RACE_ID BIGINT
ALTER TABLE PERSON ADD COLUMN RELIGION_ID BIGINT
ALTER TABLE PERSON ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN CLINICALFINDINGVALUETYPE VARCHAR(255)
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN DOUBLEVALUE DOUBLE
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN IMAGENAME VARCHAR(255)
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN IMAGETYPE VARCHAR(255)
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN IMAGEVALUE LONGBLOB
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN LOBVALUE LONGTEXT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN LONGVALUE BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN ORDERNO DOUBLE
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN STRINGVALUE VARCHAR(255)
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN CATEGORYVALUE_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN CLINICALFINDINGITEM_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN DOCUMENTTEMPLATE_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN ENCOUNTER_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN ITEMVALUE_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN PERSON_ID BIGINT
ALTER TABLE CLINICALFINDINGVALUE ADD COLUMN PRESCRIPTION_ID BIGINT
ALTER TABLE HRMVARIABLES ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE HRMVARIABLES ADD COLUMN CREATEDAT DATETIME
ALTER TABLE HRMVARIABLES ADD COLUMN EPFCOMPANYRATE DOUBLE
ALTER TABLE HRMVARIABLES ADD COLUMN EPFRATE DOUBLE
ALTER TABLE HRMVARIABLES ADD COLUMN ETFCOMPANYRATE DOUBLE
ALTER TABLE HRMVARIABLES ADD COLUMN ETFRATE DOUBLE
ALTER TABLE HRMVARIABLES ADD COLUMN NAME VARCHAR(255)
ALTER TABLE HRMVARIABLES ADD COLUMN PAYEECOMPANYRATE DOUBLE
ALTER TABLE HRMVARIABLES ADD COLUMN PAYEELIMIT DOUBLE
ALTER TABLE HRMVARIABLES ADD COLUMN PAYEERATE DOUBLE
ALTER TABLE HRMVARIABLES ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE HRMVARIABLES ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE HRMVARIABLES ADD COLUMN RETIREDAT DATETIME
ALTER TABLE HRMVARIABLES ADD COLUMN CREATER_ID BIGINT
ALTER TABLE HRMVARIABLES ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN ADMINISTEREDAT DATETIME
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN COMMENTS VARCHAR(255)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN DOSEDESCRIPTION VARCHAR(255)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN QTY DOUBLE
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN STOCKDEDUCTED TINYINT(1) default 0
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN ADMINISTEREDBY_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN ITEM_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN ITEMBATCH_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN PRESCRIPTION_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE MEDICATIONADMINISTRATIONRECORD ADD COLUMN STOCKDEDUCTIONBILL_ID BIGINT
ALTER TABLE SMS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SMS ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SMS ADD COLUMN OTP VARCHAR(255)
ALTER TABLE SMS ADD COLUMN PASSWORD VARCHAR(255)
ALTER TABLE SMS ADD COLUMN PENDING TINYINT(1) default 0
ALTER TABLE SMS ADD COLUMN RECEIPIENTNUMBER VARCHAR(255)
ALTER TABLE SMS ADD COLUMN RECEIVEDMESSAGE LONGTEXT
ALTER TABLE SMS ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SMS ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SMS ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SMS ADD COLUMN SENDINGFAILED TINYINT(1) default 0
ALTER TABLE SMS ADD COLUMN SENDINGMESSAGE LONGTEXT
ALTER TABLE SMS ADD COLUMN SENDINGURL VARCHAR(255)
ALTER TABLE SMS ADD COLUMN SENTAT DATE
ALTER TABLE SMS ADD COLUMN SENTSUCCESSFULLY TINYINT(1) default 0
ALTER TABLE SMS ADD COLUMN SMSTYPE VARCHAR(255)
ALTER TABLE SMS ADD COLUMN USERID VARCHAR(255)
ALTER TABLE SMS ADD COLUMN BILL_ID BIGINT
ALTER TABLE SMS ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SMS ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE SMS ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE SMS ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE SMS ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE SMS ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE APIKEY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE APIKEY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE APIKEY ADD COLUMN DATEOFEXPIARY DATE
ALTER TABLE APIKEY ADD COLUMN KEYTYPE INTEGER
ALTER TABLE APIKEY ADD COLUMN KEYVALUE VARCHAR(255)
ALTER TABLE APIKEY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE APIKEY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE APIKEY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE APIKEY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE APIKEY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE APIKEY ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN CREDITLIMIT DOUBLE
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN DESCREPTION VARCHAR(255)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN POLICYNO VARCHAR(255)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN REFERANCENO VARCHAR(255)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE ENCOUNTERCREDITCOMPANY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INPATIENTPACKAGE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INPATIENTPACKAGE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE INPATIENTPACKAGE ADD COLUMN FIXEDROOMCHARGE DOUBLE
ALTER TABLE INPATIENTPACKAGE ADD COLUMN INCLUDEDROOMDURATIONHOURS DOUBLE
ALTER TABLE INPATIENTPACKAGE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE INPATIENTPACKAGE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE INPATIENTPACKAGE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE INPATIENTPACKAGE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE INPATIENTPACKAGE ADD COLUMN TOTALPRICE DOUBLE
ALTER TABLE INPATIENTPACKAGE ADD COLUMN ADMISSIONTYPE_ID BIGINT
ALTER TABLE INPATIENTPACKAGE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE INPATIENTPACKAGE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INPATIENTPACKAGE ADD COLUMN ROOMCATEGORY_ID BIGINT
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD COLUMN ASSIGNEDENTITYTYPE VARCHAR(255)
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD COLUMN DESIGNCOMPONENT_ID BIGINT
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD COLUMN PROCESSDEFINITION_ID BIGINT
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD COLUMN PROCESSSTEPACTIONDEFINITION_ID BIGINT
ALTER TABLE DESIGNCOMPONENTASSIGNMENT ADD COLUMN PROCESSSTEPDEFINITION_ID BIGINT
ALTER TABLE STAFFBASICS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFBASICS ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFBASICS ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFBASICS ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFBASICS ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFBASICS ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFBASICS ADD COLUMN TODATE DATE
ALTER TABLE STAFFBASICS ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFBASICS ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFBASICS ADD COLUMN STAFFEMPLOYMENT_ID BIGINT
ALTER TABLE STAFFBASICS ADD COLUMN BASIC_ID BIGINT
ALTER TABLE CATEGORYITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CATEGORYITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CATEGORYITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CATEGORYITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CATEGORYITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CATEGORYITEM ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE CATEGORYITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CATEGORYITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE CATEGORYITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DESIGNCOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DESIGNCOMPONENT ADD COLUMN CODE VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN CODESYSTEM VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN COMPONENTDATATYPE VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN COMPONENTMAPPINGTYPE VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN COMPONENTPRESENTATIONTYPE VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE DESIGNCOMPONENT ADD COLUMN EDITHTML LONGTEXT
ALTER TABLE DESIGNCOMPONENT ADD COLUMN FORMCSSCLASS VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN MAXRATING INTEGER
ALTER TABLE DESIGNCOMPONENT ADD COLUMN max_value DOUBLE
ALTER TABLE DESIGNCOMPONENT ADD COLUMN min_value DOUBLE
ALTER TABLE DESIGNCOMPONENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN OFFLABEL VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN ONLABEL VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN ORDERNO INTEGER
ALTER TABLE DESIGNCOMPONENT ADD COLUMN PLACEHOLDER VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN REQUIRED TINYINT(1) default 0
ALTER TABLE DESIGNCOMPONENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DESIGNCOMPONENT ADD COLUMN STEPSIZE DOUBLE
ALTER TABLE DESIGNCOMPONENT ADD COLUMN TYPE VARCHAR(255)
ALTER TABLE DESIGNCOMPONENT ADD COLUMN VIEWHTML LONGTEXT
ALTER TABLE DESIGNCOMPONENT ADD COLUMN DATAENTRYFORM_ID BIGINT
ALTER TABLE DESIGNCOMPONENT ADD COLUMN PARENT_ID BIGINT
ALTER TABLE PATIENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENT ADD COLUMN BAIMAGE LONGBLOB
ALTER TABLE PATIENT ADD COLUMN BLACKLISTED TINYINT(1) default 0
ALTER TABLE PATIENT ADD COLUMN BLACKLISTEDAT DATETIME
ALTER TABLE PATIENT ADD COLUMN CARDISSUEDDATE DATE
ALTER TABLE PATIENT ADD COLUMN CARDISSUES TINYINT(1) default 0
ALTER TABLE PATIENT ADD COLUMN CODE VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE PATIENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENT ADD COLUMN CREDITLIMIT DOUBLE
ALTER TABLE PATIENT ADD COLUMN EDITEDAT DATETIME
ALTER TABLE PATIENT ADD COLUMN FILENAME VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN FILETYPE VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN FROMDATE DATETIME
ALTER TABLE PATIENT ADD COLUMN HASANACCOUNT TINYINT(1) default 0
ALTER TABLE PATIENT ADD COLUMN HINNO INTEGER
ALTER TABLE PATIENT ADD COLUMN PATIENTID BIGINT
ALTER TABLE PATIENT ADD COLUMN PATIENTMOBILENUMBER BIGINT
ALTER TABLE PATIENT ADD COLUMN PATIENTPHONENUMBER BIGINT
ALTER TABLE PATIENT ADD COLUMN PHN VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN PINNO INTEGER
ALTER TABLE PATIENT ADD COLUMN REASONFORBLACKLIST LONGTEXT
ALTER TABLE PATIENT ADD COLUMN REGISTRATIONSOURCE VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENT ADD COLUMN RUNNINGBALANCE DOUBLE
ALTER TABLE PATIENT ADD COLUMN SPECIFICSTATUS VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN SPECIFICSTATUSCOMMENT VARCHAR(255)
ALTER TABLE PATIENT ADD COLUMN TODATE DATETIME
ALTER TABLE PATIENT ADD COLUMN BLACKLISTEDBY_ID BIGINT
ALTER TABLE PATIENT ADD COLUMN CREATEDINSTITUTION_ID BIGINT
ALTER TABLE PATIENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENT ADD COLUMN EDITER_ID BIGINT
ALTER TABLE PATIENT ADD COLUMN PERSON_ID BIGINT
ALTER TABLE PATIENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PAYMENTSCHEME ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PAYMENTSCHEME ADD COLUMN CLIANTTYPE VARCHAR(255)
ALTER TABLE PAYMENTSCHEME ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PAYMENTSCHEME ADD COLUMN EXPIRYDATE DATETIME
ALTER TABLE PAYMENTSCHEME ADD COLUMN MEMBERORFAMILYREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN MEMBERREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN MEMBERSHIPREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PAYMENTSCHEME ADD COLUMN ORDERNO INTEGER
ALTER TABLE PAYMENTSCHEME ADD COLUMN PREGNANTMOTHERREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN PRINTINGNAME VARCHAR(255)
ALTER TABLE PAYMENTSCHEME ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PAYMENTSCHEME ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PAYMENTSCHEME ADD COLUMN SENIORCITIZENREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN STAFFMEMBERREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN STAFFORFAMILYREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN STAFFREQUIRED TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN VALIDFORBILLEDBILLS TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN VALIDFORCHANNELING TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN VALIDFORINPATIENTBILLS TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN validForPayments TINYINT(1) default 0
ALTER TABLE PAYMENTSCHEME ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PAYMENTSCHEME ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE PAYMENTSCHEME ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE PAYMENTSCHEME ADD COLUMN PERSON_ID BIGINT
ALTER TABLE PAYMENTSCHEME ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN TODATE DATE
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN STAFFEMPLOYMENT_ID BIGINT
ALTER TABLE STAFFWORKINGDEPARTMENT ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE USERSTOCK ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE USERSTOCK ADD COLUMN CREATEDAT DATETIME
ALTER TABLE USERSTOCK ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE USERSTOCK ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE USERSTOCK ADD COLUMN RETIREDAT DATETIME
ALTER TABLE USERSTOCK ADD COLUMN UPDATIONQTY DOUBLE
ALTER TABLE USERSTOCK ADD COLUMN CREATER_ID BIGINT
ALTER TABLE USERSTOCK ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE USERSTOCK ADD COLUMN USERSTOCKCONTAINER_ID BIGINT
ALTER TABLE USERSTOCK ADD COLUMN STOCK_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SESSIONINSTANCE ADD COLUMN ACCEPTONLINEBOOKINGS TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN ADVANCEAPPOINTMENTPERIODUNIT INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN ADVANCEAPPOINTMENTPERIOD BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN AGENCYNUMBERS VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN ARRIVED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN BOOKEDPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN BOOKEDPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN BOOKEDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELONCALLPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELONCALLPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELONCALLPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELPAIDPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELPAIDPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELPAIDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN CASHNUMBERS VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE SESSIONINSTANCE ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN COMPLETEDPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN COMPLETEDPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN COMPLETEDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CONTINUENUMBERS TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN CREDITNUMBERS VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN DBLVALUE DOUBLE
ALTER TABLE SESSIONINSTANCE ADD COLUMN DEACTIVATECOMMENT VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN DEACTIVATED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN DESCREPTION LONGTEXT
ALTER TABLE SESSIONINSTANCE ADD COLUMN DISCOUNTALLOWED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN DISPLAYCOUNT INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN DISPLAYPERCENT DOUBLE
ALTER TABLE SESSIONINSTANCE ADD COLUMN DOCTORHOLIDAY TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN DURATION DOUBLE
ALTER TABLE SESSIONINSTANCE ADD COLUMN DURATIONINCREMENTCOUNT INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN EDITEDAT DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN EFFECTIVEFROM DATE
ALTER TABLE SESSIONINSTANCE ADD COLUMN EFFECTIVETO DATE
ALTER TABLE SESSIONINSTANCE ADD COLUMN ENDINGTIME DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN FULLNAME VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN ITEMTYPE VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN MAXNO INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN MAXNOFORFIRSTVISITS INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN MAXNOFORSUBSEQUENTVISITS INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN MAXTABLEROWS INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN NEXTAVAILABLEAPPOINTMENTNUMBER BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN NEXTAVAILABLEAPPOINTMENTNUMBERFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN NEXTAVAILABLEAPPOINTMENTNUMBERFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN NUMBERINCREMENT INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN ONCALLPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN ONCALLPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN ONCALLPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN ONCALLBOOKINGSALLOWED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN PAIDPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN PAIDPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN PAIDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN PAIDTODOCTORPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN PAIDTODOCTORPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN PAIDTODOCTORPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN PRINTFEESFORBILLS TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN PRINTNAME VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN PRIORITY VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN PROFITMARGIN DOUBLE
ALTER TABLE SESSIONINSTANCE ADD COLUMN REFUNDABLE TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN REFUNDEDPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN REFUNDEDPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN REFUNDEDPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN REMAININGPATIENTCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN REMAININGPATIENTCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN REMAININGPATIENTCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN REPORTPATIENTS INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN RESERVENAME VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN RESERVENUMBERS VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN RESERVENUMBERSFORFIRSTVISIT VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN RESERVENUMBERSFORSUBSEQUENTVISITS VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN RESERVEDBOOKINGCOUNT BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN RESERVEDBOOKINGCOUNTFORFIRSTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN RESERVEDBOOKINGCOUNTFORSUBSEQUENTVISITS BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN ROOMNO INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN SCANFEE TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN SESSIONAT TIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN SESSIONDATE DATE
ALTER TABLE SESSIONINSTANCE ADD COLUMN SESSIONNUMBERTYPE INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN SESSIONTIME TIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN SESSIONWEEKDAY INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN SHORTNAME VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN SHOWAPPOINTMENTCOUNT TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN SHOWAPPOINTMENTTIME TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN SPECIALNOTICESESSIONINSTANCE LONGTEXT
ALTER TABLE SESSIONINSTANCE ADD COLUMN STARTED TINYINT(1) default 0
ALTER TABLE SESSIONINSTANCE ADD COLUMN STARTEDAT DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN STARTINGNO INTEGER
ALTER TABLE SESSIONINSTANCE ADD COLUMN STARTINGTIME DATETIME
ALTER TABLE SESSIONINSTANCE ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE SESSIONINSTANCE ADD COLUMN TOTAL DOUBLE
ALTER TABLE SESSIONINSTANCE ADD COLUMN TOTALFORFOREIGNER DOUBLE
ALTER TABLE SESSIONINSTANCE ADD COLUMN ARRIVALRECORD_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CANCELLEDBY_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN COMPLETEDBY_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN CURRENTLYCONSULTINGBILLSESSION_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN EDITER_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN FORDEPARTMENT_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN FORINSTITUTION_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN LASTCOMPLETEDBILLSESSION_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN NEXTINLINEBILLSESSION_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN ORIGINATINGSESSION_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN SESSIONNUMBERGENERATOR_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN STARTEDBY_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN AFTERSESSION_ID BIGINT
ALTER TABLE SESSIONINSTANCE ADD COLUMN DOCTORHOLIDAYMARKEDBY_ID BIGINT
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN COUNT DOUBLE
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN LEAVETYPE VARCHAR(255)
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN TODATE DATE
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFLEAVEENTITLE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE SEX ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SEX ADD COLUMN CODE VARCHAR(255)
ALTER TABLE SEX ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SEX ADD COLUMN NAME VARCHAR(255)
ALTER TABLE SEX ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SEX ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SEX ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SEX ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE SEX ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE SEX ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SEX ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE AGENTHISTORY ADD COLUMN ADJUSTMENTTOAGENCYBALANCE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN AGENTBALANCEAFTER DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN AGENTBALANCEBEFORE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN AGENTTRANSACTIONVALUE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN BALANCEAFTERTRANSACTION DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN BALANCEBEFORETRANSACTION DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN COLLECTINGCENTERTRANSACTIONVALUE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN COMMENT LONGTEXT
ALTER TABLE AGENTHISTORY ADD COLUMN COMPANYBALANCEAFTER DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN COMPANYBALANCEBEFORE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN COMPANYTRANSACTIONVALUE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE AGENTHISTORY ADD COLUMN HISTORYTYPE VARCHAR(255)
ALTER TABLE AGENTHISTORY ADD COLUMN PAIDAMOUNTBYAGENCY DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN PAIDAMOUNTTOAGENCY DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN PAYMENTDONE TINYINT(1) default 0 NOT NULL
ALTER TABLE AGENTHISTORY ADD COLUMN PAYMENTDONEAT DATETIME
ALTER TABLE AGENTHISTORY ADD COLUMN REFERENCENUMBER VARCHAR(255)
ALTER TABLE AGENTHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE AGENTHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE AGENTHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE AGENTHISTORY ADD COLUMN STAFFTRASNACTIONVALUE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN TRANSACTIONVALUE DOUBLE
ALTER TABLE AGENTHISTORY ADD COLUMN AGENCY_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN BILL_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN BILLSESSION_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN PAYMENTDONEUSER_ID BIGINT
ALTER TABLE AGENTHISTORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN DTYPE VARCHAR(31)
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN COMPONENTTYPE VARCHAR(255)
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN COMPONENTVALUE DOUBLE
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN INCLUDEFORALLOWANCE TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN INCLUDEDFOREPF TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN INCLUDEDFORETF TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN INCLUDEDFORNOPAY TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN INCLUDEDFOROT TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN INCLUDEDFORPAYTAX TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN INCLUDEDFORPH TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN ORDERNO INTEGER
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN SENDINGINSTITUTION_ID BIGINT
ALTER TABLE PAYSHEETCOMPONENT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLCOMPONENT ADD COLUMN CATID VARCHAR(255)
ALTER TABLE BILLCOMPONENT ADD COLUMN COMPONENTVALUE DOUBLE
ALTER TABLE BILLCOMPONENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILLCOMPONENT ADD COLUMN DEPTID VARCHAR(255)
ALTER TABLE BILLCOMPONENT ADD COLUMN INSID VARCHAR(255)
ALTER TABLE BILLCOMPONENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE BILLCOMPONENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BILLCOMPONENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILLCOMPONENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILLCOMPONENT ADD COLUMN SESSIONID VARCHAR(255)
ALTER TABLE BILLCOMPONENT ADD COLUMN BILL_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN ITEM_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN PACKEGE_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE BILLCOMPONENT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN BILLINGDEPARTMENT_ID BIGINT
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN CREATEDBY_ID BIGINT
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN ITEM_ID BIGINT
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN PERFORMINGDEPARTMENT_ID BIGINT
ALTER TABLE DEFAULTSERVICEDEPARTMENT ADD COLUMN RETIREDBY_ID BIGINT
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLCOST DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLCOSTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLDISCOUNT DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLDISCOUNTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLEXPENSE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLEXPENSERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLGROSSRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLGROSSTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLNETRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLNETTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLTAX DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN BILLTAXRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN COSTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN COSTRATEPERUNIT DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN FREEQUANTITY DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN FREEQUANTITYBYUNITS DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN GROSSRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN GROSSTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINECOST DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINECOSTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINEDISCOUNT DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINEDISCOUNTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINEEXPENSE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINEEXPENSERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINEGROSSRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINEGROSSTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINENETRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINENETTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINETAX DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN LINETAXRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN NETRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN NETTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN PROFITMARGIN DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN PURCHASERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN PURCHASERATEPERUNIT DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN QUANTITY DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN QUANTITYBYUNITS DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN RETAILSALERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN RETAILSALERATEPERUNIT DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN RETURNFREEQUANTITY DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN RETURNGROSSTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN RETURNNETTOTAL DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN RETURNQUANTITY DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALCOST DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALCOSTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALDISCOUNT DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALDISCOUNTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALEXPENSE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALEXPENSERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALQUANTITY DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALQUANTITYBYUNITS DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALRETURNQUANTITY DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALTAX DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN TOTALTAXRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN UNITSPERPACK DECIMAL(18,4) NOT NULL
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN VALUEATCOSTRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN VALUEATPURCHASERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN VALUEATRETAILRATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN VALUEATWHOLESALERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN WHOLESALERATE DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN WHOLESALERATEPERUNIT DECIMAL(18,4)
ALTER TABLE BILLITEMFINANCEDETAILS ADD COLUMN CREATEDBY_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN AGENCYNUMBERS VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN BILLABLE TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN CASHNUMBERS VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN CHARGESVISIBLEFORINWARD TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN CODE VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN CONTINUENUMBERS TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN CREDITNUMBERS VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DBLVALUE DOUBLE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DEACTIVATECOMMENT VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DEACTIVATED TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DISCOUNTALLOWED TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DISPLAYCOUNT INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DISPLAYPERCENT DOUBLE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DURATION DOUBLE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN EDITEDAT DATETIME
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN ENDINGTIME DATETIME
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN FORBILLTYPE VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN FORMATABLE TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN FULLNAME VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN INWARDCHARGETYPE VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN MARGINNOTALLOWED TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN MAXNO INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN MAXTABLEROWS INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN NUMBERINCREMENT INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN PATIENTNOTREQUIRED TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN PRICEBYBATCH TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN PRINTNAME VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN PROFITMARGIN DOUBLE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN REFUNDABLE TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN REQUESTFORQUENTITY TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN RESERVENAME VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN RESERVENUMBERS VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN ROOMNO INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SCANFEE TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SESSIONAT TIME
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SESSIONDATE DATE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SESSIONNUMBERTYPE INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SESSIONTIME TIME
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SESSIONWEEKDAY INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SHORTNAME VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SNAME VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN STARTINGNO INTEGER
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN STARTINGTIME DATETIME
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN TNAME VARCHAR(255)
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN TOTAL DOUBLE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN TOTALFORFOREIGNER DOUBLE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN VATPERCENTAGE DOUBLE
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN VATABLE TINYINT(1) default 0
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN EDITER_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN FORDEPARTMENT_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN FORINSTITUTION_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN ORIGINATINGSESSION_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SESSIONNUMBERGENERATOR_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE SERVICESESSIONINSTANCE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE PATIENTSESSIONINSTANCEACTIVITY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTSESSIONINSTANCEACTIVITY ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE PATIENTSESSIONINSTANCEACTIVITY ADD COLUMN APPOINTMENTACTIVITY_ID BIGINT
ALTER TABLE PATIENTSESSIONINSTANCEACTIVITY ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE LOAN ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE LOAN ADD COLUMN CREATEDAT DATETIME
ALTER TABLE LOAN ADD COLUMN FIXEDDEDUCTION DOUBLE
ALTER TABLE LOAN ADD COLUMN INTERESTCALCULATIONTYPE VARCHAR(255)
ALTER TABLE LOAN ADD COLUMN INTERESTRATE DOUBLE
ALTER TABLE LOAN ADD COLUMN LOANVALUE DOUBLE
ALTER TABLE LOAN ADD COLUMN MAXAMOUNT DOUBLE
ALTER TABLE LOAN ADD COLUMN MINAMOUNT DOUBLE
ALTER TABLE LOAN ADD COLUMN NAME VARCHAR(255)
ALTER TABLE LOAN ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE LOAN ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE LOAN ADD COLUMN RETIREDAT DATETIME
ALTER TABLE LOAN ADD COLUMN CREATER_ID BIGINT
ALTER TABLE LOAN ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE REPORTLOG ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE REPORTLOG ADD COLUMN CREATEDAT DATETIME NOT NULL
ALTER TABLE REPORTLOG ADD COLUMN ENDTIME DATETIME
ALTER TABLE REPORTLOG ADD COLUMN EXECUTIONTIMEINMILLIS BIGINT
ALTER TABLE REPORTLOG ADD COLUMN GENERATEDBYID BIGINT NOT NULL
ALTER TABLE REPORTLOG ADD COLUMN REPORTNAME VARCHAR(255) NOT NULL
ALTER TABLE REPORTLOG ADD COLUMN REPORTTYPE VARCHAR(255) NOT NULL
ALTER TABLE REPORTLOG ADD COLUMN STARTTIME DATETIME NOT NULL
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN ACCEPTEDAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN INRECOVERYAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN INITIATEDAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN NOTES VARCHAR(255)
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN PROCEDUREENDAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN PROCEDURESTARTAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN RETURNEDTOWARDAT DATETIME
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN STATUS VARCHAR(255)
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN THEATREOCCUPANCYSTATUS VARCHAR(255)
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN THEATRETRANSFERTYPE VARCHAR(255)
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN ACCEPTEDBY_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN ADMISSION_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN CANCELLEDBY_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN FROMPATIENTROOM_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN INITIATEDBY_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN SURGERYBILL_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN THEATREROOM_ID BIGINT
ALTER TABLE PATIENTTRANSFERREQUEST ADD COLUMN TOROOMFACILITYCHARGE_ID BIGINT
ALTER TABLE SHIFTPREFERENCE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SHIFTPREFERENCE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SHIFTPREFERENCE ADD COLUMN FROMDATE DATE
ALTER TABLE SHIFTPREFERENCE ADD COLUMN LEAVEDATE DATE
ALTER TABLE SHIFTPREFERENCE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SHIFTPREFERENCE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SHIFTPREFERENCE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SHIFTPREFERENCE ADD COLUMN TODATE DATE
ALTER TABLE SHIFTPREFERENCE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SHIFTPREFERENCE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE SHIFTPREFERENCE ADD COLUMN STAFF_ID BIGINT
ALTER TABLE IXCAL ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE IXCAL ADD COLUMN CALCULATIONTYPE VARCHAR(255)
ALTER TABLE IXCAL ADD COLUMN CONSTANTVALUE DOUBLE
ALTER TABLE IXCAL ADD COLUMN FEMALECONSTANTVALUE DOUBLE
ALTER TABLE IXCAL ADD COLUMN JAVASCRIPT LONGTEXT
ALTER TABLE IXCAL ADD COLUMN MALECONSTANTVALUE DOUBLE
ALTER TABLE IXCAL ADD COLUMN ORDERNO INTEGER
ALTER TABLE IXCAL ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE IXCAL ADD COLUMN RETIREDAT DATETIME
ALTER TABLE IXCAL ADD COLUMN CALIXITEM_ID BIGINT
ALTER TABLE IXCAL ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE IXCAL ADD COLUMN VALIXITEM_ID BIGINT
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN DASHBOARD INTEGER
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERDASHBOARD ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE ITEMBATCH ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ITEMBATCH ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN BATCHNO VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN CHASSISNO VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN COLOUR VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN COSTRATE DOUBLE
ALTER TABLE ITEMBATCH ADD COLUMN DATEOFEXPIRE DATETIME
ALTER TABLE ITEMBATCH ADD COLUMN DATEOFMANUFACTURE DATETIME
ALTER TABLE ITEMBATCH ADD COLUMN DEPRECITIONRATE DOUBLE
ALTER TABLE ITEMBATCH ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE ITEMBATCH ADD COLUMN ENGINENO VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN MODAL VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN NUMBEROFACCESSORIES INTEGER
ALTER TABLE ITEMBATCH ADD COLUMN OTHERNOTES LONGTEXT
ALTER TABLE ITEMBATCH ADD COLUMN PURCAHSERATE DOUBLE
ALTER TABLE ITEMBATCH ADD COLUMN REGISTRATIONNO VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN RETAILSALERATE DOUBLE
ALTER TABLE ITEMBATCH ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEMBATCH ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEMBATCH ADD COLUMN SERIALNO VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN TOTALACQUICITIONCOST DOUBLE
ALTER TABLE ITEMBATCH ADD COLUMN WARRENTYCERTIFICATENUMBER VARCHAR(255)
ALTER TABLE ITEMBATCH ADD COLUMN WARRENTYDURATION BIGINT
ALTER TABLE ITEMBATCH ADD COLUMN WHOLESALERATE DOUBLE
ALTER TABLE ITEMBATCH ADD COLUMN ITEM_ID BIGINT
ALTER TABLE ITEMBATCH ADD COLUMN LASTPURCHASEBILLITEM_ID BIGINT
ALTER TABLE ITEMBATCH ADD COLUMN MAKE_ID BIGINT
ALTER TABLE ITEMBATCH ADD COLUMN MANUFACTURER_ID BIGINT
ALTER TABLE ITEMBATCH ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE UPLOAD ADD COLUMN BAIMAGE LONGBLOB
ALTER TABLE UPLOAD ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE UPLOAD ADD COLUMN CREATEDAT DATETIME
ALTER TABLE UPLOAD ADD COLUMN FILENAME VARCHAR(255)
ALTER TABLE UPLOAD ADD COLUMN FILETYPE VARCHAR(255)
ALTER TABLE UPLOAD ADD COLUMN FILEURL VARCHAR(255)
ALTER TABLE UPLOAD ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE UPLOAD ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE UPLOAD ADD COLUMN RETIREDAT DATETIME
ALTER TABLE UPLOAD ADD COLUMN UPLOADTYPE VARCHAR(255)
ALTER TABLE UPLOAD ADD COLUMN BILL_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN CATEGORY_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN CREATER_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN HISTORICALRECORD_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE UPLOAD ADD COLUMN WEBCONTENT_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTITEM ADD COLUMN ADJUSTEDVALUE DOUBLE
ALTER TABLE PATIENTITEM ADD COLUMN COMMENT VARCHAR(255)
ALTER TABLE PATIENTITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTITEM ADD COLUMN DISCOUNT DOUBLE
ALTER TABLE PATIENTITEM ADD COLUMN FROMTIME DATETIME
ALTER TABLE PATIENTITEM ADD COLUMN NAME VARCHAR(255)
ALTER TABLE PATIENTITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTITEM ADD COLUMN SERVICEVALUE DOUBLE
ALTER TABLE PATIENTITEM ADD COLUMN TOTIME DATETIME
ALTER TABLE PATIENTITEM ADD COLUMN BILL_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN PACKEGE_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE PATIENTITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE FAMILY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE FAMILY ADD COLUMN COMMENTS LONGTEXT
ALTER TABLE FAMILY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE FAMILY ADD COLUMN EDITEDAT DATETIME
ALTER TABLE FAMILY ADD COLUMN MEMBERSHIPCARDNO BIGINT
ALTER TABLE FAMILY ADD COLUMN PHONENO VARCHAR(255)
ALTER TABLE FAMILY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE FAMILY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE FAMILY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE FAMILY ADD COLUMN CHIEFHOUSEHOLDER_ID BIGINT
ALTER TABLE FAMILY ADD COLUMN CREATEDDEPARTMENT_ID BIGINT
ALTER TABLE FAMILY ADD COLUMN CREATEDINSTITUTION_ID BIGINT
ALTER TABLE FAMILY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE FAMILY ADD COLUMN EDITER_ID BIGINT
ALTER TABLE FAMILY ADD COLUMN MEMBERSHIPSCHEME_ID BIGINT
ALTER TABLE FAMILY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WORKINGTIME ADD COLUMN ADDEDTOSALARY TINYINT(1) default 0
ALTER TABLE WORKINGTIME ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WORKINGTIME ADD COLUMN DURATIONINMINUTES BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WORKINGTIME ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WORKINGTIME ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WORKINGTIME ADD COLUMN WORKINGTYPE VARCHAR(255)
ALTER TABLE WORKINGTIME ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN ENDRECORD_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN PROFESSINOALPAYMENTBILL_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN STAFFSHIFT_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN STARTRECORD_ID BIGINT
ALTER TABLE WORKINGTIME ADD COLUMN CONTINUEDTO_ID BIGINT
ALTER TABLE BILLENTRY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLENTRY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BILLENTRY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILLENTRY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILLENTRY ADD COLUMN TOTCASH DOUBLE
ALTER TABLE BILLENTRY ADD COLUMN TOTCREDIT DOUBLE
ALTER TABLE BILLENTRY ADD COLUMN TOTCREDITCARD DOUBLE
ALTER TABLE BILLENTRY ADD COLUMN TOTDISCOUNT DOUBLE
ALTER TABLE BILLENTRY ADD COLUMN TOTVAT DOUBLE
ALTER TABLE BILLENTRY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DRAWER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DRAWER ADD COLUMN AGENTBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN AGENTINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN AGENTSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN CARDBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CARDINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CARDSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN CASHBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CASHINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CASHSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN CHEQUEBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CHEQUEINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CHEQUESHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DRAWER ADD COLUMN CREDITBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CREDITINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN CREDITSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN EWALLETBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN EWALLETINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN EWALLETSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN IOUBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN IOUINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN IOUSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN MULTIPLEPAYMENTMETHODSBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN MULTIPLEPAYMENTMETHODSINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN MULTIPLEPAYMENTMETHODSSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN NAME VARCHAR(255)
ALTER TABLE DRAWER ADD COLUMN NONEBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN NONEINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN NONESHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN ONCALLBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN ONCALLINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN ONCALLSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN ONLINESETTLEMENTBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN ONLINESETTLEMENTINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN ONLINESETTLEMENTSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN PATIENTDEPOSITBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN PATIENTDEPOSITINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN PATIENTDEPOSITSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN PATIENTPOINTSBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN PATIENTPOINTSINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN PATIENTPOINTSSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DRAWER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DRAWER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DRAWER ADD COLUMN SLIPBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN SLIPINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN SLIPSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN STAFFBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN STAFFINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN STAFFSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN STAFFWELFAREBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN STAFFWELFAREINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN STAFFWELFARESHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN VOUCHERBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN VOUCHERINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN VOUCHERSHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN YOUOWEMEBALANCE DOUBLE
ALTER TABLE DRAWER ADD COLUMN YOUOWEMEINHANDVALUE DOUBLE
ALTER TABLE DRAWER ADD COLUMN YOUOWEMESHORTAGEOREXCESS DOUBLE
ALTER TABLE DRAWER ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DRAWER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DRAWER ADD COLUMN DRAWERUSER_ID BIGINT
ALTER TABLE DATABASEMIGRATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DATABASEMIGRATION ADD COLUMN DESCRIPTION VARCHAR(255) NOT NULL
ALTER TABLE DATABASEMIGRATION ADD COLUMN ERRORMESSAGE LONGTEXT
ALTER TABLE DATABASEMIGRATION ADD COLUMN ESTIMATEDDURATIONMS BIGINT
ALTER TABLE DATABASEMIGRATION ADD COLUMN EXECUTEDAT DATETIME NOT NULL
ALTER TABLE DATABASEMIGRATION ADD COLUMN EXECUTIONLOG LONGTEXT
ALTER TABLE DATABASEMIGRATION ADD COLUMN EXECUTIONTIMEMS BIGINT
ALTER TABLE DATABASEMIGRATION ADD COLUMN FILENAME VARCHAR(100) NOT NULL
ALTER TABLE DATABASEMIGRATION ADD COLUMN MIGRATIONMETADATA LONGTEXT
ALTER TABLE DATABASEMIGRATION ADD COLUMN REQUIRESDOWNTIME TINYINT(1) default 0 NOT NULL
ALTER TABLE DATABASEMIGRATION ADD COLUMN ROLLBACKAT DATETIME
ALTER TABLE DATABASEMIGRATION ADD COLUMN ROLLBACKFILENAME VARCHAR(100)
ALTER TABLE DATABASEMIGRATION ADD COLUMN STATUS VARCHAR(255) NOT NULL
ALTER TABLE DATABASEMIGRATION ADD COLUMN VERSION VARCHAR(50) NOT NULL UNIQUE
ALTER TABLE DATABASEMIGRATION ADD COLUMN EXECUTEDBY_ID BIGINT
ALTER TABLE DATABASEMIGRATION ADD COLUMN ROLLBACKBY_ID BIGINT
ALTER TABLE STAFFDESIGNATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFDESIGNATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFDESIGNATION ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFDESIGNATION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFDESIGNATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFDESIGNATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFDESIGNATION ADD COLUMN TODATE DATE
ALTER TABLE STAFFDESIGNATION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFDESIGNATION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFDESIGNATION ADD COLUMN STAFFEMPLOYMENT_ID BIGINT
ALTER TABLE STAFFDESIGNATION ADD COLUMN DESIGNATION_ID BIGINT
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN AMOUNT DOUBLE
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN PAYMENTMETHOD INTEGER
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PAYMENTMETHODVALUE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE BILLFEEPAYMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE BILLFEEPAYMENT ADD COLUMN AMOUNT DOUBLE
ALTER TABLE BILLFEEPAYMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE BILLFEEPAYMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE BILLFEEPAYMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE BILLFEEPAYMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE BILLFEEPAYMENT ADD COLUMN BILLFEE_ID BIGINT
ALTER TABLE BILLFEEPAYMENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE BILLFEEPAYMENT ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE BILLFEEPAYMENT ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE BILLFEEPAYMENT ADD COLUMN PAYMENT_ID BIGINT
ALTER TABLE BILLFEEPAYMENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE COMPONENTASIGNMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE COMPONENTASIGNMENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE COMPONENTASIGNMENT ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE USERICON ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE USERICON ADD COLUMN ICON INTEGER
ALTER TABLE USERICON ADD COLUMN ORDERNUMBER DOUBLE
ALTER TABLE USERICON ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE USERICON ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE USERICON ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE USERICON ADD COLUMN WEBUSERROLE_ID BIGINT
ALTER TABLE SALARYCYCLE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE SALARYCYCLE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN DAYOFFPHFROMDATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN DAYOFFPHTODATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN EXTRADUTYFROMDATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN EXTRADUTYTODATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE SALARYCYCLE ADD COLUMN OVERTIMEFROMDATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN OVERTIMETODATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE SALARYCYCLE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE SALARYCYCLE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN SALARYADVANCEFROMDATE DATE
ALTER TABLE SALARYCYCLE ADD COLUMN SALARYADVANCETODATE DATE
ALTER TABLE SALARYCYCLE ADD COLUMN SALARYDATE INTEGER
ALTER TABLE SALARYCYCLE ADD COLUMN SALARYFROMDATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN SALARYMONTH INTEGER
ALTER TABLE SALARYCYCLE ADD COLUMN SALARYTODATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN SALARYYEAR INTEGER
ALTER TABLE SALARYCYCLE ADD COLUMN WORKEDFROMDATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN WORKEDTODATE DATETIME
ALTER TABLE SALARYCYCLE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE SALARYCYCLE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN APPROVEAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN APPROVECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN APPROVED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN BARCODEGENERATED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN BARCODEGENERATEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CANCELLCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CANCELLED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CANCELLEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN COLLECTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN DATAENTERED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN DATAENTRYAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN DATAENTRYCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN ORDERED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN ORDEREDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCEDCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCEDVALUE DOUBLE
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PERFORMCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PERFORMED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PERFORMEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PRINTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PRINTINGAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PRINTINGCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RECEIVECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RECEIVED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RECEIVEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTDISTRIBUTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTDISTRIBUTEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTHANDEDOVER TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTHANDEDOVERAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTPRINTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTPRINTEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTREACHEDCOLLECTINGCENTRE TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTREACHEDCOLLECTINGCENTREAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETURNCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETURNED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETURNEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEACCEPTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEACCEPTEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEAPPROVED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEAPPROVEDANDREPEATED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEAPPROVEDANDREPEATEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEAPPROVEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLECOLLECTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLECOLLECTEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLECOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEGENERATED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEGENERATEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEIDS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEINTERFACED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEINTERFACEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEOUTSIDE TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLERECOLLECTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLERECOLLECTEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREJECTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREJECTEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREPEATED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREPEATEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLERESENT TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLERESENTAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREVERTED TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREVERTEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLESENT TINYINT(1) default 0
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLESENTAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLESENTCOMMENTS VARCHAR(255)
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEDAT DATETIME
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN STATUS INTEGER
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN APPROVEDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN APPROVEINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN APPROVEUSER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN BARCODEGENERATEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN BILLCOMPONENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CANCELLDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CANCELLINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CANCELLEDUSER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN DATAENTRYDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN DATAENTRYINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN DATAENTRYUSER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN ENCOUNTER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN INVESTIGATION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN ORDEREDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN ORDEREDDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCEINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCEDDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCEDINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN OUTSOURCEDUSER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PACKEGE_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PATIENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PERFORMDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PERFORMINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PERFORMEDUSER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PRINTINGDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PRINTINGINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN PRINTINGUSER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RECEIVEDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RECEIVEINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RECEIVEDCOLLECTER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTDISTRIBUTEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTHANDEDOVERBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTPRINTEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN REPORTREACHEDCOLLECTINGCENTREBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETURNDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETURNINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN RETURNEDUSER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEACCEPTEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEAPPROVEDANDREPEATEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEAPPROVEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLECOLLECTEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLECOLLECTER_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEDEPARTMENT_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEGENERATEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEINSTITUTION_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEINTERFACEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLERECOLLECTEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREJECTEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREPEATEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLERESENTBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLEREVERTEDBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLESENTBY_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN SAMPLETRANSPORTEDTOLABBYSTAFF_ID BIGINT
ALTER TABLE PATIENTINVESTIGATION ADD COLUMN BILLITEM_ID BIGINT
ALTER TABLE CLIENTACCOUNT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CLIENTACCOUNT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CLIENTACCOUNT ADD COLUMN CREATEDVIA VARCHAR(255)
ALTER TABLE CLIENTACCOUNT ADD COLUMN EMAILVERIFIED TINYINT(1) default 0
ALTER TABLE CLIENTACCOUNT ADD COLUMN PASSWORDHASH VARCHAR(255)
ALTER TABLE CLIENTACCOUNT ADD COLUMN PHONEVERIFIED TINYINT(1) default 0
ALTER TABLE CLIENTACCOUNT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CLIENTACCOUNT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CLIENTACCOUNT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CLIENTACCOUNT ADD COLUMN VERIFIEDEMAIL VARCHAR(255)
ALTER TABLE CLIENTACCOUNT ADD COLUMN VERIFIEDPHONE VARCHAR(255)
ALTER TABLE CLIENTACCOUNT ADD COLUMN CREATEDBYWEBUSER_ID BIGINT
ALTER TABLE CLIENTACCOUNT ADD COLUMN PERSON_ID BIGINT
ALTER TABLE CLIENTACCOUNT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN PASSWORD VARCHAR(255)
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE WEBUSERPASSWORDHISTORY ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE TEMPLATECOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE TEMPLATECOMPONENT ADD COLUMN DESCRIPTION LONGTEXT
ALTER TABLE TEMPLATECOMPONENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE TEMPLATECOMPONENT ADD COLUMN TYPE VARCHAR(255)
ALTER TABLE TEMPLATECOMPONENT ADD COLUMN PARENT_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE APPEMAIL ADD COLUMN ATTACHMENT1 VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN ATTACHMENT2 VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN ATTACHMENT3 VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN ATTACHMENT4 VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN ATTACHMENTNAMES VARCHAR(2000)
ALTER TABLE APPEMAIL ADD COLUMN BCCEMAILS VARCHAR(2000)
ALTER TABLE APPEMAIL ADD COLUMN CCEMAILS VARCHAR(2000)
ALTER TABLE APPEMAIL ADD COLUMN CREATEDAT DATETIME
ALTER TABLE APPEMAIL ADD COLUMN MESSAGEBODY LONGTEXT
ALTER TABLE APPEMAIL ADD COLUMN MESSAGESUBJECT VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN MESSAGETYPE VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN OTP VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN PENDING TINYINT(1) default 0
ALTER TABLE APPEMAIL ADD COLUMN RECEIPIENTEMAIL VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE APPEMAIL ADD COLUMN RETIREDAT DATETIME
ALTER TABLE APPEMAIL ADD COLUMN SENDEREMAIL VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN SENDERPASSWORD VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN SENDERUSERNAME VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN SENTAT DATE
ALTER TABLE APPEMAIL ADD COLUMN SENTSUCCESSFULLY TINYINT(1) default 0
ALTER TABLE APPEMAIL ADD COLUMN SMSTYPE VARCHAR(255)
ALTER TABLE APPEMAIL ADD COLUMN BILL_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN CREATER_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN ENCOUNTERCREDITCOMPANY_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN PATIENTENCOUNTER_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN PATIENTINVESTIGATION_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN PATIENTREPORT_ID BIGINT
ALTER TABLE APPEMAIL ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE LOGINS ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE LOGINS ADD COLUMN BROWSER VARCHAR(255)
ALTER TABLE LOGINS ADD COLUMN COMPUTERNAME VARCHAR(255)
ALTER TABLE LOGINS ADD COLUMN IPADDRESS VARCHAR(255)
ALTER TABLE LOGINS ADD COLUMN LOGEDAT DATETIME
ALTER TABLE LOGINS ADD COLUMN LOGOUTAT DATETIME
ALTER TABLE LOGINS ADD COLUMN OPERATINGSYSTEM VARCHAR(255)
ALTER TABLE LOGINS ADD COLUMN SCREENRESOLUTION VARCHAR(255)
ALTER TABLE LOGINS ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE LOGINS ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE LOGINS ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE DRAWERENTRY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DRAWERENTRY ADD COLUMN AFTERBALANCE DOUBLE
ALTER TABLE DRAWERENTRY ADD COLUMN AFTERINHANDVALUE DOUBLE
ALTER TABLE DRAWERENTRY ADD COLUMN AFTERSHORTAGEEXCESS DOUBLE
ALTER TABLE DRAWERENTRY ADD COLUMN BEFOREBALANCE DOUBLE
ALTER TABLE DRAWERENTRY ADD COLUMN BEFOREINHANDVALUE DOUBLE
ALTER TABLE DRAWERENTRY ADD COLUMN BEFORESHORTAGEEXCESS DOUBLE
ALTER TABLE DRAWERENTRY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DRAWERENTRY ADD COLUMN PAYMENTMETHOD VARCHAR(255)
ALTER TABLE DRAWERENTRY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DRAWERENTRY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DRAWERENTRY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DRAWERENTRY ADD COLUMN TRANSACTIONVALUE DOUBLE
ALTER TABLE DRAWERENTRY ADD COLUMN BILL_ID BIGINT
ALTER TABLE DRAWERENTRY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DRAWERENTRY ADD COLUMN DRAWER_ID BIGINT
ALTER TABLE DRAWERENTRY ADD COLUMN PAYMENT_ID BIGINT
ALTER TABLE DRAWERENTRY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE DRAWERENTRY ADD COLUMN WEBUSER_ID BIGINT
ALTER TABLE STOCK ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STOCK ADD COLUMN BARCODE VARCHAR(255)
ALTER TABLE STOCK ADD COLUMN CODE VARCHAR(255)
ALTER TABLE STOCK ADD COLUMN DATEOFEXPIRE DATE
ALTER TABLE STOCK ADD COLUMN ENDBARCODE BIGINT
ALTER TABLE STOCK ADD COLUMN ITEMNAME VARCHAR(255)
ALTER TABLE STOCK ADD COLUMN LONGCODE BIGINT
ALTER TABLE STOCK ADD COLUMN RETAILSALERATE DOUBLE
ALTER TABLE STOCK ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STOCK ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STOCK ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STOCK ADD COLUMN STARTBARCODE BIGINT
ALTER TABLE STOCK ADD COLUMN STOCK DOUBLE
ALTER TABLE STOCK ADD COLUMN STOCKLOCATOR VARCHAR(255)
ALTER TABLE STOCK ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE STOCK ADD COLUMN ITEMBATCH_ID BIGINT
ALTER TABLE STOCK ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STOCK ADD COLUMN STAFF_ID BIGINT
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN ID BIGINT NOT NULL
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN FRIDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN MERCANTILEHOLIDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN MONDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN POYADAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN PUBLICHOLIDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN SATURDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN SUNDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN THURSDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN TUESDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN WEDNESDAYCOUNT INTEGER
ALTER TABLE SHIFTSTAFFREQUIREMENT ADD COLUMN shift_id BIGINT UNIQUE
ALTER TABLE STOCKHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STOCKHISTORY ADD COLUMN COSTRATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STOCKHISTORY ADD COLUMN FROMDATE DATETIME
ALTER TABLE STOCKHISTORY ADD COLUMN HISTORYTYPE VARCHAR(255)
ALTER TABLE STOCKHISTORY ADD COLUMN HXDATE INTEGER
ALTER TABLE STOCKHISTORY ADD COLUMN HXMONTH INTEGER
ALTER TABLE STOCKHISTORY ADD COLUMN HXWEEK INTEGER
ALTER TABLE STOCKHISTORY ADD COLUMN HXYEAR BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUIONBATCHQTY DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTIONBATCHSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTIONBATCHSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTIONBATCHSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTIONITEMSTOCK DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTIONITEMSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTIONITEMSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTIONITEMSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN ITEMSTOCK DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN ITEMSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN ITEMSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN ITEMSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN PURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN RETAILRATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STOCKHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STOCKHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STOCKHISTORY ADD COLUMN STOCKAT DATE
ALTER TABLE STOCKHISTORY ADD COLUMN STOCKCOSTVALUE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN STOCKPURCHASEVALUE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN STOCKQTY DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN STOCKSALEVALUE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TODATE DATETIME
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALBATCHQTY DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALBATCHSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALBATCHSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALBATCHSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALITEMSTOCK DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALITEMSTOCKVALUEATCOSTRATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALITEMSTOCKVALUEATPURCHASERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN TOTALITEMSTOCKVALUEATSALERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN WHOLESALERATE DOUBLE
ALTER TABLE STOCKHISTORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN ITEM_ID BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN ITEMBATCH_ID BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN STAFF_ID BIGINT
ALTER TABLE STOCKHISTORY ADD COLUMN PBITEM_ID BIGINT
ALTER TABLE WEBCONTENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE WEBCONTENT ADD COLUMN ENGLISH LONGTEXT
ALTER TABLE WEBCONTENT ADD COLUMN LONGCONTEXT LONGTEXT
ALTER TABLE WEBCONTENT ADD COLUMN NAME VARCHAR(255)
ALTER TABLE WEBCONTENT ADD COLUMN ORDERNO DOUBLE
ALTER TABLE WEBCONTENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE WEBCONTENT ADD COLUMN SHORTCONTEXT VARCHAR(255)
ALTER TABLE WEBCONTENT ADD COLUMN SINHALA LONGTEXT
ALTER TABLE WEBCONTENT ADD COLUMN TAMIL LONGTEXT
ALTER TABLE WEBCONTENT ADD COLUMN TYPE INTEGER
ALTER TABLE WEBCONTENT ADD COLUMN PARENT_ID BIGINT
ALTER TABLE WEBCONTENT ADD COLUMN WEBLANGUAGE_ID BIGINT
ALTER TABLE ITEMFORITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ITEMFORITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ITEMFORITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ITEMFORITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ITEMFORITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ITEMFORITEM ADD COLUMN CHILDITEM_ID BIGINT
ALTER TABLE ITEMFORITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ITEMFORITEM ADD COLUMN PARENTITEM_ID BIGINT
ALTER TABLE ITEMFORITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN COMPONENTTYPE VARCHAR(255)
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN CREATEDAT DATETIME
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN FIXEDPRICE DOUBLE
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN QTY DOUBLE
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN RETIREDAT DATETIME
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN ROLELABEL VARCHAR(255)
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN CREATER_ID BIGINT
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN INPATIENTPACKAGE_ID BIGINT
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN ITEM_ID BIGINT
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INPATIENTPACKAGEITEM ADD COLUMN SPECIALITY_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN ACTIVE TINYINT(1) default 0
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN ALLOWOVERLAP TINYINT(1) default 0
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN DEFAULTDURATIONMINUTES DOUBLE
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN DESCRIPTION VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN EFFECTIVEFROM DATE
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN EFFECTIVETO DATE
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN ENDTIME TIME
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN MAXCOUNT INTEGER
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN SCHEDULETYPE VARCHAR(255)
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN SESSIONWEEKDAY INTEGER
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN STARTTIME TIME
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN CONSULTANT_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN PROCEDURE_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE APPOINTMENTSCHEDULETEMPLATE ADD COLUMN ROOM_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN ACCOUNTNO VARCHAR(255)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CHEQUEDATE DATETIME
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CHEQUENUMBER VARCHAR(255)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CHEQUEPAIDDATE DATETIME
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN COMMENT VARCHAR(255)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN COMPLETED TINYINT(1) default 0
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN COMPLETEDAT DATETIME
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CREATEDVALUE DOUBLE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN DATEAFFECTFROM DATE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN DBLVALUE DOUBLE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN FROMDATE DATE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN LASTEDITEDAT DATETIME
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN LOANFULLAMOUNT DOUBLE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN LOANNO VARCHAR(255)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN MODIFIEDVALUE DOUBLE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN NUMBEROFINSTALLMENT DOUBLE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN SHEDULEFORPAID TINYINT(1) default 0
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN STAFFPAYSHEETCOMPONENTVALUE DOUBLE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN STARTINGBALANCE DOUBLE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN TODATE DATE
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN BANKBRANCH_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CHEQUEBANK_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CHEQUEPAIDBY_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN COMPLETER_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN LASTEDITOR_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN PAYSHEETCOMPONENT_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFPAYSHEETCOMPONENT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE DOCTORINSTITUTION ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE DOCTORINSTITUTION ADD COLUMN BOOLEANVALUE TINYINT(1) default 0
ALTER TABLE DOCTORINSTITUTION ADD COLUMN CREATEDAT DATETIME
ALTER TABLE DOCTORINSTITUTION ADD COLUMN EDITEDAT DATETIME
ALTER TABLE DOCTORINSTITUTION ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE DOCTORINSTITUTION ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE DOCTORINSTITUTION ADD COLUMN RETIREDAT DATETIME
ALTER TABLE DOCTORINSTITUTION ADD COLUMN CREATER_ID BIGINT
ALTER TABLE DOCTORINSTITUTION ADD COLUMN DOCTOR_ID BIGINT
ALTER TABLE DOCTORINSTITUTION ADD COLUMN EDITER_ID BIGINT
ALTER TABLE DOCTORINSTITUTION ADD COLUMN INSTITUTION_ID BIGINT
ALTER TABLE DOCTORINSTITUTION ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN APTOBPRELATIONSHIP VARCHAR(255)
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN CREATEDAT DATETIME
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN ORDERNO INTEGER
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN RETIREDAT DATETIME
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN APERSON_ID BIGINT
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN BPERSON_ID BIGINT
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN CREATER_ID BIGINT
ALTER TABLE PERSONRELATIONSHIP ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN CREATEDAT DATETIME
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN NAME VARCHAR(255)
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN ORDERNO INTEGER
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN RETIREDAT DATETIME
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN CREATER_ID BIGINT
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN INVESTIGATIONITEM_ID BIGINT
ALTER TABLE INVESTIGATIONREPORTITEMVALUE ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ROSTER ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE ROSTER ADD COLUMN CREATEDAT DATETIME
ALTER TABLE ROSTER ADD COLUMN NAME VARCHAR(255)
ALTER TABLE ROSTER ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE ROSTER ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE ROSTER ADD COLUMN RETIREDAT DATETIME
ALTER TABLE ROSTER ADD COLUMN SHIFTPERDAY INTEGER
ALTER TABLE ROSTER ADD COLUMN STARTINGTIME TIME
ALTER TABLE ROSTER ADD COLUMN CREATER_ID BIGINT
ALTER TABLE ROSTER ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE ROSTER ADD COLUMN DEPARTMENT_ID BIGINT
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN CREATEDAT DATETIME
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN FROMDATE DATETIME
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN LEAVINGCOMMENTS LONGTEXT
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN LEAVINGSTATUS VARCHAR(255)
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN RECRUITCOMMENTS LONGTEXT
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN RECRUITSTATUS VARCHAR(255)
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN RETIREDAT DATETIME
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN TODATE DATETIME
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN CREATER_ID BIGINT
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE STAFFEMPLOYMENT ADD COLUMN STAFF_ID BIGINT
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN ID BIGINT AUTO_INCREMENT NOT NULL
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN CASHAT DATE
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN CASHBALLANCE DOUBLE
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN CHEQUEBALLANCE DOUBLE
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN CREATEDAT DATETIME
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN CREDITCARDBALLANCE DOUBLE
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN FROMDATE DATETIME
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN HISTORYTYPE VARCHAR(255)
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN HXDATE INTEGER
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN HXMONTH INTEGER
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN HXWEEK INTEGER
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN HXYEAR BIGINT
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN RETIRECOMMENTS VARCHAR(255)
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN RETIRED TINYINT(1) default 0
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN RETIREDAT DATETIME
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN SLIPBALLANCE DOUBLE
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN TODATE DATETIME
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN CREATER_ID BIGINT
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN RETIRER_ID BIGINT
ALTER TABLE CASHTRANSACTIONHISTORY ADD COLUMN CASHTRANSACTION_ID BIGINT
ALTER TABLE PRESCRIPTIONTEMPLATE_PRESCRIPTIONTEMPLATE ADD COLUMN PrescriptionTemplate_ID BIGINT NOT NULL
ALTER TABLE PRESCRIPTIONTEMPLATE_PRESCRIPTIONTEMPLATE ADD COLUMN items_ID BIGINT NOT NULL
ALTER TABLE SEQUENCE ADD COLUMN SEQ_NAME VARCHAR(50) NOT NULL
ALTER TABLE SEQUENCE ADD COLUMN SEQ_COUNT DECIMAL(38)
ALTER TABLE SEQUENCE ADD COLUMN SEQ_NAME VARCHAR(50) NOT NULL
ALTER TABLE SEQUENCE ADD COLUMN SEQ_COUNT DECIMAL(38)
