Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE SCHEMA sageimport;
- CREATE TABLE sageimport.rap_analysis(
- companycode varchar(3)
- , lastupdatedate date
- , period1endingdate date
- , period2endingdate date
- , period3endingdate date
- , period4endingdate date
- , period5endingdate date
- , period6endingdate date
- , currentnoofinvs numeric(15,4)
- , currenttotalpayables numeric(15,4)
- , currentover30days numeric(15,4)
- , currentover60days numeric(15,4)
- , period1noofinvs numeric(15,4)
- , period1totalpayables numeric(15,4)
- , period1over30days numeric(15,4)
- , period1over60days numeric(15,4)
- , period2noofinvs numeric(15,4)
- , period2totalpayables numeric(15,4)
- , period2over30days numeric(15,4)
- , period2over60days numeric(15,4)
- , period3noofinvs numeric(15,4)
- , period3totalpayables numeric(15,4)
- , period3over30days numeric(15,4)
- , period3over60days numeric(15,4)
- , period4noofinvs numeric(15,4)
- , period4totalpayables numeric(15,4)
- , period4over30days numeric(15,4)
- , period4over60days numeric(15,4)
- , period5noofinvs numeric(15,4)
- , period5totalpayables numeric(15,4)
- , period5over30days numeric(15,4)
- , period5over60days numeric(15,4)
- , period6noofinvs numeric(15,4)
- , period6totalpayables numeric(15,4)
- , period6over30days numeric(15,4)
- , period6over60days numeric(15,4)
- , totalnoofdaysold numeric(15,4)
- , totaloforiginalinvamounts numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_analysis_KEY0_pk PRIMARY KEY (companycode)
- , CONSTRAINT rap_analysis_KEY0_check CHECK (companycode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_audit(
- userkey varchar(10)
- , workstationname varchar(30)
- , date date
- , sequenceno varchar(14)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendorname varchar(50)
- , transactiontype varchar(1)
- , fieldname varchar(50)
- , fieldvalueoriginal varchar(50)
- , newfieldvalue varchar(50)
- , CONSTRAINT rap_audit_KEY0_pk PRIMARY KEY (userkey,date,sequenceno)
- , CONSTRAINT rap_audit_KEY0_check CHECK (userkey is not null and date is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rap_audit_KEY1_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_checkhistorydetail(
- bankcode varchar(1)
- , checkno varchar(10)
- , checkseqno varchar(6)
- , invoiceno varchar(20)
- , invoiceseqno varchar(6)
- , invoicedate date
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendorname varchar(50)
- , comment varchar(40)
- , form1099 varchar(1)
- , box1099 varchar(3)
- , amountpaid numeric(15,4)
- , discountamt numeric(15,4)
- , unapplieddiscountamt numeric(15,4)
- , retentionamt numeric(15,4)
- , CONSTRAINT rap_checkhistorydetail_KEY0_pk PRIMARY KEY (bankcode,checkno,checkseqno,invoiceno,invoiceseqno)
- , CONSTRAINT rap_checkhistorydetail_KEY0_check CHECK (bankcode is not null and checkno is not null and checkseqno is not null and invoiceno is not null and invoiceseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_checkhistorydetail_KEY1_index ON sageimport.rap_checkhistorydetail (invoiceno,invoiceseqno,bankcode,checkno,checkseqno);
- CREATE INDEX rap_checkhistorydetail_KEY2_index ON sageimport.rap_checkhistorydetail (apdivisionno,vendorno,bankcode,checkno,checkseqno,invoiceno,invoiceseqno);
- CREATE TABLE sageimport.rap_checkhistoryheader(
- bankcode varchar(1)
- , checkno varchar(10)
- , checkseqno varchar(6)
- , checktype varchar(1)
- , checkdate date
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendorname varchar(50)
- , sourcejournal varchar(2)
- , sourcejournalbatchno varchar(6)
- , checkcomment varchar(40)
- , transactiondate date
- , transferapdivisionno varchar(2)
- , transfervendorno varchar(7)
- , transferinvoiceno varchar(20)
- , transferinvoicedate date
- , transferform1099 varchar(1)
- , transferbox1099 varchar(3)
- , transferdiscountamt numeric(15,4)
- , checkamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , achelectronicpayment varchar(1)
- , wiretransferno varchar(30)
- , achelectronicpaymentamt numeric(15,4)
- , clearedbank varchar(1)
- , cleareddate date
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rap_checkhistoryheader_KEY0_pk PRIMARY KEY (bankcode,checkno,checkseqno)
- , CONSTRAINT rap_checkhistoryheader_KEY0_check CHECK (bankcode is not null and checkno is not null and checkseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_checkhistoryheader_KEY1_index ON sageimport.rap_checkhistoryheader (apdivisionno,vendorno,bankcode,checkno,checkseqno);
- CREATE INDEX rap_checkhistoryheader_KEY2_index ON sageimport.rap_checkhistoryheader (vendorname,bankcode,checkno,checkseqno);
- CREATE INDEX rap_checkhistoryheader_KEY3_index ON sageimport.rap_checkhistoryheader (checkdate,bankcode,checkno,checkseqno);
- CREATE TABLE sageimport.rap_dailypostingwork(
- postingdate date
- , sourcejournal varchar(2)
- , registerno varchar(6)
- , accountkey varchar(9)
- , sequenceno varchar(14)
- , sourcemodule varchar(2)
- , postingcomment text
- , documenttype varchar(1)
- , documentno varchar(20)
- , docsequenceno varchar(14)
- , receiptno varchar(7)
- , batchtype varchar(2)
- , batchno varchar(5)
- , lineseqno varchar(14)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , debitamount numeric(15,4)
- , creditamount numeric(15,4)
- , CONSTRAINT rap_dailypostingwork_KEY0_pk PRIMARY KEY (postingdate,sourcejournal,registerno,accountkey,sequenceno)
- , CONSTRAINT rap_dailypostingwork_KEY0_check CHECK (postingdate is not null and sourcejournal is not null and registerno is not null and accountkey is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rap_dailypostingwork_KEY1_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_dailypostingwork_KEY2_index ON sageimport.rap_dailypostingwork (registerno,postingdate,sourcejournal,accountkey,sequenceno);
- CREATE INDEX rap_dailypostingwork_KEY3_index ON sageimport.rap_dailypostingwork (accountkey,postingdate,sourcejournal,registerno,sequenceno);
- CREATE TABLE sageimport.rap_division(
- apdivisionno varchar(2)
- , apdivisiondesc varchar(30)
- , accountspayableacctkey varchar(9)
- , discountsearnedortakenacctkey varchar(9)
- , cashacctkey varchar(9)
- , discountslostacctkey varchar(9)
- , retentionpayableacctkey varchar(9)
- , freightacctkey varchar(9)
- , salestaxacctkey varchar(9)
- , nonrecoverabletaxacctkey varchar(9)
- , usetaxacctkey varchar(9)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_division_KEY0_pk PRIMARY KEY (apdivisionno)
- , CONSTRAINT rap_division_KEY0_check CHECK (apdivisionno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_invoicehistorydetail(
- invoiceno varchar(20)
- , headerseqno varchar(6)
- , detailseqno varchar(6)
- , accountkey varchar(9)
- , jobno varchar(7)
- , costcode varchar(9)
- , costtype varchar(1)
- , commenttext text
- , transferapdivisionno varchar(2)
- , transfervendorno varchar(7)
- , transferinvoiceno varchar(20)
- , transferform1099 varchar(1)
- , transferbox1099 varchar(3)
- , itemcode varchar(30)
- , itemcodedesc varchar(30)
- , itemtype varchar(1)
- , extendeddescriptionkey varchar(10)
- , usetax varchar(1)
- , requireddate date
- , vendorpricecode varchar(4)
- , valuation varchar(1)
- , unitofmeasure varchar(4)
- , warehousecode varchar(3)
- , powarehousecode varchar(3)
- , productline varchar(4)
- , workorderno varchar(7)
- , workorderstepno varchar(4)
- , workordersubsteppfx varchar(1)
- , workordersubstepsfx varchar(4)
- , workordertransactiontype varchar(1)
- , vendoraliasitemno varchar(30)
- , taxclass varchar(2)
- , assettemplate varchar(25)
- , retentionrate numeric(15,4)
- , retentionamt numeric(15,4)
- , transferdiscount numeric(15,4)
- , quantityordered numeric(15,4)
- , quantityreceived numeric(15,4)
- , quantityinvoiced numeric(15,4)
- , unitcost numeric(15,4)
- , originalunitcost numeric(15,4)
- , extensionamt numeric(15,4)
- , quantityorderedoriginal numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , salesorderno varchar(7)
- , customerpono varchar(30)
- , CONSTRAINT rap_invoicehistorydetail_KEY0_pk PRIMARY KEY (invoiceno,headerseqno,detailseqno)
- , CONSTRAINT rap_invoicehistorydetail_KEY0_check CHECK (invoiceno is not null and headerseqno is not null and detailseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_invoicehistorydetail_KEY1_index ON sageimport.rap_invoicehistorydetail (extendeddescriptionkey,invoiceno,headerseqno,detailseqno);
- CREATE INDEX rap_invoicehistorydetail_KEY2_index ON sageimport.rap_invoicehistorydetail (invoiceno,headerseqno,transferapdivisionno,transfervendorno);
- CREATE TABLE sageimport.rap_invoicehistoryheader(
- invoiceno varchar(20)
- , headerseqno varchar(6)
- , modulecode varchar(3)
- , invoicetype varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , invoicedate date
- , invoiceduedate date
- , invoicediscountdate date
- , transactiondate date
- , termscode varchar(2)
- , holdpayment varchar(1)
- , comment varchar(40)
- , prepaidapplytoinvoiceno varchar(20)
- , prepaidpaymentdate date
- , prepaidcheckno varchar(10)
- , sourcejournal varchar(2)
- , sourcejournalno varchar(6)
- , form1099 varchar(1)
- , box1099 varchar(3)
- , separatecheck varchar(1)
- , jobno varchar(7)
- , vendorname varchar(50)
- , taxschedule varchar(9)
- , taxclass varchar(2)
- , usetax varchar(1)
- , purchaseorderno varchar(7)
- , receiptno varchar(6)
- , receiptdate date
- , purchaseaddresscode varchar(4)
- , purchasename varchar(50)
- , purchaseaddress1 varchar(30)
- , purchaseaddress2 varchar(30)
- , purchaseaddress3 varchar(30)
- , purchasecity varchar(20)
- , purchasestate varchar(2)
- , purchasezipcode varchar(10)
- , purchasecountrycode varchar(3)
- , shiptocode varchar(4)
- , shiptoname varchar(50)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , requireddate date
- , shipvia varchar(15)
- , fob varchar(15)
- , warehousecode varchar(3)
- , confirmto varchar(30)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , codcheckno varchar(10)
- , bankcode varchar(1)
- , purchaseordertype varchar(1)
- , purchaseorderdate date
- , codno varchar(10)
- , userkey varchar(10)
- , invoiceamt numeric(15,4)
- , netinvoiceamt numeric(15,4)
- , discountamt numeric(15,4)
- , retentionamt numeric(15,4)
- , prepaymentamt numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , freightamt numeric(15,4)
- , taxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , taxablemiscchargeamt numeric(15,4)
- , nontaxablemiscchargeamt numeric(15,4)
- , totalcostforfrghtalloc numeric(15,4)
- , prepaidfreight numeric(15,4)
- , codamount numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rap_invoicehistoryheader_KEY0_pk PRIMARY KEY (invoiceno,headerseqno)
- , CONSTRAINT rap_invoicehistoryheader_KEY0_check CHECK (invoiceno is not null and headerseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_invoicehistoryheader_KEY1_index ON sageimport.rap_invoicehistoryheader (apdivisionno,vendorno,invoiceno,headerseqno);
- CREATE TABLE sageimport.rap_invoicehistorytaxsummary(
- invoiceno varchar(20)
- , headerseqno varchar(6)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , taxablepurchasesamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , taxamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , usetaxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , CONSTRAINT rap_invoicehistorytaxsummary_KEY0_pk PRIMARY KEY (invoiceno,headerseqno,scheduleseqno,taxcode)
- , CONSTRAINT rap_invoicehistorytaxsummary_KEY0_check CHECK (invoiceno is not null and headerseqno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_jobdistributiondetail(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , invoiceno varchar(20)
- , jobno varchar(7)
- , costcode varchar(9)
- , costtype varchar(1)
- , distributionamt numeric(15,4)
- , retentionamt numeric(15,4)
- , balance numeric(15,4)
- , amountappliedtoday numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_jobdistributiondetail_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,invoiceno,jobno,costcode,costtype)
- , CONSTRAINT rap_jobdistributiondetail_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and invoiceno is not null and jobno is not null and costcode is not null and costtype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_lastbankused(
- userkey varchar(10)
- , workstationname varchar(30)
- , bankcode varchar(1)
- , CONSTRAINT rap_lastbankused_KEY0_pk PRIMARY KEY (userkey)
- , CONSTRAINT rap_lastbankused_KEY0_check CHECK (userkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_lastbankused_KEY1_index ON sageimport.rap_lastbankused (workstationname);
- CREATE TABLE sageimport.rap_openinvoice(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , invoiceno varchar(20)
- , invoicedate date
- , invoiceduedate date
- , invoicediscountdate date
- , invoicehistoryheaderseqno varchar(6)
- , postingdate date
- , termscode varchar(2)
- , holdpayment varchar(1)
- , comment varchar(40)
- , jobno varchar(7)
- , checkno varchar(10)
- , checkdate date
- , paidtoday varchar(1)
- , form1099 varchar(1)
- , box1099 varchar(3)
- , separatecheck varchar(1)
- , taxschedule varchar(9)
- , taxclass varchar(2)
- , usetax varchar(1)
- , invoiceamt numeric(15,4)
- , discountamt numeric(15,4)
- , retentioncost numeric(15,4)
- , balance numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , freightamt numeric(15,4)
- , taxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , wiretransferno varchar(30)
- , checktype varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rap_openinvoice_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,invoiceno)
- , CONSTRAINT rap_openinvoice_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and invoiceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_openinvoice_KEY1_index ON sageimport.rap_openinvoice (apdivisionno,vendorno,invoicedate,invoiceno);
- CREATE INDEX rap_openinvoice_KEY2_index ON sageimport.rap_openinvoice (apdivisionno,vendorno,invoicedate,invoiceno);
- CREATE TABLE sageimport.rap_openinvoicetaxsummary(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , invoiceno varchar(20)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , taxablepurchasesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , taxamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_openinvoicetaxsummary_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,invoiceno,scheduleseqno,taxcode)
- , CONSTRAINT rap_openinvoicetaxsummary_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and invoiceno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , divisions varchar(1)
- , agingcategoriestouseforinv varchar(1)
- , agingcategory1 numeric(15,4)
- , agingcategory2 numeric(15,4)
- , agingcategory3 numeric(15,4)
- , agingcategory4 numeric(15,4)
- , defaultinvoicedisplay varchar(1)
- , displayinvoiceszerobalance varchar(1)
- , salestaxreporting varchar(1)
- , currentfiscalyr varchar(4)
- , currentperiod varchar(2)
- , enable1099reporting varchar(1)
- , default1099calendaryr varchar(4)
- , integrategeneralledger varchar(1)
- , integratebankrec varchar(1)
- , integratejobcost varchar(1)
- , invoiceregisterindetail varchar(1)
- , manualcheckregisterindetail varchar(1)
- , checkregisterindetail varchar(1)
- , daystoretainpaidinvs numeric(15,4)
- , accountfordisctsearnedorlost varchar(1)
- , applychangestoremittoaddr varchar(1)
- , invoicecomments varchar(1)
- , manualcheckcomments varchar(1)
- , checkscomments varchar(1)
- , calcsalestaxinapdataentry varchar(1)
- , expensefreightseparately varchar(1)
- , defaultbankcode varchar(1)
- , defaultbankcodetolastused varchar(1)
- , incrementnextchecknoduringprnt varchar(1)
- , displaywarningwhenpastdiscdue varchar(1)
- , sortinvregistersbyvendorname varchar(1)
- , printgldistoncheckregister varchar(1)
- , printglacctdesconregisters varchar(1)
- , printtaxjrnlsindetail varchar(1)
- , printtaxdetailonregisters varchar(1)
- , alwaysprintextendedstubrpt varchar(1)
- , vendorchangestotrack varchar(1)
- , trackadditionsindetail varchar(1)
- , trackdetailedinvpaymenthist varchar(1)
- , retaincommentlines varchar(1)
- , yearstoretainvendorhist numeric(15,4)
- , includesalestaxandfreight varchar(1)
- , yearstoretain1099paymenthist numeric(15,4)
- , bankcodeprinting varchar(1)
- , restartcheckprinting varchar(1)
- , restartcheckno varchar(10)
- , startingchecknothisrun varchar(10)
- , sequencenoforcreditcardxfer varchar(5)
- , vendormask varchar(6)
- , companycode varchar(3)
- , dataversion numeric(15,4)
- , datasublevel numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , displayclearedchecks varchar(1)
- , enablewiretransfers varchar(1)
- , enableexpensedisttables varchar(1)
- , allowlessthan100percent varchar(1)
- , printagedinvrptformultipleco varchar(1)
- , enableachelectronicpayments varchar(1)
- , postbankrecindetailach varchar(1)
- , printvendorremittanceadvice varchar(1)
- , nextvendorremittanceadviceno varchar(5)
- , allowpartialallocationofpayamt varchar(1)
- , resetprenotewhenrenumbervendor varchar(1)
- , yearstoretainelectronicpayhist numeric(15,4)
- , directoryforach varchar(150)
- , sequencenoforwiretransferxfer varchar(5)
- , acheffectivedate date
- , achbatchdesc varchar(30)
- , achnextprenotebatchno varchar(5)
- , CONSTRAINT rap_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rap_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_repetitiveinvoicedetail(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , referenceno varchar(4)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , accountkey varchar(9)
- , commenttext text
- , distributionamt numeric(15,4)
- , distributionpercentage numeric(15,4)
- , CONSTRAINT rap_repetitiveinvoicedetail_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,referenceno,linekey)
- , CONSTRAINT rap_repetitiveinvoicedetail_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and referenceno is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_repetitiveinvoicedetail_KEY1_index ON sageimport.rap_repetitiveinvoicedetail (apdivisionno,vendorno,referenceno,lineseqno,linekey);
- CREATE TABLE sageimport.rap_repetitiveinvoiceheader(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , referenceno varchar(4)
- , selectcyclecode varchar(2)
- , startbillingdate date
- , termscode varchar(2)
- , comment varchar(40)
- , lastbilleddate date
- , form1099 varchar(1)
- , box1099 varchar(3)
- , separatecheck varchar(1)
- , taxschedule varchar(9)
- , taxclass varchar(2)
- , usetax varchar(1)
- , numberofpaymentstomake numeric(15,4)
- , numberofpaymentsmade numeric(15,4)
- , invoiceamt numeric(15,4)
- , netinvoiceamt numeric(15,4)
- , discountamt numeric(15,4)
- , originalbalance numeric(15,4)
- , billedtodateamt numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , freightamt numeric(15,4)
- , taxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , tablecode varchar(6)
- , CONSTRAINT rap_repetitiveinvoiceheader_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,referenceno)
- , CONSTRAINT rap_repetitiveinvoiceheader_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and referenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_repetitiveinvoiceheader_KEY1_index ON sageimport.rap_repetitiveinvoiceheader (tablecode,apdivisionno,vendorno,referenceno);
- CREATE TABLE sageimport.rap_repetitiveinvoicetaxdetail(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , referenceno varchar(4)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , taxclass varchar(2)
- , purchasestaxable varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxablepurchasesamt numeric(15,4)
- , taxrate numeric(15,4)
- , nonrecoverablepercent numeric(15,4)
- , CONSTRAINT rap_repetitiveinvoicetaxdetail_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,referenceno,scheduleseqno,taxcode,taxclass)
- , CONSTRAINT rap_repetitiveinvoicetaxdetail_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and referenceno is not null and scheduleseqno is not null and taxcode is not null and taxclass IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_repetitiveinvoicetaxsummary(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , referenceno varchar(4)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , expensetovendoritem varchar(1)
- , useexemptionsonfile varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , taxamt numeric(15,4)
- , CONSTRAINT rap_repetitiveinvoicetaxsummary_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,referenceno,scheduleseqno,taxcode)
- , CONSTRAINT rap_repetitiveinvoicetaxsummary_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and referenceno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_salestax(
- taxcode varchar(15)
- , transactiondate date
- , invoiceno varchar(20)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendorname varchar(50)
- , modulecode varchar(3)
- , sourcejournalno varchar(6)
- , primarytaxcode varchar(15)
- , exemptionno varchar(20)
- , override varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , taxamt numeric(15,4)
- , usetaxamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_salestax_KEY0_pk PRIMARY KEY (taxcode,transactiondate,invoiceno)
- , CONSTRAINT rap_salestax_KEY0_check CHECK (taxcode is not null and transactiondate is not null and invoiceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_salestax_KEY1_index ON sageimport.rap_salestax (transactiondate,taxcode,invoiceno);
- CREATE TABLE sageimport.rap_termscode(
- termscode varchar(2)
- , termscodedesc varchar(30)
- , daysbeforedue numeric(15,4)
- , duedateadayofthemonth varchar(1)
- , minimumdaysallowedinv numeric(15,4)
- , daysdiscountallowed numeric(15,4)
- , discountdateadayofthemo varchar(1)
- , minimumdaysalloweddisc numeric(15,4)
- , discountrate numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_termscode_KEY0_pk PRIMARY KEY (termscode)
- , CONSTRAINT rap_termscode_KEY0_check CHECK (termscode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_transactionpaymenthistory(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , invoiceno varchar(20)
- , invoicehistoryheaderseqno varchar(6)
- , transactiondate date
- , sequenceno varchar(6)
- , transactiontype varchar(1)
- , checkno varchar(10)
- , checkhistoryheaderseqno varchar(6)
- , checkdate date
- , applytoinvoice varchar(20)
- , applyhistoryheaderseqno varchar(6)
- , bankcode varchar(1)
- , transactionamt numeric(15,4)
- , discountamt numeric(15,4)
- , retentionamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , checktype varchar(1)
- , clearedbank varchar(1)
- , cleareddate date
- , wiretransferno varchar(30)
- , brcheckno varchar(10)
- , brachcheckseqno varchar(6)
- , documenttype varchar(1)
- , entryno varchar(6)
- , CONSTRAINT rap_transactionpaymenthistory_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,invoiceno,transactiondate,sequenceno)
- , CONSTRAINT rap_transactionpaymenthistory_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and invoiceno is not null and transactiondate is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_transactionpaymenthistory_KEY1_index ON sageimport.rap_transactionpaymenthistory (apdivisionno,vendorno,transactiondate,invoiceno,sequenceno);
- CREATE INDEX rap_transactionpaymenthistory_KEY2_index ON sageimport.rap_transactionpaymenthistory (apdivisionno,vendorno,transactiondate,invoiceno,sequenceno);
- CREATE INDEX rap_transactionpaymenthistory_KEY3_index ON sageimport.rap_transactionpaymenthistory (bankcode,documenttype,brcheckno,brachcheckseqno,checkdate,entryno);
- CREATE TABLE sageimport.rap_vendor(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendorname varchar(50)
- , addressline1 varchar(30)
- , addressline2 varchar(30)
- , addressline3 varchar(30)
- , city varchar(20)
- , state varchar(2)
- , zipcode varchar(10)
- , countrycode varchar(3)
- , primarycontact varchar(10)
- , telephoneno varchar(17)
- , telephoneext varchar(5)
- , faxno varchar(17)
- , emailaddress varchar(250)
- , urladdress varchar(50)
- , termscode varchar(2)
- , reference varchar(15)
- , temporaryvendor varchar(1)
- , creditcardvendor varchar(1)
- , holdpayment varchar(1)
- , exemptionnoonfile varchar(1)
- , taxschedule varchar(9)
- , taxclass varchar(2)
- , accountkey varchar(9)
- , separatecheck varchar(1)
- , comment varchar(30)
- , sort varchar(10)
- , batchfax varchar(1)
- , useporeceiptofinvforvendor varchar(1)
- , primarypurchaseaddresscode varchar(4)
- , vendortype varchar(1)
- , form1099 varchar(1)
- , taxpayeridsocialsecurityno varchar(9)
- , box1099 varchar(3)
- , miscbox9 varchar(1)
- , lastpurchasedate date
- , lastpaymentdate date
- , lastcheckno varchar(10)
- , lastcheckamt numeric(15,4)
- , retentionrate numeric(15,4)
- , averagedaystopay numeric(15,4)
- , averagedaysoverdue numeric(15,4)
- , balancedue numeric(15,4)
- , numberofinvtouseincalc numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , vendorstatus varchar(1)
- , inactivereasoncode varchar(5)
- , electronicpayment varchar(1)
- , standardentryclass varchar(3)
- , electronicconsentsigned1099 varchar(1)
- , fatca varchar(1)
- , CONSTRAINT rap_vendor_KEY0_pk PRIMARY KEY (apdivisionno,vendorno)
- , CONSTRAINT rap_vendor_KEY0_check CHECK (apdivisionno is not null and vendorno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_vendor_KEY1_index ON sageimport.rap_vendor (vendorname,apdivisionno,vendorno);
- CREATE INDEX rap_vendor_KEY2_index ON sageimport.rap_vendor (sort,apdivisionno,vendorno);
- CREATE INDEX rap_vendor_KEY3_index ON sageimport.rap_vendor (zipcode,apdivisionno,vendorno);
- CREATE TABLE sageimport.rap_vendorcontact(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , contactcode varchar(10)
- , contactname varchar(30)
- , addressline1 varchar(30)
- , addressline2 varchar(30)
- , addressline3 varchar(30)
- , city varchar(20)
- , state varchar(2)
- , zipcode varchar(10)
- , countrycode varchar(3)
- , salutation varchar(10)
- , contacttitle varchar(15)
- , telephoneno1 varchar(17)
- , telephoneext1 varchar(5)
- , telephoneno2 varchar(17)
- , telephoneext2 varchar(5)
- , faxno varchar(17)
- , emailaddress varchar(50)
- , contactnotes text
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_vendorcontact_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,contactcode)
- , CONSTRAINT rap_vendorcontact_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and contactcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_vendordocumentcontacts(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , document varchar(30)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , recordtype varchar(1)
- , tocontactcode varchar(10)
- , toadditionalemailaddress varchar(50)
- , toadditionalfaxno varchar(17)
- , toadditionalfaxrecipientname varchar(30)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_vendordocumentcontacts_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,document,linekey)
- , CONSTRAINT rap_vendordocumentcontacts_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and document is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_vendordocumentcontacts_KEY1_index ON sageimport.rap_vendordocumentcontacts (apdivisionno,vendorno,document,lineseqno,linekey);
- CREATE INDEX rap_vendordocumentcontacts_KEY2_index ON sageimport.rap_vendordocumentcontacts (apdivisionno,vendorno,document,recordtype,toadditionalemailaddress,toadditionalfaxrecipientname,tocontactcode,linekey);
- CREATE TABLE sageimport.rap_vendordocuments(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , document varchar(30)
- , printdocument varchar(1)
- , emaildocument varchar(1)
- , faxdocument varchar(1)
- , documentpassword varchar(33)
- , usevendoremailaddress varchar(1)
- , usefaxnoindataentry varchar(1)
- , usevendorfaxno varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , useemailaddressindataentry varchar(1)
- , CONSTRAINT rap_vendordocuments_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,document)
- , CONSTRAINT rap_vendordocuments_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and document IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rap_vendormemo(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , memocode varchar(10)
- , seqno varchar(6)
- , memodesc varchar(30)
- , memodate date
- , expirationdate date
- , reminderstartdate date
- , reminderenddate date
- , autodisplaysetting varchar(1)
- , memotext text
- , attachment varchar(128)
- , originalmodulecode varchar(3)
- , originalmemotype varchar(2)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_vendormemo_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,memocode,seqno)
- , CONSTRAINT rap_vendormemo_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and memocode is not null and seqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_vendormemo_KEY1_index ON sageimport.rap_vendormemo (memocode,apdivisionno,vendorno);
- CREATE TABLE sageimport.rap_vendorpdflog(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , document varchar(60)
- , modulecode varchar(3)
- , documentkey varchar(10)
- , documentdate date
- , sequence varchar(3)
- , purchaseorderno varchar(7)
- , ordertype varchar(1)
- , accountingdate date
- , directory varchar(150)
- , filename varchar(100)
- , sent varchar(1)
- , updated varchar(1)
- , passwordprotected varchar(1)
- , password varchar(33)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rap_vendorpdflog_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,document,modulecode,documentkey,documentdate,sequence)
- , CONSTRAINT rap_vendorpdflog_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and document is not null and modulecode is not null and documentkey is not null and documentdate is not null and sequence IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_vendorpdflog_KEY1_index ON sageimport.rap_vendorpdflog (filename,apdivisionno,vendorno,document,modulecode,documentkey,documentdate,sequence);
- CREATE INDEX rap_vendorpdflog_KEY2_index ON sageimport.rap_vendorpdflog (documentdate,apdivisionno,vendorno,document,modulecode,documentkey,sequence);
- CREATE INDEX rap_vendorpdflog_KEY3_index ON sageimport.rap_vendorpdflog (updated,apdivisionno,vendorno,document,modulecode,documentkey,documentdate,sequence);
- CREATE INDEX rap_vendorpdflog_KEY4_index ON sageimport.rap_vendorpdflog (sent,apdivisionno,vendorno,document,modulecode,documentkey,documentdate,sequence);
- CREATE TABLE sageimport.rap_vendorpurchaseshistory(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , fiscalyear varchar(4)
- , fiscalperiod varchar(2)
- , purchases numeric(15,4)
- , payments numeric(15,4)
- , discountstaken numeric(15,4)
- , discountslost numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_vendorpurchaseshistory_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,fiscalyear,fiscalperiod)
- , CONSTRAINT rap_vendorpurchaseshistory_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and fiscalyear is not null and fiscalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rap_vendorpurchaseshistory_KEY1_index ON sageimport.rap_vendorpurchaseshistory (fiscalyear,fiscalperiod,apdivisionno,vendorno);
- CREATE INDEX rap_vendorpurchaseshistory_KEY2_index ON sageimport.rap_vendorpurchaseshistory (fiscalyear,fiscalperiod,apdivisionno,vendorno);
- CREATE TABLE sageimport.rap_vendorremit(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , remittovendorname varchar(50)
- , remittoaddressline1 varchar(30)
- , remittoaddressline2 varchar(30)
- , remittoaddressline3 varchar(30)
- , remittocity varchar(20)
- , remittostate varchar(2)
- , remittozipcode varchar(10)
- , remittocountrycode varchar(3)
- , remittocontactcode varchar(10)
- , remittotelephoneno varchar(17)
- , remittotelephoneext varchar(5)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rap_vendorremit_KEY0_pk PRIMARY KEY (apdivisionno,vendorno)
- , CONSTRAINT rap_vendorremit_KEY0_check CHECK (apdivisionno is not null and vendorno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_alternateinvoice(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , ttype varchar(1)
- , invoicedate date
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , CONSTRAINT rar_alternateinvoice_KEY0_pk PRIMARY KEY (ardivisionno,customerno,ttype,invoicedate,invoiceno,invoicetype)
- , CONSTRAINT rar_alternateinvoice_KEY0_check CHECK (ardivisionno is not null and customerno is not null and ttype is not null and invoicedate is not null and invoiceno is not null and invoicetype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_analysis(
- companycode varchar(3)
- , lastupdatedate date
- , period1endingdate date
- , period2endingdate date
- , period3endingdate date
- , period4endingdate date
- , period5endingdate date
- , period6endingdate date
- , currentnoofinvs numeric(15,4)
- , currenttotalrcvbls numeric(15,4)
- , currentover30days numeric(15,4)
- , currentover60days numeric(15,4)
- , period1noofinvs numeric(15,4)
- , period1totalrcvbls numeric(15,4)
- , period1over30days numeric(15,4)
- , period1over60days numeric(15,4)
- , period2noofinvs numeric(15,4)
- , period2totalrcvbls numeric(15,4)
- , period2over30days numeric(15,4)
- , period2over60days numeric(15,4)
- , period3noofinvs numeric(15,4)
- , period3totalrcvbls numeric(15,4)
- , period3over30days numeric(15,4)
- , period3over60days numeric(15,4)
- , period4noofinvs numeric(15,4)
- , period4totalrcvbls numeric(15,4)
- , period4over30days numeric(15,4)
- , period4over60days numeric(15,4)
- , period5noofinvs numeric(15,4)
- , period5totalrcvbls numeric(15,4)
- , period5over30days numeric(15,4)
- , period5over60days numeric(15,4)
- , period6noofinvs numeric(15,4)
- , period6totalrcvbls numeric(15,4)
- , period6over30days numeric(15,4)
- , period6over60days numeric(15,4)
- , totalnoofdaysold numeric(15,4)
- , totaloforiginalinvamounts numeric(15,4)
- , totalnoofinvs numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_analysis_KEY0_pk PRIMARY KEY (companycode)
- , CONSTRAINT rar_analysis_KEY0_check CHECK (companycode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_audit(
- userkey varchar(10)
- , sequenceno varchar(14)
- , workstationname varchar(30)
- , date date
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , customername varchar(30)
- , transactiontype varchar(1)
- , fieldname varchar(50)
- , fieldvalueoriginal varchar(50)
- , newfieldvalue varchar(50)
- , CONSTRAINT rar_audit_KEY0_pk PRIMARY KEY (userkey,date,sequenceno)
- , CONSTRAINT rar_audit_KEY0_check CHECK (userkey is not null and date is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rar_audit_KEY1_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_audit_KEY2_index ON sageimport.rar_audit (workstationname,userkey,date,sequenceno);
- CREATE TABLE sageimport.rar_cashreceiptshistory(
- bankcode varchar(1)
- , depositdate date
- , depositno varchar(5)
- , deposittype varchar(1)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , checkno varchar(10)
- , sequenceno varchar(6)
- , postingdate date
- , customername varchar(30)
- , openitemcustomer varchar(1)
- , transactiontype varchar(2)
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , accountkey varchar(9)
- , depositdesc varchar(30)
- , batchno varchar(5)
- , last4unencryptedcreditcardnos varchar(4)
- , expirationdateyear varchar(4)
- , expirationdatemonth varchar(2)
- , corporatecustidpurchorder varchar(17)
- , corporatetaxoverrd varchar(1)
- , cardholdername varchar(30)
- , creditcardtransactionid varchar(10)
- , creditcardauthorizationno varchar(16)
- , authorizationdate date
- , authorizationtime varchar(8)
- , avscity varchar(20)
- , avsstate varchar(2)
- , avszipcode varchar(10)
- , creditcardcomment varchar(30)
- , comment text
- , cashamountapplied numeric(15,4)
- , discountamountapplied numeric(15,4)
- , invoicebalance numeric(15,4)
- , corporatesalestax numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , creditcardentryno varchar(6)
- , soldtodivisionno varchar(2)
- , soldtocustomerno varchar(20)
- , paymenttype varchar(5)
- , creditcardid varchar(10)
- , cardtype varchar(1)
- , bankaccounttype varchar(1)
- , last4bankroutingnos varchar(4)
- , last4bankaccountnos varchar(4)
- , bankname varchar(30)
- , avsaddressline1 varchar(30)
- , avsaddressline2 varchar(30)
- , avscountrycode varchar(3)
- , creditcardemailaddress varchar(250)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rar_cashreceiptshistory_KEY0_pk PRIMARY KEY (bankcode,depositdate,depositno,deposittype,ardivisionno,customerno,creditcardentryno,checkno,sequenceno)
- , CONSTRAINT rar_cashreceiptshistory_KEY0_check CHECK (bankcode is not null and depositdate is not null and depositno is not null and deposittype is not null and ardivisionno is not null and customerno is not null and creditcardentryno is not null and checkno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_cashreceiptshistory_KEY1_index ON sageimport.rar_cashreceiptshistory (ardivisionno,customerno);
- CREATE INDEX rar_cashreceiptshistory_KEY2_index ON sageimport.rar_cashreceiptshistory (depositdate,bankcode,depositno,deposittype,ardivisionno,customerno,creditcardentryno,checkno,sequenceno);
- CREATE INDEX rar_cashreceiptshistory_KEY3_index ON sageimport.rar_cashreceiptshistory (depositdate,bankcode,depositno,deposittype,ardivisionno,customerno,creditcardentryno,checkno,sequenceno);
- CREATE INDEX rar_cashreceiptshistory_KEY4_index ON sageimport.rar_cashreceiptshistory (checkno,depositdate,bankcode,depositno,deposittype,ardivisionno,customerno,sequenceno);
- CREATE INDEX rar_cashreceiptshistory_KEY5_index ON sageimport.rar_cashreceiptshistory (expirationdateyear,expirationdatemonth,bankcode,depositdate,depositno,ardivisionno,customerno,creditcardentryno,checkno,sequenceno);
- CREATE TABLE sageimport.rar_changecustomersvalidate(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , customerstatus varchar(1)
- , CONSTRAINT rar_changecustomersvalidate_KEY0_pk PRIMARY KEY (ardivisionno,customerno)
- , CONSTRAINT rar_changecustomersvalidate_KEY0_check CHECK (ardivisionno is not null and customerno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_customer(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , customername varchar(30)
- , addressline1 varchar(30)
- , addressline2 varchar(30)
- , addressline3 varchar(30)
- , city varchar(20)
- , state varchar(2)
- , zipcode varchar(10)
- , countrycode varchar(3)
- , telephoneno varchar(17)
- , telephoneext varchar(5)
- , faxno varchar(17)
- , emailaddress varchar(250)
- , urladdress varchar(50)
- , ebmenabled varchar(1)
- , ebmconsumeruserid varchar(15)
- , batchfax varchar(1)
- , defaultcreditcardpmttype varchar(5)
- , contactcode varchar(10)
- , shipmethod varchar(15)
- , taxschedule varchar(9)
- , taxexemptno varchar(15)
- , termscode varchar(2)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , comment varchar(30)
- , sortfield varchar(10)
- , temporarycustomer varchar(1)
- , openitemcustomer varchar(1)
- , residentialaddress varchar(1)
- , statementcycle varchar(1)
- , printdunningmessage varchar(1)
- , customertype varchar(4)
- , pricelevel varchar(1)
- , datelastactivity date
- , datelastpayment date
- , datelaststatement date
- , datelastfinancechrg date
- , datelastaging date
- , defaultitemcode varchar(30)
- , credithold varchar(1)
- , primaryshiptocode varchar(4)
- , dateestablished date
- , defaultpaymenttype varchar(5)
- , emailstatements varchar(1)
- , numberofinvtouseincalc numeric(15,4)
- , avgdayspaymentinvoice numeric(15,4)
- , avgdaysoverdue numeric(15,4)
- , customerdiscountrate numeric(15,4)
- , servicechargerate numeric(15,4)
- , creditlimit numeric(15,4)
- , lastpaymentamt numeric(15,4)
- , higheststmntbalance numeric(15,4)
- , unpaidservicechrg numeric(15,4)
- , balanceforward numeric(15,4)
- , currentbalance numeric(15,4)
- , agingcategory1 numeric(15,4)
- , agingcategory2 numeric(15,4)
- , agingcategory3 numeric(15,4)
- , agingcategory4 numeric(15,4)
- , openorderamt numeric(15,4)
- , retentioncurrent numeric(15,4)
- , retentionaging1 numeric(15,4)
- , retentionaging2 numeric(15,4)
- , retentionaging3 numeric(15,4)
- , retentionaging4 numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , salespersondivisionno2 varchar(2)
- , salespersonno2 varchar(4)
- , salespersondivisionno3 varchar(2)
- , salespersonno3 varchar(4)
- , salespersondivisionno4 varchar(2)
- , salespersonno4 varchar(4)
- , salespersondivisionno5 varchar(2)
- , salespersonno5 varchar(4)
- , customerstatus varchar(1)
- , inactivereasoncode varchar(5)
- , usesagecloudforinvprinting varchar(1)
- , defaultcostcode varchar(9)
- , defaultcosttype varchar(1)
- , creditcardguid varchar(32)
- , splitcommrate2 numeric(15,4)
- , splitcommrate3 numeric(15,4)
- , splitcommrate4 numeric(15,4)
- , splitcommrate5 numeric(15,4)
- , CONSTRAINT rar_customer_KEY0_pk PRIMARY KEY (ardivisionno,customerno)
- , CONSTRAINT rar_customer_KEY0_check CHECK (ardivisionno is not null and customerno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customer_KEY1_index ON sageimport.rar_customer (customername,ardivisionno,customerno);
- CREATE INDEX rar_customer_KEY10_index ON sageimport.rar_customer (addressline3,ardivisionno,customerno);
- CREATE INDEX rar_customer_KEY2_index ON sageimport.rar_customer (sortfield,ardivisionno,customerno);
- CREATE INDEX rar_customer_KEY3_index ON sageimport.rar_customer (ardivisionno,salespersonno,customerno);
- CREATE INDEX rar_customer_KEY4_index ON sageimport.rar_customer (customertype,ardivisionno,customerno);
- CREATE INDEX rar_customer_KEY5_index ON sageimport.rar_customer (zipcode,ardivisionno,customerno);
- CREATE INDEX rar_customer_KEY6_index ON sageimport.rar_customer (telephoneno,ardivisionno,customerno);
- CREATE INDEX rar_customer_KEY7_index ON sageimport.rar_customer (customerno);
- CREATE INDEX rar_customer_KEY8_index ON sageimport.rar_customer (addressline1,ardivisionno,customerno);
- CREATE INDEX rar_customer_KEY9_index ON sageimport.rar_customer (addressline2,ardivisionno,customerno);
- CREATE TABLE sageimport.rar_customercontact(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , contactcode varchar(10)
- , contactname varchar(30)
- , addressline1 varchar(30)
- , addressline2 varchar(30)
- , addressline3 varchar(30)
- , city varchar(20)
- , state varchar(2)
- , zipcode varchar(10)
- , countrycode varchar(3)
- , salutation varchar(10)
- , contacttitle varchar(15)
- , telephoneno1 varchar(17)
- , telephoneext1 varchar(5)
- , telephoneno2 varchar(17)
- , telephoneext2 varchar(5)
- , faxno varchar(17)
- , emailaddress varchar(50)
- , contactnotes text
- , ebmuserid varchar(15)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_customercontact_KEY0_pk PRIMARY KEY (ardivisionno,customerno,contactcode)
- , CONSTRAINT rar_customercontact_KEY0_check CHECK (ardivisionno is not null and customerno is not null and contactcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customercontact_KEY1_index ON sageimport.rar_customercontact (contactname,ardivisionno,customerno,contactcode);
- CREATE INDEX rar_customercontact_KEY2_index ON sageimport.rar_customercontact (addressline1,ardivisionno,customerno,contactcode);
- CREATE INDEX rar_customercontact_KEY3_index ON sageimport.rar_customercontact (addressline2,ardivisionno,customerno,contactcode);
- CREATE INDEX rar_customercontact_KEY4_index ON sageimport.rar_customercontact (addressline3,ardivisionno,customerno,contactcode);
- CREATE INDEX rar_customercontact_KEY5_index ON sageimport.rar_customercontact (zipcode,ardivisionno,customerno,contactcode);
- CREATE INDEX rar_customercontact_KEY6_index ON sageimport.rar_customercontact (telephoneno1,ardivisionno,customerno,contactcode);
- CREATE INDEX rar_customercontact_KEY7_index ON sageimport.rar_customercontact (telephoneno2,ardivisionno,customerno,contactcode);
- CREATE INDEX rar_customercontact_KEY8_index ON sageimport.rar_customercontact (emailaddress,ardivisionno,customerno,contactcode);
- CREATE TABLE sageimport.rar_customercreditcard(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , paymenttype varchar(5)
- , expirationdateyear varchar(4)
- , expirationdatemonth varchar(2)
- , corporatecustidpurchorder varchar(17)
- , cardholdername varchar(30)
- , avscity varchar(20)
- , avsstate varchar(2)
- , avszipcode varchar(10)
- , creditcardcomment varchar(30)
- , ebmenabled varchar(1)
- , last4unencryptedcreditcardnos varchar(4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , creditcardguid varchar(32)
- , creditcardid varchar(10)
- , cardtype varchar(1)
- , bankaccounttype varchar(1)
- , bankname varchar(30)
- , avsaddressline1 varchar(30)
- , avsaddressline2 varchar(30)
- , avscountrycode varchar(3)
- , emailaddress varchar(250)
- , last4bankroutingnos varchar(4)
- , last4bankaccountnos varchar(4)
- , CONSTRAINT rar_customercreditcard_KEY0_pk PRIMARY KEY (ardivisionno,customerno,creditcardguid)
- , CONSTRAINT rar_customercreditcard_KEY0_check CHECK (ardivisionno is not null and customerno is not null and creditcardguid IS NOT NULL)
- , CONSTRAINT rar_customercreditcard_KEY5_unique UNIQUE (ardivisionno,customerno,creditcardid)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customercreditcard_KEY1_index ON sageimport.rar_customercreditcard (paymenttype,ardivisionno,customerno,creditcardid,creditcardguid);
- CREATE INDEX rar_customercreditcard_KEY2_index ON sageimport.rar_customercreditcard (expirationdateyear,expirationdatemonth,ardivisionno,customerno,creditcardguid);
- CREATE INDEX rar_customercreditcard_KEY3_index ON sageimport.rar_customercreditcard (ardivisionno,customerno,paymenttype,creditcardid,creditcardguid);
- CREATE INDEX rar_customercreditcard_KEY4_index ON sageimport.rar_customercreditcard (ardivisionno,customerno,creditcardid,creditcardguid);
- CREATE TABLE sageimport.rar_customerdocumentcontacts(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , document varchar(30)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , recordtype varchar(1)
- , tocontactcode varchar(10)
- , toadditionalemailaddress varchar(50)
- , toadditionalfaxno varchar(17)
- , toadditionalfaxrecipientname varchar(30)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_customerdocumentcontacts_KEY0_pk PRIMARY KEY (ardivisionno,customerno,document,linekey)
- , CONSTRAINT rar_customerdocumentcontacts_KEY0_check CHECK (ardivisionno is not null and customerno is not null and document is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customerdocumentcontacts_KEY1_index ON sageimport.rar_customerdocumentcontacts (ardivisionno,customerno,document,lineseqno,linekey);
- CREATE INDEX rar_customerdocumentcontacts_KEY2_index ON sageimport.rar_customerdocumentcontacts (ardivisionno,customerno,document,recordtype,toadditionalemailaddress,toadditionalfaxrecipientname,tocontactcode,linekey);
- CREATE TABLE sageimport.rar_customerdocuments(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , document varchar(30)
- , printdocument varchar(1)
- , emaildocument varchar(1)
- , faxdocument varchar(1)
- , documentpassword varchar(33)
- , useemailaddressindataentry varchar(1)
- , usecustomeremailaddress varchar(1)
- , usefaxnoindataentry varchar(1)
- , usecustomerfaxno varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_customerdocuments_KEY0_pk PRIMARY KEY (ardivisionno,customerno,document)
- , CONSTRAINT rar_customerdocuments_KEY0_check CHECK (ardivisionno is not null and customerno is not null and document IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_customermemo(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , memocode varchar(10)
- , seqno varchar(6)
- , memodesc varchar(30)
- , memodate date
- , expirationdate date
- , reminderstartdate date
- , reminderenddate date
- , autodisplaysetting varchar(1)
- , memotext text
- , attachment varchar(128)
- , originalmodulecode varchar(3)
- , originalmemotype varchar(2)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_customermemo_KEY0_pk PRIMARY KEY (ardivisionno,customerno,memocode,seqno)
- , CONSTRAINT rar_customermemo_KEY0_check CHECK (ardivisionno is not null and customerno is not null and memocode is not null and seqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customermemo_KEY1_index ON sageimport.rar_customermemo (memocode,ardivisionno,customerno);
- CREATE TABLE sageimport.rar_customerpdflog(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , document varchar(60)
- , modulecode varchar(3)
- , documentkey varchar(9)
- , documentdate date
- , sequence varchar(3)
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , salesorderno varchar(7)
- , ordertype varchar(1)
- , jobno varchar(7)
- , accountingdate date
- , directory varchar(150)
- , filename varchar(100)
- , sent varchar(1)
- , updated varchar(1)
- , passwordprotected varchar(1)
- , password varchar(33)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rar_customerpdflog_KEY0_pk PRIMARY KEY (ardivisionno,customerno,document,modulecode,documentkey,documentdate,sequence)
- , CONSTRAINT rar_customerpdflog_KEY0_check CHECK (ardivisionno is not null and customerno is not null and document is not null and modulecode is not null and documentkey is not null and documentdate is not null and sequence IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customerpdflog_KEY1_index ON sageimport.rar_customerpdflog (filename,ardivisionno,customerno,document,modulecode,documentkey,documentdate,sequence);
- CREATE INDEX rar_customerpdflog_KEY2_index ON sageimport.rar_customerpdflog (jobno,ardivisionno,customerno,document,modulecode,documentkey,documentdate,sequence);
- CREATE INDEX rar_customerpdflog_KEY3_index ON sageimport.rar_customerpdflog (documentdate,ardivisionno,customerno,document,modulecode,documentkey,sequence);
- CREATE TABLE sageimport.rar_customersaleshistory(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , fiscalyear varchar(4)
- , fiscalperiod varchar(2)
- , dollarssold numeric(15,4)
- , costofgoodssold numeric(15,4)
- , cashreceived numeric(15,4)
- , financecharges numeric(15,4)
- , numberofinvoices numeric(15,4)
- , numberoffinancechrgs numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_customersaleshistory_KEY0_pk PRIMARY KEY (ardivisionno,customerno,fiscalyear,fiscalperiod)
- , CONSTRAINT rar_customersaleshistory_KEY0_check CHECK (ardivisionno is not null and customerno is not null and fiscalyear is not null and fiscalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customersaleshistory_KEY1_index ON sageimport.rar_customersaleshistory (fiscalyear,fiscalperiod,ardivisionno,customerno);
- CREATE INDEX rar_customersaleshistory_KEY2_index ON sageimport.rar_customersaleshistory (fiscalyear,fiscalperiod,ardivisionno,customerno);
- CREATE TABLE sageimport.rar_customersalespersonhistory(
- salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , fiscalyear varchar(4)
- , fiscalperiod varchar(2)
- , dollarssold numeric(15,4)
- , costofgoodssold numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_customersalespersonhistory_KEY0_pk PRIMARY KEY (salespersondivisionno,salespersonno,ardivisionno,customerno,fiscalyear,fiscalperiod)
- , CONSTRAINT rar_customersalespersonhistory_KEY0_check CHECK (salespersondivisionno is not null and salespersonno is not null and ardivisionno is not null and customerno is not null and fiscalyear is not null and fiscalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_customersalespersonhistory_KEY1_index ON sageimport.rar_customersalespersonhistory (fiscalyear,fiscalperiod,salespersondivisionno,salespersonno,ardivisionno,customerno);
- CREATE INDEX rar_customersalespersonhistory_KEY2_index ON sageimport.rar_customersalespersonhistory (fiscalyear,fiscalperiod,salespersondivisionno,salespersonno,ardivisionno,customerno);
- CREATE INDEX rar_customersalespersonhistory_KEY3_index ON sageimport.rar_customersalespersonhistory (ardivisionno,customerno,salespersondivisionno,salespersonno,fiscalyear,fiscalperiod);
- CREATE TABLE sageimport.rar_customershiptotaxexemptions(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , shiptocode varchar(4)
- , taxcode varchar(15)
- , taxexemptionno varchar(20)
- , CONSTRAINT rar_customershiptotaxexemptions_KEY0_pk PRIMARY KEY (ardivisionno,customerno,shiptocode,taxcode)
- , CONSTRAINT rar_customershiptotaxexemptions_KEY0_check CHECK (ardivisionno is not null and customerno is not null and shiptocode is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_dailypostingwork(
- postingdate date
- , sourcejournal varchar(2)
- , registerno varchar(6)
- , accountkey varchar(9)
- , sequenceno varchar(14)
- , sourcemodule varchar(2)
- , postingcomment text
- , documenttype varchar(1)
- , documentno varchar(10)
- , docsequenceno varchar(14)
- , receiptno varchar(7)
- , batchtype varchar(2)
- , batchno varchar(5)
- , lineseqno varchar(14)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , debitamount numeric(15,4)
- , creditamount numeric(15,4)
- , altdoctype varchar(1)
- , CONSTRAINT rar_dailypostingwork_KEY0_pk PRIMARY KEY (postingdate,sourcejournal,registerno,accountkey,sequenceno)
- , CONSTRAINT rar_dailypostingwork_KEY0_check CHECK (postingdate is not null and sourcejournal is not null and registerno is not null and accountkey is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rar_dailypostingwork_KEY1_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_dailypostingwork_KEY2_index ON sageimport.rar_dailypostingwork (registerno,postingdate,sourcejournal,accountkey,sequenceno);
- CREATE INDEX rar_dailypostingwork_KEY3_index ON sageimport.rar_dailypostingwork (accountkey,postingdate,sourcejournal,registerno,sequenceno);
- CREATE TABLE sageimport.rar_deletechangecustomers(
- lineno varchar(14)
- , startingardivisionno varchar(2)
- , startingcustomerno varchar(20)
- , endingardivisionno varchar(2)
- , newardivisionno varchar(2)
- , endingcustomerno varchar(20)
- , newcustomerno varchar(20)
- , operation varchar(1)
- , allfiles varchar(1)
- , deleterepetitiveinvoices varchar(1)
- , deletecontacts varchar(1)
- , deletecreditcards varchar(1)
- , deleteebmcreditcards varchar(1)
- , deletesalesorders varchar(1)
- , deleteshipto varchar(1)
- , deleteebmcustomer varchar(1)
- , deleterma varchar(1)
- , CONSTRAINT rar_deletechangecustomers_KEY0_pk PRIMARY KEY (operation,lineno)
- , CONSTRAINT rar_deletechangecustomers_KEY0_check CHECK (operation is not null and lineno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_deletechangecustomerswork(
- lineno varchar(14)
- , sequenceno varchar(14)
- , sourceprefix varchar(2)
- , sourceprimary varchar(20)
- , destinationprefix varchar(2)
- , destinationprimary varchar(20)
- , changestatus text
- , operation varchar(1)
- , allfiles varchar(1)
- , deleterepetitiveinvoices varchar(1)
- , deletecontacts varchar(1)
- , deletecreditcards varchar(1)
- , deleteebmcreditcards varchar(1)
- , deletesalesorders varchar(1)
- , deleteshipto varchar(1)
- , deleteebmcustomer varchar(1)
- , deleterma varchar(1)
- , startingardivisionno varchar(2)
- , startingcustomerno varchar(20)
- , endingardivisionno varchar(2)
- , endingcustomerno varchar(20)
- , newardivisionno varchar(2)
- , newcustomerno varchar(20)
- , CONSTRAINT rar_deletechangecustomerswork_KEY0_pk PRIMARY KEY (operation,lineno,sequenceno)
- , CONSTRAINT rar_deletechangecustomerswork_KEY0_check CHECK (operation is not null and lineno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_deletechangecustomerswork_KEY1_index ON sageimport.rar_deletechangecustomerswork (sourceprefix,sourceprimary,destinationprefix,destinationprimary,lineno);
- CREATE TABLE sageimport.rar_deposithistory(
- paymenttype varchar(5)
- , invoiceno varchar(7)
- , sequenceno varchar(6)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , transactiondate date
- , invoicedate date
- , invoicetype varchar(2)
- , salesorderno varchar(7)
- , referenceno varchar(24)
- , checkno varchar(10)
- , last4unencryptedcreditcardnos varchar(4)
- , expirationdateyear varchar(4)
- , expirationdatemonth varchar(2)
- , creditcardauthorizationno varchar(16)
- , creditcardtransactionid varchar(10)
- , transactionamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , creditcardid varchar(10)
- , cardtype varchar(1)
- , bankaccounttype varchar(1)
- , creditcardentryno varchar(6)
- , last4bankroutingnos varchar(4)
- , last4bankaccountnos varchar(4)
- , CONSTRAINT rar_deposithistory_KEY0_pk PRIMARY KEY (paymenttype,invoiceno,sequenceno)
- , CONSTRAINT rar_deposithistory_KEY0_check CHECK (paymenttype is not null and invoiceno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_deposithistory_KEY1_index ON sageimport.rar_deposithistory (ardivisionno,customerno);
- CREATE INDEX rar_deposithistory_KEY2_index ON sageimport.rar_deposithistory (transactiondate,paymenttype,invoiceno,sequenceno);
- CREATE INDEX rar_deposithistory_KEY3_index ON sageimport.rar_deposithistory (expirationdateyear,expirationdatemonth,paymenttype,invoiceno,sequenceno);
- CREATE INDEX rar_deposithistory_KEY4_index ON sageimport.rar_deposithistory (invoicedate,paymenttype,invoiceno,sequenceno);
- CREATE TABLE sageimport.rar_division(
- ardivisionno varchar(2)
- , ardivisiondesc varchar(30)
- , accountsreceivableacctkey varchar(9)
- , cashacctkey varchar(9)
- , discountsallowedacctkey varchar(9)
- , freightacctkey varchar(9)
- , salestaxacctkey varchar(9)
- , financechrgacctkey varchar(9)
- , retentionreceivableacctkey varchar(9)
- , postsalestoglsubacct varchar(15)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_division_KEY0_pk PRIMARY KEY (ardivisionno)
- , CONSTRAINT rar_division_KEY0_check CHECK (ardivisionno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_invoicehistorydetail(
- invoiceno varchar(7)
- , headerseqno varchar(6)
- , detailseqno varchar(6)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , extendeddescriptionkey varchar(10)
- , salesacctkey varchar(9)
- , costofgoodssoldacctkey varchar(9)
- , inventoryacctkey varchar(9)
- , unitofmeasure varchar(4)
- , subjecttoexemption varchar(1)
- , commissionable varchar(1)
- , taxclass varchar(2)
- , discount varchar(1)
- , dropship varchar(1)
- , warehousecode varchar(3)
- , pricelevel varchar(1)
- , productline varchar(4)
- , valuation varchar(1)
- , priceoverridden varchar(1)
- , orderwarehouse varchar(3)
- , revision varchar(3)
- , billoption1 varchar(2)
- , billoption2 varchar(2)
- , billoption3 varchar(2)
- , billoption4 varchar(2)
- , billoption5 varchar(2)
- , billoption6 varchar(2)
- , billoption7 varchar(2)
- , billoption8 varchar(2)
- , billoption9 varchar(2)
- , kititem varchar(1)
- , explodedkititem varchar(1)
- , skipprintcompline varchar(1)
- , standardkitbill varchar(1)
- , aliasitemno varchar(30)
- , customeraction varchar(1)
- , itemaction varchar(1)
- , warrantycode varchar(10)
- , expirationdate date
- , expirationoverridden varchar(1)
- , costcode varchar(9)
- , costtype varchar(1)
- , commenttext text
- , promisedate date
- , quantityshipped numeric(15,4)
- , quantityordered numeric(15,4)
- , quantitybackordered numeric(15,4)
- , unitprice numeric(15,4)
- , unitcost numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , commissionamt numeric(15,4)
- , linediscountpercent numeric(15,4)
- , quantityperbill numeric(15,4)
- , extensionamt numeric(15,4)
- , udf_primary_item varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , purchaseorderno varchar(7)
- , purchaseorderrequireddate date
- , commoditycode varchar(12)
- , alternatetaxidentifier varchar(15)
- , taxtypeapplied varchar(4)
- , netgrossindicator varchar(1)
- , debitcreditindicator varchar(1)
- , taxamt numeric(15,4)
- , taxrate numeric(15,4)
- , CONSTRAINT rar_invoicehistorydetail_KEY0_pk PRIMARY KEY (invoiceno,headerseqno,detailseqno)
- , CONSTRAINT rar_invoicehistorydetail_KEY0_check CHECK (invoiceno is not null and headerseqno is not null and detailseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_invoicehistorydetail_KEY1_index ON sageimport.rar_invoicehistorydetail (extendeddescriptionkey,invoiceno,headerseqno,detailseqno);
- CREATE INDEX rar_invoicehistorydetail_KEY2_index ON sageimport.rar_invoicehistorydetail (apdivisionno,vendorno,invoiceno,headerseqno,detailseqno);
- CREATE TABLE sageimport.rar_invoicehistoryheader(
- invoiceno varchar(7)
- , headerseqno varchar(6)
- , modulecode varchar(3)
- , invoicetype varchar(2)
- , invoicedate date
- , transactiondate date
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , termscode varchar(2)
- , taxschedule varchar(9)
- , taxexemptno varchar(15)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , customerpono varchar(30)
- , applytoinvoiceno varchar(7)
- , comment varchar(30)
- , repetitiveinvoicerefno varchar(4)
- , jobno varchar(7)
- , invoiceduedate date
- , discountduedate date
- , sourcejournal varchar(2)
- , journalnoglbatchno varchar(6)
- , batchfax varchar(1)
- , faxno varchar(17)
- , shippinginvoice varchar(1)
- , salesorderno varchar(7)
- , ordertype varchar(1)
- , orderdate date
- , billtoname varchar(30)
- , billtoaddress1 varchar(30)
- , billtoaddress2 varchar(30)
- , billtoaddress3 varchar(30)
- , billtocity varchar(20)
- , billtostate varchar(2)
- , billtozipcode varchar(10)
- , billtocountrycode varchar(3)
- , shiptocode varchar(4)
- , shiptoname varchar(30)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , shipdate date
- , shipvia varchar(15)
- , shipzone varchar(5)
- , fob varchar(15)
- , confirmto varchar(30)
- , checknofordeposit varchar(10)
- , splitcommissions varchar(1)
- , salespersondivisionno2 varchar(2)
- , salespersonno2 varchar(4)
- , salespersondivisionno3 varchar(2)
- , salespersonno3 varchar(4)
- , salespersondivisionno4 varchar(2)
- , salespersonno4 varchar(4)
- , salespersondivisionno5 varchar(2)
- , salespersonno5 varchar(4)
- , paymenttype varchar(5)
- , paymenttypecategory varchar(1)
- , otherpaymenttyperefno varchar(24)
- , rmano varchar(7)
- , ebmsubmissiontype varchar(1)
- , ebmuseridsubmittingthisorder varchar(15)
- , ebmusertype varchar(1)
- , shipperid varchar(3)
- , userkey varchar(10)
- , warehousecode varchar(3)
- , shipweight varchar(5)
- , residentialaddress varchar(1)
- , emailaddress varchar(250)
- , crmuserid varchar(11)
- , crmcompanyid varchar(11)
- , crmpersonid varchar(11)
- , crmopportunityid varchar(11)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , freightamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , costofsalesamt numeric(15,4)
- , amountsubjecttodiscount numeric(15,4)
- , discountrate numeric(15,4)
- , discountamt numeric(15,4)
- , salessubjecttocomm numeric(15,4)
- , costsubjecttocomm numeric(15,4)
- , commissionrate numeric(15,4)
- , commissionamt numeric(15,4)
- , splitcommrate2 numeric(15,4)
- , splitcommrate3 numeric(15,4)
- , splitcommrate4 numeric(15,4)
- , splitcommrate5 numeric(15,4)
- , depositamt numeric(15,4)
- , weight numeric(15,4)
- , retentionamt numeric(15,4)
- , numberofpackages numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , udf_project varchar(15)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rar_invoicehistoryheader_KEY0_pk PRIMARY KEY (invoiceno,headerseqno)
- , CONSTRAINT rar_invoicehistoryheader_KEY0_check CHECK (invoiceno is not null and headerseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_invoicehistoryheader_KEY1_index ON sageimport.rar_invoicehistoryheader (ardivisionno,customerno,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY10_index ON sageimport.rar_invoicehistoryheader (ardivisionno,customerno,customerpono,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY11_index ON sageimport.rar_invoicehistoryheader (shiptocode,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY12_index ON sageimport.rar_invoicehistoryheader (shiptozipcode,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY13_index ON sageimport.rar_invoicehistoryheader (comment,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY14_index ON sageimport.rar_invoicehistoryheader (billtodivisionno,billtocustomerno,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY2_index ON sageimport.rar_invoicehistoryheader (modulecode,salesorderno,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY3_index ON sageimport.rar_invoicehistoryheader (modulecode,billtoname,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY4_index ON sageimport.rar_invoicehistoryheader (modulecode,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY5_index ON sageimport.rar_invoicehistoryheader (customerpono,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY6_index ON sageimport.rar_invoicehistoryheader (shippinginvoice,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY7_index ON sageimport.rar_invoicehistoryheader (salesorderno,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY8_index ON sageimport.rar_invoicehistoryheader (billtoname,invoiceno,headerseqno);
- CREATE INDEX rar_invoicehistoryheader_KEY9_index ON sageimport.rar_invoicehistoryheader (invoicedate,invoiceno,headerseqno);
- CREATE TABLE sageimport.rar_invoicehistorymemo(
- invoiceno varchar(7)
- , headerseqno varchar(6)
- , memocode varchar(10)
- , seqno varchar(6)
- , memodesc varchar(30)
- , memodate date
- , expirationdate date
- , reminderstartdate date
- , reminderenddate date
- , autodisplaysetting varchar(1)
- , attachment varchar(128)
- , memotext text
- , originalmodulecode varchar(3)
- , originalmemotype varchar(2)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_invoicehistorymemo_KEY0_pk PRIMARY KEY (invoiceno,headerseqno,memocode,seqno)
- , CONSTRAINT rar_invoicehistorymemo_KEY0_check CHECK (invoiceno is not null and headerseqno is not null and memocode is not null and seqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_invoicehistorymemo_KEY1_index ON sageimport.rar_invoicehistorymemo (memocode,invoiceno,headerseqno);
- CREATE TABLE sageimport.rar_invoicehistorypayment(
- invoiceno varchar(7)
- , headerseqno varchar(6)
- , paymentseqno varchar(6)
- , paymenttype varchar(5)
- , paymenttypecategory varchar(1)
- , creditcardid varchar(10)
- , cardtype varchar(1)
- , last4unencryptedcreditcardnos varchar(4)
- , last4bankroutingnos varchar(4)
- , last4bankaccountnos varchar(4)
- , bankname varchar(30)
- , bankaccounttype varchar(1)
- , expirationdateyear varchar(4)
- , expirationdatemonth varchar(2)
- , corporatecustidpurchorder varchar(17)
- , corporatetaxoverrd varchar(1)
- , cardholdername varchar(30)
- , creditcardtransactionid varchar(10)
- , creditcardauthorizationno varchar(16)
- , authorizationdate date
- , authorizationtime varchar(8)
- , avsaddressline1 varchar(30)
- , avsaddressline2 varchar(30)
- , avscity varchar(20)
- , avsstate varchar(2)
- , avszipcode varchar(10)
- , avscountrycode varchar(3)
- , creditcardemailaddress varchar(250)
- , creditcardcomment varchar(30)
- , valueaddedtaxno varchar(13)
- , valueaddedtaxinvoiceno varchar(15)
- , transactionamt numeric(15,4)
- , corporatesalestax numeric(15,4)
- , valueaddedtaxtaxamt numeric(15,4)
- , valueaddedtaxtaxrate numeric(15,4)
- , dutyamt numeric(15,4)
- , nationaltaxamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_invoicehistorypayment_KEY0_pk PRIMARY KEY (invoiceno,headerseqno,paymentseqno)
- , CONSTRAINT rar_invoicehistorypayment_KEY0_check CHECK (invoiceno is not null and headerseqno is not null and paymentseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_invoicehistorypayment_KEY1_index ON sageimport.rar_invoicehistorypayment (invoiceno,headerseqno,paymenttype,paymentseqno);
- CREATE INDEX rar_invoicehistorypayment_KEY2_index ON sageimport.rar_invoicehistorypayment (expirationdateyear,expirationdatemonth,invoiceno,headerseqno,paymentseqno);
- CREATE TABLE sageimport.rar_invoicehistorytaxsummary(
- invoiceno varchar(7)
- , headerseqno varchar(6)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , overridden varchar(1)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , exemptsalesamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , nontaxablefrghtamt numeric(15,4)
- , CONSTRAINT rar_invoicehistorytaxsummary_KEY0_pk PRIMARY KEY (invoiceno,headerseqno,scheduleseqno,taxcode)
- , CONSTRAINT rar_invoicehistorytaxsummary_KEY0_check CHECK (invoiceno is not null and headerseqno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_openinvoice(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , invoicedate date
- , invoiceduedate date
- , invoicediscountdate date
- , invoicehistoryheaderseqno varchar(6)
- , postingdate date
- , termscode varchar(2)
- , taxschedule varchar(9)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , splitcommissionflag varchar(1)
- , comment varchar(30)
- , creditmemoinvoicereference varchar(7)
- , jobno varchar(7)
- , customerpono varchar(30)
- , postingreference varchar(14)
- , checkno varchar(10)
- , commissionrate numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , freightamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , costofsalesamt numeric(15,4)
- , salessubjecttocomm numeric(15,4)
- , costsubjecttocomm numeric(15,4)
- , commissionamt numeric(15,4)
- , discountamt numeric(15,4)
- , paymentstoday numeric(15,4)
- , balance numeric(15,4)
- , retentionamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , soldtodivisionno varchar(2)
- , soldtocustomerno varchar(20)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rar_openinvoice_KEY0_pk PRIMARY KEY (ardivisionno,customerno,invoiceno,invoicetype)
- , CONSTRAINT rar_openinvoice_KEY0_check CHECK (ardivisionno is not null and customerno is not null and invoiceno is not null and invoicetype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_openinvoice_KEY1_index ON sageimport.rar_openinvoice (ardivisionno,customerno,invoicedate,invoiceno,invoicetype);
- CREATE INDEX rar_openinvoice_KEY2_index ON sageimport.rar_openinvoice (ardivisionno,customerno,invoicedate,invoiceno,invoicetype);
- CREATE INDEX rar_openinvoice_KEY3_index ON sageimport.rar_openinvoice (invoiceno,invoicetype,ardivisionno,customerno);
- CREATE INDEX rar_openinvoice_KEY4_index ON sageimport.rar_openinvoice (soldtodivisionno,soldtocustomerno,ardivisionno,customerno,invoiceno,invoicetype);
- CREATE TABLE sageimport.rar_openinvoicetaxsummary(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , overridden varchar(1)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , exemptsalesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_openinvoicetaxsummary_KEY0_pk PRIMARY KEY (ardivisionno,customerno,invoiceno,invoicetype,scheduleseqno,taxcode)
- , CONSTRAINT rar_openinvoicetaxsummary_KEY0_check CHECK (ardivisionno is not null and customerno is not null and invoiceno is not null and invoicetype is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , divisions varchar(1)
- , allowexpandedcustomernumbers varchar(1)
- , postcostofgoodssold varchar(1)
- , postsalesindetail varchar(1)
- , postcashrcptsindetail varchar(1)
- , segmentforsalespostings varchar(1)
- , defaultinvoicedisplay varchar(1)
- , displayinvoiceszerobal varchar(1)
- , currentfiscalyr varchar(4)
- , currentperiod varchar(2)
- , salestaxreporting varchar(1)
- , trackjcretentionrecvbls varchar(1)
- , integrategeneralledger varchar(1)
- , integratebankrec varchar(1)
- , integratejobcost varchar(1)
- , openitembalforward varchar(1)
- , daystoretainpaidinvs numeric(15,4)
- , retaintempcustomers varchar(1)
- , ageinvoicesby varchar(1)
- , agingcategory varchar(1)
- , agingcategory1 numeric(15,4)
- , agingcategory2 numeric(15,4)
- , agingcategory3 numeric(15,4)
- , agingcategory4 numeric(15,4)
- , salespersoncommrpting varchar(1)
- , commissionspaid varchar(1)
- , commissioncalcbasedon varchar(1)
- , updatecommtoothermodules varchar(1)
- , financechargemethod varchar(1)
- , agingcategorycalc varchar(1)
- , excludeexistingfinchrgs varchar(1)
- , creditlimitchecking varchar(1)
- , marginforcrdtlimitwarning numeric(15,4)
- , includeopenorders varchar(1)
- , agingcatforwarning varchar(1)
- , autorecalcaging varchar(1)
- , nextinvoiceno varchar(7)
- , nextdepositno varchar(5)
- , defaultbankcode varchar(1)
- , requiredepositamt varchar(1)
- , allowcreditcard varchar(1)
- , autoincrementcustomerno varchar(1)
- , nextcustomerno varchar(20)
- , printjournalsbydivision varchar(1)
- , pagebreakcshrecptsjrnl varchar(1)
- , printtaxjrnlsindetail varchar(1)
- , printtaxdetailonjrnls varchar(1)
- , printinvoices varchar(1)
- , printcustomerstatements varchar(1)
- , trackcustomerchanges varchar(1)
- , trackadditionsindetail varchar(1)
- , retaindeposittranshist varchar(1)
- , retaindetailedinvhist varchar(1)
- , retaindeletedinvoices varchar(1)
- , retaincommentlines varchar(1)
- , taxfrghtinsaleshist varchar(1)
- , allowpurgeoptioninrecap varchar(1)
- , sequencenoforfc varchar(4)
- , customermask varchar(6)
- , companycode varchar(3)
- , dataversion numeric(15,4)
- , datasublevel numeric(15,4)
- , dayspastduecalc numeric(15,4)
- , financechrgrate numeric(15,4)
- , financechrgamt numeric(15,4)
- , minimumbaltoapplyfc numeric(15,4)
- , minimumfinancechrg numeric(15,4)
- , agingcatbalexceeds numeric(15,4)
- , numberofdaystorecalc numeric(15,4)
- , daysbeforecrdtcardexp numeric(15,4)
- , yearstoretaincashrcptshist numeric(15,4)
- , yearstoretaincustomerhist numeric(15,4)
- , yearstoretainslspsnhist numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , searchforinvbylotserialno varchar(1)
- , applychangestorepetitiveinv varchar(1)
- , billtocustomerrpting varchar(1)
- , postbybilltodivtogl varchar(1)
- , printsoldtocustnoonstmt varchar(1)
- , tracksaleshistoryby varchar(1)
- , defaultcreditholdsetting varchar(1)
- , defaultcreditlimitsetting varchar(1)
- , defaultbilltoaddrsetting varchar(1)
- , defaultcustpricingsetting varchar(1)
- , defaulttermscodesetting varchar(1)
- , CONSTRAINT rar_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rar_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_paymenttype(
- paymenttype varchar(5)
- , paymentdesc varchar(30)
- , paymentmethod varchar(1)
- , assetacctkey varchar(9)
- , creditcardaccrualacctkey varchar(9)
- , defaulttransaction varchar(1)
- , ebminternetenabled varchar(1)
- , creditcardsetuptested varchar(1)
- , merchantid varchar(32)
- , allowcorporatecards varchar(1)
- , merchantkey varchar(13)
- , discountpercentage numeric(15,4)
- , pertransactionfee numeric(15,4)
- , preauthorizationterm numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , displayavscvvresponse varchar(1)
- , addcorporatecardlevel3 varchar(1)
- , virtualterminalid varchar(13)
- , CONSTRAINT rar_paymenttype_KEY0_pk PRIMARY KEY (paymenttype)
- , CONSTRAINT rar_paymenttype_KEY0_check CHECK (paymenttype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_salesperson(
- salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , salespersonname varchar(30)
- , addressline1 varchar(30)
- , addressline2 varchar(30)
- , addressline3 varchar(30)
- , city varchar(20)
- , state varchar(2)
- , zipcode varchar(10)
- , countrycode varchar(3)
- , telephoneno varchar(17)
- , telephoneext varchar(5)
- , emailaddress varchar(50)
- , salesmanagerdivisionno varchar(2)
- , salesmanagerno varchar(4)
- , crmuserid varchar(11)
- , userkey varchar(10)
- , commissionrate numeric(15,4)
- , salesmanagercommrate numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_salesperson_KEY0_pk PRIMARY KEY (salespersondivisionno,salespersonno)
- , CONSTRAINT rar_salesperson_KEY0_check CHECK (salespersondivisionno is not null and salespersonno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_salesperson_KEY1_index ON sageimport.rar_salesperson (crmuserid);
- CREATE INDEX rar_salesperson_KEY2_index ON sageimport.rar_salesperson (userkey);
- CREATE TABLE sageimport.rar_salespersoncommission(
- salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , invoicedate date
- , paydate date
- , applytono varchar(7)
- , hascommrecordbeenedited varchar(1)
- , linkupdated varchar(1)
- , commissionrate numeric(15,4)
- , invoicetotal numeric(15,4)
- , salessubjecttocomm numeric(15,4)
- , costsubjecttocomm numeric(15,4)
- , commissionamt numeric(15,4)
- , invoiceamountpaid numeric(15,4)
- , splitcommpercent numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , CONSTRAINT rar_salespersoncommission_KEY0_pk PRIMARY KEY (salespersondivisionno,salespersonno,ardivisionno,customerno,invoiceno,invoicetype)
- , CONSTRAINT rar_salespersoncommission_KEY0_check CHECK (salespersondivisionno is not null and salespersonno is not null and ardivisionno is not null and customerno is not null and invoiceno is not null and invoicetype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_salespersoncommission_KEY1_index ON sageimport.rar_salespersoncommission (ardivisionno,customerno);
- CREATE INDEX rar_salespersoncommission_KEY2_index ON sageimport.rar_salespersoncommission (billtodivisionno,billtocustomerno);
- CREATE TABLE sageimport.rar_salespersonhistory(
- salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , fiscalyear varchar(4)
- , fiscalperiod varchar(2)
- , commissiondollarssold numeric(15,4)
- , grossprofitamt numeric(15,4)
- , commissionamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_salespersonhistory_KEY0_pk PRIMARY KEY (salespersondivisionno,salespersonno,fiscalyear,fiscalperiod)
- , CONSTRAINT rar_salespersonhistory_KEY0_check CHECK (salespersondivisionno is not null and salespersonno is not null and fiscalyear is not null and fiscalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_salespersonhistory_KEY1_index ON sageimport.rar_salespersonhistory (fiscalyear,fiscalperiod,salespersondivisionno,salespersonno);
- CREATE INDEX rar_salespersonhistory_KEY2_index ON sageimport.rar_salespersonhistory (fiscalyear,fiscalperiod,salespersondivisionno,salespersonno);
- CREATE TABLE sageimport.rar_salestax(
- taxcode varchar(15)
- , transactiondate date
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , customername varchar(30)
- , modulecode varchar(3)
- , sourcejournalno varchar(6)
- , primarytaxcode varchar(15)
- , exemptionno varchar(20)
- , override varchar(1)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , salestaxinvoiced numeric(15,4)
- , salestaxcollected numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , exemptsalesamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_salestax_KEY0_pk PRIMARY KEY (taxcode,transactiondate,invoiceno,invoicetype)
- , CONSTRAINT rar_salestax_KEY0_check CHECK (taxcode is not null and transactiondate is not null and invoiceno is not null and invoicetype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_salestax_KEY1_index ON sageimport.rar_salestax (primarytaxcode,taxcode,transactiondate,invoiceno,invoicetype);
- CREATE INDEX rar_salestax_KEY2_index ON sageimport.rar_salestax (taxcode,invoiceno,invoicetype);
- CREATE INDEX rar_salestax_KEY3_index ON sageimport.rar_salestax (primarytaxcode,taxcode,invoiceno,invoicetype);
- CREATE INDEX rar_salestax_KEY4_index ON sageimport.rar_salestax (transactiondate,taxcode,invoiceno,invoicetype);
- CREATE TABLE sageimport.rar_termscode(
- termscode varchar(2)
- , termscodedesc varchar(30)
- , duedateadayofthemonth varchar(1)
- , discountdateadayofthemo varchar(1)
- , discountcalculationmethod varchar(1)
- , daysbeforedue numeric(15,4)
- , minimumdaysallowedinv numeric(15,4)
- , daysbeforediscountdue numeric(15,4)
- , minimumdaysalloweddisc numeric(15,4)
- , discountrate numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rar_termscode_KEY0_pk PRIMARY KEY (termscode)
- , CONSTRAINT rar_termscode_KEY0_check CHECK (termscode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rar_transactionpaymenthistory(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , invoiceno varchar(7)
- , invoicetype varchar(2)
- , invoicehistoryheaderseqno varchar(6)
- , transactiondate date
- , sequenceno varchar(6)
- , paymentreference varchar(14)
- , checkno varchar(10)
- , transactiontype varchar(1)
- , paymentdate date
- , paymenttype varchar(5)
- , otherpaymenttyperefno varchar(24)
- , cardholdername varchar(30)
- , expirationdateyear varchar(4)
- , expirationdatemonth varchar(2)
- , creditcardauthorizationno varchar(16)
- , last4unencryptedcreditcardnos varchar(4)
- , creditcardtransactionid varchar(10)
- , rmano varchar(7)
- , transactionamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , creditcardid varchar(10)
- , cardtype varchar(1)
- , bankaccounttype varchar(1)
- , bankname varchar(30)
- , creditcardentryno varchar(6)
- , last4bankroutingnos varchar(4)
- , last4bankaccountnos varchar(4)
- , CONSTRAINT rar_transactionpaymenthistory_KEY0_pk PRIMARY KEY (ardivisionno,customerno,invoiceno,invoicetype,transactiondate,sequenceno)
- , CONSTRAINT rar_transactionpaymenthistory_KEY0_check CHECK (ardivisionno is not null and customerno is not null and invoiceno is not null and invoicetype is not null and transactiondate is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rar_transactionpaymenthistory_KEY1_index ON sageimport.rar_transactionpaymenthistory (ardivisionno,customerno,invoiceno,transactiontype,creditcardentryno);
- CREATE INDEX rar_transactionpaymenthistory_KEY2_index ON sageimport.rar_transactionpaymenthistory (ardivisionno,customerno,transactiondate,invoiceno,invoicetype,sequenceno);
- CREATE INDEX rar_transactionpaymenthistory_KEY3_index ON sageimport.rar_transactionpaymenthistory (ardivisionno,customerno,transactiondate,invoiceno,invoicetype,sequenceno);
- CREATE INDEX rar_transactionpaymenthistory_KEY4_index ON sageimport.rar_transactionpaymenthistory (expirationdateyear,expirationdatemonth,ardivisionno,customerno,invoiceno,invoicetype,transactiondate,sequenceno);
- CREATE INDEX rar_transactionpaymenthistory_KEY5_index ON sageimport.rar_transactionpaymenthistory (transactiondate,ardivisionno,customerno,invoiceno,invoicetype,sequenceno);
- CREATE TABLE sageimport.rbm_billdetail(
- billno varchar(30)
- , revision varchar(3)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , componentitemcode varchar(30)
- , componentrevision varchar(3)
- , itemtype varchar(1)
- , componentdesc varchar(30)
- , engineeringdrawingfindno varchar(5)
- , engineeringchangeaddno varchar(7)
- , engineeringchangeadddate date
- , engineeringchangedelno varchar(7)
- , engineeringchangedeldate date
- , workorderstepno varchar(4)
- , billtype varchar(1)
- , commenttext text
- , miscchargeglacctkey varchar(9)
- , setupcharge varchar(1)
- , unitofmeasure varchar(4)
- , quantityperbill numeric(15,4)
- , standardunitcost numeric(15,4)
- , scrappercent numeric(15,4)
- , CONSTRAINT rbm_billdetail_KEY0_pk PRIMARY KEY (billno,revision,linekey)
- , CONSTRAINT rbm_billdetail_KEY0_check CHECK (billno is not null and revision is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rbm_billdetail_KEY1_index ON sageimport.rbm_billdetail (billno,revision,lineseqno,linekey);
- CREATE INDEX rbm_billdetail_KEY2_index ON sageimport.rbm_billdetail (componentitemcode,billno,revision,componentrevision,linekey);
- CREATE TABLE sageimport.rbm_billheader(
- billno varchar(30)
- , revision varchar(3)
- , billdesc1 varchar(30)
- , billdesc2 varchar(30)
- , billtype varchar(1)
- , drawingno varchar(20)
- , drawingrevision varchar(3)
- , datelastused date
- , routingno varchar(20)
- , billhasoptions varchar(1)
- , currentbillrevision varchar(3)
- , optioninteractions varchar(1)
- , optioncategories varchar(1)
- , printcomponentdetail varchar(1)
- , maximumlotsize numeric(15,4)
- , yieldpercent numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rbm_billheader_KEY0_pk PRIMARY KEY (billno,revision)
- , CONSTRAINT rbm_billheader_KEY0_check CHECK (billno is not null and revision IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rbm_billheader_KEY1_index ON sageimport.rbm_billheader (billtype,billno,revision);
- CREATE TABLE sageimport.rbm_billoptioncategory(
- billno varchar(30)
- , revision varchar(3)
- , billoptioncategory1desc varchar(30)
- , billoptioncategory2desc varchar(30)
- , billoptioncategory3desc varchar(30)
- , billoptioncategory4desc varchar(30)
- , billoptioncategory5desc varchar(30)
- , billoptioncategory6desc varchar(30)
- , billoptioncategory7desc varchar(30)
- , billoptioncategory8desc varchar(30)
- , billoptioncategory9desc varchar(30)
- , billoption1required varchar(1)
- , billoption2required varchar(1)
- , billoption3required varchar(1)
- , billoption4required varchar(1)
- , billoption5required varchar(1)
- , billoption6required varchar(1)
- , billoption7required varchar(1)
- , billoption8required varchar(1)
- , billoption9required varchar(1)
- , userupdatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , CONSTRAINT rbm_billoptioncategory_KEY0_pk PRIMARY KEY (billno,revision)
- , CONSTRAINT rbm_billoptioncategory_KEY0_check CHECK (billno is not null and revision IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rbm_billwhereused(
- componentitemcode varchar(30)
- , phantombill varchar(1)
- , CONSTRAINT rbm_billwhereused_KEY0_pk PRIMARY KEY (componentitemcode)
- , CONSTRAINT rbm_billwhereused_KEY0_check CHECK (componentitemcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rbm_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , requirebillrevisions varchar(1)
- , useoptionbills varchar(1)
- , enableengineeringchangecontrol varchar(1)
- , productionentryregindetail varchar(1)
- , postmiscchargestoglbywhse varchar(1)
- , allowkitbills varchar(1)
- , allowphantombills varchar(1)
- , allowduplicatecomponents varchar(1)
- , allowentryofnegativeqty varchar(1)
- , allowscrapyieldpercentfactors varchar(1)
- , maximumnumberoflevels numeric(15,4)
- , integrategeneralledger varchar(1)
- , explodesubassemblies varchar(1)
- , integerunitsofmeasure01 varchar(4)
- , integerunitsofmeasure02 varchar(4)
- , integerunitsofmeasure03 varchar(4)
- , integerunitsofmeasure04 varchar(4)
- , integerunitsofmeasure05 varchar(4)
- , integerunitsofmeasure06 varchar(4)
- , integerunitsofmeasure07 varchar(4)
- , integerunitsofmeasure08 varchar(4)
- , integerunitsofmeasure09 varchar(4)
- , integerunitsofmeasure10 varchar(4)
- , nextproductionno varchar(7)
- , nextdisassemblyno varchar(7)
- , nextengineeringchangeno varchar(7)
- , nextreplacedeleterefno varchar(7)
- , printproductionlabels varchar(1)
- , printpickingsheetsby varchar(1)
- , printeachproddisassemonseppage varchar(1)
- , retainproductionhistory varchar(1)
- , retaindtlhistforissuetran varchar(1)
- , companycode varchar(3)
- , dataversion numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , syncbillitemdescription varchar(1)
- , datasublevel numeric(15,4)
- , CONSTRAINT rbm_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rbm_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rbm_productionhistorydetail(
- productionno varchar(7)
- , productionseqno varchar(6)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , itemtype varchar(1)
- , componentitemcode varchar(30)
- , componentrevision varchar(3)
- , componentdesc varchar(30)
- , componentwarehousecode varchar(3)
- , commenttext text
- , glaccountkey varchar(9)
- , valuation varchar(1)
- , itemcode varchar(30)
- , itemdesc varchar(30)
- , unitofmeasure varchar(4)
- , quantityperbill numeric(15,4)
- , extendedquantity numeric(15,4)
- , totalcost numeric(15,4)
- , CONSTRAINT rbm_productionhistorydetail_KEY0_pk PRIMARY KEY (productionno,productionseqno,linekey)
- , CONSTRAINT rbm_productionhistorydetail_KEY0_check CHECK (productionno is not null and productionseqno is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rbm_productionhistorydetail_KEY1_index ON sageimport.rbm_productionhistorydetail (productionno,productionseqno,lineseqno,linekey);
- CREATE TABLE sageimport.rbm_productionhistoryheader(
- productionno varchar(7)
- , productionseqno varchar(6)
- , productiondate date
- , billno varchar(30)
- , revision varchar(3)
- , billoption1 varchar(2)
- , billoption2 varchar(2)
- , billoption3 varchar(2)
- , billoption4 varchar(2)
- , billoption5 varchar(2)
- , billoption6 varchar(2)
- , billoption7 varchar(2)
- , billoption8 varchar(2)
- , billoption9 varchar(2)
- , effectivedate date
- , parentwarehousecode varchar(3)
- , lotnoorstartingserialno varchar(15)
- , disassembly varchar(1)
- , disassemblytype varchar(1)
- , productiondisassemblysrcjrnl varchar(2)
- , productiondisassemblyregno varchar(6)
- , productionquantity numeric(15,4)
- , billcalcunitcost numeric(15,4)
- , totalimcost numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rbm_productionhistoryheader_KEY0_pk PRIMARY KEY (productionno,productionseqno)
- , CONSTRAINT rbm_productionhistoryheader_KEY0_check CHECK (productionno is not null and productionseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rci_conversionhistory(
- version varchar(11)
- , conversiontype varchar(30)
- , tablename varchar(50)
- , conversionid varchar(6)
- , developercode varchar(3)
- , conversionnotes text
- , ignorerecord varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rci_conversionhistory_KEY0_pk PRIMARY KEY (version,conversiontype,tablename,conversionid,developercode)
- , CONSTRAINT rci_conversionhistory_KEY0_check CHECK (version is not null and conversiontype is not null and tablename is not null and conversionid is not null and developercode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rci_enhancementactivation(
- modulecode varchar(3)
- , developercode varchar(3)
- , enhancementcode varchar(10)
- , datalevel numeric(15,4)
- , sublevel numeric(15,4)
- , CONSTRAINT rci_enhancementactivation_KEY0_pk PRIMARY KEY (modulecode,developercode,enhancementcode)
- , CONSTRAINT rci_enhancementactivation_KEY0_check CHECK (modulecode is not null and developercode is not null and enhancementcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rci_extendeddescription(
- extendeddescriptionkey varchar(10)
- , extendeddescriptiontext text
- , creationmodulecode varchar(3)
- , updatedmodulecode varchar(3)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rci_extendeddescription_KEY0_pk PRIMARY KEY (extendeddescriptionkey)
- , CONSTRAINT rci_extendeddescription_KEY0_check CHECK (extendeddescriptionkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rci_inactivereasoncode(
- inactivereasoncode varchar(5)
- , inactivereasoncodedesc varchar(30)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rci_inactivereasoncode_KEY0_pk PRIMARY KEY (inactivereasoncode)
- , CONSTRAINT rci_inactivereasoncode_KEY0_check CHECK (inactivereasoncode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rci_item(
- itemcode varchar(30)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , extendeddescriptionkey varchar(10)
- , useinar varchar(1)
- , useinso varchar(1)
- , useinpo varchar(1)
- , useinbm varchar(1)
- , calculatecommission varchar(1)
- , dropship varchar(1)
- , ebmenabled varchar(1)
- , allowbackorders varchar(1)
- , allowreturns varchar(1)
- , pricecode varchar(4)
- , allowtradediscount varchar(1)
- , printreceiptlabels varchar(1)
- , allocatelandedcost varchar(1)
- , confirmcostincrinrcptofgoods varchar(1)
- , warrantycode varchar(10)
- , salesunitofmeasure varchar(4)
- , purchaseunitofmeasure varchar(4)
- , standardunitofmeasure varchar(4)
- , posttoglbydivision varchar(1)
- , salesacctkey varchar(9)
- , costofgoodssoldacctkey varchar(9)
- , inventoryacctkey varchar(9)
- , purchaseacctkey varchar(9)
- , manufacturingcostacctkey varchar(9)
- , taxclass varchar(2)
- , purchasestaxclass varchar(2)
- , productline varchar(4)
- , producttype varchar(1)
- , valuation varchar(1)
- , defaultwarehousecode varchar(3)
- , primaryapdivisionno varchar(2)
- , primaryvendorno varchar(7)
- , imagefile varchar(30)
- , lastsolddate date
- , lastreceiptdate date
- , category1 varchar(10)
- , category2 varchar(10)
- , category3 varchar(10)
- , category4 varchar(10)
- , salespromotioncode varchar(10)
- , salestartingdate date
- , saleendingdate date
- , salemethod varchar(1)
- , explodekititems varchar(1)
- , shipweight varchar(10)
- , commenttext text
- , restockingmethod varchar(1)
- , nextlotserialno varchar(15)
- , inventorycycle varchar(1)
- , routingno varchar(20)
- , procurementtype varchar(1)
- , plannercode varchar(3)
- , buyercode varchar(3)
- , lowlevelcode varchar(2)
- , plannedbymrp varchar(1)
- , vendoritemcode varchar(30)
- , setupcharge varchar(1)
- , attachmentfilename varchar(30)
- , itemimagewidthinpixels numeric(15,4)
- , itemimageheightinpixels numeric(15,4)
- , standardunitcost numeric(15,4)
- , standardunitprice numeric(15,4)
- , lasttotalunitcost numeric(15,4)
- , averageunitcost numeric(15,4)
- , salespromotionprice numeric(15,4)
- , suggestedretailprice numeric(15,4)
- , salespromotiondiscountpercent numeric(15,4)
- , totalquantityonhand numeric(15,4)
- , averagebackorderfilldays numeric(15,4)
- , lastallocatedunitcost numeric(15,4)
- , commissionrate numeric(15,4)
- , basecommamt numeric(15,4)
- , purchaseumconvfctr numeric(15,4)
- , salesumconvfctr numeric(15,4)
- , volume numeric(15,4)
- , restockingcharge numeric(15,4)
- , totalinventoryvalue numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , udf_purchase_desc varchar(254)
- , inactiveitem varchar(1)
- , lastphysicalcountdate date
- , commoditycode varchar(12)
- , CONSTRAINT rci_item_KEY0_pk PRIMARY KEY (itemcode)
- , CONSTRAINT rci_item_KEY0_check CHECK (itemcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rci_item_KEY1_index ON sageimport.rci_item (itemtype,itemcode);
- CREATE INDEX rci_item_KEY2_index ON sageimport.rci_item (extendeddescriptionkey,itemcode);
- CREATE INDEX rci_item_KEY3_index ON sageimport.rci_item (productline,itemcode);
- CREATE INDEX rci_item_KEY4_index ON sageimport.rci_item (salespromotioncode,itemcode);
- CREATE INDEX rci_item_KEY5_index ON sageimport.rci_item (itemcodedesc,itemcode,itemtype);
- CREATE TABLE sageimport.rci_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , companycode varchar(3)
- , allowexpandeditemcodes varchar(1)
- , numberofdecimalplacesinprice numeric(15,4)
- , numberofdecimalplacesinqty numeric(15,4)
- , numberofdecimalplacesincost numeric(15,4)
- , numberofdecimalplacesinum numeric(15,4)
- , yearstoretainitemhistory numeric(15,4)
- , dataversion numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , companyversion varchar(11)
- , datasublevel numeric(15,4)
- , CONSTRAINT rci_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rci_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rci_unitofmeasure(
- unitofmeasure varchar(4)
- , conversionum1 varchar(4)
- , conversionfactor1 numeric(15,4)
- , conversionum2 varchar(4)
- , conversionfactor2 numeric(15,4)
- , conversionum3 varchar(4)
- , conversionfactor3 numeric(15,4)
- , conversionum4 varchar(4)
- , conversionfactor4 numeric(15,4)
- , conversionum5 varchar(4)
- , conversionfactor5 numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rci_unitofmeasure_KEY0_pk PRIMARY KEY (unitofmeasure)
- , CONSTRAINT rci_unitofmeasure_KEY0_check CHECK (unitofmeasure IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rcm_entity(
- entity varchar(30)
- , recordflag varchar(1)
- , library varchar(30)
- , description varchar(32)
- , datafile varchar(16)
- , linkedentities varchar(18)
- , attribute varchar(1)
- , segmentname varchar(64)
- , segmenttype varchar(1)
- , mirrortable varchar(30)
- , keysize numeric(15,4)
- , segmentsize numeric(15,4)
- , segmentdesc varchar(80)
- , CONSTRAINT rcm_entity_KEY0_pk PRIMARY KEY (entity,recordflag,library)
- , CONSTRAINT rcm_entity_KEY0_check CHECK (entity is not null and recordflag is not null and library IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rcm_entity_KEY1_index ON sageimport.rcm_entity (library,entity,recordflag);
- CREATE TABLE sageimport.rcm_log(
- sequenceno varchar(7)
- , library varchar(64)
- , libraryform varchar(32)
- , userlogon varchar(60)
- , companycode varchar(3)
- , librarypath text
- , CONSTRAINT rcm_log_KEY0_pk PRIMARY KEY (sequenceno)
- , CONSTRAINT rcm_log_KEY0_check CHECK (sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rcm_log_KEY1_index ON sageimport.rcm_log (userlogon,library,libraryform,companycode);
- CREATE INDEX rcm_log_KEY2_index ON sageimport.rcm_log (companycode,library,libraryform,userlogon);
- CREATE INDEX rcm_log_KEY3_index ON sageimport.rcm_log (library,libraryform,userlogon,companycode);
- CREATE TABLE sageimport.rcm_options(
- keyval varchar(64)
- , rcdval text
- , CONSTRAINT rcm_options_KEY0_pk PRIMARY KEY (keyval)
- , CONSTRAINT rcm_options_KEY0_check CHECK (keyval IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rcm_script(
- scriptid varchar(32)
- , scriptdesc varchar(40)
- , languagetype varchar(1)
- , priority varchar(3)
- , filepath varchar(128)
- , CONSTRAINT rcm_script_KEY0_pk PRIMARY KEY (scriptid)
- , CONSTRAINT rcm_script_KEY0_check CHECK (scriptid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rcm_udf(
- entity varchar(30)
- , fieldname varchar(30)
- , recordflag varchar(1)
- , sequence varchar(3)
- , description varchar(40)
- , controltype varchar(1)
- , datatype varchar(1)
- , dataclass varchar(30)
- , datasourcebusobj varchar(128)
- , datasourcetable varchar(128)
- , datasourcecolumn varchar(128)
- , maskflag varchar(1)
- , maskvalue varchar(32)
- , defaultflag varchar(1)
- , defaultvalue varchar(64)
- , captionflag varchar(1)
- , captionvalue varchar(32)
- , validationtype varchar(1)
- , validationvalue text
- , validationprogram varchar(128)
- , displayattributes varchar(16)
- , maxlength numeric(15,4)
- , CONSTRAINT rcm_udf_KEY0_pk PRIMARY KEY (entity,fieldname,recordflag,sequence)
- , CONSTRAINT rcm_udf_KEY0_check CHECK (entity is not null and fieldname is not null and recordflag is not null and sequence IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rcm_udfiolist(
- entity varchar(3)
- , linkedentity varchar(3)
- , recordflag varchar(1)
- , iolist text
- , CONSTRAINT rcm_udfiolist_KEY0_pk PRIMARY KEY (entity,linkedentity,recordflag)
- , CONSTRAINT rcm_udfiolist_KEY0_check CHECK (entity is not null and linkedentity is not null and recordflag IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rcm_uiscriptlink(
- sequenceno varchar(7)
- , libraryname varchar(50)
- , panelname varchar(12)
- , controlname varchar(30)
- , eventcode varchar(20)
- , languagetype varchar(1)
- , procedurename varchar(96)
- , crcvalue varchar(4)
- , CONSTRAINT rcm_uiscriptlink_KEY0_pk PRIMARY KEY (sequenceno)
- , CONSTRAINT rcm_uiscriptlink_KEY0_check CHECK (sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rcm_uiscriptlink_KEY1_index ON sageimport.rcm_uiscriptlink (libraryname,panelname,controlname,eventcode,languagetype);
- CREATE TABLE sageimport.rcm_uiscriptsettings(
- libraryname varchar(50)
- , panelname varchar(12)
- , controlname varchar(30)
- , eventcode varchar(20)
- , priority varchar(3)
- , sequenceno varchar(2)
- , scriptid varchar(32)
- , CONSTRAINT rcm_uiscriptsettings_KEY0_pk PRIMARY KEY (libraryname,panelname,controlname,eventcode,priority,sequenceno)
- , CONSTRAINT rcm_uiscriptsettings_KEY0_check CHECK (libraryname is not null and panelname is not null and controlname is not null and eventcode is not null and priority is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.res_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , companylogofile varchar(128)
- , promptuserforupdate varchar(1)
- , performautomaticupdate varchar(1)
- , lastgenerateddate date
- , lastgeneratedtime varchar(8)
- , lastgeneratedasofdate date
- , pollingstartdate date
- , pollingstarttime varchar(8)
- , numberofpiesegments numeric(15,4)
- , numberofdetaillines numeric(15,4)
- , numberofhoursbetweenexecutions numeric(15,4)
- , companyname varchar(50)
- , dataversion numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT res_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT res_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_account(
- accountkey varchar(9)
- , accountdesc varchar(50)
- , account varchar(41)
- , rawaccount varchar(32)
- , mainaccountcode varchar(15)
- , datestart date
- , dateend date
- , status varchar(1)
- , clearbalance varchar(1)
- , accounttype varchar(2)
- , cashflowstype varchar(1)
- , rollupcode1 varchar(20)
- , rollupcode2 varchar(20)
- , rollupcode3 varchar(20)
- , rollupcode4 varchar(20)
- , accountgroup varchar(15)
- , accountcategory varchar(1)
- , companycode varchar(3)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rgl_account_KEY0_pk PRIMARY KEY (accountkey)
- , CONSTRAINT rgl_account_KEY0_check CHECK (accountkey IS NOT NULL)
- , CONSTRAINT rgl_account_KEY1_unique UNIQUE (account)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_account_KEY2_index ON sageimport.rgl_account (rawaccount);
- CREATE INDEX rgl_account_KEY3_index ON sageimport.rgl_account (accountgroup,account);
- CREATE INDEX rgl_account_KEY4_index ON sageimport.rgl_account (mainaccountcode,account);
- CREATE INDEX rgl_account_KEY5_index ON sageimport.rgl_account (rollupcode1,account);
- CREATE INDEX rgl_account_KEY6_index ON sageimport.rgl_account (rollupcode2,account);
- CREATE INDEX rgl_account_KEY7_index ON sageimport.rgl_account (rollupcode3,account);
- CREATE INDEX rgl_account_KEY8_index ON sageimport.rgl_account (rollupcode4,account);
- CREATE INDEX rgl_account_KEY9_index ON sageimport.rgl_account (status,account);
- CREATE TABLE sageimport.rgl_accountcategory(
- accountcategory varchar(1)
- , accountcategorydesc varchar(40)
- , CONSTRAINT rgl_accountcategory_KEY0_pk PRIMARY KEY (accountcategory)
- , CONSTRAINT rgl_accountcategory_KEY0_check CHECK (accountcategory IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_accountgroup(
- accountgroup varchar(15)
- , accountgroupdesc varchar(40)
- , accountcategory varchar(1)
- , accounttype varchar(2)
- , cashflowstype varchar(1)
- , CONSTRAINT rgl_accountgroup_KEY0_pk PRIMARY KEY (accountgroup)
- , CONSTRAINT rgl_accountgroup_KEY0_check CHECK (accountgroup IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_accounthistory(
- accountkey varchar(9)
- , accountdesc varchar(50)
- , account varchar(41)
- , rawaccount varchar(32)
- , mainaccountcode varchar(15)
- , datestart date
- , dateend date
- , status varchar(1)
- , clearbalance varchar(1)
- , accounttype varchar(2)
- , cashflowstype varchar(1)
- , rollupcode1 varchar(20)
- , rollupcode2 varchar(20)
- , rollupcode3 varchar(20)
- , rollupcode4 varchar(20)
- , accountgroup varchar(15)
- , accountcategory varchar(1)
- , companycode varchar(3)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , datedeleted date
- , timedeleted varchar(8)
- , userdeletedkey varchar(10)
- , CONSTRAINT rgl_accounthistory_KEY0_pk PRIMARY KEY (accountkey)
- , CONSTRAINT rgl_accounthistory_KEY0_check CHECK (accountkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_accounthistory_KEY1_index ON sageimport.rgl_accounthistory (account);
- CREATE INDEX rgl_accounthistory_KEY2_index ON sageimport.rgl_accounthistory (rawaccount);
- CREATE INDEX rgl_accounthistory_KEY3_index ON sageimport.rgl_accounthistory (accountgroup,account);
- CREATE INDEX rgl_accounthistory_KEY4_index ON sageimport.rgl_accounthistory (mainaccountcode,account);
- CREATE INDEX rgl_accounthistory_KEY5_index ON sageimport.rgl_accounthistory (rollupcode1,account);
- CREATE INDEX rgl_accounthistory_KEY6_index ON sageimport.rgl_accounthistory (rollupcode2,account);
- CREATE INDEX rgl_accounthistory_KEY7_index ON sageimport.rgl_accounthistory (rollupcode3,account);
- CREATE INDEX rgl_accounthistory_KEY8_index ON sageimport.rgl_accounthistory (rollupcode4,account);
- CREATE TABLE sageimport.rgl_accountsegment(
- segmentno varchar(2)
- , subaccountcode varchar(15)
- , accountkey varchar(9)
- , CONSTRAINT rgl_accountsegment_KEY0_pk PRIMARY KEY (segmentno,subaccountcode,accountkey)
- , CONSTRAINT rgl_accountsegment_KEY0_check CHECK (segmentno is not null and subaccountcode is not null and accountkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_accountsegment_KEY1_index ON sageimport.rgl_accountsegment (accountkey,segmentno,subaccountcode);
- CREATE TABLE sageimport.rgl_accountstructure(
- segmentno varchar(2)
- , segmentdesc varchar(15)
- , segmentsize numeric(15,4)
- , segmenttype varchar(1)
- , CONSTRAINT rgl_accountstructure_KEY0_pk PRIMARY KEY (segmentno)
- , CONSTRAINT rgl_accountstructure_KEY0_check CHECK (segmentno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_accounttype(
- accounttype varchar(2)
- , accounttypedesc varchar(40)
- , accountcategory varchar(1)
- , CONSTRAINT rgl_accounttype_KEY0_pk PRIMARY KEY (accounttype)
- , CONSTRAINT rgl_accounttype_KEY0_check CHECK (accounttype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_audit(
- userkey varchar(10)
- , sequenceno varchar(14)
- , workstationname varchar(30)
- , date date
- , accountkey varchar(9)
- , transactiontype varchar(1)
- , fieldname varchar(30)
- , fieldvalueoriginal varchar(50)
- , newfieldvalue varchar(50)
- , CONSTRAINT rgl_audit_KEY0_pk PRIMARY KEY (userkey,date,sequenceno)
- , CONSTRAINT rgl_audit_KEY0_check CHECK (userkey is not null and date is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rgl_audit_KEY2_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_audit_KEY1_index ON sageimport.rgl_audit (accountkey);
- CREATE INDEX rgl_audit_KEY3_index ON sageimport.rgl_audit (workstationname,userkey,date,sequenceno);
- CREATE TABLE sageimport.rgl_bank(
- bankcode varchar(1)
- , bankdesc varchar(30)
- , cashaccountkey varchar(9)
- , bankaccountno varchar(17)
- , nextcheckno varchar(6)
- , checkprintingstatus varchar(1)
- , currentbankbalance numeric(15,4)
- , outstandingchecktotal numeric(15,4)
- , numberoutstandingchecks numeric(15,4)
- , outstandingdeposittotal numeric(15,4)
- , nooutstandingdeposits numeric(15,4)
- , outstandingadjusttotal numeric(15,4)
- , numberoutstandingadjust numeric(15,4)
- , statementbalance numeric(15,4)
- , CONSTRAINT rgl_bank_KEY0_pk PRIMARY KEY (bankcode)
- , CONSTRAINT rgl_bank_KEY0_check CHECK (bankcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_budget(
- budgetcode varchar(10)
- , budgetdesc varchar(40)
- , permanent varchar(1)
- , CONSTRAINT rgl_budget_KEY0_pk PRIMARY KEY (budgetcode)
- , CONSTRAINT rgl_budget_KEY0_check CHECK (budgetcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_checkmicr(
- bankcode varchar(1)
- , checkprefix varchar(1)
- , checksuffix varchar(1)
- , routingno varchar(11)
- , bankaccountno varchar(17)
- , micrprintingenabled varchar(1)
- , address1 varchar(30)
- , address2 varchar(30)
- , address3 varchar(30)
- , city varchar(20)
- , state varchar(2)
- , zipcode varchar(10)
- , countrycode varchar(3)
- , contactcode varchar(30)
- , telephone varchar(17)
- , extension varchar(5)
- , faxno varchar(17)
- , emailaddress varchar(50)
- , urladdress varchar(50)
- , comment varchar(30)
- , apdefaultformcode varchar(20)
- , CONSTRAINT rgl_checkmicr_KEY0_pk PRIMARY KEY (bankcode)
- , CONSTRAINT rgl_checkmicr_KEY0_check CHECK (bankcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_companyactivebatch(
- modulecode varchar(3)
- , batchtype varchar(2)
- , batchno varchar(5)
- , batchsubtype varchar(1)
- , privatebatch varchar(1)
- , comment varchar(30)
- , batchstatus varchar(1)
- , batchgroup varchar(14)
- , registerno varchar(6)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , recordcount numeric(15,4)
- , batchtotal01 numeric(15,4)
- , batchtotal02 numeric(15,4)
- , batchtotal03 numeric(15,4)
- , batchtotal04 numeric(15,4)
- , batchtotal05 numeric(15,4)
- , batchtotal06 numeric(15,4)
- , batchtotal07 numeric(15,4)
- , batchtotal08 numeric(15,4)
- , batchtotal09 numeric(15,4)
- , batchtotal10 numeric(15,4)
- , CONSTRAINT rgl_companyactivebatch_KEY0_pk PRIMARY KEY (modulecode,batchtype,batchno)
- , CONSTRAINT rgl_companyactivebatch_KEY0_check CHECK (modulecode is not null and batchtype is not null and batchno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_companyactivebatch_KEY1_index ON sageimport.rgl_companyactivebatch (batchgroup,modulecode,batchtype,batchno);
- CREATE TABLE sageimport.rgl_companybatchoptions(
- modulecode varchar(3)
- , batchtype varchar(2)
- , enablebatchentry varchar(1)
- , nextbatchno varchar(5)
- , CONSTRAINT rgl_companybatchoptions_KEY0_pk PRIMARY KEY (modulecode,batchtype)
- , CONSTRAINT rgl_companybatchoptions_KEY0_check CHECK (modulecode is not null and batchtype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_companymemomanagersettings(
- modulecode varchar(3)
- , memotype varchar(2)
- , role varchar(10)
- , memofunction varchar(30)
- , memooption varchar(1)
- , autodisplay varchar(1)
- , CONSTRAINT rgl_companymemomanagersettings_KEY0_pk PRIMARY KEY (modulecode,memotype,role,memofunction)
- , CONSTRAINT rgl_companymemomanagersettings_KEY0_check CHECK (modulecode is not null and memotype is not null and role is not null and memofunction IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_dailyposting(
- postingdate date
- , sourcejournal varchar(2)
- , registerno varchar(6)
- , accountkey varchar(9)
- , sequenceno varchar(14)
- , sourcemodule varchar(2)
- , postingcomment text
- , documenttype varchar(1)
- , documentno varchar(20)
- , docsequenceno varchar(14)
- , receiptno varchar(7)
- , batchtype varchar(2)
- , batchno varchar(5)
- , lineseqno varchar(14)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , debitamount numeric(15,4)
- , creditamount numeric(15,4)
- , altdoctype varchar(1)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , CONSTRAINT rgl_dailyposting_KEY0_pk PRIMARY KEY (postingdate,sourcejournal,registerno,accountkey,sequenceno)
- , CONSTRAINT rgl_dailyposting_KEY0_check CHECK (postingdate is not null and sourcejournal is not null and registerno is not null and accountkey is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rgl_dailyposting_KEY2_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_dailyposting_KEY1_index ON sageimport.rgl_dailyposting (batchno,postingdate,sourcejournal,registerno,accountkey,sequenceno);
- CREATE INDEX rgl_dailyposting_KEY3_index ON sageimport.rgl_dailyposting (accountkey,postingdate,sourcejournal,registerno,sequenceno);
- CREATE INDEX rgl_dailyposting_KEY4_index ON sageimport.rgl_dailyposting (apdivisionno,vendorno,documentno,postingdate,sourcejournal,registerno,accountkey,sequenceno);
- CREATE INDEX rgl_dailyposting_KEY5_index ON sageimport.rgl_dailyposting (ardivisionno,customerno,documentno,postingdate,sourcejournal,registerno,accountkey,sequenceno);
- CREATE TABLE sageimport.rgl_detailposting(
- accountkey varchar(9)
- , postingdate date
- , sourcejournal varchar(2)
- , journalregisterno varchar(6)
- , sequenceno varchar(14)
- , sourcemodule varchar(2)
- , documenttype varchar(1)
- , documentno varchar(20)
- , docsequenceno varchar(14)
- , receiptno varchar(7)
- , batchtype varchar(2)
- , batchno varchar(5)
- , postingcomment text
- , headerrec varchar(1)
- , linebankcode varchar(1)
- , linedocrefer varchar(10)
- , linedate date
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , debitamount numeric(15,4)
- , creditamount numeric(15,4)
- , CONSTRAINT rgl_detailposting_KEY0_pk PRIMARY KEY (accountkey,postingdate,sourcejournal,journalregisterno,sequenceno)
- , CONSTRAINT rgl_detailposting_KEY0_check CHECK (accountkey is not null and postingdate is not null and sourcejournal is not null and journalregisterno is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rgl_detailposting_KEY2_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_detailposting_KEY1_index ON sageimport.rgl_detailposting (sourcejournal,journalregisterno,postingdate,sequenceno);
- CREATE INDEX rgl_detailposting_KEY3_index ON sageimport.rgl_detailposting (postingdate,accountkey,sourcejournal,journalregisterno,sequenceno);
- CREATE INDEX rgl_detailposting_KEY4_index ON sageimport.rgl_detailposting (sourcemodule,accountkey,postingdate,sourcejournal,journalregisterno,sequenceno);
- CREATE TABLE sageimport.rgl_financialreport(
- reportname varchar(30)
- , reporttitle varchar(50)
- , reporttype varchar(1)
- , reportgroup varchar(20)
- , summarytype varchar(1)
- , columnformat varchar(1)
- , reportperiod varchar(1)
- , trendperiodtype varchar(1)
- , trendfollowingperiod numeric(15,4)
- , trendfirstperiod varchar(1)
- , trendlastperiod varchar(1)
- , budgetcode varchar(10)
- , decimalplaces varchar(1)
- , decimalseparator varchar(1)
- , negativevalueformat varchar(1)
- , thousandseparator varchar(1)
- , percentdecimalplaces varchar(1)
- , percentsymbol varchar(1)
- , roundingfactor varchar(1)
- , printaccountno varchar(1)
- , dollarsigntype varchar(1)
- , printzeroacct varchar(1)
- , liabilitynewpage varchar(1)
- , useruntimeacctsel varchar(1)
- , usecondensedformat varchar(1)
- , useruntimetrendopt varchar(1)
- , footnoteoption varchar(1)
- , centerfootnote varchar(1)
- , useruntimefootnote varchar(1)
- , permanentrecord varchar(1)
- , printuserkey varchar(10)
- , footnotetext text
- , firstamountonly varchar(1)
- , CONSTRAINT rgl_financialreport_KEY0_pk PRIMARY KEY (reportname)
- , CONSTRAINT rgl_financialreport_KEY0_check CHECK (reportname IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_financialreport_KEY1_index ON sageimport.rgl_financialreport (reportgroup,reportname);
- CREATE TABLE sageimport.rgl_financialreportgroup(
- groupname varchar(20)
- , sequenceno varchar(14)
- , linekey varchar(6)
- , reportname varchar(30)
- , permanentrecord varchar(1)
- , CONSTRAINT rgl_financialreportgroup_KEY0_pk PRIMARY KEY (groupname,sequenceno,linekey)
- , CONSTRAINT rgl_financialreportgroup_KEY0_check CHECK (groupname is not null and sequenceno is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_financialreportgroup_KEY1_index ON sageimport.rgl_financialreportgroup (groupname,linekey);
- CREATE TABLE sageimport.rgl_financialterminology(
- financialtermcode varchar(6)
- , financialtermdefaultdesc varchar(40)
- , financialtermdesc varchar(40)
- , CONSTRAINT rgl_financialterminology_KEY0_pk PRIMARY KEY (financialtermcode)
- , CONSTRAINT rgl_financialterminology_KEY0_check CHECK (financialtermcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_fiscalyear(
- fiscalyear varchar(4)
- , numberofperiods varchar(2)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rgl_fiscalyear_KEY0_pk PRIMARY KEY (fiscalyear)
- , CONSTRAINT rgl_fiscalyear_KEY0_check CHECK (fiscalyear IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_fiscalyeardetail(
- fiscalyear varchar(4)
- , fiscalperiod varchar(2)
- , periodendingdate date
- , allocationscomp varchar(1)
- , companycode varchar(3)
- , CONSTRAINT rgl_fiscalyeardetail_KEY0_pk PRIMARY KEY (fiscalyear,fiscalperiod)
- , CONSTRAINT rgl_fiscalyeardetail_KEY0_check CHECK (fiscalyear is not null and fiscalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_fiscalyeardetail_KEY1_index ON sageimport.rgl_fiscalyeardetail (periodendingdate,fiscalyear,fiscalperiod);
- CREATE TABLE sageimport.rgl_mainaccount(
- segmentno varchar(2)
- , mainaccountcode varchar(15)
- , mainaccountdesc varchar(40)
- , mainaccountshortdesc varchar(20)
- , datestart date
- , dateend date
- , status varchar(1)
- , clearbalance varchar(1)
- , accountgroup varchar(15)
- , accountcategory varchar(1)
- , accounttype varchar(2)
- , cashflowstype varchar(1)
- , rollupcode1 varchar(20)
- , rollupcode2 varchar(20)
- , rollupcode3 varchar(20)
- , rollupcode4 varchar(20)
- , companycode varchar(3)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rgl_mainaccount_KEY0_pk PRIMARY KEY (segmentno,mainaccountcode)
- , CONSTRAINT rgl_mainaccount_KEY0_check CHECK (segmentno is not null and mainaccountcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_mainaccount_KEY1_index ON sageimport.rgl_mainaccount (mainaccountcode);
- CREATE INDEX rgl_mainaccount_KEY2_index ON sageimport.rgl_mainaccount (rollupcode1,mainaccountcode);
- CREATE INDEX rgl_mainaccount_KEY3_index ON sageimport.rgl_mainaccount (rollupcode2,mainaccountcode);
- CREATE INDEX rgl_mainaccount_KEY4_index ON sageimport.rgl_mainaccount (rollupcode3,mainaccountcode);
- CREATE INDEX rgl_mainaccount_KEY5_index ON sageimport.rgl_mainaccount (rollupcode4,mainaccountcode);
- CREATE INDEX rgl_mainaccount_KEY6_index ON sageimport.rgl_mainaccount (accountgroup,segmentno,mainaccountcode);
- CREATE INDEX rgl_mainaccount_KEY7_index ON sageimport.rgl_mainaccount (status,mainaccountcode);
- CREATE TABLE sageimport.rgl_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , accountformat varchar(31)
- , currentfiscalyr varchar(4)
- , currentperiod varchar(2)
- , accountmaskdelim varchar(1)
- , accountdescdelim1 varchar(1)
- , accountdescdelim2 varchar(1)
- , retainearningsaccountkey varchar(9)
- , autocreateaccounts varchar(1)
- , allowotfmainaccounts varchar(1)
- , allowotfsubaccounts varchar(1)
- , trackadditionsindetail varchar(1)
- , trackchangestoacct varchar(1)
- , yearsretainglhist varchar(2)
- , resetjournal varchar(1)
- , resetregister varchar(1)
- , trackdeletedjournals varchar(1)
- , nextallocno varchar(7)
- , integratebankrec varchar(1)
- , defaultbudget varchar(10)
- , copyactualtobudget varchar(1)
- , changebudgetamt varchar(1)
- , reversebudvarsignsoncustomfs varchar(1)
- , reversepyvarsignsonfs varchar(1)
- , updateneeded varchar(1)
- , periodupdated varchar(2)
- , currentfiscalyrperiods varchar(2)
- , currentcalendaryr varchar(4)
- , currfiscalyearupdatedtofs varchar(4)
- , tranjrnlpostoption varchar(1)
- , rolluptype1 varchar(20)
- , rolluptype2 varchar(20)
- , rolluptype3 varchar(20)
- , rolluptype4 varchar(20)
- , companycode varchar(3)
- , dataversion numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , datasublevel numeric(15,4)
- , CONSTRAINT rgl_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rgl_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_periodpostinghistory(
- accountkey varchar(9)
- , fiscalyear varchar(4)
- , fiscalperiod varchar(2)
- , beginningbalance numeric(15,4)
- , debitamount numeric(15,4)
- , creditamount numeric(15,4)
- , CONSTRAINT rgl_periodpostinghistory_KEY0_pk PRIMARY KEY (accountkey,fiscalyear,fiscalperiod)
- , CONSTRAINT rgl_periodpostinghistory_KEY0_check CHECK (accountkey is not null and fiscalyear is not null and fiscalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_periodpostinghistory_KEY1_index ON sageimport.rgl_periodpostinghistory (fiscalyear,fiscalperiod,accountkey);
- CREATE INDEX rgl_periodpostinghistory_KEY2_index ON sageimport.rgl_periodpostinghistory (fiscalyear,accountkey,fiscalperiod);
- CREATE INDEX rgl_periodpostinghistory_KEY3_index ON sageimport.rgl_periodpostinghistory (fiscalyear,fiscalperiod,accountkey);
- CREATE TABLE sageimport.rgl_salestax(
- taxcode varchar(15)
- , registrationno varchar(20)
- , exemptionno varchar(20)
- , arsalestaxaccountkey varchar(9)
- , apsalestaxaccountkey varchar(9)
- , apusetaxaccountkey varchar(9)
- , nonrecoverytaxaccountkey varchar(9)
- , expensetax varchar(1)
- , CONSTRAINT rgl_salestax_KEY0_pk PRIMARY KEY (taxcode)
- , CONSTRAINT rgl_salestax_KEY0_check CHECK (taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_sourcejournal(
- sourcejournal varchar(2)
- , sourcejournaldesc varchar(40)
- , journaltype varchar(1)
- , nextjournalno varchar(6)
- , nextregisterno varchar(6)
- , offsetaccountkey varchar(9)
- , ooffset varchar(1)
- , enterbatchtotfortransjrnlde varchar(1)
- , transactiontype varchar(1)
- , autoincrementcheck varchar(1)
- , postbrdepositinsummary varchar(1)
- , bankcode varchar(1)
- , transferfundstobankcode varchar(1)
- , CONSTRAINT rgl_sourcejournal_KEY0_pk PRIMARY KEY (sourcejournal)
- , CONSTRAINT rgl_sourcejournal_KEY0_check CHECK (sourcejournal IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rgl_sourcejournalhistory(
- sourcejournal varchar(2)
- , journalregisterno varchar(6)
- , postingdate date
- , sourcemodule varchar(2)
- , deleted varchar(1)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , debitamount numeric(15,4)
- , creditamount numeric(15,4)
- , CONSTRAINT rgl_sourcejournalhistory_KEY0_pk PRIMARY KEY (sourcejournal,journalregisterno,postingdate,sourcemodule)
- , CONSTRAINT rgl_sourcejournalhistory_KEY0_check CHECK (sourcejournal is not null and journalregisterno is not null and postingdate is not null and sourcemodule IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_sourcejournalhistory_KEY1_index ON sageimport.rgl_sourcejournalhistory (sourcejournal,postingdate);
- CREATE INDEX rgl_sourcejournalhistory_KEY2_index ON sageimport.rgl_sourcejournalhistory (postingdate,sourcejournal,journalregisterno,sourcemodule);
- CREATE TABLE sageimport.rgl_subaccount(
- segmentno varchar(2)
- , subaccountcode varchar(15)
- , subaccountdesc varchar(40)
- , subaccountshortdesc varchar(10)
- , printfinancialstmts varchar(1)
- , datestart date
- , dateend date
- , status varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rgl_subaccount_KEY0_pk PRIMARY KEY (segmentno,subaccountcode)
- , CONSTRAINT rgl_subaccount_KEY0_check CHECK (segmentno is not null and subaccountcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_subaccount_KEY1_index ON sageimport.rgl_subaccount (status,segmentno,subaccountcode);
- CREATE TABLE sageimport.rgl_summarydetaildrilldown(
- accountkey varchar(9)
- , postingdate date
- , sourcejournal varchar(2)
- , registerno varchar(6)
- , documentno varchar(20)
- , sequenceno varchar(14)
- , sourcemodule varchar(2)
- , documenttype varchar(1)
- , receiptno varchar(7)
- , docsequenceno varchar(14)
- , altdoctype varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , CONSTRAINT rgl_summarydetaildrilldown_KEY0_pk PRIMARY KEY (accountkey,postingdate,sourcejournal,registerno,documentno,sequenceno)
- , CONSTRAINT rgl_summarydetaildrilldown_KEY0_check CHECK (accountkey is not null and postingdate is not null and sourcejournal is not null and registerno is not null and documentno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rgl_summarydetaildrilldown_KEY1_index ON sageimport.rgl_summarydetaildrilldown (postingdate,accountkey,sourcejournal,registerno,documentno,sequenceno);
- CREATE INDEX rgl_summarydetaildrilldown_KEY2_index ON sageimport.rgl_summarydetaildrilldown (apdivisionno,vendorno,documentno,postingdate,sourcejournal,registerno,accountkey,sequenceno);
- CREATE INDEX rgl_summarydetaildrilldown_KEY3_index ON sageimport.rgl_summarydetaildrilldown (ardivisionno,customerno,documentno,postingdate,sourcejournal,registerno,accountkey,sequenceno);
- CREATE TABLE sageimport.rim_aliasitem(
- itemcode varchar(30)
- , aliasitemno varchar(30)
- , ttype varchar(1)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , aliasitemdesc varchar(30)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_aliasitem_KEY0_pk PRIMARY KEY (itemcode,aliasitemno,ttype,ardivisionno,customerno,apdivisionno,vendorno)
- , CONSTRAINT rim_aliasitem_KEY0_check CHECK (itemcode is not null and aliasitemno is not null and ttype is not null and ardivisionno is not null and customerno is not null and apdivisionno is not null and vendorno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_aliasitem_KEY1_index ON sageimport.rim_aliasitem (aliasitemno,itemcode,ttype,ardivisionno,customerno,apdivisionno,vendorno);
- CREATE INDEX rim_aliasitem_KEY2_index ON sageimport.rim_aliasitem (ttype,ardivisionno,customerno,aliasitemno,itemcode,apdivisionno,vendorno);
- CREATE INDEX rim_aliasitem_KEY3_index ON sageimport.rim_aliasitem (ttype,apdivisionno,vendorno,aliasitemno,itemcode,ardivisionno,customerno);
- CREATE INDEX rim_aliasitem_KEY4_index ON sageimport.rim_aliasitem (ttype,ardivisionno,customerno,itemcode,aliasitemno,apdivisionno,vendorno);
- CREATE INDEX rim_aliasitem_KEY5_index ON sageimport.rim_aliasitem (ttype,apdivisionno,vendorno,itemcode,aliasitemno,ardivisionno,customerno);
- CREATE INDEX rim_aliasitem_KEY6_index ON sageimport.rim_aliasitem (itemcode,ttype,ardivisionno,customerno,aliasitemno);
- CREATE TABLE sageimport.rim_countcarddefaults(
- userkey varchar(10)
- , workstationname varchar(30)
- , warehousecode varchar(3)
- , includealllotserialno varchar(1)
- , unitofmeasureforqty varchar(1)
- , CONSTRAINT rim_countcarddefaults_KEY0_pk PRIMARY KEY (userkey,workstationname)
- , CONSTRAINT rim_countcarddefaults_KEY0_check CHECK (userkey is not null and workstationname IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_countcarddefaults_KEY1_index ON sageimport.rim_countcarddefaults (workstationname,userkey);
- CREATE TABLE sageimport.rim_dailypostingwork(
- postingdate date
- , sourcejournal varchar(2)
- , registerno varchar(6)
- , accountkey varchar(9)
- , sequenceno varchar(14)
- , sourcemodule varchar(2)
- , postingcomment text
- , documenttype varchar(1)
- , documentno varchar(10)
- , docsequenceno varchar(14)
- , receiptno varchar(7)
- , batchtype varchar(2)
- , batchno varchar(5)
- , lineseqno varchar(14)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , debitamount numeric(15,4)
- , creditamount numeric(15,4)
- , CONSTRAINT rim_dailypostingwork_KEY0_pk PRIMARY KEY (postingdate,sourcejournal,registerno,accountkey,sequenceno)
- , CONSTRAINT rim_dailypostingwork_KEY0_check CHECK (postingdate is not null and sourcejournal is not null and registerno is not null and accountkey is not null and sequenceno IS NOT NULL)
- , CONSTRAINT rim_dailypostingwork_KEY1_unique UNIQUE (sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_dailypostingwork_KEY2_index ON sageimport.rim_dailypostingwork (registerno,postingdate,sourcejournal,accountkey,sequenceno);
- CREATE INDEX rim_dailypostingwork_KEY3_index ON sageimport.rim_dailypostingwork (accountkey,postingdate,sourcejournal,registerno,sequenceno);
- CREATE TABLE sageimport.rim_deletechangeitemswork(
- lineno varchar(14)
- , sequenceno varchar(14)
- , sourceprimary varchar(30)
- , destinationprimary varchar(30)
- , changestatus varchar(70)
- , operation varchar(1)
- , allfiles varchar(1)
- , deleteitems varchar(1)
- , deleteitemwarehouses varchar(1)
- , deleteitemcosting varchar(1)
- , deletealternateitems varchar(1)
- , deleteitempricing varchar(1)
- , deleteebmitemscategories varchar(1)
- , startingitemcode varchar(30)
- , startingitemcodedesc varchar(30)
- , endingitemcode varchar(30)
- , endingitemcodedesc varchar(30)
- , newitemcode varchar(30)
- , newitemcodedesc varchar(30)
- , CONSTRAINT rim_deletechangeitemswork_KEY0_pk PRIMARY KEY (operation,lineno,sequenceno)
- , CONSTRAINT rim_deletechangeitemswork_KEY0_check CHECK (operation is not null and lineno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_deletechangeitemswork_KEY1_index ON sageimport.rim_deletechangeitemswork (sourceprimary,destinationprimary,lineno);
- CREATE TABLE sageimport.rim_itemcost(
- itemcode varchar(30)
- , warehousecode varchar(3)
- , tiertype varchar(1)
- , groupsort varchar(16)
- , transactiondate date
- , receiptdate date
- , receiptno varchar(8)
- , lotserialno varchar(15)
- , negativeqty varchar(1)
- , tiergroup varchar(1)
- , quantityonhand numeric(15,4)
- , unitcost numeric(15,4)
- , allocatedcost numeric(15,4)
- , extendedcost numeric(15,4)
- , quantitycommitted numeric(15,4)
- , costcalcqtycommitted numeric(15,4)
- , costcalccostcommitted numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_itemcost_KEY0_pk PRIMARY KEY (itemcode,warehousecode,tiertype,groupsort)
- , CONSTRAINT rim_itemcost_KEY0_check CHECK (itemcode is not null and warehousecode is not null and tiertype is not null and groupsort IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_itemcost_KEY1_index ON sageimport.rim_itemcost (itemcode,warehousecode,tiertype,receiptdate,receiptno,lotserialno,groupsort);
- CREATE INDEX rim_itemcost_KEY2_index ON sageimport.rim_itemcost (negativeqty,tiergroup,itemcode,warehousecode,tiertype,groupsort);
- CREATE TABLE sageimport.rim_itemcustomerhistorybyperiod(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , shiptocode varchar(4)
- , itemcode varchar(30)
- , fiscalcalyear varchar(4)
- , fiscalcalperiod varchar(2)
- , quantitysold numeric(15,4)
- , dollarssold numeric(15,4)
- , costofgoodssold numeric(15,4)
- , quantityreturned numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_itemcustomerhistorybyperiod_KEY0_pk PRIMARY KEY (ardivisionno,customerno,shiptocode,itemcode,fiscalcalyear,fiscalcalperiod)
- , CONSTRAINT rim_itemcustomerhistorybyperiod_KEY0_check CHECK (ardivisionno is not null and customerno is not null and shiptocode is not null and itemcode is not null and fiscalcalyear is not null and fiscalcalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY1_index ON sageimport.rim_itemcustomerhistorybyperiod (itemcode,ardivisionno,customerno,shiptocode,fiscalcalyear,fiscalcalperiod);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY2_index ON sageimport.rim_itemcustomerhistorybyperiod (itemcode,fiscalcalyear,fiscalcalperiod,ardivisionno,customerno,shiptocode);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY3_index ON sageimport.rim_itemcustomerhistorybyperiod (ardivisionno,customerno,shiptocode,fiscalcalyear,fiscalcalperiod,itemcode);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY4_index ON sageimport.rim_itemcustomerhistorybyperiod (ardivisionno,customerno,fiscalcalyear,fiscalcalperiod,shiptocode,itemcode);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY5_index ON sageimport.rim_itemcustomerhistorybyperiod (ardivisionno,customerno,itemcode,fiscalcalyear,fiscalcalperiod,shiptocode);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY6_index ON sageimport.rim_itemcustomerhistorybyperiod (itemcode,fiscalcalyear,ardivisionno,customerno,shiptocode,fiscalcalperiod);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY7_index ON sageimport.rim_itemcustomerhistorybyperiod (ardivisionno,customerno,fiscalcalyear,itemcode,shiptocode,fiscalcalperiod);
- CREATE INDEX rim_itemcustomerhistorybyperiod_KEY8_index ON sageimport.rim_itemcustomerhistorybyperiod (ardivisionno,customerno,itemcode,shiptocode,fiscalcalyear,fiscalcalperiod);
- CREATE TABLE sageimport.rim_itemmemo(
- itemcode varchar(30)
- , memocode varchar(10)
- , seqno varchar(6)
- , memodesc varchar(30)
- , memodate date
- , expirationdate date
- , reminderstartdate date
- , reminderenddate date
- , autodisplaysetting varchar(1)
- , memotext text
- , attachment varchar(128)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_itemmemo_KEY0_pk PRIMARY KEY (itemcode,memocode,seqno)
- , CONSTRAINT rim_itemmemo_KEY0_check CHECK (itemcode is not null and memocode is not null and seqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rim_itemtransactionhistory(
- itemcode varchar(30)
- , warehousecode varchar(3)
- , transactiondate date
- , transactioncode varchar(2)
- , entryno varchar(10)
- , sequenceno varchar(6)
- , imtransactionentrycomment varchar(30)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , referencedate date
- , fiscalcalyear varchar(4)
- , fiscalcalperiod varchar(2)
- , shiptocode varchar(4)
- , invoicetype varchar(2)
- , transactionqty numeric(15,4)
- , unitcost numeric(15,4)
- , allocatedcost numeric(15,4)
- , unitprice numeric(15,4)
- , extendedprice numeric(15,4)
- , extendedcost numeric(15,4)
- , extendedstandardcost numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , invoicehistoryheaderseqno varchar(6)
- , receipthistoryheaderseqno varchar(6)
- , receipthistorypurchaseorderno varchar(7)
- , sourcejournal varchar(2)
- , journalnoglbatchno varchar(6)
- , CONSTRAINT rim_itemtransactionhistory_KEY0_pk PRIMARY KEY (itemcode,warehousecode,transactiondate,transactioncode,entryno,sequenceno)
- , CONSTRAINT rim_itemtransactionhistory_KEY0_check CHECK (itemcode is not null and warehousecode is not null and transactiondate is not null and transactioncode is not null and entryno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_itemtransactionhistory_KEY1_index ON sageimport.rim_itemtransactionhistory (itemcode,fiscalcalyear,fiscalcalperiod,warehousecode,transactiondate,transactioncode,entryno,sequenceno);
- CREATE INDEX rim_itemtransactionhistory_KEY2_index ON sageimport.rim_itemtransactionhistory (transactiondate,itemcode,warehousecode,transactioncode,entryno,sequenceno);
- CREATE TABLE sageimport.rim_itemtransactionrecalc(
- itemcode varchar(30)
- , warehousecode varchar(3)
- , transactiondate date
- , transactioncode varchar(2)
- , entryno varchar(10)
- , sequenceno varchar(6)
- , imtransactionentrycomment varchar(30)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , referencedate date
- , fiscalcalyear varchar(4)
- , fiscalcalperiod varchar(2)
- , shiptocode varchar(4)
- , invoicetype varchar(2)
- , transactionqty numeric(15,4)
- , unitcost numeric(15,4)
- , allocatedcost numeric(15,4)
- , unitprice numeric(15,4)
- , extendedprice numeric(15,4)
- , extendedcost numeric(15,4)
- , extendedstandardcost numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_itemtransactionrecalc_KEY0_pk PRIMARY KEY (itemcode,warehousecode,transactiondate,transactioncode,entryno,sequenceno)
- , CONSTRAINT rim_itemtransactionrecalc_KEY0_check CHECK (itemcode is not null and warehousecode is not null and transactiondate is not null and transactioncode is not null and entryno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_itemtransactionrecalc_KEY1_index ON sageimport.rim_itemtransactionrecalc (itemcode,fiscalcalyear,fiscalcalperiod,warehousecode,transactiondate,transactioncode,entryno,sequenceno);
- CREATE INDEX rim_itemtransactionrecalc_KEY2_index ON sageimport.rim_itemtransactionrecalc (transactiondate,itemcode,warehousecode,transactioncode,entryno,sequenceno);
- CREATE TABLE sageimport.rim_itemvendor(
- itemcode varchar(30)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendoraliasitemno varchar(30)
- , lastreceiptdate date
- , lastreceiptno varchar(6)
- , lastreceiptheaderseqno varchar(6)
- , lastreturndate date
- , lastreturnpurchaseorderno varchar(7)
- , lastreturntype varchar(1)
- , lastreceiptpurchaseorderno varchar(7)
- , lastreceipttype varchar(1)
- , lastreturnno varchar(6)
- , lastreturnheaderseqno varchar(6)
- , vendorwarrantycode varchar(10)
- , lastreceiptquantity numeric(15,4)
- , lastunitcost numeric(15,4)
- , lastallocatedunitcost numeric(15,4)
- , standardleadtime numeric(15,4)
- , lastleadtime numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_itemvendor_KEY0_pk PRIMARY KEY (itemcode,apdivisionno,vendorno)
- , CONSTRAINT rim_itemvendor_KEY0_check CHECK (itemcode is not null and apdivisionno is not null and vendorno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_itemvendor_KEY1_index ON sageimport.rim_itemvendor (apdivisionno,vendorno,itemcode);
- CREATE TABLE sageimport.rim_itemvendorhistorybyperiod(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , itemcode varchar(30)
- , fiscalcalyear varchar(4)
- , fiscalcalperiod varchar(2)
- , quantityreceived numeric(15,4)
- , costofgoodsreceived numeric(15,4)
- , quantityreturned numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_itemvendorhistorybyperiod_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,itemcode,fiscalcalyear,fiscalcalperiod)
- , CONSTRAINT rim_itemvendorhistorybyperiod_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and itemcode is not null and fiscalcalyear is not null and fiscalcalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_itemvendorhistorybyperiod_KEY1_index ON sageimport.rim_itemvendorhistorybyperiod (itemcode,apdivisionno,vendorno,fiscalcalyear,fiscalcalperiod);
- CREATE INDEX rim_itemvendorhistorybyperiod_KEY2_index ON sageimport.rim_itemvendorhistorybyperiod (itemcode,fiscalcalyear,fiscalcalperiod,apdivisionno,vendorno);
- CREATE INDEX rim_itemvendorhistorybyperiod_KEY3_index ON sageimport.rim_itemvendorhistorybyperiod (apdivisionno,vendorno,fiscalcalyear,fiscalcalperiod,itemcode);
- CREATE INDEX rim_itemvendorhistorybyperiod_KEY4_index ON sageimport.rim_itemvendorhistorybyperiod (itemcode,fiscalcalyear,apdivisionno,vendorno,fiscalcalperiod);
- CREATE INDEX rim_itemvendorhistorybyperiod_KEY5_index ON sageimport.rim_itemvendorhistorybyperiod (apdivisionno,vendorno,fiscalcalyear,itemcode,fiscalcalperiod);
- CREATE TABLE sageimport.rim_itemwarehouse(
- itemcode varchar(30)
- , warehousecode varchar(3)
- , binlocation varchar(10)
- , reordermethod varchar(1)
- , economicorderqty numeric(15,4)
- , reorderpointqty numeric(15,4)
- , minimumorderqty numeric(15,4)
- , maximumonhandqty numeric(15,4)
- , quantityonhand numeric(15,4)
- , quantityonpurchaseorder numeric(15,4)
- , quantityonsalesorder numeric(15,4)
- , quantityonbackorder numeric(15,4)
- , averagecost numeric(15,4)
- , quantityonworkorder numeric(15,4)
- , quantityrequiredforwo numeric(15,4)
- , quantityinshipping numeric(15,4)
- , totalwarehousevalue numeric(15,4)
- , costcalcqtycommitted numeric(15,4)
- , costcalccostcommitted numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , lastphysicalcountdate date
- , CONSTRAINT rim_itemwarehouse_KEY0_pk PRIMARY KEY (itemcode,warehousecode)
- , CONSTRAINT rim_itemwarehouse_KEY0_check CHECK (itemcode is not null and warehousecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_itemwarehouse_KEY1_index ON sageimport.rim_itemwarehouse (warehousecode,binlocation,itemcode);
- CREATE TABLE sageimport.rim_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , requiremultiplewarehouses varchar(1)
- , reorderbywhse varchar(1)
- , segmentforwhsepostings varchar(1)
- , posttoglbywhse varchar(1)
- , defaultwarehousecode varchar(3)
- , quantityavailabletoinclude varchar(1)
- , calculatecommbyitem varchar(1)
- , trackwhsetransfersasissues varchar(1)
- , baseinventoryperiodson varchar(1)
- , currentperiod varchar(2)
- , currentcalendaryr varchar(4)
- , currentfiscalyr varchar(4)
- , enablewarrantytracking varchar(1)
- , category1desc varchar(15)
- , category2desc varchar(15)
- , category3desc varchar(15)
- , category4desc varchar(15)
- , trackitemchanges varchar(1)
- , trackadditionsindetail varchar(1)
- , printreceiptlabels varchar(1)
- , integrategeneralledger varchar(1)
- , integratejobcost varchar(1)
- , nextsalesentryno varchar(8)
- , nextissueentryno varchar(8)
- , nexttransferentryno varchar(8)
- , nextadjustmententryno varchar(8)
- , nextreceiptsentryno varchar(8)
- , companycode varchar(3)
- , dataversion numeric(15,4)
- , datasublevel numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , nextcountcardno varchar(10)
- , defaultunitofmeasureforqty varchar(1)
- , CONSTRAINT rim_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rim_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rim_periodpostinghistory(
- itemcode varchar(30)
- , warehousecode varchar(3)
- , fiscalcalyear varchar(4)
- , fiscalcalperiod varchar(2)
- , beginningbalqty numeric(15,4)
- , beginningbaldollaramt numeric(15,4)
- , beginningbalextendedstdcost numeric(15,4)
- , periodchangeqty numeric(15,4)
- , periodchangedollaramt numeric(15,4)
- , periodchangeextendedstdcost numeric(15,4)
- , CONSTRAINT rim_periodpostinghistory_KEY0_pk PRIMARY KEY (itemcode,warehousecode,fiscalcalyear,fiscalcalperiod)
- , CONSTRAINT rim_periodpostinghistory_KEY0_check CHECK (itemcode is not null and warehousecode is not null and fiscalcalyear is not null and fiscalcalperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_periodpostinghistory_KEY1_index ON sageimport.rim_periodpostinghistory (fiscalcalyear,fiscalcalperiod,itemcode,warehousecode);
- CREATE INDEX rim_periodpostinghistory_KEY2_index ON sageimport.rim_periodpostinghistory (fiscalcalyear,itemcode,fiscalcalperiod,warehousecode);
- CREATE INDEX rim_periodpostinghistory_KEY3_index ON sageimport.rim_periodpostinghistory (fiscalcalyear,itemcode,warehousecode,fiscalcalperiod);
- CREATE TABLE sageimport.rim_physicaldefaults(
- defaultskey varchar(1)
- , sortoption varchar(1)
- , CONSTRAINT rim_physicaldefaults_KEY0_pk PRIMARY KEY (defaultskey)
- , CONSTRAINT rim_physicaldefaults_KEY0_check CHECK (defaultskey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rim_pricecode(
- pricecoderecord varchar(1)
- , pricecode varchar(4)
- , itemcode varchar(30)
- , customerpricelevel varchar(1)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , pricecodedesc varchar(25)
- , pricingmethod varchar(1)
- , breakquantity1 numeric(15,4)
- , breakquantity2 numeric(15,4)
- , breakquantity3 numeric(15,4)
- , breakquantity4 numeric(15,4)
- , breakquantity5 numeric(15,4)
- , discountmarkup1 numeric(15,4)
- , discountmarkup2 numeric(15,4)
- , discountmarkup3 numeric(15,4)
- , discountmarkup4 numeric(15,4)
- , discountmarkup5 numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_pricecode_KEY0_pk PRIMARY KEY (pricecoderecord,pricecode,itemcode,customerpricelevel,ardivisionno,customerno)
- , CONSTRAINT rim_pricecode_KEY0_check CHECK (pricecoderecord is not null and pricecode is not null and itemcode is not null and customerpricelevel is not null and ardivisionno is not null and customerno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rim_pricecode_KEY1_index ON sageimport.rim_pricecode (itemcode,pricecoderecord,pricecode,customerpricelevel,ardivisionno,customerno);
- CREATE INDEX rim_pricecode_KEY2_index ON sageimport.rim_pricecode (itemcode,pricecoderecord,customerpricelevel,ardivisionno,customerno,pricecode);
- CREATE INDEX rim_pricecode_KEY3_index ON sageimport.rim_pricecode (itemcode,pricecoderecord,customerpricelevel,ardivisionno,customerno,pricecode);
- CREATE INDEX rim_pricecode_KEY4_index ON sageimport.rim_pricecode (ardivisionno,customerno,itemcode,pricecoderecord,pricecode,customerpricelevel);
- CREATE TABLE sageimport.rim_productline(
- productline varchar(4)
- , productlinedesc varchar(25)
- , producttype varchar(1)
- , valuation varchar(1)
- , pricecode varchar(4)
- , allowbackorders varchar(1)
- , explodekititems varchar(1)
- , calculatecommission varchar(1)
- , standardunitofmeasure varchar(4)
- , purchaseunitofmeasure varchar(4)
- , salesunitofmeasure varchar(4)
- , procurementtype varchar(1)
- , inventorycycle varchar(1)
- , allowtradediscount varchar(1)
- , allocatelandedcost varchar(1)
- , taxclass varchar(2)
- , purchasestaxclass varchar(2)
- , printreceiptlabels varchar(1)
- , confirmcostincrinrcptofgoods varchar(1)
- , postinventorybywhse varchar(1)
- , postcostofgoodssoldbywhse varchar(1)
- , postsalesincomebywhse varchar(1)
- , postreturnsbywhse varchar(1)
- , postadjustmentbywhse varchar(1)
- , postpurchasebywhse varchar(1)
- , postpovariancebywhse varchar(1)
- , postmfgvariancebywhse varchar(1)
- , inventoryacctkey varchar(9)
- , costofgoodssoldacctkey varchar(9)
- , salesincomeacctkey varchar(9)
- , returnsacctkey varchar(9)
- , adjustmentacctkey varchar(9)
- , purchaseacctkey varchar(9)
- , purchaseordervarianceacctkey varchar(9)
- , manufacturingvarianceacctkey varchar(9)
- , warrantycode varchar(10)
- , allowreturns varchar(1)
- , restockingmethod varchar(1)
- , scrapacctkey varchar(9)
- , repairsinprocessacctkey varchar(9)
- , repairsclearingacctkey varchar(9)
- , postscrapbywhse varchar(1)
- , postrepairsinprocessbywhse varchar(1)
- , postrepairsclearingbywhse varchar(1)
- , commissionrate numeric(15,4)
- , basecommamt numeric(15,4)
- , purchaseumconvfctr numeric(15,4)
- , salesumconvfctr numeric(15,4)
- , restockingcharge numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , inactiveitem varchar(1)
- , commoditycode varchar(12)
- , CONSTRAINT rim_productline_KEY0_pk PRIMARY KEY (productline)
- , CONSTRAINT rim_productline_KEY0_check CHECK (productline IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rim_salespromotion(
- salespromotioncode varchar(10)
- , salestartingdate date
- , saleendingdate date
- , salemethod varchar(1)
- , saleprice numeric(15,4)
- , discountpercentage numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_salespromotion_KEY0_pk PRIMARY KEY (salespromotioncode)
- , CONSTRAINT rim_salespromotion_KEY0_check CHECK (salespromotioncode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rim_warehouse(
- warehousecode varchar(3)
- , warehousedesc varchar(30)
- , warehousename varchar(30)
- , warehouseaddress1 varchar(30)
- , warehouseaddress2 varchar(30)
- , warehouseaddress3 varchar(30)
- , warehousecity varchar(20)
- , warehousestate varchar(2)
- , warehousezipcode varchar(10)
- , warehousecountrycode varchar(3)
- , telephoneno varchar(17)
- , telephoneext varchar(5)
- , faxno varchar(17)
- , emailaddress varchar(50)
- , contactname varchar(30)
- , posttoglsubacct varchar(15)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rim_warehouse_KEY0_pk PRIMARY KEY (warehousecode)
- , CONSTRAINT rim_warehouse_KEY0_check CHECK (warehousecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpl_emailmessage(
- documenttype varchar(1)
- , companykey varchar(10)
- , modulecode varchar(3)
- , document varchar(30)
- , subject varchar(150)
- , emailverbiage text
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpl_emailmessage_KEY0_pk PRIMARY KEY (documenttype,companykey,modulecode,document)
- , CONSTRAINT rpl_emailmessage_KEY0_check CHECK (documenttype is not null and companykey is not null and modulecode is not null and document IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpl_form(
- companykey varchar(10)
- , modulecode varchar(3)
- , document varchar(30)
- , enableelectronicdelivery varchar(1)
- , fromemailaddress varchar(50)
- , directory varchar(150)
- , keeponlylastcopy varchar(1)
- , overridepassword varchar(33)
- , deliverduringcheckregupdatepr varchar(1)
- , printstubsifnoempemailaddr varchar(1)
- , defaultemployeepassword varchar(1)
- , companycode varchar(3)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , deliverduringcheckregupdateap varchar(1)
- , watermark varchar(20)
- , CONSTRAINT rpl_form_KEY0_pk PRIMARY KEY (companykey,modulecode,document)
- , CONSTRAINT rpl_form_KEY0_check CHECK (companykey is not null and modulecode is not null and document IS NOT NULL)
- , CONSTRAINT rpl_form_KEY1_unique UNIQUE (companycode,companykey,modulecode,document)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpl_journalpdflog(
- companykey varchar(10)
- , modulecode varchar(3)
- , document varchar(60)
- , sourcejournal varchar(2)
- , journalno varchar(6)
- , batchno varchar(5)
- , accountingdate date
- , sequence varchar(3)
- , directory varchar(150)
- , filename varchar(100)
- , passwordprotected varchar(1)
- , password varchar(33)
- , updated varchar(1)
- , associatedpdfdirectory varchar(150)
- , associatedpdffilename varchar(100)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rpl_journalpdflog_KEY0_pk PRIMARY KEY (companykey,modulecode,document,sourcejournal,journalno,batchno,accountingdate,sequence)
- , CONSTRAINT rpl_journalpdflog_KEY0_check CHECK (companykey is not null and modulecode is not null and document is not null and sourcejournal is not null and journalno is not null and batchno is not null and accountingdate is not null and sequence IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpl_journalpdflog_KEY1_index ON sageimport.rpl_journalpdflog (accountingdate,companykey,modulecode,document,sourcejournal,journalno,batchno,sequence);
- CREATE INDEX rpl_journalpdflog_KEY2_index ON sageimport.rpl_journalpdflog (associatedpdffilename,companykey,modulecode,document,sourcejournal,journalno,batchno,accountingdate,sequence);
- CREATE INDEX rpl_journalpdflog_KEY3_index ON sageimport.rpl_journalpdflog (filename,companykey,modulecode,document,sourcejournal,journalno,batchno,accountingdate,sequence);
- CREATE TABLE sageimport.rpl_journalregister(
- companykey varchar(10)
- , modulecode varchar(3)
- , document varchar(30)
- , directory varchar(150)
- , autocreatepdf varchar(1)
- , passwordprotect varchar(1)
- , password varchar(33)
- , promptforassocpdfduringprint varchar(1)
- , deleteassocpdfinviewer varchar(1)
- , associatedpdfdirectory varchar(150)
- , companycode varchar(3)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpl_journalregister_KEY0_pk PRIMARY KEY (companykey,modulecode,document)
- , CONSTRAINT rpl_journalregister_KEY0_check CHECK (companykey is not null and modulecode is not null and document IS NOT NULL)
- , CONSTRAINT rpl_journalregister_KEY1_unique UNIQUE (companycode,companykey,modulecode,document)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpl_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , enableforms varchar(1)
- , enablereports varchar(1)
- , enablejournalsandregisters varchar(1)
- , enableperiodendreports varchar(1)
- , loaddataincustomerviewer varchar(1)
- , loaddatainvendorviewer varchar(1)
- , loaddatainreportsviewer varchar(1)
- , loaddatainjrnlsandregviewer varchar(1)
- , loaddatainperiodendrptsviewer varchar(1)
- , loaddataindirectdepstubviewer varchar(1)
- , keeponlylastpdfreports varchar(1)
- , keeponlylastpdfjournalsreg varchar(1)
- , keeponlylastpdfperiodendrpts varchar(1)
- , dataversion numeric(15,4)
- , userupdatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , datasublevel numeric(15,4)
- , CONSTRAINT rpl_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rpl_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_cancelreasoncode(
- cancelreasoncode varchar(5)
- , cancelreasoncodedesc varchar(30)
- , inactivecancelreasoncode varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpo_cancelreasoncode_KEY0_pk PRIMARY KEY (cancelreasoncode)
- , CONSTRAINT rpo_cancelreasoncode_KEY0_check CHECK (cancelreasoncode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_openorderdetailbyitem(
- recordtype varchar(1)
- , jobno varchar(7)
- , workorderno varchar(7)
- , itemcode varchar(30)
- , purchaseorderno varchar(7)
- , linekey varchar(6)
- , CONSTRAINT rpo_openorderdetailbyitem_KEY0_pk PRIMARY KEY (recordtype,itemcode,purchaseorderno,linekey)
- , CONSTRAINT rpo_openorderdetailbyitem_KEY0_check CHECK (recordtype is not null and itemcode is not null and purchaseorderno is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_openorderdetailbyitem_KEY1_index ON sageimport.rpo_openorderdetailbyitem (recordtype,jobno,purchaseorderno,linekey);
- CREATE INDEX rpo_openorderdetailbyitem_KEY2_index ON sageimport.rpo_openorderdetailbyitem (recordtype,workorderno,purchaseorderno,linekey);
- CREATE TABLE sageimport.rpo_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , defaultwarehousecode varchar(3)
- , defaultbankcode varchar(1)
- , nextpurchaseorderno varchar(7)
- , nextreceiptno varchar(6)
- , nextinvoiceentryno varchar(6)
- , nextreturnno varchar(6)
- , nextmaterialreqno varchar(6)
- , currentcalendaryr varchar(4)
- , currentfiscalyr varchar(4)
- , currentperiod varchar(2)
- , postregisterstoglindetail varchar(1)
- , receiptreturncomments varchar(1)
- , materialreqcomments varchar(1)
- , specialitemcostacctkey varchar(9)
- , payabledepacctkey varchar(9)
- , prepaidfreightacctkey varchar(9)
- , materialreqacctkey varchar(9)
- , printreturnorders varchar(1)
- , printusageinfoonautoreorderreg varchar(1)
- , printbarcodereceivers varchar(1)
- , printtaxjrnlsindetail varchar(1)
- , printtaxdetailonregisters varchar(1)
- , printordercommentsonreg varchar(1)
- , postapinvoices varchar(1)
- , applydiscountstofreightandtax varchar(1)
- , retainreceipthistory varchar(1)
- , purgeporecap varchar(1)
- , daystoretaincompletedpo numeric(15,4)
- , defaultfobmessage varchar(15)
- , allocatefreightbyline varchar(1)
- , allowqtyrecgreaterqtyord varchar(1)
- , allowentryoflandedcost varchar(1)
- , printlandedcostdetailonreg varchar(1)
- , includeallocatedcostinunitcost varchar(1)
- , autoclosepartialreceivedpos varchar(1)
- , receiptvariancetoclosepolines numeric(15,4)
- , integrategeneralledger varchar(1)
- , integratebankrec varchar(1)
- , integrateinventory varchar(1)
- , integratejobcost varchar(1)
- , integrateworkorder varchar(1)
- , allowentryoftaxandfreight varchar(1)
- , companycode varchar(3)
- , yearstoretainpurchaseshist numeric(15,4)
- , sortreportby varchar(1)
- , onlyprintitemsreceived varchar(1)
- , includeallsalesorderlines varchar(1)
- , includealldropshiplineitems varchar(1)
- , retaincommentlnsinreceipthist varchar(1)
- , dataversion numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , redisplayalldocuments varchar(1)
- , redisplaypurchaseorders varchar(1)
- , redisplayreturnorders varchar(1)
- , retainpurchaseorderhistory varchar(1)
- , retaindeletedpurchaseorders varchar(1)
- , retaindeletedlines varchar(1)
- , combinesalesordersbyvendor varchar(1)
- , usesonoaspono varchar(1)
- , applyincrementalvaltoponoat varchar(1)
- , basepoheaderreqdateon varchar(1)
- , basepolinereqdateon varchar(1)
- , printautogeneratelistbycustno varchar(1)
- , printponoassignmentlisting varchar(1)
- , accesspoentryaftergeneration varchar(1)
- , printpoaftergeneration varchar(1)
- , enablepogenerationinsoentry varchar(1)
- , prompttogeneratepo varchar(1)
- , sortpolinesby varchar(1)
- , includesofieldshiptoaddrdsonly varchar(1)
- , includesofieldshipviadsonly varchar(1)
- , includesofieldfobdsonly varchar(1)
- , includesofieldconfirmto varchar(1)
- , includesofieldemailaddress varchar(1)
- , includesofieldcogsacctfords varchar(1)
- , includesofieldaliasitemno varchar(1)
- , datasublevel numeric(15,4)
- , CONSTRAINT rpo_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rpo_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_purchaseorderdetail(
- purchaseorderno varchar(7)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , itemcode varchar(30)
- , extendeddescriptionkey varchar(10)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , usetax varchar(1)
- , requireddate date
- , vendorpricecode varchar(4)
- , purchasesacctkey varchar(9)
- , valuation varchar(1)
- , unitofmeasure varchar(4)
- , warehousecode varchar(3)
- , productline varchar(4)
- , masterlinekey varchar(6)
- , reschedule varchar(1)
- , jobno varchar(7)
- , costcode varchar(9)
- , costtype varchar(1)
- , receiptofgoodsupdated varchar(1)
- , workorderno varchar(7)
- , stepno varchar(4)
- , substepprefix varchar(1)
- , substepsuffix varchar(4)
- , workordertype varchar(1)
- , allocatelandedcost varchar(1)
- , vendoraliasitemno varchar(30)
- , taxclass varchar(2)
- , commenttext text
- , assetaccount varchar(1)
- , assettemplate varchar(25)
- , weightreference varchar(10)
- , weight numeric(15,4)
- , quantityordered numeric(15,4)
- , quantityreceived numeric(15,4)
- , quantitybackordered numeric(15,4)
- , masteroriginalqty numeric(15,4)
- , masterqtybalance numeric(15,4)
- , masterqtyorderedtodate numeric(15,4)
- , quantityinvoiced numeric(15,4)
- , unitcost numeric(15,4)
- , originalunitcost numeric(15,4)
- , extensionamt numeric(15,4)
- , receivedamt numeric(15,4)
- , invoicedamt numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , receivedallocatedamt numeric(15,4)
- , invoicedallocatedamt numeric(15,4)
- , udf_job_number varchar(15)
- , udf_purchase_desc varchar(254)
- , salesorderno varchar(7)
- , customerpono varchar(30)
- , purchaseorderhistorydtlseqno varchar(14)
- , CONSTRAINT rpo_purchaseorderdetail_KEY0_pk PRIMARY KEY (purchaseorderno,linekey)
- , CONSTRAINT rpo_purchaseorderdetail_KEY0_check CHECK (purchaseorderno is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_purchaseorderdetail_KEY1_index ON sageimport.rpo_purchaseorderdetail (purchaseorderno,lineseqno,linekey);
- CREATE INDEX rpo_purchaseorderdetail_KEY2_index ON sageimport.rpo_purchaseorderdetail (extendeddescriptionkey,purchaseorderno,linekey);
- CREATE INDEX rpo_purchaseorderdetail_KEY3_index ON sageimport.rpo_purchaseorderdetail (itemtype,itemcode,purchaseorderno,linekey);
- CREATE INDEX rpo_purchaseorderdetail_KEY4_index ON sageimport.rpo_purchaseorderdetail (itemcode,warehousecode,purchaseorderno,linekey);
- CREATE TABLE sageimport.rpo_purchaseorderheader(
- purchaseorderno varchar(7)
- , purchaseorderdate date
- , ordertype varchar(1)
- , masterrepeatingorderno varchar(7)
- , requiredexpiredate date
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , purchasename varchar(50)
- , purchaseaddress1 varchar(30)
- , purchaseaddress2 varchar(30)
- , purchaseaddress3 varchar(30)
- , purchasecity varchar(20)
- , purchasestate varchar(2)
- , purchasezipcode varchar(10)
- , purchasecountrycode varchar(3)
- , purchaseaddresscode varchar(4)
- , shiptocode varchar(4)
- , shiptoname varchar(50)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , orderstatus varchar(1)
- , usetax varchar(1)
- , printpurchaseorders varchar(1)
- , onhold varchar(1)
- , batchfax varchar(1)
- , batchemail varchar(1)
- , emailaddress varchar(250)
- , completiondate date
- , shipvia varchar(15)
- , fob varchar(15)
- , warehousecode varchar(3)
- , confirmto varchar(30)
- , comment varchar(30)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , termscode varchar(2)
- , lastinvoicedate date
- , lastinvoiceno varchar(20)
- , form1099 varchar(1)
- , box1099 varchar(3)
- , lastreceiptdate date
- , lastissuedate date
- , lastpurchaseorderdate date
- , lastreceiptno varchar(7)
- , lastissueno varchar(7)
- , lastpurchaseorderno varchar(7)
- , prepaidcheckno varchar(10)
- , faxno varchar(17)
- , taxschedule varchar(9)
- , invalidtaxcalc varchar(1)
- , salesorderno varchar(7)
- , requisitorname varchar(30)
- , requisitordepartment varchar(30)
- , prepaidamt numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , freightamt numeric(15,4)
- , prepaidfreightamt numeric(15,4)
- , invoicedamt numeric(15,4)
- , receivedamt numeric(15,4)
- , freightsalestaxinvamt numeric(15,4)
- , backorderlostamt numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , udf_special_info varchar(50)
- , CONSTRAINT rpo_purchaseorderheader_KEY0_pk PRIMARY KEY (purchaseorderno)
- , CONSTRAINT rpo_purchaseorderheader_KEY0_check CHECK (purchaseorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_purchaseorderheader_KEY1_index ON sageimport.rpo_purchaseorderheader (apdivisionno,vendorno,purchaseorderno);
- CREATE TABLE sageimport.rpo_purchaseorderhistorydetail(
- purchaseorderno varchar(7)
- , sequenceno varchar(14)
- , linekey varchar(6)
- , originalline varchar(1)
- , cancelledline varchar(1)
- , cancelreasoncode varchar(5)
- , itemcode varchar(30)
- , extendeddescriptionkey varchar(10)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , usetax varchar(1)
- , requireddate date
- , vendorpricecode varchar(4)
- , purchasesacctkey varchar(9)
- , unitofmeasure varchar(4)
- , warehousecode varchar(3)
- , productline varchar(4)
- , masterlinekey varchar(6)
- , reschedule varchar(1)
- , jobno varchar(7)
- , costcode varchar(9)
- , costtype varchar(1)
- , workorderno varchar(7)
- , stepno varchar(4)
- , substepprefix varchar(1)
- , substepsuffix varchar(4)
- , workordertype varchar(1)
- , allocatelandedcost varchar(1)
- , vendoraliasitemno varchar(30)
- , taxclass varchar(2)
- , commenttext text
- , assetaccount varchar(1)
- , assettemplate varchar(25)
- , weightreference varchar(10)
- , salesorderno varchar(7)
- , customerpono varchar(30)
- , weight numeric(15,4)
- , quantityorderedoriginal numeric(15,4)
- , quantityorderedrevised numeric(15,4)
- , quantityreceived numeric(15,4)
- , quantitybackordered numeric(15,4)
- , quantityinvoiced numeric(15,4)
- , originalunitcost numeric(15,4)
- , lastunitcost numeric(15,4)
- , lastextensionamt numeric(15,4)
- , receivedamt numeric(15,4)
- , invoicedamt numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , receivedallocatedamt numeric(15,4)
- , invoicedallocatedamt numeric(15,4)
- , udf_job_number varchar(15)
- , udf_purchase_desc varchar(254)
- , CONSTRAINT rpo_purchaseorderhistorydetail_KEY0_pk PRIMARY KEY (purchaseorderno,sequenceno)
- , CONSTRAINT rpo_purchaseorderhistorydetail_KEY0_check CHECK (purchaseorderno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_purchaseorderhistorydetail_KEY1_index ON sageimport.rpo_purchaseorderhistorydetail (purchaseorderno,sequenceno,linekey);
- CREATE INDEX rpo_purchaseorderhistorydetail_KEY2_index ON sageimport.rpo_purchaseorderhistorydetail (extendeddescriptionkey,purchaseorderno,sequenceno);
- CREATE INDEX rpo_purchaseorderhistorydetail_KEY3_index ON sageimport.rpo_purchaseorderhistorydetail (cancelledline,cancelreasoncode,purchaseorderno,sequenceno);
- CREATE TABLE sageimport.rpo_purchaseorderhistoryheader(
- purchaseorderno varchar(7)
- , purchaseorderdate date
- , ordertype varchar(1)
- , masterrepeatingorderno varchar(7)
- , requiredexpiredate date
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , purchasename varchar(50)
- , purchaseaddress1 varchar(30)
- , purchaseaddress2 varchar(30)
- , purchaseaddress3 varchar(30)
- , purchasecity varchar(20)
- , purchasestate varchar(2)
- , purchasezipcode varchar(10)
- , purchasecountrycode varchar(3)
- , purchaseaddresscode varchar(4)
- , shiptocode varchar(4)
- , shiptoname varchar(50)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , orderstatus varchar(1)
- , usetax varchar(1)
- , onhold varchar(1)
- , emailaddress varchar(250)
- , completiondate date
- , shipvia varchar(15)
- , fob varchar(15)
- , warehousecode varchar(3)
- , confirmto varchar(30)
- , comment varchar(30)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , termscode varchar(2)
- , lastinvoicedate date
- , lastinvoiceno varchar(20)
- , form1099 varchar(1)
- , box1099 varchar(3)
- , cancelreasoncode varchar(5)
- , lastreceiptdate date
- , lastissuedate date
- , lastreceiptno varchar(7)
- , lastissueno varchar(7)
- , prepaidcheckno varchar(10)
- , faxno varchar(17)
- , taxschedule varchar(9)
- , salesorderno varchar(7)
- , requisitorname varchar(30)
- , requisitordepartment varchar(30)
- , prepaidamt numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , freightamt numeric(15,4)
- , prepaidfreightamt numeric(15,4)
- , invoicedamt numeric(15,4)
- , receivedamt numeric(15,4)
- , freightsalestaxinvamt numeric(15,4)
- , backorderlostamt numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , udf_special_info varchar(50)
- , CONSTRAINT rpo_purchaseorderhistoryheader_KEY0_pk PRIMARY KEY (purchaseorderno)
- , CONSTRAINT rpo_purchaseorderhistoryheader_KEY0_check CHECK (purchaseorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_purchaseorderhistoryheader_KEY1_index ON sageimport.rpo_purchaseorderhistoryheader (apdivisionno,vendorno,purchaseorderno);
- CREATE INDEX rpo_purchaseorderhistoryheader_KEY2_index ON sageimport.rpo_purchaseorderhistoryheader (purchasename,purchaseorderno);
- CREATE INDEX rpo_purchaseorderhistoryheader_KEY3_index ON sageimport.rpo_purchaseorderhistoryheader (purchaseorderdate,purchaseorderno);
- CREATE INDEX rpo_purchaseorderhistoryheader_KEY4_index ON sageimport.rpo_purchaseorderhistoryheader (orderstatus,cancelreasoncode,purchaseorderno);
- CREATE TABLE sageimport.rpo_purchaseorderhisttaxdetail(
- purchaseorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , taxclass varchar(2)
- , purchasestaxable varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxablepurchasesamt numeric(15,4)
- , taxrate numeric(15,4)
- , nonrecoverablepercent numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpo_purchaseorderhisttaxdetail_KEY0_pk PRIMARY KEY (purchaseorderno,scheduleseqno,taxcode,taxclass)
- , CONSTRAINT rpo_purchaseorderhisttaxdetail_KEY0_check CHECK (purchaseorderno is not null and scheduleseqno is not null and taxcode is not null and taxclass IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_purchaseorderhisttaxsummary(
- purchaseorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , overridden varchar(1)
- , expensetovendoritem varchar(1)
- , useexemptionsonfile varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , taxamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpo_purchaseorderhisttaxsummary_KEY0_pk PRIMARY KEY (purchaseorderno,scheduleseqno,taxcode)
- , CONSTRAINT rpo_purchaseorderhisttaxsummary_KEY0_check CHECK (purchaseorderno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_purchaseorderprint(
- printtype varchar(1)
- , purchaseorderno varchar(7)
- , CONSTRAINT rpo_purchaseorderprint_KEY0_pk PRIMARY KEY (purchaseorderno)
- , CONSTRAINT rpo_purchaseorderprint_KEY0_check CHECK (purchaseorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_purchaseorderrecap(
- purchaseorderno varchar(7)
- , purchaseorderdate date
- , ordertype varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendorname varchar(50)
- , orderstatus varchar(1)
- , requiredexpiredate date
- , comment varchar(30)
- , lastinvoicedate date
- , lastinvoiceno varchar(20)
- , lastreceiptdate date
- , lastpurchaseorderdate date
- , lastreceiptno varchar(7)
- , lastpurchaseorderno varchar(7)
- , ordertotal numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpo_purchaseorderrecap_KEY0_pk PRIMARY KEY (purchaseorderno)
- , CONSTRAINT rpo_purchaseorderrecap_KEY0_check CHECK (purchaseorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_purchaseordertaxdetail(
- purchaseorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , taxclass varchar(2)
- , purchasestaxable varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxablepurchasesamt numeric(15,4)
- , taxrate numeric(15,4)
- , nonrecoverablepercent numeric(15,4)
- , CONSTRAINT rpo_purchaseordertaxdetail_KEY0_pk PRIMARY KEY (purchaseorderno,scheduleseqno,taxcode,taxclass)
- , CONSTRAINT rpo_purchaseordertaxdetail_KEY0_check CHECK (purchaseorderno is not null and scheduleseqno is not null and taxcode is not null and taxclass IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_purchaseordertaxsummary(
- purchaseorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , overridden varchar(1)
- , expensetovendoritem varchar(1)
- , useexemptionsonfile varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , taxamt numeric(15,4)
- , CONSTRAINT rpo_purchaseordertaxsummary_KEY0_pk PRIMARY KEY (purchaseorderno,scheduleseqno,taxcode)
- , CONSTRAINT rpo_purchaseordertaxsummary_KEY0_check CHECK (purchaseorderno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_purchaseshistory(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , productline varchar(4)
- , warehousecode varchar(3)
- , dropship varchar(1)
- , postingdate date
- , receiptdate date
- , purchaseorderdate date
- , itemcodedesc varchar(30)
- , vendorname varchar(50)
- , quantitypurchased numeric(15,4)
- , dollarspurchased numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpo_purchaseshistory_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,itemcode,itemtype,productline,warehousecode,dropship,postingdate,receiptdate)
- , CONSTRAINT rpo_purchaseshistory_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and itemcode is not null and itemtype is not null and productline is not null and warehousecode is not null and dropship is not null and postingdate is not null and receiptdate IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_purchaseshistory_KEY1_index ON sageimport.rpo_purchaseshistory (dropship,itemcode,apdivisionno,vendorno,warehousecode,postingdate,receiptdate);
- CREATE INDEX rpo_purchaseshistory_KEY2_index ON sageimport.rpo_purchaseshistory (itemcode,apdivisionno,vendorno,warehousecode,postingdate,itemtype,productline,dropship,receiptdate);
- CREATE INDEX rpo_purchaseshistory_KEY3_index ON sageimport.rpo_purchaseshistory (vendorname,apdivisionno,vendorno,itemcode,warehousecode,postingdate,itemtype,productline,dropship,receiptdate);
- CREATE INDEX rpo_purchaseshistory_KEY4_index ON sageimport.rpo_purchaseshistory (warehousecode,itemcode,apdivisionno,vendorno,postingdate,itemtype,productline,dropship,receiptdate);
- CREATE TABLE sageimport.rpo_receipthistorydetail(
- purchaseorderno varchar(7)
- , receipttype varchar(1)
- , receiptno varchar(6)
- , headerseqno varchar(6)
- , itemcode varchar(30)
- , linekey varchar(6)
- , itemtype varchar(1)
- , lineseqno varchar(14)
- , itemcodedesc varchar(30)
- , extendeddescriptionkey varchar(10)
- , warehousecode varchar(3)
- , unitofmeasure varchar(4)
- , allocatelandedcost varchar(1)
- , usetax varchar(1)
- , jobno varchar(7)
- , costcode varchar(9)
- , costtype varchar(1)
- , workorderno varchar(7)
- , stepno varchar(4)
- , substepprefix varchar(1)
- , substepsuffix varchar(4)
- , workordertype varchar(1)
- , valuation varchar(1)
- , expenseacctkey varchar(9)
- , requireddate date
- , taxclass varchar(2)
- , vendorpricecode varchar(4)
- , orderwarehousecode varchar(3)
- , productline varchar(4)
- , vendoraliasitemno varchar(30)
- , commenttext text
- , weightreference varchar(10)
- , weight numeric(15,4)
- , quantityreceived numeric(15,4)
- , extensionamt numeric(15,4)
- , unitcost numeric(15,4)
- , originalunitcost numeric(15,4)
- , originalquantityordered numeric(15,4)
- , previousquantityreceived numeric(15,4)
- , previousquantityinvoiced numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , salesorderno varchar(7)
- , customerpono varchar(30)
- , allocatedfreightamt numeric(15,4)
- , allocatedlandedcostamt numeric(15,4)
- , allocatedtaxamt numeric(15,4)
- , CONSTRAINT rpo_receipthistorydetail_KEY0_pk PRIMARY KEY (purchaseorderno,receipttype,receiptno,headerseqno,itemtype,itemcode,linekey)
- , CONSTRAINT rpo_receipthistorydetail_KEY0_check CHECK (purchaseorderno is not null and receipttype is not null and receiptno is not null and headerseqno is not null and itemtype is not null and itemcode is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_receipthistorydetail_KEY1_index ON sageimport.rpo_receipthistorydetail (purchaseorderno,receipttype,receiptno,headerseqno,lineseqno,linekey,itemtype,itemcode);
- CREATE INDEX rpo_receipthistorydetail_KEY2_index ON sageimport.rpo_receipthistorydetail (extendeddescriptionkey,purchaseorderno,receipttype,receiptno,headerseqno,itemtype,itemcode,linekey);
- CREATE TABLE sageimport.rpo_receipthistoryheader(
- purchaseorderno varchar(7)
- , receipttype varchar(1)
- , receiptno varchar(6)
- , headerseqno varchar(6)
- , receiptdate date
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , purchasename varchar(50)
- , purchaseaddress1 varchar(30)
- , purchaseaddress2 varchar(30)
- , purchaseaddress3 varchar(30)
- , purchasecity varchar(20)
- , purchasestate varchar(2)
- , purchasezipcode varchar(10)
- , purchasecountrycode varchar(3)
- , purchaseaddresscode varchar(4)
- , shiptocode varchar(4)
- , shiptoname varchar(50)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , emailaddress varchar(250)
- , ordertype varchar(1)
- , orderdate date
- , requireddate date
- , usetax varchar(1)
- , shipvia varchar(15)
- , fob varchar(15)
- , warehousecode varchar(3)
- , confirmto varchar(30)
- , comment varchar(30)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , termscode varchar(2)
- , invoicedate date
- , invoiceno varchar(20)
- , lastreceiptdate date
- , lastreceiptno varchar(7)
- , prepaidcheckno varchar(10)
- , invoiceduedate date
- , discountduedate date
- , holdpayment varchar(1)
- , codno varchar(10)
- , codcheckno varchar(10)
- , bankcode varchar(1)
- , sourcejournal varchar(2)
- , sourcejournalbatchno varchar(6)
- , transactiondate date
- , taxschedule varchar(9)
- , returnauthorizationno varchar(15)
- , receiptamt numeric(15,4)
- , invoiceamt numeric(15,4)
- , prepaidamt numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , freightamt numeric(15,4)
- , prepaidfreightamt numeric(15,4)
- , discountamt numeric(15,4)
- , taxablemiscchrgamt numeric(15,4)
- , codamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rpo_receipthistoryheader_KEY0_pk PRIMARY KEY (purchaseorderno,receipttype,receiptno,headerseqno)
- , CONSTRAINT rpo_receipthistoryheader_KEY0_check CHECK (purchaseorderno is not null and receipttype is not null and receiptno is not null and headerseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_receipthistoryheader_KEY1_index ON sageimport.rpo_receipthistoryheader (apdivisionno,vendorno,purchaseorderno,receipttype,receiptno,headerseqno);
- CREATE INDEX rpo_receipthistoryheader_KEY2_index ON sageimport.rpo_receipthistoryheader (purchasename,purchaseorderno,receipttype,receiptno,headerseqno);
- CREATE INDEX rpo_receipthistoryheader_KEY3_index ON sageimport.rpo_receipthistoryheader (receipttype,receiptno,headerseqno,purchaseorderno);
- CREATE TABLE sageimport.rpo_receipthistorytaxsummary(
- purchaseorderno varchar(7)
- , receipttype varchar(1)
- , receiptno varchar(6)
- , headerseqno varchar(6)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , overridden varchar(1)
- , expensetovendoritem varchar(1)
- , useexemptionsonfile varchar(1)
- , taxablepurchasesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , nontaxablepurchasesamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , exemptpurchasesamt numeric(15,4)
- , usetaxamt numeric(15,4)
- , nonrecoverableamt numeric(15,4)
- , taxamt numeric(15,4)
- , allocatedtaxamt numeric(15,4)
- , CONSTRAINT rpo_receipthistorytaxsummary_KEY0_pk PRIMARY KEY (purchaseorderno,receipttype,receiptno,headerseqno,scheduleseqno,taxcode)
- , CONSTRAINT rpo_receipthistorytaxsummary_KEY0_check CHECK (purchaseorderno is not null and receipttype is not null and receiptno is not null and headerseqno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_shiptoaddress(
- shiptocode varchar(4)
- , shiptocodedesc varchar(30)
- , shiptoname varchar(50)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , telephoneno varchar(17)
- , telephoneext varchar(5)
- , faxno varchar(17)
- , emailaddress varchar(50)
- , contactname varchar(30)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , warehousecode varchar(3)
- , CONSTRAINT rpo_shiptoaddress_KEY0_pk PRIMARY KEY (shiptocode)
- , CONSTRAINT rpo_shiptoaddress_KEY0_check CHECK (shiptocode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpo_vendorpricelevel(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , pricingtype varchar(1)
- , productline varchar(4)
- , itemcode varchar(30)
- , pricingmethod varchar(1)
- , breakquantity1 numeric(15,4)
- , breakquantity2 numeric(15,4)
- , breakquantity3 numeric(15,4)
- , breakquantity4 numeric(15,4)
- , breakquantity5 numeric(15,4)
- , breakquantity6 numeric(15,4)
- , breakquantity7 numeric(15,4)
- , breakquantity8 numeric(15,4)
- , discountmarkup1 numeric(15,4)
- , discountmarkup2 numeric(15,4)
- , discountmarkup3 numeric(15,4)
- , discountmarkup4 numeric(15,4)
- , discountmarkup5 numeric(15,4)
- , discountmarkup6 numeric(15,4)
- , discountmarkup7 numeric(15,4)
- , discountmarkup8 numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpo_vendorpricelevel_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,pricingtype,productline,itemcode)
- , CONSTRAINT rpo_vendorpricelevel_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and pricingtype is not null and productline is not null and itemcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rpo_vendorpricelevel_KEY1_index ON sageimport.rpo_vendorpricelevel (apdivisionno,vendorno,pricingtype,productline,itemcode);
- CREATE TABLE sageimport.rpo_vendorpurchaseaddress(
- apdivisionno varchar(2)
- , vendorno varchar(7)
- , purchaseaddresscode varchar(4)
- , purchasename varchar(50)
- , purchaseaddress1 varchar(30)
- , purchaseaddress2 varchar(30)
- , purchaseaddress3 varchar(30)
- , purchasecity varchar(20)
- , purchasestate varchar(2)
- , purchasezipcode varchar(10)
- , purchasecountrycode varchar(3)
- , batchfax varchar(1)
- , telephoneno varchar(17)
- , telephoneext varchar(5)
- , faxno varchar(17)
- , contactcode varchar(10)
- , taxschedule varchar(9)
- , exemptionnoonfile varchar(1)
- , emailaddress varchar(50)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rpo_vendorpurchaseaddress_KEY0_pk PRIMARY KEY (apdivisionno,vendorno,purchaseaddresscode)
- , CONSTRAINT rpo_vendorpurchaseaddress_KEY0_check CHECK (apdivisionno is not null and vendorno is not null and purchaseaddresscode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpr_acaofferofcoverage(
- offerofcoveragecode varchar(2)
- , description text
- , CONSTRAINT rpr_acaofferofcoverage_KEY0_pk PRIMARY KEY (offerofcoveragecode)
- , CONSTRAINT rpr_acaofferofcoverage_KEY0_check CHECK (offerofcoveragecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpr_acapolicyorigin(
- policyorigincode varchar(1)
- , policyorigincodedesc text
- , CONSTRAINT rpr_acapolicyorigin_KEY0_pk PRIMARY KEY (policyorigincode)
- , CONSTRAINT rpr_acapolicyorigin_KEY0_check CHECK (policyorigincode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpr_acasafeharbor(
- safeharborcode varchar(2)
- , description varchar(200)
- , CONSTRAINT rpr_acasafeharbor_KEY0_pk PRIMARY KEY (safeharborcode)
- , CONSTRAINT rpr_acasafeharbor_KEY0_check CHECK (safeharborcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rpr_acatransitionrelief(
- transitionreliefindicator varchar(1)
- , description varchar(200)
- , CONSTRAINT rpr_acatransitionrelief_KEY0_pk PRIMARY KEY (transitionreliefindicator)
- , CONSTRAINT rpr_acatransitionrelief_KEY0_check CHECK (transitionreliefindicator IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rra_customerinvoicesearch(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , invoiceno varchar(7)
- , headerseqno varchar(6)
- , detailseqno varchar(6)
- , modulecode varchar(3)
- , invoicedate date
- , shipdate date
- , unitofmeasure varchar(4)
- , salesorderno varchar(7)
- , customerpono varchar(30)
- , quantityshipped numeric(15,4)
- , CONSTRAINT rra_customerinvoicesearch_KEY0_pk PRIMARY KEY (ardivisionno,customerno,itemcode,invoiceno,headerseqno,detailseqno)
- , CONSTRAINT rra_customerinvoicesearch_KEY0_check CHECK (ardivisionno is not null and customerno is not null and itemcode is not null and invoiceno is not null and headerseqno is not null and detailseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_customerinvoicesearch_KEY1_index ON sageimport.rra_customerinvoicesearch (invoiceno,ardivisionno,customerno,itemcode,headerseqno,detailseqno);
- CREATE TABLE sageimport.rra_deleterenumbermergexref(
- recordtype varchar(1)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , rmano varchar(7)
- , rmadetaillinekey varchar(6)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , CONSTRAINT rra_deleterenumbermergexref_KEY0_pk PRIMARY KEY (recordtype,rmano,rmadetaillinekey)
- , CONSTRAINT rra_deleterenumbermergexref_KEY0_check CHECK (recordtype is not null and rmano is not null and rmadetaillinekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_deleterenumbermergexref_KEY1_index ON sageimport.rra_deleterenumbermergexref (recordtype,itemcode,rmano,rmadetaillinekey);
- CREATE INDEX rra_deleterenumbermergexref_KEY2_index ON sageimport.rra_deleterenumbermergexref (recordtype,apdivisionno,vendorno,rmano,rmadetaillinekey);
- CREATE INDEX rra_deleterenumbermergexref_KEY3_index ON sageimport.rra_deleterenumbermergexref (itemcode,recordtype,rmano,rmadetaillinekey);
- CREATE TABLE sageimport.rra_inquiryreceiptshistorylink(
- rmano varchar(7)
- , receiptseqno varchar(6)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , CONSTRAINT rra_inquiryreceiptshistorylink_KEY0_pk PRIMARY KEY (rmano,receiptseqno)
- , CONSTRAINT rra_inquiryreceiptshistorylink_KEY0_check CHECK (rmano is not null and receiptseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_inquiryreceiptshistorylink_KEY1_index ON sageimport.rra_inquiryreceiptshistorylink (ardivisionno,customerno,rmano,receiptseqno);
- CREATE TABLE sageimport.rra_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , nextrmano varchar(7)
- , applyrestockingcharges varchar(1)
- , defaultrestockingitemcode varchar(30)
- , trackrepairitemsthruinventory varchar(1)
- , setrepairunitcosttozerodollars varchar(1)
- , allowrestockchargeoverride varchar(1)
- , consolidaterestockcharges varchar(1)
- , retainrmareceipthistory varchar(1)
- , integratepurchaseorder varchar(1)
- , generatezerodocuments varchar(1)
- , extendwarrantybasedon varchar(1)
- , customeraction varchar(1)
- , itemaction varchar(1)
- , vendoraction varchar(1)
- , returndefaultwhse varchar(3)
- , allowreturnwhsechanges varchar(1)
- , scrapdefaultwhse varchar(3)
- , allowscrapwhsechanges varchar(1)
- , defaultrepairwhse varchar(3)
- , allowrepairwhsechanges varchar(1)
- , returnreasoncode varchar(10)
- , creditfreight varchar(1)
- , invoicenorequired varchar(1)
- , autodisplayitemselection varchar(1)
- , customerwarrantychecking varchar(1)
- , allowspecialitemreturns varchar(1)
- , validateqtyreturned varchar(1)
- , allowlineentrypriceoverride varchar(1)
- , allowlineentrycostoverride varchar(1)
- , displaylineentryunitcost varchar(1)
- , printcustomerrmas varchar(1)
- , printrmareceiverdocumentsby varchar(1)
- , allowreturnreasoncodesotf varchar(1)
- , returnshipvia varchar(15)
- , checkqtyonhand varchar(1)
- , defaultqtyretrndtoqtyshipped varchar(1)
- , applycommentsall varchar(1)
- , customerrma varchar(1)
- , rmareceiver varchar(1)
- , salesorder varchar(1)
- , creditmemo varchar(1)
- , defaultscrapacctkey varchar(9)
- , repairsinprocessacctkey varchar(9)
- , repairsclearingacctkey varchar(9)
- , companycode varchar(3)
- , daysbeforermaexpires numeric(15,4)
- , dataversion numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rra_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rra_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rra_receiptshistorydetail(
- rmano varchar(7)
- , receiptdetailseqno varchar(6)
- , receiptseqno varchar(6)
- , invoiceno varchar(7)
- , headerseqno varchar(6)
- , detailseqno varchar(6)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , extendeddescriptionkey varchar(10)
- , customeraction varchar(1)
- , itemaction varchar(1)
- , warehousecode varchar(3)
- , replacementitemcode varchar(30)
- , replacementitemtype varchar(1)
- , vendoraction varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , returnreasoncode varchar(10)
- , unitofmeasure varchar(4)
- , dropship varchar(1)
- , crossship varchar(1)
- , creditfreight varchar(1)
- , xpresssocreated varchar(1)
- , aliasitemno varchar(30)
- , warrantycode varchar(10)
- , expirationdate date
- , expirationdateoverridden varchar(1)
- , socostoverridden varchar(1)
- , costofgoodssoldacctkey varchar(9)
- , salesacctkey varchar(9)
- , revision varchar(3)
- , billoption1 varchar(2)
- , billoption2 varchar(2)
- , billoption3 varchar(2)
- , billoption4 varchar(2)
- , billoption5 varchar(2)
- , billoption6 varchar(2)
- , billoption7 varchar(2)
- , billoption8 varchar(2)
- , billoption9 varchar(2)
- , saleskitlinekey varchar(6)
- , explodedkititem varchar(1)
- , standardkitbill varchar(1)
- , backorderkitcomplines varchar(1)
- , commenttext text
- , applycommentstoall varchar(1)
- , applytocustomerrma varchar(1)
- , applytormareceiver varchar(1)
- , applytosalesorder varchar(1)
- , applytocreditmemo varchar(1)
- , vendorrmano varchar(10)
- , invoicenotonfile varchar(1)
- , salesorderno varchar(7)
- , customerpono varchar(30)
- , replacementrevision varchar(3)
- , replacementrepairbilloption1 varchar(2)
- , replacementrepairbilloption2 varchar(2)
- , replacementrepairbilloption3 varchar(2)
- , replacementrepairbilloption4 varchar(2)
- , replacementrepairbilloption5 varchar(2)
- , replacementrepairbilloption6 varchar(2)
- , replacementrepairbilloption7 varchar(2)
- , replacementrepairbilloption8 varchar(2)
- , replacementrepairbilloption9 varchar(2)
- , productline varchar(4)
- , valuation varchar(1)
- , xpressgeneratedsono varchar(7)
- , generatedcminvoiceno varchar(7)
- , generatedpurchaseorderno varchar(7)
- , generatedporeturnno varchar(7)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , quantityreturned numeric(15,4)
- , quantityreceived numeric(15,4)
- , quantityremaining numeric(15,4)
- , invoiceunitprice numeric(15,4)
- , extensionamt numeric(15,4)
- , restockingcharge numeric(15,4)
- , invoiceunitcost numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , quantityperbill numeric(15,4)
- , CONSTRAINT rra_receiptshistorydetail_KEY0_pk PRIMARY KEY (rmano,receiptseqno,receiptdetailseqno)
- , CONSTRAINT rra_receiptshistorydetail_KEY0_check CHECK (rmano is not null and receiptseqno is not null and receiptdetailseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_receiptshistorydetail_KEY1_index ON sageimport.rra_receiptshistorydetail (extendeddescriptionkey,rmano,receiptdetailseqno,receiptseqno);
- CREATE TABLE sageimport.rra_receiptshistoryheader(
- rmano varchar(7)
- , receiptseqno varchar(6)
- , rmadate date
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , rmastatus varchar(1)
- , returnshipvia varchar(15)
- , shiptocode varchar(4)
- , confirmto varchar(30)
- , comment varchar(30)
- , emailaddress varchar(250)
- , faxno varchar(17)
- , inspectonreceipt varchar(1)
- , applyrestockingcharges varchar(1)
- , crossship varchar(1)
- , billtoname varchar(30)
- , billtoaddress1 varchar(30)
- , billtoaddress2 varchar(30)
- , billtoaddress3 varchar(30)
- , billtocity varchar(20)
- , billtostate varchar(2)
- , billtozipcode varchar(10)
- , billtocountrycode varchar(3)
- , shiptoname varchar(30)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , returntoaddresscode varchar(4)
- , returntoname varchar(30)
- , returntoaddress1 varchar(30)
- , returntoaddress2 varchar(30)
- , returntoaddress3 varchar(30)
- , returntocity varchar(20)
- , returntostate varchar(2)
- , returntozipcode varchar(10)
- , returntocountrycode varchar(3)
- , receiptdate date
- , residentialaddress varchar(1)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rra_receiptshistoryheader_KEY0_pk PRIMARY KEY (rmano,receiptseqno)
- , CONSTRAINT rra_receiptshistoryheader_KEY0_check CHECK (rmano is not null and receiptseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_receiptshistoryheader_KEY1_index ON sageimport.rra_receiptshistoryheader (ardivisionno,customerno,rmano,receiptseqno);
- CREATE INDEX rra_receiptshistoryheader_KEY2_index ON sageimport.rra_receiptshistoryheader (billtoname,rmano,receiptseqno);
- CREATE INDEX rra_receiptshistoryheader_KEY3_index ON sageimport.rra_receiptshistoryheader (receiptdate,rmano,receiptseqno);
- CREATE TABLE sageimport.rra_returndetail(
- rmano varchar(7)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , invoiceno varchar(7)
- , headerseqno varchar(6)
- , detailseqno varchar(6)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , extendeddescriptionkey varchar(10)
- , returnreasoncode varchar(10)
- , customeraction varchar(1)
- , itemaction varchar(1)
- , warehousecode varchar(3)
- , vendoraction varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , replacementitemcode varchar(30)
- , replacementitemtype varchar(1)
- , unitofmeasure varchar(4)
- , dropship varchar(1)
- , crossship varchar(1)
- , creditfreight varchar(1)
- , xpresssocreated varchar(1)
- , aliasitemno varchar(30)
- , warrantycode varchar(10)
- , expirationdate date
- , expirationdateoverridden varchar(1)
- , costoverridden varchar(1)
- , costofgoodssoldacctkey varchar(9)
- , salesacctkey varchar(9)
- , saleskitlinekey varchar(6)
- , explodedkititem varchar(1)
- , standardkitbill varchar(1)
- , revision varchar(3)
- , billoption1 varchar(2)
- , billoption2 varchar(2)
- , billoption3 varchar(2)
- , billoption4 varchar(2)
- , billoption5 varchar(2)
- , billoption6 varchar(2)
- , billoption7 varchar(2)
- , billoption8 varchar(2)
- , billoption9 varchar(2)
- , backorderkitcomplines varchar(1)
- , applycommentstoall varchar(1)
- , applytocustomerrma varchar(1)
- , applytormareceiver varchar(1)
- , applytosalesorder varchar(1)
- , applytocreditmemo varchar(1)
- , vendorrmano varchar(10)
- , invoicenotonfile varchar(1)
- , salesorderno varchar(7)
- , customerpono varchar(30)
- , replacementrevision varchar(3)
- , replacementrepairbilloption1 varchar(2)
- , replacementrepairbilloption2 varchar(2)
- , replacementrepairbilloption3 varchar(2)
- , replacementrepairbilloption4 varchar(2)
- , replacementrepairbilloption5 varchar(2)
- , replacementrepairbilloption6 varchar(2)
- , replacementrepairbilloption7 varchar(2)
- , replacementrepairbilloption8 varchar(2)
- , replacementrepairbilloption9 varchar(2)
- , productline varchar(4)
- , valuation varchar(1)
- , commenttext text
- , discount varchar(1)
- , pricelevel varchar(1)
- , taxclass varchar(2)
- , subjecttoexemption varchar(1)
- , commissionable varchar(1)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , xpresssalesorderno varchar(7)
- , priceoverridden varchar(1)
- , historywarehousecode varchar(3)
- , historycogsacctkey varchar(9)
- , skipprintcompline varchar(1)
- , quantityreturned numeric(15,4)
- , quantityreceived numeric(15,4)
- , quantityremaining numeric(15,4)
- , invoiceunitprice numeric(15,4)
- , extensionamt numeric(15,4)
- , restockingcharge numeric(15,4)
- , invoiceunitcost numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , quantityperbill numeric(15,4)
- , originalprice numeric(15,4)
- , originalcost numeric(15,4)
- , invoicehistoryqty numeric(15,4)
- , linediscountpercent numeric(15,4)
- , CONSTRAINT rra_returndetail_KEY0_pk PRIMARY KEY (rmano,linekey)
- , CONSTRAINT rra_returndetail_KEY0_check CHECK (rmano is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_returndetail_KEY1_index ON sageimport.rra_returndetail (rmano,lineseqno,linekey);
- CREATE INDEX rra_returndetail_KEY2_index ON sageimport.rra_returndetail (extendeddescriptionkey,rmano,linekey);
- CREATE INDEX rra_returndetail_KEY3_index ON sageimport.rra_returndetail (itemcode,warehousecode,rmano,linekey);
- CREATE TABLE sageimport.rra_returnheader(
- rmano varchar(7)
- , rmadate date
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , rmastatus varchar(1)
- , expiredate date
- , returnshipvia varchar(15)
- , shiptocode varchar(4)
- , confirmto varchar(30)
- , comment varchar(30)
- , emailaddress varchar(250)
- , faxno varchar(17)
- , batchfax varchar(1)
- , inspectonreceipt varchar(1)
- , applyrestockingcharges varchar(1)
- , crossship varchar(1)
- , printcustomerrma varchar(1)
- , printrmareceiver varchar(1)
- , billtoname varchar(30)
- , billtoaddress1 varchar(30)
- , billtoaddress2 varchar(30)
- , billtoaddress3 varchar(30)
- , billtocity varchar(20)
- , billtostate varchar(2)
- , billtozipcode varchar(10)
- , billtocountrycode varchar(3)
- , shiptoname varchar(30)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , returntoaddresscode varchar(4)
- , returntoname varchar(30)
- , returntoaddress1 varchar(30)
- , returntoaddress2 varchar(30)
- , returntoaddress3 varchar(30)
- , returntocity varchar(20)
- , returntostate varchar(2)
- , returntozipcode varchar(10)
- , returntocountrycode varchar(3)
- , residentialaddress varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , CONSTRAINT rra_returnheader_KEY0_pk PRIMARY KEY (rmano)
- , CONSTRAINT rra_returnheader_KEY0_check CHECK (rmano IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_returnheader_KEY1_index ON sageimport.rra_returnheader (ardivisionno,customerno,rmano);
- CREATE INDEX rra_returnheader_KEY2_index ON sageimport.rra_returnheader (rmadate,rmano);
- CREATE INDEX rra_returnheader_KEY3_index ON sageimport.rra_returnheader (billtoname,rmano);
- CREATE INDEX rra_returnheader_KEY4_index ON sageimport.rra_returnheader (billtodivisionno,billtocustomerno,rmano);
- CREATE TABLE sageimport.rra_returnprint(
- printtype varchar(1)
- , rmano varchar(7)
- , CONSTRAINT rra_returnprint_KEY0_pk PRIMARY KEY (printtype,rmano)
- , CONSTRAINT rra_returnprint_KEY0_check CHECK (printtype is not null and rmano IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rra_returnreasoncode(
- returnreasoncode varchar(10)
- , returnreasoncodedesc varchar(30)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rra_returnreasoncode_KEY0_pk PRIMARY KEY (returnreasoncode)
- , CONSTRAINT rra_returnreasoncode_KEY0_check CHECK (returnreasoncode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rra_returnreasondetail(
- itemcode varchar(30)
- , itemtype varchar(1)
- , receiptdate date
- , rmano varchar(7)
- , sequenceno varchar(6)
- , returnreasoncode varchar(10)
- , itemaction varchar(1)
- , itemcodedesc varchar(30)
- , productline varchar(4)
- , unitofmeasure varchar(4)
- , warehousecode varchar(3)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , customeraction varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , vendoraction varchar(1)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , quantityreturnedactual numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rra_returnreasondetail_KEY0_pk PRIMARY KEY (itemcode,receiptdate,rmano,sequenceno)
- , CONSTRAINT rra_returnreasondetail_KEY0_check CHECK (itemcode is not null and receiptdate is not null and rmano is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rra_returnreasondetail_KEY1_index ON sageimport.rra_returnreasondetail (returnreasoncode,itemcode,receiptdate,rmano,sequenceno);
- CREATE INDEX rra_returnreasondetail_KEY2_index ON sageimport.rra_returnreasondetail (productline,itemcode,receiptdate,rmano,sequenceno);
- CREATE INDEX rra_returnreasondetail_KEY3_index ON sageimport.rra_returnreasondetail (ardivisionno,customerno,itemcode,receiptdate,rmano,sequenceno);
- CREATE INDEX rra_returnreasondetail_KEY4_index ON sageimport.rra_returnreasondetail (apdivisionno,vendorno,itemcode,receiptdate,rmano,sequenceno);
- CREATE INDEX rra_returnreasondetail_KEY5_index ON sageimport.rra_returnreasondetail (receiptdate,itemcode,rmano,sequenceno);
- CREATE TABLE sageimport.rra_returntoaddresscode(
- returntoaddresscode varchar(4)
- , returntoaddresscodedesc varchar(30)
- , returntoname varchar(30)
- , returntoaddress1 varchar(30)
- , returntoaddress2 varchar(30)
- , returntoaddress3 varchar(30)
- , returntocity varchar(20)
- , returntostate varchar(2)
- , returntozipcode varchar(10)
- , returntocountrycode varchar(3)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rra_returntoaddresscode_KEY0_pk PRIMARY KEY (returntoaddresscode)
- , CONSTRAINT rra_returntoaddresscode_KEY0_check CHECK (returntoaddresscode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_arinvoicehistorylink(
- salesorderno varchar(7)
- , sequenceno varchar(14)
- , invoiceno varchar(7)
- , invoicehistoryheaderseqno varchar(6)
- , invoicehistorydetailseqno varchar(6)
- , invoicedate date
- , unitofmeasure varchar(4)
- , quantityshipped numeric(15,4)
- , unitprice numeric(15,4)
- , CONSTRAINT rso_arinvoicehistorylink_KEY0_pk PRIMARY KEY (salesorderno,sequenceno,invoiceno,invoicehistoryheaderseqno,invoicehistorydetailseqno)
- , CONSTRAINT rso_arinvoicehistorylink_KEY0_check CHECK (salesorderno is not null and sequenceno is not null and invoiceno is not null and invoicehistoryheaderseqno is not null and invoicehistorydetailseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_cancelreasoncode(
- cancelreasoncode varchar(5)
- , cancelreasoncodedesc varchar(30)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , inactivecancelreasoncode varchar(1)
- , CONSTRAINT rso_cancelreasoncode_KEY0_pk PRIMARY KEY (cancelreasoncode)
- , CONSTRAINT rso_cancelreasoncode_KEY0_check CHECK (cancelreasoncode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_invoiceheader(
- invoiceno varchar(7)
- , invoicedate date
- , invoicetype varchar(2)
- , salesorderno varchar(7)
- , ordertype varchar(1)
- , orderstatus varchar(1)
- , orderdate date
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , billtoname varchar(30)
- , billtoaddress1 varchar(30)
- , billtoaddress2 varchar(30)
- , billtoaddress3 varchar(30)
- , billtocity varchar(20)
- , billtostate varchar(2)
- , billtozipcode varchar(10)
- , billtocountrycode varchar(3)
- , shiptocode varchar(4)
- , shiptoname varchar(30)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , shipdate date
- , shipvia varchar(15)
- , shipzone varchar(5)
- , shipzoneactual varchar(5)
- , shipweight varchar(5)
- , customerpono varchar(30)
- , fob varchar(15)
- , warehousecode varchar(3)
- , confirmto varchar(30)
- , comment varchar(30)
- , taxschedule varchar(9)
- , termscode varchar(2)
- , taxexemptno varchar(15)
- , printinvoice varchar(1)
- , invoiceprinted varchar(1)
- , acceptcashonly varchar(1)
- , customertype varchar(4)
- , residentialaddress varchar(1)
- , invalidtaxcalc varchar(1)
- , freightcalculationmethod varchar(1)
- , checknofordeposit varchar(10)
- , applytoinvoiceno varchar(7)
- , lotseriallinesexist varchar(1)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , splitcommissions varchar(1)
- , salespersondivisionno2 varchar(2)
- , salespersonno2 varchar(4)
- , salespersondivisionno3 varchar(2)
- , salespersonno3 varchar(4)
- , salespersondivisionno4 varchar(2)
- , salespersonno4 varchar(4)
- , salespersondivisionno5 varchar(2)
- , salespersonno5 varchar(4)
- , invoiceduedate date
- , discountduedate date
- , batchno varchar(5)
- , ebmsubmissiontype varchar(1)
- , ebmuseridsubmittingthisorder varchar(15)
- , ebmusertype varchar(1)
- , emailupdateflagforrestart varchar(1)
- , faxno varchar(17)
- , batchfax varchar(1)
- , batchemail varchar(1)
- , emailaddress varchar(250)
- , paymenttype varchar(5)
- , paymenttypecategory varchar(1)
- , otherpaymenttyperefno varchar(24)
- , orderchangedinshipping varchar(1)
- , lineschangedinshipping varchar(1)
- , shipperid varchar(3)
- , shipstatus varchar(1)
- , starshipfreightused varchar(1)
- , starshiprecordscreated varchar(1)
- , jobno varchar(7)
- , rmano varchar(7)
- , crmuserid varchar(11)
- , crmcompanyid varchar(11)
- , crmpersonid varchar(11)
- , crmopportunityid varchar(11)
- , invalidwarrantycode varchar(1)
- , taxablesubjecttodiscount numeric(15,4)
- , nontaxablesubjecttodiscount numeric(15,4)
- , taxsubjtodiscprcntoftotsubjto numeric(15,4)
- , discountrate numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , discountamt numeric(15,4)
- , retentionamt numeric(15,4)
- , totalsubjecttocomm numeric(15,4)
- , commissionrate numeric(15,4)
- , commissionamt numeric(15,4)
- , splitcommrate2 numeric(15,4)
- , splitcommrate3 numeric(15,4)
- , splitcommrate4 numeric(15,4)
- , splitcommrate5 numeric(15,4)
- , overridecommamt numeric(15,4)
- , freightamt numeric(15,4)
- , costofgoodssoldamt numeric(15,4)
- , costofgoodssoldsubjtocomm numeric(15,4)
- , depositamt numeric(15,4)
- , weight numeric(15,4)
- , sishippedlinescogs numeric(15,4)
- , numberofcodlabels numeric(15,4)
- , numberofbackorderlines numeric(15,4)
- , numberofshippinglabels numeric(15,4)
- , lastnoofshippinglabels numeric(15,4)
- , numberofpackages numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , CONSTRAINT rso_invoiceheader_KEY0_pk PRIMARY KEY (invoiceno)
- , CONSTRAINT rso_invoiceheader_KEY0_check CHECK (invoiceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_invoiceheader_KEY1_index ON sageimport.rso_invoiceheader (batchno,invoiceno);
- CREATE INDEX rso_invoiceheader_KEY2_index ON sageimport.rso_invoiceheader (ardivisionno,customerno,invoiceno);
- CREATE INDEX rso_invoiceheader_KEY3_index ON sageimport.rso_invoiceheader (crmcompanyid,invoiceno);
- CREATE INDEX rso_invoiceheader_KEY4_index ON sageimport.rso_invoiceheader (crmpersonid,invoiceno);
- CREATE INDEX rso_invoiceheader_KEY5_index ON sageimport.rso_invoiceheader (ardivisionno,customerno,customerpono,invoiceno);
- CREATE INDEX rso_invoiceheader_KEY6_index ON sageimport.rso_invoiceheader (billtodivisionno,billtocustomerno,invoiceno);
- CREATE TABLE sageimport.rso_invoicehistorylink(
- salesorderno varchar(7)
- , invoiceno varchar(7)
- , invoicehistoryheaderseqno varchar(6)
- , invoicedate date
- , invoicetotal numeric(15,4)
- , CONSTRAINT rso_invoicehistorylink_KEY0_pk PRIMARY KEY (salesorderno,invoiceno,invoicehistoryheaderseqno)
- , CONSTRAINT rso_invoicehistorylink_KEY0_check CHECK (salesorderno is not null and invoiceno is not null and invoicehistoryheaderseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_lastpurchasehistory(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , itemcode varchar(30)
- , documenttype varchar(1)
- , lastpurchasedate date
- , lastpurchaseqty numeric(15,4)
- , lastunitprice numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_lastpurchasehistory_KEY0_pk PRIMARY KEY (ardivisionno,customerno,itemcode,documenttype)
- , CONSTRAINT rso_lastpurchasehistory_KEY0_check CHECK (ardivisionno is not null and customerno is not null and itemcode is not null and documenttype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_openorderdetailbyitem(
- recordtype varchar(1)
- , itemcode varchar(30)
- , promisedate date
- , salesorderno varchar(7)
- , linekey varchar(6)
- , CONSTRAINT rso_openorderdetailbyitem_KEY0_pk PRIMARY KEY (recordtype,itemcode,salesorderno,linekey)
- , CONSTRAINT rso_openorderdetailbyitem_KEY0_check CHECK (recordtype is not null and itemcode is not null and salesorderno is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_openorderdetailbyitem_KEY1_index ON sageimport.rso_openorderdetailbyitem (recordtype,promisedate,salesorderno,linekey);
- CREATE TABLE sageimport.rso_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , defaultwarehousecode varchar(3)
- , usealternatewhse varchar(1)
- , usedefaultitemwhse varchar(1)
- , splitcommissions varchar(1)
- , useshippingcode varchar(1)
- , nextsalesorderno varchar(7)
- , nextinvoiceno varchar(7)
- , currentcalendaryr varchar(4)
- , currentfiscalyr varchar(4)
- , currentperiod varchar(2)
- , allowdiscountrate varchar(1)
- , checkqtyonhand varchar(1)
- , defaultspecialitemstods varchar(1)
- , includebackorderedlines varchar(1)
- , requirejobno varchar(1)
- , allowjobstobecreated varchar(1)
- , requirecostcode varchar(1)
- , postinvoicecoststojc varchar(1)
- , postsalesbydivision varchar(1)
- , postdepositsbydiv varchar(1)
- , postdepositsindetail varchar(1)
- , printsalesorders varchar(1)
- , printpickingsheets varchar(1)
- , includekititems varchar(1)
- , printshippinglabels varchar(1)
- , printdailydropshiprpt varchar(1)
- , printcodlabels varchar(1)
- , customerdepacctkey varchar(9)
- , specialitemsalesacctkey varchar(9)
- , specialitemcogsacctkey varchar(9)
- , specialitempurchasesacctkey varchar(9)
- , printsalesjournalbydiv varchar(1)
- , printgrossprofitjournal varchar(1)
- , printgrossprftjrnlbyslsprson varchar(1)
- , printdailybackorder varchar(1)
- , printdailydepositrecap varchar(1)
- , printtaxdetailonsalesjrnl varchar(1)
- , printtaxjournalindetail varchar(1)
- , printdailysalesrecap varchar(1)
- , printrecapbyitem varchar(1)
- , printwhsedetailforrecap varchar(1)
- , printrecapbywhsebyitem varchar(1)
- , printrecapbyproductline varchar(1)
- , printrecapbywhsebyprodline varchar(1)
- , printrecapbywhse varchar(1)
- , printrecapbycustomer varchar(1)
- , printrecapbydiv varchar(1)
- , printbarcodesalesorders varchar(1)
- , printbarcodepicksheets varchar(1)
- , purgesorecap varchar(1)
- , displayunitcost varchar(1)
- , yearstoretainsaleshist numeric(15,4)
- , retainbackorderedlines varchar(1)
- , retainshiptodetail varchar(1)
- , retainlotserialhistory varchar(1)
- , retaincustlastpurchhistory varchar(1)
- , retainorderquotehistory varchar(1)
- , retaindeletedsalesorders varchar(1)
- , retaindeletedlines varchar(1)
- , displayprofitmargin varchar(1)
- , enableshipping varchar(1)
- , warrantycalcbasedon varchar(1)
- , recalcexpiration varchar(1)
- , integrategeneralledger varchar(1)
- , integrateinventory varchar(1)
- , integratejobcost varchar(1)
- , periodendoptselection varchar(1)
- , currentinvoiceupdate varchar(1)
- , companycode varchar(3)
- , defaultnooflabels numeric(15,4)
- , profitmarginpercent numeric(15,4)
- , dataversion numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , customersplitcomoverrideshipto varchar(1)
- , usedfltorderdatepromotingquote varchar(1)
- , defaultdaysuntilquoteexpires numeric(15,4)
- , displaymessage varchar(1)
- , redisplayalldocuments varchar(1)
- , redisplaysalesorders varchar(1)
- , redisplaypickingsheets varchar(1)
- , redisplayinvoices varchar(1)
- , pickingsheetafterorder varchar(1)
- , onlyfordefaultwhse varchar(1)
- , shippinglabelsafterpicksheet varchar(1)
- , codlabelsafterinvoice varchar(1)
- , quickprintwithoutprintwindow varchar(1)
- , enablepurchasecontrol varchar(1)
- , selectitemsbasedon varchar(1)
- , controlpurchasesbasedon varchar(1)
- , enablepricebytotalqtybasedon varchar(1)
- , unitofmeasurefortotalqty varchar(1)
- , applypricingbytotalqtyauto varchar(1)
- , enabledefaultpricelevelbycust varchar(1)
- , basenewpricelevelrecordson varchar(1)
- , enablelotserialdist varchar(1)
- , requirefullydistributedlines varchar(1)
- , checkarinvoicedataentry varchar(1)
- , checkarinvoicehistory varchar(1)
- , checksalesorderentry varchar(1)
- , checksalesorderhistory varchar(1)
- , checksoinvoicedataentry varchar(1)
- , postinvoicecoststojobestimates varchar(1)
- , postdropshipcoststojc varchar(1)
- , relieveworkinprocess varchar(1)
- , setjobstatustocompletewheninv varchar(1)
- , includejobnoanddescinglcomment varchar(1)
- , relieveinventory varchar(1)
- , saleskitupdatemethod varchar(1)
- , validatecustomer varchar(1)
- , validsocosttypes varchar(12)
- , usesoacctsforcogs varchar(1)
- , usesoacctsforsales varchar(1)
- , datasublevel numeric(15,4)
- , CONSTRAINT rso_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rso_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_recapbydivision(
- ardivisionno varchar(2)
- , year varchar(4)
- , period varchar(2)
- , quantityshipped numeric(15,4)
- , quantityreturned numeric(15,4)
- , dollarssold numeric(15,4)
- , costofgoodssold numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_recapbydivision_KEY0_pk PRIMARY KEY (ardivisionno,year,period)
- , CONSTRAINT rso_recapbydivision_KEY0_check CHECK (ardivisionno is not null and year is not null and period IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_recapbydivision_KEY1_index ON sageimport.rso_recapbydivision (year,period,ardivisionno);
- CREATE TABLE sageimport.rso_recapbyproductlinewhse(
- productline varchar(4)
- , warehousecode varchar(3)
- , year varchar(4)
- , period varchar(2)
- , quantityshipped numeric(15,4)
- , quantityreturned numeric(15,4)
- , dollarssold numeric(15,4)
- , costofgoodssold numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_recapbyproductlinewhse_KEY0_pk PRIMARY KEY (productline,warehousecode,year,period)
- , CONSTRAINT rso_recapbyproductlinewhse_KEY0_check CHECK (productline is not null and warehousecode is not null and year is not null and period IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_recapbyproductlinewhse_KEY1_index ON sageimport.rso_recapbyproductlinewhse (year,period,productline,warehousecode);
- CREATE TABLE sageimport.rso_recapbywarehouse(
- warehousecode varchar(3)
- , year varchar(4)
- , period varchar(2)
- , quantityshipped numeric(15,4)
- , quantityreturned numeric(15,4)
- , dollarssold numeric(15,4)
- , costofgoodssold numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_recapbywarehouse_KEY0_pk PRIMARY KEY (warehousecode,year,period)
- , CONSTRAINT rso_recapbywarehouse_KEY0_check CHECK (warehousecode is not null and year is not null and period IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_recapbywarehouse_KEY1_index ON sageimport.rso_recapbywarehouse (year,period,warehousecode);
- CREATE TABLE sageimport.rso_saleshistory(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , productline varchar(4)
- , warehousecode varchar(3)
- , postingdate date
- , invoicedate date
- , dollarssold numeric(15,4)
- , costofgoodssold numeric(15,4)
- , quantityshipped numeric(15,4)
- , quantityreturned numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_saleshistory_KEY0_pk PRIMARY KEY (ardivisionno,customerno,itemcode,itemtype,productline,warehousecode,postingdate,invoicedate)
- , CONSTRAINT rso_saleshistory_KEY0_check CHECK (ardivisionno is not null and customerno is not null and itemcode is not null and itemtype is not null and productline is not null and warehousecode is not null and postingdate is not null and invoicedate IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_saleshistory_KEY1_index ON sageimport.rso_saleshistory (itemcode);
- CREATE INDEX rso_saleshistory_KEY10_index ON sageimport.rso_saleshistory (itemtype);
- CREATE INDEX rso_saleshistory_KEY11_index ON sageimport.rso_saleshistory (ardivisionno,customerno);
- CREATE INDEX rso_saleshistory_KEY12_index ON sageimport.rso_saleshistory (ardivisionno);
- CREATE INDEX rso_saleshistory_KEY13_index ON sageimport.rso_saleshistory (ardivisionno,customerno,productline);
- CREATE INDEX rso_saleshistory_KEY2_index ON sageimport.rso_saleshistory (productline);
- CREATE INDEX rso_saleshistory_KEY3_index ON sageimport.rso_saleshistory (warehousecode);
- CREATE INDEX rso_saleshistory_KEY4_index ON sageimport.rso_saleshistory (warehousecode,itemcode);
- CREATE INDEX rso_saleshistory_KEY5_index ON sageimport.rso_saleshistory (warehousecode,productline);
- CREATE INDEX rso_saleshistory_KEY6_index ON sageimport.rso_saleshistory (invoicedate);
- CREATE INDEX rso_saleshistory_KEY7_index ON sageimport.rso_saleshistory (postingdate);
- CREATE INDEX rso_saleshistory_KEY8_index ON sageimport.rso_saleshistory (itemcode,productline,warehousecode);
- CREATE INDEX rso_saleshistory_KEY9_index ON sageimport.rso_saleshistory (productline,warehousecode);
- CREATE TABLE sageimport.rso_salesorderdetail(
- salesorderno varchar(7)
- , linekey varchar(6)
- , lineseqno varchar(14)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , extendeddescriptionkey varchar(10)
- , discount varchar(1)
- , commissionable varchar(1)
- , subjecttoexemption varchar(1)
- , warehousecode varchar(3)
- , pricelevel varchar(1)
- , masterorderlinekey varchar(6)
- , unitofmeasure varchar(4)
- , dropship varchar(1)
- , printdropshipment varchar(1)
- , saleskitlinekey varchar(6)
- , costofgoodssoldacctkey varchar(9)
- , salesacctkey varchar(9)
- , priceoverridden varchar(1)
- , explodedkititem varchar(1)
- , standardkitbill varchar(1)
- , revision varchar(3)
- , billoption1 varchar(2)
- , billoption2 varchar(2)
- , billoption3 varchar(2)
- , billoption4 varchar(2)
- , billoption5 varchar(2)
- , billoption6 varchar(2)
- , billoption7 varchar(2)
- , billoption8 varchar(2)
- , billoption9 varchar(2)
- , backorderkitcompline varchar(1)
- , skipprintcompline varchar(1)
- , promisedate date
- , aliasitemno varchar(30)
- , sohistorydetlseqno varchar(14)
- , taxclass varchar(2)
- , customeraction varchar(1)
- , itemaction varchar(1)
- , warrantycode varchar(10)
- , expirationdate date
- , expirationoverridden varchar(1)
- , costoverridden varchar(1)
- , costcode varchar(9)
- , costtype varchar(1)
- , commenttext text
- , quantityordered numeric(15,4)
- , quantityshipped numeric(15,4)
- , quantitybackordered numeric(15,4)
- , masteroriginalqty numeric(15,4)
- , masterqtybalance numeric(15,4)
- , masterqtyorderedtodate numeric(15,4)
- , repeatingqtyshippedtodate numeric(15,4)
- , unitprice numeric(15,4)
- , unitcost numeric(15,4)
- , extensionamt numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , quantityperbill numeric(15,4)
- , linediscountpercent numeric(15,4)
- , lineweight numeric(15,4)
- , udf_primary_item varchar(1)
- , valuation varchar(1)
- , lotserialfullydistributed varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , purchaseorderno varchar(7)
- , purchaseorderrequireddate date
- , commoditycode varchar(12)
- , alternatetaxidentifier varchar(15)
- , taxtypeapplied varchar(4)
- , netgrossindicator varchar(1)
- , debitcreditindicator varchar(1)
- , taxamt numeric(15,4)
- , taxrate numeric(15,4)
- , CONSTRAINT rso_salesorderdetail_KEY0_pk PRIMARY KEY (salesorderno,linekey)
- , CONSTRAINT rso_salesorderdetail_KEY0_check CHECK (salesorderno is not null and linekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_salesorderdetail_KEY1_index ON sageimport.rso_salesorderdetail (salesorderno,lineseqno,linekey);
- CREATE INDEX rso_salesorderdetail_KEY2_index ON sageimport.rso_salesorderdetail (extendeddescriptionkey,salesorderno,linekey);
- CREATE INDEX rso_salesorderdetail_KEY3_index ON sageimport.rso_salesorderdetail (itemtype,itemcode,salesorderno,linekey);
- CREATE INDEX rso_salesorderdetail_KEY4_index ON sageimport.rso_salesorderdetail (itemcode,warehousecode,salesorderno,linekey);
- CREATE INDEX rso_salesorderdetail_KEY5_index ON sageimport.rso_salesorderdetail (apdivisionno,vendorno,salesorderno,linekey);
- CREATE TABLE sageimport.rso_salesorderheader(
- salesorderno varchar(7)
- , orderdate date
- , ordertype varchar(1)
- , orderstatus varchar(1)
- , masterrepeatingorderno varchar(7)
- , shipexpiredate date
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , billtoname varchar(30)
- , billtoaddress1 varchar(30)
- , billtoaddress2 varchar(30)
- , billtoaddress3 varchar(30)
- , billtocity varchar(20)
- , billtostate varchar(2)
- , billtozipcode varchar(10)
- , billtocountrycode varchar(3)
- , shiptocode varchar(4)
- , shiptoname varchar(30)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , shipvia varchar(15)
- , shipzone varchar(5)
- , shipzoneactual varchar(5)
- , shipweight varchar(5)
- , customerpono varchar(30)
- , fob varchar(15)
- , warehousecode varchar(3)
- , confirmto varchar(30)
- , comment varchar(30)
- , termscode varchar(2)
- , taxschedule varchar(9)
- , taxexemptno varchar(15)
- , invalidtaxcalc varchar(1)
- , printsalesorders varchar(1)
- , printpickingsheets varchar(1)
- , lastinvoiceorderdate date
- , lastinvoiceorderno varchar(7)
- , currentinvoiceno varchar(7)
- , checknofordeposit varchar(10)
- , cyclecode varchar(2)
- , faxno varchar(17)
- , batchfax varchar(1)
- , batchemail varchar(1)
- , emailaddress varchar(250)
- , freightcalculationmethod varchar(1)
- , lotseriallinesexist varchar(1)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , splitcommissions varchar(1)
- , salespersondivisionno2 varchar(2)
- , salespersonno2 varchar(4)
- , salespersondivisionno3 varchar(2)
- , salespersonno3 varchar(4)
- , salespersondivisionno4 varchar(2)
- , salespersonno4 varchar(4)
- , salespersondivisionno5 varchar(2)
- , salespersonno5 varchar(4)
- , ebmusertype varchar(1)
- , ebmsubmissiontype varchar(1)
- , ebmuseridsubmittingthisorder varchar(15)
- , paymenttype varchar(5)
- , otherpaymenttyperefno varchar(24)
- , cancelreasoncode varchar(5)
- , paymenttypecategory varchar(1)
- , rmano varchar(7)
- , jobno varchar(7)
- , residentialaddress varchar(1)
- , crmuserid varchar(11)
- , crmpersonid varchar(11)
- , crmopportunityid varchar(11)
- , crmcompanyid varchar(11)
- , crmprospectid varchar(11)
- , taxablesubjecttodiscount numeric(15,4)
- , nontaxablesubjecttodiscount numeric(15,4)
- , taxsubjtodiscprcntoftotsubjto numeric(15,4)
- , discountrate numeric(15,4)
- , discountamt numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , weight numeric(15,4)
- , freightamt numeric(15,4)
- , depositamt numeric(15,4)
- , commissionrate numeric(15,4)
- , splitcommrate2 numeric(15,4)
- , splitcommrate3 numeric(15,4)
- , splitcommrate4 numeric(15,4)
- , splitcommrate5 numeric(15,4)
- , numberofshippinglabels numeric(15,4)
- , lastnoofshippinglabels numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , udf_project varchar(15)
- , udf_special_info varchar(50)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , salesorderprinted varchar(1)
- , pickingsheetprinted varchar(1)
- , promoteddate date
- , CONSTRAINT rso_salesorderheader_KEY0_pk PRIMARY KEY (salesorderno)
- , CONSTRAINT rso_salesorderheader_KEY0_check CHECK (salesorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_salesorderheader_KEY1_index ON sageimport.rso_salesorderheader (ardivisionno,customerno,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY2_index ON sageimport.rso_salesorderheader (billtoname,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY3_index ON sageimport.rso_salesorderheader (customerpono,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY4_index ON sageimport.rso_salesorderheader (ardivisionno,customerno,customerpono,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY5_index ON sageimport.rso_salesorderheader (crmcompanyid,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY6_index ON sageimport.rso_salesorderheader (crmpersonid,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY7_index ON sageimport.rso_salesorderheader (crmprospectid,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY8_index ON sageimport.rso_salesorderheader (billtodivisionno,billtocustomerno,salesorderno);
- CREATE INDEX rso_salesorderheader_KEY9_index ON sageimport.rso_salesorderheader (cancelreasoncode,salesorderno);
- CREATE TABLE sageimport.rso_salesorderhistorydetail(
- salesorderno varchar(7)
- , sequenceno varchar(14)
- , linekey varchar(6)
- , originalline varchar(1)
- , cancelledline varchar(1)
- , cancelreasoncode varchar(5)
- , itemcode varchar(30)
- , itemtype varchar(1)
- , itemcodedesc varchar(30)
- , extendeddescriptionkey varchar(10)
- , discount varchar(1)
- , commissionable varchar(1)
- , subjecttoexemption varchar(1)
- , warehousecode varchar(3)
- , pricelevel varchar(1)
- , dropship varchar(1)
- , printdropshipment varchar(1)
- , masterorderlinekey varchar(6)
- , unitofmeasure varchar(4)
- , saleskitlinekey varchar(6)
- , costofgoodssoldacctkey varchar(9)
- , salesacctkey varchar(9)
- , priceoverridden varchar(1)
- , explodedkititem varchar(1)
- , standardkitbill varchar(1)
- , revision varchar(3)
- , billoption1 varchar(2)
- , billoption2 varchar(2)
- , billoption3 varchar(2)
- , billoption4 varchar(2)
- , billoption5 varchar(2)
- , billoption6 varchar(2)
- , billoption7 varchar(2)
- , billoption8 varchar(2)
- , billoption9 varchar(2)
- , backorderkitcompline varchar(1)
- , skipprintcompline varchar(1)
- , promisedate date
- , aliasitemno varchar(30)
- , taxclass varchar(2)
- , customeraction varchar(1)
- , itemaction varchar(1)
- , warrantycode varchar(10)
- , expirationdate date
- , expirationoverridden varchar(1)
- , costoverridden varchar(1)
- , costcode varchar(9)
- , costtype varchar(1)
- , commenttext text
- , quantityorderedoriginal numeric(15,4)
- , quantityorderedrevised numeric(15,4)
- , quantityshipped numeric(15,4)
- , quantitybackordered numeric(15,4)
- , originalunitprice numeric(15,4)
- , lastunitprice numeric(15,4)
- , lastextensionamt numeric(15,4)
- , unitcost numeric(15,4)
- , unitofmeasureconvfactor numeric(15,4)
- , quantityperbill numeric(15,4)
- , linediscountpercent numeric(15,4)
- , lineweight numeric(15,4)
- , udf_primary_item varchar(1)
- , apdivisionno varchar(2)
- , vendorno varchar(7)
- , purchaseorderno varchar(7)
- , purchaseorderrequireddate date
- , commoditycode varchar(12)
- , alternatetaxidentifier varchar(15)
- , taxtypeapplied varchar(4)
- , netgrossindicator varchar(1)
- , debitcreditindicator varchar(1)
- , taxamt numeric(15,4)
- , taxrate numeric(15,4)
- , CONSTRAINT rso_salesorderhistorydetail_KEY0_pk PRIMARY KEY (salesorderno,sequenceno)
- , CONSTRAINT rso_salesorderhistorydetail_KEY0_check CHECK (salesorderno is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_salesorderhistorydetail_KEY1_index ON sageimport.rso_salesorderhistorydetail (extendeddescriptionkey,salesorderno,sequenceno);
- CREATE INDEX rso_salesorderhistorydetail_KEY2_index ON sageimport.rso_salesorderhistorydetail (salesorderno,sequenceno,linekey);
- CREATE INDEX rso_salesorderhistorydetail_KEY3_index ON sageimport.rso_salesorderhistorydetail (apdivisionno,vendorno,salesorderno,sequenceno);
- CREATE INDEX rso_salesorderhistorydetail_KEY4_index ON sageimport.rso_salesorderhistorydetail (cancelledline,cancelreasoncode,salesorderno,sequenceno);
- CREATE TABLE sageimport.rso_salesorderhistoryheader(
- salesorderno varchar(7)
- , orderdate date
- , orderstatus varchar(1)
- , masterrepeatingorderno varchar(7)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , billtoname varchar(30)
- , billtoaddress1 varchar(30)
- , billtoaddress2 varchar(30)
- , billtoaddress3 varchar(30)
- , billtocity varchar(20)
- , billtostate varchar(2)
- , billtozipcode varchar(10)
- , billtocountrycode varchar(3)
- , shiptocode varchar(4)
- , shiptoname varchar(30)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , shipvia varchar(15)
- , shipzone varchar(5)
- , shipzoneactual varchar(5)
- , shipweight varchar(5)
- , customerpono varchar(30)
- , emailaddress varchar(250)
- , residentialaddress varchar(1)
- , cancelreasoncode varchar(5)
- , freightcalculationmethod varchar(1)
- , fob varchar(15)
- , warehousecode varchar(3)
- , confirmto varchar(30)
- , comment varchar(30)
- , taxschedule varchar(9)
- , termscode varchar(2)
- , taxexemptno varchar(15)
- , rmano varchar(7)
- , jobno varchar(7)
- , lastinvoicedate date
- , lastinvoiceno varchar(7)
- , checknofordeposit varchar(10)
- , lotseriallinesexist varchar(1)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , splitcommissions varchar(1)
- , salespersondivisionno2 varchar(2)
- , salespersonno2 varchar(4)
- , salespersondivisionno3 varchar(2)
- , salespersonno3 varchar(4)
- , salespersondivisionno4 varchar(2)
- , salespersonno4 varchar(4)
- , salespersondivisionno5 varchar(2)
- , salespersonno5 varchar(4)
- , ebmusertype varchar(1)
- , ebmsubmissiontype varchar(1)
- , ebmuseridsubmittingthisorder varchar(15)
- , paymenttype varchar(5)
- , otherpaymenttyperefno varchar(24)
- , paymenttypecategory varchar(1)
- , faxno varchar(17)
- , crmuserid varchar(11)
- , crmcompanyid varchar(11)
- , crmpersonid varchar(11)
- , crmopportunityid varchar(11)
- , taxablesubjecttodiscount numeric(15,4)
- , nontaxablesubjecttodiscount numeric(15,4)
- , taxsubjtodiscprcnttotsubjto numeric(15,4)
- , discountrate numeric(15,4)
- , discountamt numeric(15,4)
- , taxableamt numeric(15,4)
- , nontaxableamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , commissionrate numeric(15,4)
- , splitcommrate2 numeric(15,4)
- , splitcommrate3 numeric(15,4)
- , splitcommrate4 numeric(15,4)
- , splitcommrate5 numeric(15,4)
- , weight numeric(15,4)
- , freightamt numeric(15,4)
- , depositamt numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , udf_project varchar(15)
- , udf_special_info varchar(50)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , promoteddate date
- , CONSTRAINT rso_salesorderhistoryheader_KEY0_pk PRIMARY KEY (salesorderno)
- , CONSTRAINT rso_salesorderhistoryheader_KEY0_check CHECK (salesorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_salesorderhistoryheader_KEY1_index ON sageimport.rso_salesorderhistoryheader (ardivisionno,customerno,salesorderno);
- CREATE INDEX rso_salesorderhistoryheader_KEY2_index ON sageimport.rso_salesorderhistoryheader (billtoname,salesorderno);
- CREATE INDEX rso_salesorderhistoryheader_KEY3_index ON sageimport.rso_salesorderhistoryheader (customerpono,salesorderno);
- CREATE INDEX rso_salesorderhistoryheader_KEY4_index ON sageimport.rso_salesorderhistoryheader (ardivisionno,customerno,customerpono,salesorderno);
- CREATE INDEX rso_salesorderhistoryheader_KEY5_index ON sageimport.rso_salesorderhistoryheader (orderdate,salesorderno);
- CREATE INDEX rso_salesorderhistoryheader_KEY6_index ON sageimport.rso_salesorderhistoryheader (orderstatus,cancelreasoncode,salesorderno);
- CREATE TABLE sageimport.rso_salesorderhistorymemo(
- salesorderno varchar(7)
- , memocode varchar(10)
- , seqno varchar(6)
- , memodesc varchar(30)
- , memodate date
- , expirationdate date
- , reminderstartdate date
- , reminderenddate date
- , autodisplaysetting varchar(1)
- , attachment varchar(128)
- , memotext text
- , originalmodulecode varchar(3)
- , originalmemotype varchar(2)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_salesorderhistorymemo_KEY0_pk PRIMARY KEY (salesorderno,memocode,seqno)
- , CONSTRAINT rso_salesorderhistorymemo_KEY0_check CHECK (salesorderno is not null and memocode is not null and seqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_salesorderhistorymemo_KEY1_index ON sageimport.rso_salesorderhistorymemo (memocode,salesorderno);
- CREATE TABLE sageimport.rso_salesorderhistorypayment(
- salesorderno varchar(7)
- , paymentseqno varchar(6)
- , paymenttype varchar(5)
- , paymenttypecategory varchar(1)
- , creditcardid varchar(10)
- , cardtype varchar(1)
- , last4unencryptedcreditcardnos varchar(4)
- , last4bankroutingnos varchar(4)
- , last4bankaccountnos varchar(4)
- , bankname varchar(30)
- , bankaccounttype varchar(1)
- , expirationdateyear varchar(4)
- , expirationdatemonth varchar(2)
- , corporatecustidpurchorder varchar(17)
- , corporatetaxoverrd varchar(1)
- , cardholdername varchar(30)
- , creditcardtransactionid varchar(10)
- , creditcardauthorizationno varchar(16)
- , authorizationdate date
- , authorizationtime varchar(8)
- , avsaddressline1 varchar(30)
- , avsaddressline2 varchar(30)
- , avscity varchar(20)
- , avsstate varchar(2)
- , avszipcode varchar(10)
- , avscountrycode varchar(3)
- , creditcardemailaddress varchar(250)
- , creditcardcomment varchar(30)
- , valueaddedtaxno varchar(13)
- , valueaddedtaxinvoiceno varchar(15)
- , transactionamt numeric(15,4)
- , corporatesalestax numeric(15,4)
- , valueaddedtaxtaxamt numeric(15,4)
- , valueaddedtaxtaxrate numeric(15,4)
- , dutyamt numeric(15,4)
- , nationaltaxamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_salesorderhistorypayment_KEY0_pk PRIMARY KEY (salesorderno,paymentseqno)
- , CONSTRAINT rso_salesorderhistorypayment_KEY0_check CHECK (salesorderno is not null and paymentseqno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_salesorderhistorypayment_KEY1_index ON sageimport.rso_salesorderhistorypayment (salesorderno,paymenttype,paymentseqno);
- CREATE INDEX rso_salesorderhistorypayment_KEY2_index ON sageimport.rso_salesorderhistorypayment (expirationdateyear,expirationdatemonth,salesorderno,paymentseqno);
- CREATE TABLE sageimport.rso_salesorderhistorytaxdetail(
- salesorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , taxclass varchar(2)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , exemptsalesamt numeric(15,4)
- , taxablesalessubjtodisc numeric(15,4)
- , nontaxablesalessubjtodisc numeric(15,4)
- , taxrate numeric(15,4)
- , discountamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_salesorderhistorytaxdetail_KEY0_pk PRIMARY KEY (salesorderno,scheduleseqno,taxcode,taxclass)
- , CONSTRAINT rso_salesorderhistorytaxdetail_KEY0_check CHECK (salesorderno is not null and scheduleseqno is not null and taxcode is not null and taxclass IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_salesorderhistorytaxsummary(
- salesorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , overridden varchar(1)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , exemptsalesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_salesorderhistorytaxsummary_KEY0_pk PRIMARY KEY (salesorderno,scheduleseqno,taxcode)
- , CONSTRAINT rso_salesorderhistorytaxsummary_KEY0_check CHECK (salesorderno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_salesorderprint(
- printtype varchar(1)
- , salesorderno varchar(7)
- , warehousecode varchar(3)
- , jobno varchar(7)
- , invoiceno varchar(7)
- , CONSTRAINT rso_salesorderprint_KEY0_pk PRIMARY KEY (printtype,salesorderno)
- , CONSTRAINT rso_salesorderprint_KEY0_check CHECK (printtype is not null and salesorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_salesorderrecap(
- salesorderno varchar(7)
- , orderdate date
- , ordertype varchar(1)
- , ardivisionno varchar(2)
- , customerno varchar(20)
- , billtoname varchar(30)
- , orderstatus varchar(1)
- , shipexpiredate date
- , comment varchar(30)
- , lastinvoiceorderdate date
- , lastinvoiceorderno varchar(7)
- , rmano varchar(7)
- , crmcompanyid varchar(11)
- , crmcompanyname varchar(40)
- , ordertotal numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , billtodivisionno varchar(2)
- , billtocustomerno varchar(20)
- , CONSTRAINT rso_salesorderrecap_KEY0_pk PRIMARY KEY (salesorderno)
- , CONSTRAINT rso_salesorderrecap_KEY0_check CHECK (salesorderno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_salesordertaxdetail(
- salesorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , taxclass varchar(2)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , exemptsalesamt numeric(15,4)
- , taxablesalessubjtodisc numeric(15,4)
- , nontaxablesalessubjtodisc numeric(15,4)
- , taxrate numeric(15,4)
- , discountamt numeric(15,4)
- , CONSTRAINT rso_salesordertaxdetail_KEY0_pk PRIMARY KEY (salesorderno,scheduleseqno,taxcode,taxclass)
- , CONSTRAINT rso_salesordertaxdetail_KEY0_check CHECK (salesorderno is not null and scheduleseqno is not null and taxcode is not null and taxclass IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_salesordertaxsummary(
- salesorderno varchar(7)
- , scheduleseqno varchar(6)
- , taxcode varchar(15)
- , exemptionno varchar(20)
- , overridden varchar(1)
- , taxablesalesamt numeric(15,4)
- , nontaxablesalesamt numeric(15,4)
- , exemptsalesamt numeric(15,4)
- , taxablefreightamt numeric(15,4)
- , nontaxablefreightamt numeric(15,4)
- , taxabletaxamt numeric(15,4)
- , salestaxamt numeric(15,4)
- , CONSTRAINT rso_salesordertaxsummary_KEY0_pk PRIMARY KEY (salesorderno,scheduleseqno,taxcode)
- , CONSTRAINT rso_salesordertaxsummary_KEY0_check CHECK (salesorderno is not null and scheduleseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_shippingoptions(
- modulecode varchar(3)
- , promptforbackorder varchar(1)
- , displayinvoicetotal varchar(1)
- , defaultshipperid varchar(1)
- , shippingdocumenttoprint varchar(1)
- , printadditionalpackinglists varchar(1)
- , printshippingexcptnrpt varchar(1)
- , automaticallyprintshippingdocs varchar(1)
- , automaticallyincrementqty varchar(1)
- , autoincrementkeyword varchar(15)
- , nextpackagekeyword varchar(15)
- , shippingfunction varchar(1)
- , allowalternateitems varchar(1)
- , allowovershipment varchar(1)
- , allowchangestowhse varchar(1)
- , allowchangestoum varchar(1)
- , allowchangestoshipto varchar(1)
- , allowchangestoshipvia varchar(1)
- , allowchangestobackorderqty varchar(1)
- , allowentryoffrghtwght varchar(1)
- , allowcommentsonitemlines varchar(1)
- , ordertodisplaylines varchar(1)
- , shippingintegration varchar(1)
- , addfreighttocod varchar(1)
- , billingmethod varchar(1)
- , defaultdeclaredvalue varchar(1)
- , freighttoinvoicefrght varchar(1)
- , returnfocustoitemcode varchar(1)
- , fixeddeclaredvalue numeric(15,4)
- , cogsmarkuppercent numeric(15,4)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_shippingoptions_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rso_shippingoptions_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_shippingrateheader(
- shippingcode varchar(15)
- , shippingcodedesc varchar(30)
- , freightcalculationmethod varchar(1)
- , useshipzone varchar(1)
- , usezipcodeasshipzone varchar(1)
- , usepriorrangeofzipcodes varchar(1)
- , weightcalculation varchar(1)
- , linetype varchar(1)
- , ebmenabled varchar(1)
- , baseamt numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rso_shippingrateheader_KEY0_pk PRIMARY KEY (shippingcode)
- , CONSTRAINT rso_shippingrateheader_KEY0_check CHECK (shippingcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rso_shiptoaddress(
- ardivisionno varchar(2)
- , customerno varchar(20)
- , shiptocode varchar(4)
- , shiptoname varchar(30)
- , shiptoaddress1 varchar(30)
- , shiptoaddress2 varchar(30)
- , shiptoaddress3 varchar(30)
- , shiptocity varchar(20)
- , shiptostate varchar(2)
- , shiptozipcode varchar(10)
- , shiptocountrycode varchar(3)
- , telephoneno varchar(17)
- , telephoneext varchar(5)
- , faxno varchar(17)
- , batchfax varchar(1)
- , batchemail varchar(1)
- , emailaddress varchar(50)
- , contactcode varchar(10)
- , salespersondivisionno varchar(2)
- , salespersonno varchar(4)
- , warehousecode varchar(3)
- , taxschedule varchar(9)
- , residentialaddress varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , shipvia varchar(15)
- , CONSTRAINT rso_shiptoaddress_KEY0_pk PRIMARY KEY (ardivisionno,customerno,shiptocode)
- , CONSTRAINT rso_shiptoaddress_KEY0_check CHECK (ardivisionno is not null and customerno is not null and shiptocode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rso_shiptoaddress_KEY1_index ON sageimport.rso_shiptoaddress (shiptoaddress1,ardivisionno,customerno,shiptocode);
- CREATE INDEX rso_shiptoaddress_KEY2_index ON sageimport.rso_shiptoaddress (shiptoaddress2,ardivisionno,customerno,shiptocode);
- CREATE INDEX rso_shiptoaddress_KEY3_index ON sageimport.rso_shiptoaddress (shiptoaddress3,ardivisionno,customerno,shiptocode);
- CREATE INDEX rso_shiptoaddress_KEY4_index ON sageimport.rso_shiptoaddress (shiptozipcode,ardivisionno,customerno,shiptocode);
- CREATE TABLE sageimport.rsy_1099setup(
- formtype1099 varchar(1)
- , calendaryr varchar(4)
- , boxid varchar(3)
- , boxdesc varchar(50)
- , textdata varchar(1)
- , printonform varchar(1)
- , CONSTRAINT rsy_1099setup_KEY0_pk PRIMARY KEY (formtype1099,calendaryr,boxid)
- , CONSTRAINT rsy_1099setup_KEY0_check CHECK (formtype1099 is not null and calendaryr is not null and boxid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_1099setup_KEY1_index ON sageimport.rsy_1099setup (calendaryr,formtype1099,boxid);
- CREATE INDEX rsy_1099setup_KEY2_index ON sageimport.rsy_1099setup (textdata,formtype1099,calendaryr,boxid);
- CREATE TABLE sageimport.rsy_activation(
- modulecode varchar(3)
- , developercode varchar(3)
- , companykey varchar(10)
- , datalevel numeric(15,4)
- , sublevel numeric(15,4)
- , CONSTRAINT rsy_activation_KEY0_pk PRIMARY KEY (companykey,modulecode)
- , CONSTRAINT rsy_activation_KEY0_check CHECK (companykey is not null and modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_activationreq(
- modulecode varchar(3)
- , developercode varchar(3)
- , requiredmodulecode varchar(3)
- , requireddevelopercode varchar(3)
- , CONSTRAINT rsy_activationreq_KEY0_pk PRIMARY KEY (modulecode,requiredmodulecode)
- , CONSTRAINT rsy_activationreq_KEY0_check CHECK (modulecode is not null and requiredmodulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_activitytype(
- activitytype varchar(2)
- , activitygroup varchar(30)
- , activitydesc varchar(40)
- , modulecode varchar(3)
- , CONSTRAINT rsy_activitytype_KEY0_pk PRIMARY KEY (activitytype)
- , CONSTRAINT rsy_activitytype_KEY0_check CHECK (activitytype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_baseodbcsecurity(
- modulecode varchar(3)
- , tablename varchar(40)
- , fieldname varchar(40)
- , sequenceno varchar(12)
- , CONSTRAINT rsy_baseodbcsecurity_KEY0_pk PRIMARY KEY (modulecode,tablename,fieldname)
- , CONSTRAINT rsy_baseodbcsecurity_KEY0_check CHECK (modulecode is not null and tablename is not null and fieldname IS NOT NULL)
- , CONSTRAINT rsy_baseodbcsecurity_KEY1_unique UNIQUE (modulecode,tablename,sequenceno)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_batchmanager(
- modulecode varchar(3)
- , batchtype varchar(2)
- , batchdesc varchar(30)
- , dataentrytablename varchar(30)
- , restarttablename varchar(30)
- , keyexpression varchar(80)
- , businessobject varchar(40)
- , updateuitaskkey varchar(9)
- , totalheading01 varchar(20)
- , totalheading02 varchar(20)
- , totalheading03 varchar(20)
- , totalheading04 varchar(20)
- , totalheading05 varchar(20)
- , totalheading06 varchar(20)
- , totalheading07 varchar(20)
- , totalheading08 varchar(20)
- , totalheading09 varchar(20)
- , totalheading10 varchar(20)
- , totalcolumnsused numeric(15,4)
- , CONSTRAINT rsy_batchmanager_KEY0_pk PRIMARY KEY (modulecode,batchtype)
- , CONSTRAINT rsy_batchmanager_KEY0_check CHECK (modulecode is not null and batchtype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_batchmanager_KEY1_index ON sageimport.rsy_batchmanager (updateuitaskkey);
- CREATE TABLE sageimport.rsy_company(
- companykey varchar(10)
- , companycode varchar(3)
- , companyname varchar(50)
- , address1 varchar(35)
- , address2 varchar(35)
- , address3 varchar(35)
- , address4 varchar(35)
- , phone varchar(17)
- , fax varchar(17)
- , companyurl varchar(64)
- , federalid varchar(15)
- , stateid varchar(15)
- , alternatedirectory varchar(128)
- , alternatepayrolldirectory varchar(128)
- , externalaccess varchar(1)
- , autosetdate varchar(1)
- , promptfordate varchar(1)
- , restrictdate varchar(1)
- , printuserlogon varchar(1)
- , useworkstationdfltpntrstdrpt varchar(1)
- , useworkstationdfltpntrstdform varchar(1)
- , prefsdefaultcompany varchar(1)
- , allcapscity varchar(1)
- , creditcardenable varchar(1)
- , creditcardlog varchar(1)
- , creditcarddisplay varchar(1)
- , creditcardtranstimeout numeric(15,4)
- , creditcardbatchauthtrans varchar(1)
- , webreportsservername varchar(50)
- , webreportsaliasdirectory varchar(128)
- , webreportsdefaultsettings varchar(1)
- , companylevel numeric(15,4)
- , smtpserveraddressurl varchar(50)
- , smtpserverport numeric(15,4)
- , emailuserid varchar(30)
- , emailuseridpassword varchar(129)
- , emaillogindomain varchar(128)
- , use128bitencryption varchar(1)
- , usepdflockfile varchar(1)
- , autoinstallpdfconverter varchar(1)
- , emailaddress varchar(50)
- , defaultfaxprinter varchar(100)
- , faxcoverpage varchar(210)
- , tradename varchar(35)
- , enablewebservicesforcompany varchar(1)
- , displayinactivecustomersinale varchar(1)
- , displayinactivevendorsinale varchar(1)
- , creditcardvaultonlyid varchar(13)
- , creditcardvaultonlykey varchar(13)
- , smtpencryption varchar(1)
- , aesencryptionkey varchar(96)
- , enablebackgroundcolor varchar(1)
- , backgroundrgbred numeric(15,4)
- , backgroundrgbgreen numeric(15,4)
- , backgroundrgbblue numeric(15,4)
- , companyversion varchar(11)
- , themecode varchar(20)
- , CONSTRAINT rsy_company_KEY0_pk PRIMARY KEY (companykey)
- , CONSTRAINT rsy_company_KEY0_check CHECK (companykey IS NOT NULL)
- , CONSTRAINT rsy_company_KEY1_unique UNIQUE (companycode)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_console(
- workstationname varchar(30)
- , sessioncounter varchar(3)
- , taskkey varchar(9)
- , userkey varchar(10)
- , modulecode varchar(3)
- , programname varchar(30)
- , companycode varchar(3)
- , companykey varchar(10)
- , launcherhwnd numeric(15,4)
- , sessionhwnd numeric(15,4)
- , clienthwnd numeric(15,4)
- , sessionpid numeric(15,4)
- , CONSTRAINT rsy_console_KEY0_pk PRIMARY KEY (workstationname,sessioncounter)
- , CONSTRAINT rsy_console_KEY0_check CHECK (workstationname is not null and sessioncounter IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_conversiondriver(
- version varchar(11)
- , conversiontype varchar(30)
- , tablename varchar(50)
- , conversionid varchar(6)
- , developercode varchar(3)
- , modulecode varchar(3)
- , moduleconversionorder varchar(5)
- , executionorder varchar(14)
- , columnname varchar(50)
- , referencekey varchar(150)
- , ignorerecord varchar(1)
- , conversionlogic text
- , columnvalue text
- , columncondition text
- , selectwhereclause text
- , conversionnotes text
- , enhancementcode varchar(140)
- , sagedesignation varchar(140)
- , datecreated date
- , timecreated varchar(8)
- , workstationcreated varchar(30)
- , dateupdated date
- , timeupdated varchar(8)
- , workstationupdated varchar(30)
- , CONSTRAINT rsy_conversiondriver_KEY0_pk PRIMARY KEY (version,conversiontype,tablename,conversionid,developercode)
- , CONSTRAINT rsy_conversiondriver_KEY0_check CHECK (version is not null and conversiontype is not null and tablename is not null and conversionid is not null and developercode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_conversiondriver_KEY1_index ON sageimport.rsy_conversiondriver (modulecode,version,conversiontype,tablename,conversionid,developercode);
- CREATE INDEX rsy_conversiondriver_KEY2_index ON sageimport.rsy_conversiondriver (conversiontype,version,moduleconversionorder,modulecode,executionorder,tablename,conversionid,developercode);
- CREATE INDEX rsy_conversiondriver_KEY3_index ON sageimport.rsy_conversiondriver (conversiontype,version,tablename,executionorder,conversionid,developercode);
- CREATE INDEX rsy_conversiondriver_KEY4_index ON sageimport.rsy_conversiondriver (conversiontype,tablename,version,conversionid,developercode);
- CREATE TABLE sageimport.rsy_conversionhistory(
- version varchar(11)
- , conversiontype varchar(30)
- , tablename varchar(50)
- , conversionid varchar(6)
- , developercode varchar(3)
- , conversionnotes text
- , ignorerecord varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rsy_conversionhistory_KEY0_pk PRIMARY KEY (version,conversiontype,tablename,conversionid,developercode)
- , CONSTRAINT rsy_conversionhistory_KEY0_check CHECK (version is not null and conversiontype is not null and tablename is not null and conversionid is not null and developercode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_country(
- countrycode varchar(3)
- , countryname varchar(30)
- , phonecode varchar(3)
- , alternatecountrycode varchar(2)
- , isocountrycode varchar(3)
- , statecoderequired varchar(1)
- , CONSTRAINT rsy_country_KEY0_pk PRIMARY KEY (countrycode)
- , CONSTRAINT rsy_country_KEY0_check CHECK (countrycode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_country_KEY1_index ON sageimport.rsy_country (countryname);
- CREATE INDEX rsy_country_KEY2_index ON sageimport.rsy_country (alternatecountrycode);
- CREATE TABLE sageimport.rsy_deferred(
- modulecode varchar(3)
- , userlogon varchar(60)
- , companycode varchar(3)
- , filename varchar(12)
- , title varchar(48)
- , datecreated date
- , timecreated varchar(10)
- , printername varchar(100)
- , copies numeric(15,4)
- , totalpages numeric(15,4)
- , pagefrom numeric(15,4)
- , pagethru numeric(15,4)
- , ccollate varchar(1)
- , secured varchar(1)
- , purgeafterprinting varchar(1)
- , purgeafterprintingorigcopy varchar(1)
- , auditregister varchar(1)
- , CONSTRAINT rsy_deferred_KEY0_pk PRIMARY KEY (modulecode,userlogon,companycode,filename)
- , CONSTRAINT rsy_deferred_KEY0_check CHECK (modulecode is not null and userlogon is not null and companycode is not null and filename IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_deferred_KEY1_index ON sageimport.rsy_deferred (userlogon,modulecode,companycode,filename);
- CREATE TABLE sageimport.rsy_developer(
- developercode varchar(3)
- , developername varchar(50)
- , CONSTRAINT rsy_developer_KEY0_pk PRIMARY KEY (developercode)
- , CONSTRAINT rsy_developer_KEY0_check CHECK (developercode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_dictionaryconversionhist(
- version varchar(11)
- , conversiontype varchar(30)
- , tablename varchar(50)
- , conversionid varchar(6)
- , developercode varchar(3)
- , conversionnotes text
- , ignorerecord varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , CONSTRAINT rsy_dictionaryconversionhist_KEY0_pk PRIMARY KEY (version,conversiontype,tablename,conversionid,developercode)
- , CONSTRAINT rsy_dictionaryconversionhist_KEY0_check CHECK (version is not null and conversiontype is not null and tablename is not null and conversionid is not null and developercode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_eisviewmaster(
- developercode varchar(3)
- , modulecode varchar(3)
- , viewid varchar(3)
- , viewdescription varchar(40)
- , viewtemplate varchar(50)
- , viewsize varchar(1)
- , viewvalidation varchar(100)
- , optionname1 varchar(30)
- , optiontype1 varchar(1)
- , optionvalidation1 text
- , optiondefaultvalue1 text
- , optionname2 varchar(30)
- , optiontype2 varchar(1)
- , optionvalidation2 text
- , optiondefaultvalue2 text
- , linkdescription1 varchar(100)
- , linktype1 varchar(1)
- , linkvalue1 text
- , linkdescription2 varchar(100)
- , linktype2 varchar(1)
- , linkvalue2 text
- , linkdescription3 varchar(100)
- , linktype3 varchar(1)
- , linkvalue3 text
- , linkdescription4 varchar(100)
- , linktype4 varchar(1)
- , linkvalue4 text
- , linkdescription5 varchar(100)
- , linktype5 varchar(1)
- , linkvalue5 text
- , numberofoptions numeric(15,4)
- , numberoflinks numeric(15,4)
- , CONSTRAINT rsy_eisviewmaster_KEY0_pk PRIMARY KEY (developercode,modulecode,viewid)
- , CONSTRAINT rsy_eisviewmaster_KEY0_check CHECK (developercode is not null and modulecode is not null and viewid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_eisviewmaster_KEY1_index ON sageimport.rsy_eisviewmaster (viewtemplate,developercode,modulecode,viewid);
- CREATE TABLE sageimport.rsy_embeddediosettings(
- filename varchar(30)
- , subkey varchar(10)
- , setting text
- , CONSTRAINT rsy_embeddediosettings_KEY0_pk PRIMARY KEY (filename,subkey)
- , CONSTRAINT rsy_embeddediosettings_KEY0_check CHECK (filename is not null and subkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_exportlink(
- primarytable varchar(30)
- , linktable varchar(30)
- , sequenceno varchar(2)
- , userdefined varchar(1)
- , primarykeyexpression text
- , modulecode varchar(3)
- , secondarylinktable varchar(30)
- , secondarykeyexpr text
- , CONSTRAINT rsy_exportlink_KEY0_pk PRIMARY KEY (primarytable,linktable,sequenceno)
- , CONSTRAINT rsy_exportlink_KEY0_check CHECK (primarytable is not null and linktable is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_fieldmapping(
- crmtable varchar(30)
- , crmfield varchar(30)
- , mastable varchar(30)
- , masfield varchar(30)
- , specialformatting varchar(1)
- , modulecode varchar(3)
- , CONSTRAINT rsy_fieldmapping_KEY0_pk PRIMARY KEY (crmtable,mastable,crmfield)
- , CONSTRAINT rsy_fieldmapping_KEY0_check CHECK (crmtable is not null and mastable is not null and crmfield IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_fieldmapping_KEY1_index ON sageimport.rsy_fieldmapping (mastable,crmtable,masfield);
- CREATE TABLE sageimport.rsy_financialreport(
- reportname varchar(30)
- , reporttitle varchar(50)
- , reporttype varchar(1)
- , reportgroup varchar(20)
- , summarytype varchar(1)
- , columnformat varchar(1)
- , reportperiod varchar(1)
- , trendperiodtype varchar(1)
- , trendfollowingperiod numeric(15,4)
- , trendfirstperiod varchar(1)
- , trendlastperiod varchar(1)
- , budgetcode varchar(10)
- , decimalplaces varchar(1)
- , decimalseparator varchar(1)
- , negativevalueformat varchar(1)
- , thousandseparator varchar(1)
- , percentdecimalplaces varchar(1)
- , percentsymbol varchar(1)
- , roundingfactor varchar(1)
- , printaccountno varchar(1)
- , dollarsigntype varchar(1)
- , printzeroacct varchar(1)
- , liabilitynewpage varchar(1)
- , useruntimeacctsel varchar(1)
- , usecondensedformat varchar(1)
- , useruntimetrendopt varchar(1)
- , footnoteoption varchar(1)
- , centerfootnote varchar(1)
- , useruntimefootnote varchar(1)
- , permanentrecord varchar(1)
- , printuserkey varchar(10)
- , footnotetext text
- , firstamountonly varchar(1)
- , CONSTRAINT rsy_financialreport_KEY0_pk PRIMARY KEY (reportname)
- , CONSTRAINT rsy_financialreport_KEY0_check CHECK (reportname IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_financialreport_KEY1_index ON sageimport.rsy_financialreport (reportgroup,reportname);
- CREATE TABLE sageimport.rsy_financialreportcolumn(
- reporttype varchar(1)
- , columnformat varchar(1)
- , reportperiod varchar(1)
- , templateid varchar(30)
- , column1title1 varchar(100)
- , column1title2 varchar(100)
- , column1data varchar(100)
- , column1calcformula varchar(100)
- , column2title1 varchar(100)
- , column2title2 varchar(100)
- , column2data varchar(100)
- , column2calcformula varchar(100)
- , column3title1 varchar(100)
- , column3title2 varchar(100)
- , column3data varchar(100)
- , column3calcformula varchar(100)
- , column4title1 varchar(100)
- , column4title2 varchar(100)
- , column4data varchar(100)
- , column4calcformula varchar(100)
- , column5title1 varchar(100)
- , column5title2 varchar(100)
- , column5data varchar(100)
- , column5calcformula varchar(100)
- , column6title1 varchar(100)
- , column6title2 varchar(100)
- , column6data varchar(100)
- , column6calcformula varchar(100)
- , column7title1 varchar(100)
- , column7title2 varchar(100)
- , column7data varchar(100)
- , column7calcformula varchar(100)
- , column8title1 varchar(100)
- , column8title2 varchar(100)
- , column8data varchar(100)
- , column8calcformula varchar(100)
- , column9title1 varchar(100)
- , column9title2 varchar(100)
- , column9data varchar(100)
- , column9calcformula varchar(100)
- , column10title1 varchar(100)
- , column10title2 varchar(100)
- , column10data varchar(100)
- , column10calcformula varchar(100)
- , column11title1 varchar(100)
- , column11title2 varchar(100)
- , column11data varchar(100)
- , column11calcformula varchar(100)
- , column12title1 varchar(100)
- , column12title2 varchar(100)
- , column12data varchar(100)
- , column12calcformula varchar(100)
- , column13title1 varchar(100)
- , column13title2 varchar(100)
- , column13data varchar(100)
- , column13calcformula varchar(100)
- , column14title1 varchar(100)
- , column14title2 varchar(100)
- , column14data varchar(100)
- , column14calcformula varchar(100)
- , CONSTRAINT rsy_financialreportcolumn_KEY0_pk PRIMARY KEY (reporttype,columnformat,reportperiod)
- , CONSTRAINT rsy_financialreportcolumn_KEY0_check CHECK (reporttype is not null and columnformat is not null and reportperiod IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_financialterminology(
- financialtermcode varchar(6)
- , financialtermdefaultdesc varchar(40)
- , CONSTRAINT rsy_financialterminology_KEY0_pk PRIMARY KEY (financialtermcode)
- , CONSTRAINT rsy_financialterminology_KEY0_check CHECK (financialtermcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_formsefilingversion(
- modulecode varchar(3)
- , aatrixversion varchar(10)
- , sourcevendor varchar(50)
- , sourceprogram varchar(30)
- , registrationurl text
- , username varchar(20)
- , password varchar(21)
- , lastregistrationdate varchar(9)
- , proxyaddress text
- , proxyusername varchar(64)
- , proxypassword varchar(64)
- , CONSTRAINT rsy_formsefilingversion_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rsy_formsefilingversion_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_griddefinition(
- formid varchar(30)
- , gridname varchar(30)
- , companycode varchar(3)
- , userkey varchar(10)
- , workstationname varchar(30)
- , level varchar(1)
- , seq varchar(3)
- , modulecode varchar(3)
- , iolvar varchar(50)
- , aliasvar varchar(50)
- , moveable varchar(1)
- , lockfld varchar(1)
- , coldesc varchar(40)
- , celltype varchar(30)
- , hideable varchar(1)
- , hidden varchar(1)
- , frozen varchar(1)
- , tag text
- , gridloc varchar(1)
- , formatmask varchar(25)
- , class varchar(30)
- , hidegroups varchar(75)
- , othergroups varchar(75)
- , implieddecimal varchar(1)
- , secondarygridcoldesc varchar(40)
- , enhancementcode varchar(140)
- , colwidth numeric(15,4)
- , autocomplete varchar(64)
- , CONSTRAINT rsy_griddefinition_KEY0_pk PRIMARY KEY (formid,gridname,companycode,userkey,workstationname,level,seq)
- , CONSTRAINT rsy_griddefinition_KEY0_check CHECK (formid is not null and gridname is not null and companycode is not null and userkey is not null and workstationname is not null and level is not null and seq IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_griddefinition_KEY1_index ON sageimport.rsy_griddefinition (aliasvar,formid,gridname,companycode,userkey,workstationname,level);
- CREATE TABLE sageimport.rsy_lastformused(
- modulecode varchar(3)
- , companykey varchar(10)
- , userkey varchar(10)
- , workstationname varchar(30)
- , reportid varchar(30)
- , reportsetting varchar(20)
- , invoicehistorytype varchar(1)
- , CONSTRAINT rsy_lastformused_KEY0_pk PRIMARY KEY (modulecode,companykey,userkey,reportid,workstationname)
- , CONSTRAINT rsy_lastformused_KEY0_check CHECK (modulecode is not null and companykey is not null and userkey is not null and reportid is not null and workstationname IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_lastformused_KEY1_index ON sageimport.rsy_lastformused (modulecode,companykey,workstationname,reportid);
- CREATE TABLE sageimport.rsy_lockfiles(
- tablename varchar(127)
- , programlist text
- , modulecode varchar(3)
- , developercode varchar(3)
- , CONSTRAINT rsy_lockfiles_KEY0_pk PRIMARY KEY (tablename)
- , CONSTRAINT rsy_lockfiles_KEY0_check CHECK (tablename IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_lockfiles_KEY1_index ON sageimport.rsy_lockfiles (modulecode,developercode,tablename);
- CREATE TABLE sageimport.rsy_memodefault(
- modulecode varchar(3)
- , memotype varchar(2)
- , memofunction varchar(30)
- , functiondesc varchar(30)
- , memooption varchar(1)
- , autodisplay varchar(1)
- , CONSTRAINT rsy_memodefault_KEY0_pk PRIMARY KEY (modulecode,memotype,memofunction)
- , CONSTRAINT rsy_memodefault_KEY0_check CHECK (modulecode is not null and memotype is not null and memofunction IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_memomanager(
- modulecode varchar(3)
- , memotype varchar(2)
- , memotypedesc varchar(30)
- , memotable varchar(30)
- , memosettingstable varchar(30)
- , memokeyname varchar(30)
- , memokeyfieldname varchar(128)
- , memokeyfielddisplayname varchar(30)
- , memokeytable varchar(30)
- , memokeylookupexpression varchar(128)
- , memokeylookupcode varchar(30)
- , memokeydescfield varchar(30)
- , specialmaskingrequired varchar(1)
- , printtask varchar(50)
- , memokeyfieldlookup varchar(30)
- , allowtomaintainflowedmemo varchar(1)
- , developercode varchar(3)
- , memokeylength numeric(15,4)
- , CONSTRAINT rsy_memomanager_KEY0_pk PRIMARY KEY (modulecode,memotype)
- , CONSTRAINT rsy_memomanager_KEY0_check CHECK (modulecode is not null and memotype IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_memorelationship(
- sourcemodulecode varchar(3)
- , sourcememotype varchar(2)
- , context varchar(64)
- , developercode varchar(3)
- , destmodulecode varchar(3)
- , destmemotype varchar(2)
- , flownewrecord varchar(1)
- , CONSTRAINT rsy_memorelationship_KEY0_pk PRIMARY KEY (sourcemodulecode,sourcememotype,context)
- , CONSTRAINT rsy_memorelationship_KEY0_check CHECK (sourcemodulecode is not null and sourcememotype is not null and context IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_menu(
- modulecode varchar(3)
- , taskkey varchar(9)
- , sequence varchar(3)
- , modulenumber varchar(2)
- , developercode varchar(3)
- , position varchar(10)
- , menuname varchar(40)
- , menudescription varchar(50)
- , parentmodulecode varchar(3)
- , parenttaskkey varchar(9)
- , parentsequence varchar(3)
- , parentposition varchar(10)
- , checked varchar(1)
- , CONSTRAINT rsy_menu_KEY0_pk PRIMARY KEY (modulecode,taskkey,sequence)
- , CONSTRAINT rsy_menu_KEY0_check CHECK (modulecode is not null and taskkey is not null and sequence IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_menu_KEY1_index ON sageimport.rsy_menu (position,modulecode,taskkey,sequence);
- CREATE INDEX rsy_menu_KEY2_index ON sageimport.rsy_menu (parentposition,parentmodulecode,parenttaskkey,parentsequence);
- CREATE INDEX rsy_menu_KEY3_index ON sageimport.rsy_menu (modulecode,sequence,menuname);
- CREATE INDEX rsy_menu_KEY4_index ON sageimport.rsy_menu (parentmodulecode,parenttaskkey,position);
- CREATE INDEX rsy_menu_KEY5_index ON sageimport.rsy_menu (taskkey,sequence,modulecode);
- CREATE TABLE sageimport.rsy_message(
- msgid varchar(64)
- , messagetext text
- , CONSTRAINT rsy_message_KEY0_pk PRIMARY KEY (msgid)
- , CONSTRAINT rsy_message_KEY0_check CHECK (msgid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_message_KEY1_index ON sageimport.rsy_message (messagetext);
- CREATE TABLE sageimport.rsy_module(
- modulecode varchar(3)
- , modulename varchar(50)
- , developercode varchar(3)
- , modulelevel numeric(15,4)
- , conversionlevel numeric(15,4)
- , everest varchar(1)
- , partnumber varchar(10)
- , buildnumber numeric(15,4)
- , releasedate date
- , listorder varchar(5)
- , conversionorder varchar(5)
- , activationorder varchar(5)
- , registrationrequired varchar(1)
- , activationskip varchar(1)
- , expirationdate date
- , modulenumber varchar(2)
- , allowuninstall varchar(1)
- , startupscreen varchar(1)
- , nooptionsfile varchar(1)
- , allowbatches varchar(1)
- , securitychecksum varchar(10)
- , nocustomizerallowed varchar(1)
- , notrialperiod varchar(1)
- , nocompanydata varchar(1)
- , sublevel numeric(15,4)
- , servicepack numeric(15,4)
- , relationaldatabasecompliant varchar(1)
- , CONSTRAINT rsy_module_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rsy_module_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_module_KEY1_index ON sageimport.rsy_module (conversionorder,modulecode);
- CREATE INDEX rsy_module_KEY2_index ON sageimport.rsy_module (activationorder,modulecode);
- CREATE INDEX rsy_module_KEY3_index ON sageimport.rsy_module (listorder,modulecode);
- CREATE INDEX rsy_module_KEY4_index ON sageimport.rsy_module (modulenumber);
- CREATE INDEX rsy_module_KEY5_index ON sageimport.rsy_module (modulename);
- CREATE TABLE sageimport.rsy_moduledate(
- userkey varchar(10)
- , companykey varchar(10)
- , modulecode varchar(3)
- , lastdate date
- , CONSTRAINT rsy_moduledate_KEY0_pk PRIMARY KEY (userkey,companykey,modulecode)
- , CONSTRAINT rsy_moduledate_KEY0_check CHECK (userkey is not null and companykey is not null and modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_multipartform(
- companykey varchar(10)
- , reportid varchar(30)
- , reportsetting varchar(20)
- , sequenceno varchar(14)
- , printshadow varchar(1)
- , shadowtext varchar(10)
- , printer varchar(80)
- , collated varchar(1)
- , numberofcopies numeric(15,4)
- , paperorientation numeric(15,4)
- , papersize numeric(15,4)
- , papersource numeric(15,4)
- , printerduplex numeric(15,4)
- , CONSTRAINT rsy_multipartform_KEY0_pk PRIMARY KEY (reportid,reportsetting,companykey,sequenceno)
- , CONSTRAINT rsy_multipartform_KEY0_check CHECK (reportid is not null and reportsetting is not null and companykey is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_payrollefilingmapping(
- title varchar(40)
- , pimidentifier varchar(5)
- , description varchar(50)
- , taxtype varchar(5)
- , statecode varchar(2)
- , otherinformation varchar(30)
- , w2localitytaxtypecode varchar(1)
- , CONSTRAINT rsy_payrollefilingmapping_KEY0_pk PRIMARY KEY (statecode,pimidentifier)
- , CONSTRAINT rsy_payrollefilingmapping_KEY0_check CHECK (statecode is not null and pimidentifier IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_periodendreport(
- modulecode varchar(3)
- , companykey varchar(10)
- , sequenceno varchar(14)
- , reportid varchar(30)
- , reportsetting varchar(20)
- , savedprinter varchar(1)
- , print varchar(1)
- , numberofcopies numeric(15,4)
- , CONSTRAINT rsy_periodendreport_KEY0_pk PRIMARY KEY (modulecode,companykey,sequenceno)
- , CONSTRAINT rsy_periodendreport_KEY0_check CHECK (modulecode is not null and companykey is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_periodendreport_KEY1_index ON sageimport.rsy_periodendreport (modulecode,companykey,reportid,reportsetting);
- CREATE TABLE sageimport.rsy_personalize(
- recordflag varchar(1)
- , librarypath varchar(72)
- , libraryform varchar(12)
- , userkey varchar(10)
- , workstationname varchar(30)
- , timestamp varchar(16)
- , ctlinfo varchar(16)
- , maximized numeric(15,4)
- , ccolumn numeric(15,4)
- , rrow numeric(15,4)
- , width numeric(15,4)
- , height numeric(15,4)
- , CONSTRAINT rsy_personalize_KEY0_pk PRIMARY KEY (recordflag,librarypath,libraryform,userkey,workstationname)
- , CONSTRAINT rsy_personalize_KEY0_check CHECK (recordflag is not null and librarypath is not null and libraryform is not null and userkey is not null and workstationname IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_personalizeale(
- recordflag varchar(1)
- , userkey varchar(10)
- , workstationname varchar(30)
- , timestamp varchar(16)
- , ctlinfo varchar(16)
- , company varchar(3)
- , lookup varchar(20)
- , view varchar(2)
- , maximized numeric(15,4)
- , ccolumn numeric(15,4)
- , rrow numeric(15,4)
- , width numeric(15,4)
- , height numeric(15,4)
- , CONSTRAINT rsy_personalizeale_KEY0_pk PRIMARY KEY (recordflag,userkey,workstationname,company,lookup,view)
- , CONSTRAINT rsy_personalizeale_KEY0_check CHECK (recordflag is not null and userkey is not null and workstationname is not null and company is not null and lookup is not null and view IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_popupitem(
- itemid varchar(10)
- , modulecode varchar(3)
- , itemdesc varchar(75)
- , grouping varchar(10)
- , preinit varchar(1)
- , preinitexpr varchar(128)
- , onselect varchar(1)
- , onselectexpr varchar(128)
- , checksecurity varchar(1)
- , menuitemdesc varchar(50)
- , enhancementcode varchar(140)
- , CONSTRAINT rsy_popupitem_KEY0_pk PRIMARY KEY (itemid)
- , CONSTRAINT rsy_popupitem_KEY0_check CHECK (itemid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_popupitem_KEY1_index ON sageimport.rsy_popupitem (itemdesc,itemid);
- CREATE INDEX rsy_popupitem_KEY2_index ON sageimport.rsy_popupitem (menuitemdesc,itemid);
- CREATE TABLE sageimport.rsy_popupmenu(
- menuid varchar(10)
- , menudesc varchar(50)
- , textdesc varchar(75)
- , linked varchar(1)
- , enhancementcode varchar(140)
- , CONSTRAINT rsy_popupmenu_KEY0_pk PRIMARY KEY (menuid)
- , CONSTRAINT rsy_popupmenu_KEY0_check CHECK (menuid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_popupmenu_KEY1_index ON sageimport.rsy_popupmenu (menudesc,menuid);
- CREATE INDEX rsy_popupmenu_KEY2_index ON sageimport.rsy_popupmenu (textdesc,menuid);
- CREATE TABLE sageimport.rsy_popupmenuitem(
- menuid varchar(10)
- , companykey varchar(10)
- , userkey varchar(10)
- , sequenceno varchar(5)
- , itemid varchar(10)
- , linked varchar(1)
- , linkedmenuid varchar(10)
- , enhancementcode varchar(140)
- , CONSTRAINT rsy_popupmenuitem_KEY0_pk PRIMARY KEY (menuid,companykey,userkey,sequenceno)
- , CONSTRAINT rsy_popupmenuitem_KEY0_check CHECK (menuid is not null and companykey is not null and userkey is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_popupmenuitem_KEY1_index ON sageimport.rsy_popupmenuitem (itemid);
- CREATE INDEX rsy_popupmenuitem_KEY2_index ON sageimport.rsy_popupmenuitem (linkedmenuid);
- CREATE TABLE sageimport.rsy_popupxref(
- identity varchar(10)
- , menuid varchar(10)
- , library varchar(45)
- , form varchar(12)
- , panel varchar(12)
- , dataclass varchar(30)
- , control varchar(30)
- , gridclass varchar(30)
- , enhancementcode varchar(140)
- , modulecode varchar(3)
- , CONSTRAINT rsy_popupxref_KEY0_pk PRIMARY KEY (identity)
- , CONSTRAINT rsy_popupxref_KEY0_check CHECK (identity IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_popupxref_KEY1_index ON sageimport.rsy_popupxref (menuid,identity);
- CREATE INDEX rsy_popupxref_KEY2_index ON sageimport.rsy_popupxref (library,form,panel,dataclass,gridclass,control);
- CREATE INDEX rsy_popupxref_KEY3_index ON sageimport.rsy_popupxref (gridclass,identity);
- CREATE INDEX rsy_popupxref_KEY4_index ON sageimport.rsy_popupxref (dataclass,identity);
- CREATE INDEX rsy_popupxref_KEY5_index ON sageimport.rsy_popupxref (control,identity);
- CREATE INDEX rsy_popupxref_KEY6_index ON sageimport.rsy_popupxref (modulecode,identity);
- CREATE TABLE sageimport.rsy_premigrationcompany(
- companycode varchar(3)
- , companyname varchar(50)
- , datadirectory varchar(128)
- , payrolldirectory varchar(128)
- , CONSTRAINT rsy_premigrationcompany_KEY0_pk PRIMARY KEY (companycode)
- , CONSTRAINT rsy_premigrationcompany_KEY0_check CHECK (companycode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_premigrationitemcode(
- itemcode varchar(30)
- , itemcodedesc varchar(30)
- , CONSTRAINT rsy_premigrationitemcode_KEY0_pk PRIMARY KEY (itemcode)
- , CONSTRAINT rsy_premigrationitemcode_KEY0_check CHECK (itemcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_premigrationwarehouse(
- warehousecode varchar(3)
- , warehousedesc varchar(30)
- , CONSTRAINT rsy_premigrationwarehouse_KEY0_pk PRIMARY KEY (warehousecode)
- , CONSTRAINT rsy_premigrationwarehouse_KEY0_check CHECK (warehousecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_processflows(
- processflow varchar(24)
- , menudesc varchar(40)
- , modulecode varchar(3)
- , allowmodification varchar(1)
- , processflowfile varchar(128)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rsy_processflows_KEY0_pk PRIMARY KEY (processflow)
- , CONSTRAINT rsy_processflows_KEY0_check CHECK (processflow IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_processflows_KEY1_index ON sageimport.rsy_processflows (modulecode,menudesc,processflow);
- CREATE TABLE sageimport.rsy_reportmanagerformat(
- modulecode varchar(3)
- , companykey varchar(10)
- , reportid varchar(30)
- , reportsetting varchar(20)
- , ttype varchar(1)
- , formatdesc varchar(40)
- , enablefax varchar(1)
- , faxsubject varchar(60)
- , faxusecoverpagefile varchar(1)
- , faxcoverpagetext text
- , faxcoverpagefile varchar(136)
- , faxbillcode varchar(30)
- , faxkeywords varchar(60)
- , faxhold varchar(1)
- , faxusecreditcard varchar(1)
- , faxsendoffpeak varchar(1)
- , faxusehighresolution varchar(1)
- , faxprinter varchar(60)
- , faxpriority numeric(15,4)
- , CONSTRAINT rsy_reportmanagerformat_KEY0_pk PRIMARY KEY (modulecode,companykey,reportid,reportsetting)
- , CONSTRAINT rsy_reportmanagerformat_KEY0_check CHECK (modulecode is not null and companykey is not null and reportid is not null and reportsetting IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportmanagermaster(
- modulecode varchar(3)
- , developercode varchar(3)
- , reportid varchar(30)
- , reportdesc varchar(40)
- , ttype varchar(1)
- , batchfaxingavailable varchar(1)
- , CONSTRAINT rsy_reportmanagermaster_KEY0_pk PRIMARY KEY (modulecode,developercode,reportid)
- , CONSTRAINT rsy_reportmanagermaster_KEY0_check CHECK (modulecode is not null and developercode is not null and reportid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_reportmanagermaster_KEY1_index ON sageimport.rsy_reportmanagermaster (reportdesc,modulecode,developercode,reportid);
- CREATE INDEX rsy_reportmanagermaster_KEY2_index ON sageimport.rsy_reportmanagermaster (modulecode,reportid);
- CREATE TABLE sageimport.rsy_reportmanagertemplate(
- modulecode varchar(3)
- , developercode varchar(3)
- , reportid varchar(30)
- , templatedesc varchar(50)
- , rptname varchar(50)
- , CONSTRAINT rsy_reportmanagertemplate_KEY0_pk PRIMARY KEY (modulecode,developercode,reportid,templatedesc)
- , CONSTRAINT rsy_reportmanagertemplate_KEY0_check CHECK (modulecode is not null and developercode is not null and reportid is not null and templatedesc IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_reportmanagertemplate_KEY1_index ON sageimport.rsy_reportmanagertemplate (modulecode,reportid,developercode,rptname);
- CREATE TABLE sageimport.rsy_reportoption(
- modulecode varchar(3)
- , companykey varchar(10)
- , reportid varchar(30)
- , reportsetting varchar(20)
- , optionsstring text
- , CONSTRAINT rsy_reportoption_KEY0_pk PRIMARY KEY (modulecode,companykey,reportid,reportsetting)
- , CONSTRAINT rsy_reportoption_KEY0_check CHECK (modulecode is not null and companykey is not null and reportid is not null and reportsetting IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportselection(
- modulecode varchar(3)
- , companykey varchar(10)
- , reportid varchar(30)
- , reportsetting varchar(20)
- , rowkey varchar(5)
- , selectfield varchar(50)
- , selectfieldvalue varchar(50)
- , keyreference varchar(50)
- , tag varchar(200)
- , operand varchar(1)
- , value1 text
- , value2 varchar(200)
- , CONSTRAINT rsy_reportselection_KEY0_pk PRIMARY KEY (modulecode,companykey,reportid,reportsetting,rowkey)
- , CONSTRAINT rsy_reportselection_KEY0_check CHECK (modulecode is not null and companykey is not null and reportid is not null and reportsetting is not null and rowkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportsetting(
- modulecode varchar(3)
- , companykey varchar(10)
- , reportid varchar(30)
- , reportsetting varchar(20)
- , defaultreport varchar(1)
- , description varchar(60)
- , settingoptionstype varchar(1)
- , printreportsettings varchar(1)
- , printername varchar(100)
- , sortreportby varchar(1)
- , pagebreak varchar(1)
- , collated varchar(1)
- , threeholepunch varchar(1)
- , multipart varchar(1)
- , templatedesc varchar(50)
- , line1message varchar(150)
- , line2message varchar(150)
- , officetemplatename varchar(40)
- , useofficetemplate varchar(1)
- , numberofcopies numeric(15,4)
- , paperorientation numeric(15,4)
- , papersize numeric(15,4)
- , papersource numeric(15,4)
- , printerduplex numeric(15,4)
- , reportpreviewzoom numeric(15,4)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , workstationname varchar(30)
- , CONSTRAINT rsy_reportsetting_KEY0_pk PRIMARY KEY (modulecode,companykey,reportid,reportsetting,workstationname)
- , CONSTRAINT rsy_reportsetting_KEY0_check CHECK (modulecode is not null and companykey is not null and reportid is not null and reportsetting is not null and workstationname IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_reportsetting_KEY1_index ON sageimport.rsy_reportsetting (defaultreport,usercreatedkey,modulecode,companykey,reportid,reportsetting,workstationname);
- CREATE INDEX rsy_reportsetting_KEY2_index ON sageimport.rsy_reportsetting (defaultreport,modulecode,companykey,reportid,reportsetting,workstationname);
- CREATE TABLE sageimport.rsy_reportwizardexpressions(
- reportid varchar(30)
- , ttype varchar(1)
- , expressionid varchar(8)
- , columnname varchar(127)
- , caption varchar(30)
- , justification varchar(1)
- , length varchar(3)
- , datatype varchar(1)
- , calculation varchar(3)
- , ggroup varchar(1)
- , decimalplaces varchar(1)
- , negativevalues varchar(1)
- , decimalseparator varchar(1)
- , thousandsseparator varchar(1)
- , stringmask varchar(64)
- , cangrow varchar(1)
- , expression text
- , linktable varchar(30)
- , enabled varchar(1)
- , originalfield varchar(1)
- , itm_src_id varchar(32)
- , itm_name varchar(30)
- , itm_fld_seq varchar(4)
- , itm_class varchar(24)
- , vue_seq varchar(4)
- , vue_path varchar(240)
- , CONSTRAINT rsy_reportwizardexpressions_KEY0_pk PRIMARY KEY (reportid,ttype,expressionid)
- , CONSTRAINT rsy_reportwizardexpressions_KEY0_check CHECK (reportid is not null and ttype is not null and expressionid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_reportwizardexpressions_KEY1_index ON sageimport.rsy_reportwizardexpressions (reportid,ttype,columnname);
- CREATE INDEX rsy_reportwizardexpressions_KEY2_index ON sageimport.rsy_reportwizardexpressions (reportid,expressionid);
- CREATE INDEX rsy_reportwizardexpressions_KEY3_index ON sageimport.rsy_reportwizardexpressions (reportid,ggroup);
- CREATE INDEX rsy_reportwizardexpressions_KEY4_index ON sageimport.rsy_reportwizardexpressions (reportid,itm_name);
- CREATE TABLE sageimport.rsy_reportwizardfields(
- reportid varchar(30)
- , fieldid varchar(8)
- , expressionid varchar(8)
- , CONSTRAINT rsy_reportwizardfields_KEY0_pk PRIMARY KEY (reportid,fieldid)
- , CONSTRAINT rsy_reportwizardfields_KEY0_check CHECK (reportid is not null and fieldid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportwizardfilters(
- reportid varchar(30)
- , filterid varchar(8)
- , expressionid varchar(8)
- , operand varchar(1)
- , value1 varchar(30)
- , value2 varchar(30)
- , runtime varchar(1)
- , CONSTRAINT rsy_reportwizardfilters_KEY0_pk PRIMARY KEY (reportid,filterid)
- , CONSTRAINT rsy_reportwizardfilters_KEY0_check CHECK (reportid is not null and filterid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportwizardgroups(
- reportid varchar(30)
- , groupid varchar(8)
- , sortid varchar(8)
- , sequence varchar(3)
- , expressionid varchar(8)
- , location varchar(1)
- , calculation varchar(3)
- , grouppath text
- , CONSTRAINT rsy_reportwizardgroups_KEY0_pk PRIMARY KEY (reportid,groupid,sortid,sequence)
- , CONSTRAINT rsy_reportwizardgroups_KEY0_check CHECK (reportid is not null and groupid is not null and sortid is not null and sequence IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportwizardlinks(
- reportid varchar(30)
- , datasource varchar(64)
- , keyinfo varchar(255)
- , keyno varchar(2)
- , newlink varchar(1)
- , lnk_parent varchar(64)
- , lnk_descr varchar(32)
- , lnk_type varchar(1)
- , lnk_nodata varchar(1)
- , lnk_keydef text
- , lnk_prefix varchar(10)
- , CONSTRAINT rsy_reportwizardlinks_KEY0_pk PRIMARY KEY (reportid,datasource)
- , CONSTRAINT rsy_reportwizardlinks_KEY0_check CHECK (reportid is not null and datasource IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportwizardmain(
- reportid varchar(30)
- , reportdescription varchar(50)
- , viewused varchar(8)
- , maindatasource varchar(46)
- , template varchar(30)
- , collated varchar(1)
- , printsettings varchar(1)
- , threeholepunch varchar(1)
- , crystalreport varchar(30)
- , copies numeric(15,4)
- , advancedlogic text
- , addcustom varchar(1)
- , module varchar(3)
- , printsummary varchar(1)
- , chaintoreport varchar(30)
- , chaintoreportsetting varchar(20)
- , migrated varchar(1)
- , CONSTRAINT rsy_reportwizardmain_KEY0_pk PRIMARY KEY (reportid)
- , CONSTRAINT rsy_reportwizardmain_KEY0_check CHECK (reportid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_reportwizardmain_KEY1_index ON sageimport.rsy_reportwizardmain (viewused);
- CREATE TABLE sageimport.rsy_reportwizardroles(
- reportid varchar(30)
- , rolekey varchar(10)
- , CONSTRAINT rsy_reportwizardroles_KEY0_pk PRIMARY KEY (reportid,rolekey)
- , CONSTRAINT rsy_reportwizardroles_KEY0_check CHECK (reportid is not null and rolekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_reportwizardsorts(
- reportid varchar(30)
- , sequence varchar(3)
- , sortid varchar(8)
- , expressionid varchar(8)
- , oorder varchar(1)
- , breaktype varchar(1)
- , breakheader varchar(1)
- , breakfooter varchar(1)
- , CONSTRAINT rsy_reportwizardsorts_KEY0_pk PRIMARY KEY (reportid,sequence,sortid)
- , CONSTRAINT rsy_reportwizardsorts_KEY0_check CHECK (reportid is not null and sequence is not null and sortid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_reportwizardsorts_KEY1_index ON sageimport.rsy_reportwizardsorts (reportid,sortid);
- CREATE TABLE sageimport.rsy_reportwizardsources(
- reportid varchar(30)
- , datasource varchar(30)
- , src_desc varchar(32)
- , src_type varchar(1)
- , src_expr_ind varchar(1)
- , src_primary_source varchar(200)
- , src_key varchar(64)
- , src_order varchar(1)
- , src_long_desc varchar(255)
- , src_password varchar(12)
- , CONSTRAINT rsy_reportwizardsources_KEY0_pk PRIMARY KEY (reportid,datasource)
- , CONSTRAINT rsy_reportwizardsources_KEY0_check CHECK (reportid is not null and datasource IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_role(
- rolekey varchar(10)
- , rolename varchar(15)
- , roledescription varchar(50)
- , hidden varchar(1)
- , CONSTRAINT rsy_role_KEY0_pk PRIMARY KEY (rolekey)
- , CONSTRAINT rsy_role_KEY0_check CHECK (rolekey IS NOT NULL)
- , CONSTRAINT rsy_role_KEY1_unique UNIQUE (rolename)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_role_KEY2_index ON sageimport.rsy_role (hidden,rolename);
- CREATE TABLE sageimport.rsy_rolesecurity(
- rolekey varchar(10)
- , modulecode varchar(3)
- , taskkey varchar(9)
- , tasktypekey varchar(2)
- , developercode varchar(3)
- , modulenumber varchar(3)
- , createflag numeric(15,4)
- , modifyflag numeric(15,4)
- , removeflag numeric(15,4)
- , printflag numeric(15,4)
- , updateflag numeric(15,4)
- , CONSTRAINT rsy_rolesecurity_KEY0_pk PRIMARY KEY (rolekey,taskkey)
- , CONSTRAINT rsy_rolesecurity_KEY0_check CHECK (rolekey is not null and taskkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_rolesecurity_KEY1_index ON sageimport.rsy_rolesecurity (tasktypekey);
- CREATE INDEX rsy_rolesecurity_KEY2_index ON sageimport.rsy_rolesecurity (modulecode,developercode);
- CREATE INDEX rsy_rolesecurity_KEY3_index ON sageimport.rsy_rolesecurity (rolekey,modulecode,tasktypekey);
- CREATE INDEX rsy_rolesecurity_KEY4_index ON sageimport.rsy_rolesecurity (rolekey,modulenumber,tasktypekey);
- CREATE INDEX rsy_rolesecurity_KEY5_index ON sageimport.rsy_rolesecurity (taskkey,rolekey);
- CREATE TABLE sageimport.rsy_sagepep(
- workstationname varchar(30)
- , sessionid varchar(15)
- , timestamp varchar(25)
- , keyname varchar(50)
- , keyvalue text
- , id varchar(10) DEFAULT nextval('global_seq'::text)
- , CONSTRAINT rsy_sagepep_KEY0_pk PRIMARY KEY (workstationname,timestamp,keyname,id)
- , CONSTRAINT rsy_sagepep_KEY0_check CHECK (workstationname is not null and timestamp is not null and keyname is not null and id IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_sagepep_KEY1_index ON sageimport.rsy_sagepep (workstationname,sessionid);
- CREATE TABLE sageimport.rsy_sagepepsettings(
- recordkey varchar(1)
- , pepondemandversion varchar(30)
- , downloaddt varchar(8)
- , downloadwks varchar(30)
- , processdt varchar(8)
- , processwks varchar(30)
- , CONSTRAINT rsy_sagepepsettings_KEY0_pk PRIMARY KEY (recordkey)
- , CONSTRAINT rsy_sagepepsettings_KEY0_check CHECK (recordkey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_sagepeptask(
- workstationname varchar(30)
- , sessionid varchar(15)
- , taskid varchar(9)
- , moduleid varchar(3)
- , taskname varchar(40)
- , starttime varchar(25)
- , endtime varchar(25)
- , CONSTRAINT rsy_sagepeptask_KEY0_pk PRIMARY KEY (workstationname,taskid,starttime)
- , CONSTRAINT rsy_sagepeptask_KEY0_check CHECK (workstationname is not null and taskid is not null and starttime IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_sagepeptask_KEY1_index ON sageimport.rsy_sagepeptask (workstationname,sessionid);
- CREATE TABLE sageimport.rsy_salestaxclass(
- taxclass varchar(2)
- , taxclassdesc varchar(30)
- , taxclasstype varchar(1)
- , CONSTRAINT rsy_salestaxclass_KEY0_pk PRIMARY KEY (taxclass)
- , CONSTRAINT rsy_salestaxclass_KEY0_check CHECK (taxclass IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_salestaxcode(
- taxcode varchar(15)
- , taxcodedesc varchar(30)
- , taxontax varchar(1)
- , taxclassfortaxontax varchar(2)
- , taxcodeshortdesc varchar(6)
- , expensetovendoritem varchar(1)
- , retentiontaxable varchar(1)
- , taxlimit numeric(15,4)
- , CONSTRAINT rsy_salestaxcode_KEY0_pk PRIMARY KEY (taxcode)
- , CONSTRAINT rsy_salestaxcode_KEY0_check CHECK (taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_salestaxcode_KEY1_index ON sageimport.rsy_salestaxcode (taxclassfortaxontax,taxcode);
- CREATE TABLE sageimport.rsy_salestaxcodedetail(
- taxcode varchar(15)
- , taxclass varchar(2)
- , salestaxable varchar(1)
- , purchasestaxable varchar(1)
- , taxrate numeric(15,4)
- , nonrecoverablepercent numeric(15,4)
- , CONSTRAINT rsy_salestaxcodedetail_KEY0_pk PRIMARY KEY (taxcode,taxclass)
- , CONSTRAINT rsy_salestaxcodedetail_KEY0_check CHECK (taxcode is not null and taxclass IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_salestaxcodedetail_KEY1_index ON sageimport.rsy_salestaxcodedetail (taxclass);
- CREATE TABLE sageimport.rsy_salestaxschedule(
- taxschedule varchar(9)
- , taxscheduledesc varchar(30)
- , printtaxcodeonforms varchar(1)
- , CONSTRAINT rsy_salestaxschedule_KEY0_pk PRIMARY KEY (taxschedule)
- , CONSTRAINT rsy_salestaxschedule_KEY0_check CHECK (taxschedule IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_salestaxscheduledetail(
- taxschedule varchar(9)
- , lineseqno varchar(6)
- , taxcode varchar(15)
- , CONSTRAINT rsy_salestaxscheduledetail_KEY0_pk PRIMARY KEY (taxschedule,lineseqno,taxcode)
- , CONSTRAINT rsy_salestaxscheduledetail_KEY0_check CHECK (taxschedule is not null and lineseqno is not null and taxcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_salestaxscheduledetail_KEY1_index ON sageimport.rsy_salestaxscheduledetail (taxcode,taxschedule,lineseqno);
- CREATE INDEX rsy_salestaxscheduledetail_KEY2_index ON sageimport.rsy_salestaxscheduledetail (taxschedule,lineseqno,taxcode);
- CREATE TABLE sageimport.rsy_sampleaccounts(
- samplekey varchar(8)
- , name varchar(30)
- , mainaccount varchar(15)
- , accountdesc varchar(40)
- , sampletype varchar(3)
- , CONSTRAINT rsy_sampleaccounts_KEY0_pk PRIMARY KEY (samplekey)
- , CONSTRAINT rsy_sampleaccounts_KEY0_check CHECK (samplekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_sqloptimize(
- objectname varchar(36)
- , tablename varchar(30)
- , optimizationtype varchar(1)
- , modulecode varchar(3)
- , developercode varchar(3)
- , CONSTRAINT rsy_sqloptimize_KEY0_pk PRIMARY KEY (objectname,tablename)
- , CONSTRAINT rsy_sqloptimize_KEY0_check CHECK (objectname is not null and tablename IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_sqloptimize_KEY1_index ON sageimport.rsy_sqloptimize (modulecode,developercode,objectname,tablename);
- CREATE INDEX rsy_sqloptimize_KEY2_index ON sageimport.rsy_sqloptimize (optimizationtype,objectname,tablename);
- CREATE TABLE sageimport.rsy_state(
- statecode varchar(2)
- , statename varchar(30)
- , countrycode varchar(3)
- , geocode varchar(5)
- , CONSTRAINT rsy_state_KEY0_pk PRIMARY KEY (statecode)
- , CONSTRAINT rsy_state_KEY0_check CHECK (statecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_state_KEY1_index ON sageimport.rsy_state (statename);
- CREATE TABLE sageimport.rsy_surrogate(
- tablename varchar(30)
- , tablekey varchar(30)
- , tablecode varchar(30)
- , nextsurrogate varchar(10)
- , CONSTRAINT rsy_surrogate_KEY0_pk PRIMARY KEY (tablename)
- , CONSTRAINT rsy_surrogate_KEY0_check CHECK (tablename IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_task(
- modulenumber varchar(2)
- , taskowner varchar(1)
- , developercode varchar(3)
- , taskid varchar(3)
- , taskname varchar(40)
- , taskdescription varchar(100)
- , programname varchar(30)
- , tasktypekey varchar(2)
- , codechecksum varchar(16)
- , modulecode varchar(3)
- , arguments text
- , excludefromroles varchar(1)
- , availableatperiodend varchar(1)
- , defaultatperiodend varchar(1)
- , canbescheduled varchar(1)
- , legacymenuposition varchar(8)
- , securityalias varchar(9)
- , availableforpaperlessoffice varchar(1)
- , excludefromplatforms varchar(2)
- , CONSTRAINT rsy_task_KEY0_pk PRIMARY KEY (modulenumber,taskowner,developercode,taskid)
- , CONSTRAINT rsy_task_KEY0_check CHECK (modulenumber is not null and taskowner is not null and developercode is not null and taskid IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_task_KEY1_index ON sageimport.rsy_task (programname);
- CREATE INDEX rsy_task_KEY2_index ON sageimport.rsy_task (taskname);
- CREATE INDEX rsy_task_KEY3_index ON sageimport.rsy_task (modulecode,tasktypekey,taskowner,developercode,taskid);
- CREATE INDEX rsy_task_KEY4_index ON sageimport.rsy_task (programname,modulenumber,taskowner,developercode,taskid);
- CREATE INDEX rsy_task_KEY5_index ON sageimport.rsy_task (legacymenuposition,modulenumber,taskowner,developercode,taskid);
- CREATE INDEX rsy_task_KEY6_index ON sageimport.rsy_task (canbescheduled,modulenumber,taskowner,developercode,taskid);
- CREATE INDEX rsy_task_KEY7_index ON sageimport.rsy_task (modulecode,programname);
- CREATE TABLE sageimport.rsy_tasktype(
- tasktypekey varchar(2)
- , tasktypename varchar(30)
- , tasktypedescription varchar(50)
- , securitytype varchar(1)
- , CONSTRAINT rsy_tasktype_KEY0_pk PRIMARY KEY (tasktypekey)
- , CONSTRAINT rsy_tasktype_KEY0_check CHECK (tasktypekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_tasktype_KEY1_index ON sageimport.rsy_tasktype (tasktypename);
- CREATE TABLE sageimport.rsy_template(
- source varchar(40)
- , templatetype varchar(3)
- , templatename varchar(40)
- , templatepath varchar(128)
- , permissions varchar(1)
- , private varchar(1)
- , userkey varchar(10)
- , workstationname varchar(30)
- , CONSTRAINT rsy_template_KEY0_pk PRIMARY KEY (source,templatename)
- , CONSTRAINT rsy_template_KEY0_check CHECK (source is not null and templatename IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_theme(
- themecode varchar(20)
- , developercode varchar(3)
- , themecodedesc varchar(30)
- , systemtheme numeric(15,4)
- , defaulttheme varchar(1)
- , backgroundcolor varchar(25)
- , framecolor varchar(25)
- , defaultfontnum numeric(15,4)
- , defaultfontcolor varchar(25)
- , tabcolor varchar(25)
- , tabfontcolor varchar(25)
- , gridlinecolor1 varchar(25)
- , gridlinecolor2 varchar(25)
- , gridrowheight numeric(15,4)
- , primarybuttoncolor varchar(25)
- , primarybuttonfontcolor varchar(25)
- , secondarybuttoncolor varchar(25)
- , secondarybuttonfontcolor varchar(25)
- , usenewtabstyle numeric(15,4)
- , derivedfromclassic numeric(15,4)
- , iconset varchar(1)
- , CONSTRAINT rsy_theme_KEY0_pk PRIMARY KEY (themecode)
- , CONSTRAINT rsy_theme_KEY0_check CHECK (themecode IS NOT NULL)
- , CONSTRAINT rsy_theme_KEY1_unique UNIQUE (themecode,developercode)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_token(
- documenttype varchar(1)
- , documentcontext varchar(30)
- , token varchar(90)
- , description text
- , examplevalue varchar(150)
- , sourcefile varchar(50)
- , systemfile varchar(1)
- , sourcefilekeyfields varchar(150)
- , returnexpression text
- , returntype varchar(1)
- , CONSTRAINT rsy_token_KEY0_pk PRIMARY KEY (documenttype,documentcontext,token)
- , CONSTRAINT rsy_token_KEY0_check CHECK (documenttype is not null and documentcontext is not null and token IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_token_KEY1_index ON sageimport.rsy_token (documentcontext,documenttype,token);
- CREATE TABLE sageimport.rsy_urlmaintenance(
- urlcode varchar(15)
- , urldesc varchar(30)
- , useproxyserver varchar(1)
- , url text
- , proxyserver text
- , userid varchar(50)
- , password varchar(50)
- , timeout numeric(15,4)
- , port numeric(15,4)
- , permanent varchar(1)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , CONSTRAINT rsy_urlmaintenance_KEY0_pk PRIMARY KEY (urlcode)
- , CONSTRAINT rsy_urlmaintenance_KEY0_check CHECK (urlcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_user(
- userkey varchar(10)
- , usercode varchar(3)
- , userlogon varchar(60)
- , securitykey varchar(10)
- , firstname varchar(20)
- , lastname varchar(30)
- , customizationcode varchar(3)
- , password varchar(30)
- , active varchar(1)
- , inactivedate date
- , lastcompany varchar(10)
- , lookuplimit varchar(6)
- , partiallookup varchar(1)
- , implieddecimal varchar(1)
- , autologoff varchar(1)
- , inactivitytime varchar(3)
- , enterkeyliketab varchar(1)
- , inperiodend varchar(1)
- , periodendprinter varchar(3)
- , currentprinter varchar(3)
- , lowspeedconnect varchar(1)
- , systemdate date
- , theme varchar(1)
- , graphicreportformat varchar(1)
- , reductionamountsinred varchar(1)
- , promptforcompanycode varchar(1)
- , usecrystalwebreports varchar(1)
- , locked varchar(1)
- , showhiddendialog varchar(1)
- , external varchar(1)
- , lockeddate numeric(15,4)
- , lockedtime numeric(15,4)
- , passworddate numeric(15,4)
- , enablecsodbc varchar(1)
- , appservspawn varchar(1)
- , enablewebservicesforuser varchar(1)
- , reportpreviewzoom numeric(15,4)
- , surveyversion numeric(15,4)
- , surveylaunchdate numeric(15,4)
- , emailaddress varchar(250)
- , jobtitle varchar(1)
- , retainmoduleoncompanychange varchar(1)
- , themecode varchar(20)
- , CONSTRAINT rsy_user_KEY0_pk PRIMARY KEY (userkey)
- , CONSTRAINT rsy_user_KEY0_check CHECK (userkey IS NOT NULL)
- , CONSTRAINT rsy_user_KEY1_unique UNIQUE (usercode)
- , CONSTRAINT rsy_user_KEY2_unique UNIQUE (userlogon)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_user_KEY3_index ON sageimport.rsy_user (securitykey);
- CREATE INDEX rsy_user_KEY4_index ON sageimport.rsy_user (lastname,firstname);
- CREATE INDEX rsy_user_KEY5_index ON sageimport.rsy_user (customizationcode,userkey);
- CREATE INDEX rsy_user_KEY6_index ON sageimport.rsy_user (active,userlogon);
- CREATE INDEX rsy_user_KEY7_index ON sageimport.rsy_user (external,active,userlogon);
- CREATE TABLE sageimport.rsy_userautocomplete(
- userkey varchar(10)
- , autocompletecode varchar(64)
- , autocompletecodedesc varchar(30)
- , autocompleteentityenabled varchar(1)
- , CONSTRAINT rsy_userautocomplete_KEY0_pk PRIMARY KEY (userkey,autocompletecode)
- , CONSTRAINT rsy_userautocomplete_KEY0_check CHECK (userkey is not null and autocompletecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_userhistory(
- userkey varchar(10)
- , usercode varchar(3)
- , userlogon varchar(60)
- , securitykey varchar(10)
- , firstname varchar(20)
- , lastname varchar(30)
- , customizationcode varchar(3)
- , password varchar(30)
- , active varchar(1)
- , inactivedate date
- , lastcompany varchar(10)
- , lookuplimit varchar(6)
- , partiallookup varchar(1)
- , implieddecimal varchar(1)
- , autologoff varchar(1)
- , inactivitytime varchar(3)
- , enterkeyliketab varchar(1)
- , inperiodend varchar(1)
- , periodendprinter varchar(3)
- , currentprinter varchar(3)
- , lowspeedconnect varchar(1)
- , systemdate date
- , theme varchar(1)
- , graphicreportformat varchar(1)
- , reductionamountsinred varchar(1)
- , promptforcompanycode varchar(1)
- , usecrystalwebreports varchar(1)
- , locked varchar(1)
- , showhiddendialog varchar(1)
- , external varchar(1)
- , lockeddate numeric(15,4)
- , lockedtime numeric(15,4)
- , passworddate numeric(15,4)
- , enablecsodbc varchar(1)
- , appservspawn varchar(1)
- , enablewebservicesforuser varchar(1)
- , reportpreviewzoom numeric(15,4)
- , surveyversion numeric(15,4)
- , surveylaunchdate numeric(15,4)
- , emailaddress varchar(250)
- , jobtitle varchar(1)
- , retainmoduleoncompanychange varchar(1)
- , themecode varchar(20)
- , CONSTRAINT rsy_userhistory_KEY0_pk PRIMARY KEY (userkey)
- , CONSTRAINT rsy_userhistory_KEY0_check CHECK (userkey IS NOT NULL)
- , CONSTRAINT rsy_userhistory_KEY1_unique UNIQUE (usercode)
- , CONSTRAINT rsy_userhistory_KEY2_unique UNIQUE (userlogon)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_userhistory_KEY3_index ON sageimport.rsy_userhistory (securitykey);
- CREATE INDEX rsy_userhistory_KEY4_index ON sageimport.rsy_userhistory (lastname,firstname);
- CREATE INDEX rsy_userhistory_KEY5_index ON sageimport.rsy_userhistory (customizationcode,userkey);
- CREATE INDEX rsy_userhistory_KEY6_index ON sageimport.rsy_userhistory (active,userlogon);
- CREATE INDEX rsy_userhistory_KEY7_index ON sageimport.rsy_userhistory (external,active,userlogon);
- CREATE TABLE sageimport.rsy_usersecurity(
- userkey varchar(10)
- , companykey varchar(10)
- , rolekey varchar(10)
- , startingdate date
- , expirationdate date
- , CONSTRAINT rsy_usersecurity_KEY0_pk PRIMARY KEY (userkey,companykey,rolekey)
- , CONSTRAINT rsy_usersecurity_KEY0_check CHECK (userkey is not null and companykey is not null and rolekey IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_usersecurity_KEY1_index ON sageimport.rsy_usersecurity (userkey,rolekey,companykey);
- CREATE TABLE sageimport.rsy_workstation(
- workstationname varchar(30)
- , userkey varchar(10)
- , terminalid varchar(3)
- , lastcompany varchar(10)
- , currentprinter varchar(3)
- , inperiodend varchar(1)
- , periodendprinter varchar(3)
- , lastactivitydate date
- , lastactivitytime varchar(8)
- , launcher numeric(15,4)
- , CONSTRAINT rsy_workstation_KEY0_pk PRIMARY KEY (workstationname,userkey,terminalid)
- , CONSTRAINT rsy_workstation_KEY0_check CHECK (workstationname is not null and userkey is not null and terminalid IS NOT NULL)
- , CONSTRAINT rsy_workstation_KEY1_unique UNIQUE (terminalid)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy_zipcode(
- zipcode varchar(10)
- , city varchar(20)
- , statecode varchar(2)
- , countrycode varchar(3)
- , CONSTRAINT rsy_zipcode_KEY0_pk PRIMARY KEY (zipcode)
- , CONSTRAINT rsy_zipcode_KEY0_check CHECK (zipcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_zipcode_KEY1_index ON sageimport.rsy_zipcode (city,zipcode);
- CREATE INDEX rsy_zipcode_KEY2_index ON sageimport.rsy_zipcode (statecode,zipcode);
- CREATE INDEX rsy_zipcode_KEY3_index ON sageimport.rsy_zipcode (statecode,city,zipcode);
- CREATE TABLE sageimport.rsy_zipcodeedit(
- zipcode varchar(10)
- , action varchar(1)
- , city varchar(20)
- , statecode varchar(2)
- , countrycode varchar(3)
- , CONSTRAINT rsy_zipcodeedit_KEY0_pk PRIMARY KEY (zipcode)
- , CONSTRAINT rsy_zipcodeedit_KEY0_check CHECK (zipcode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rsy_zipcodeedit_KEY1_index ON sageimport.rsy_zipcodeedit (action);
- CREATE TABLE sageimport.rsy0_companyparameters(
- companycode varchar(3)
- , reportdate date
- , companyname varchar(35)
- , companyaddress1 varchar(35)
- , companyaddress2 varchar(35)
- , companyaddress3 varchar(35)
- , companyaddress4 varchar(35)
- , telephonenumber varchar(10)
- , federalidnumber varchar(15)
- , glaccountsegment1 varchar(1)
- , glaccountsegment2 varchar(1)
- , glaccountsegment3 varchar(1)
- , noglaccountingperiods varchar(2)
- , glcurrentperiod varchar(2)
- , glcalendaryear varchar(4)
- , glfiscalyear varchar(4)
- , glperiodenddate1 varchar(4)
- , glperiodenddate2 varchar(4)
- , glperiodenddate3 varchar(4)
- , glperiodenddate4 varchar(4)
- , glperiodenddate5 varchar(4)
- , glperiodenddate6 varchar(4)
- , glperiodenddate7 varchar(4)
- , glperiodenddate8 varchar(4)
- , glperiodenddate9 varchar(4)
- , glperiodenddate10 varchar(4)
- , glperiodenddate11 varchar(4)
- , glperiodenddate12 varchar(4)
- , glperiodenddate13 varchar(4)
- , glsegment2desc varchar(15)
- , glsegment3desc varchar(15)
- , aprequiredivisions varchar(1)
- , apagebydayormonth varchar(1)
- , apagingcategory1 varchar(3)
- , apagingcategory2 varchar(3)
- , apagingcategory3 varchar(3)
- , apagingcategory4 varchar(3)
- , apcurrentperiod varchar(2)
- , apcalendaryear varchar(4)
- , apfiscalyear varchar(4)
- , apextendedstub varchar(1)
- , arrequiredivisions varchar(1)
- , aragebydayormonth varchar(1)
- , aragingcategory1 varchar(3)
- , aragingcategory2 varchar(3)
- , aragingcategory3 varchar(3)
- , aragingcategory4 varchar(3)
- , arcurrenteperiod varchar(2)
- , arcalendaryear varchar(4)
- , arfiscalyear varchar(4)
- , imcurrentperiod varchar(2)
- , imcalendaryear varchar(4)
- , imfiscalyear varchar(4)
- , imdecimalsinqty varchar(1)
- , imdecimalsinprice varchar(1)
- , imdecimalsincost varchar(1)
- , imdecimalsinumconversion varchar(1)
- , imcategory1desc varchar(15)
- , imcategory2desc varchar(15)
- , imcategory3desc varchar(15)
- , imcategory4desc varchar(15)
- , imincludewopoinqtyavail varchar(1)
- , sopicksheetsort varchar(1)
- , socurrentperiod varchar(2)
- , socalendaryear varchar(4)
- , sofiscalyear varchar(4)
- , socustomertype1 varchar(4)
- , socustomeroption1 varchar(1)
- , socustomertype2 varchar(4)
- , socustomeroption2 varchar(1)
- , socustomertype3 varchar(4)
- , socustomeroption3 varchar(1)
- , socustomertype4 varchar(4)
- , socustomeroption4 varchar(1)
- , socustomertype5 varchar(4)
- , socustomeroption5 varchar(1)
- , socustomertype6 varchar(4)
- , socustomeroption6 varchar(1)
- , socustomertype7 varchar(4)
- , socustomeroption7 varchar(1)
- , socustomertype8 varchar(4)
- , socustomeroption8 varchar(1)
- , socustomertype9 varchar(4)
- , socustomeroption9 varchar(1)
- , socustomertype10 varchar(4)
- , socustomeroption10 varchar(1)
- , soprintbarcodeso varchar(1)
- , soprintbarcodepicksheet varchar(1)
- , pocurrentperiod varchar(2)
- , pocalendaryear varchar(4)
- , pofiscalyear varchar(4)
- , poprtusageonreorderrpt varchar(1)
- , podfltfobmessage varchar(15)
- , poprtbarcodeonrect varchar(1)
- , prdepartments varchar(1)
- , prroundbenefithrsdays varchar(1)
- , jccostcodesegment1 varchar(1)
- , jccostcodesegment2 varchar(1)
- , jccostcodesegment3 varchar(1)
- , jcusesubjobs varchar(1)
- , jcnodecimalplacesunitcost varchar(1)
- , jcnodecimalplacesunitprice varchar(1)
- , jcnodecimalplacesunit varchar(1)
- , bmprintmisccodespicksheet varchar(1)
- , bmprintcommentspicksheet varchar(1)
- , wonewpagebystep varchar(1)
- , wouserdefinedfielddesc1 varchar(15)
- , wouserdefinedfielddesc2 varchar(15)
- , wouserdefinedfielddesc3 varchar(15)
- , wouserdefinedfielddesc4 varchar(15)
- , jcpostwiptogl varchar(1)
- , imenablewarrantytracking varchar(1)
- , ranewsystem varchar(1)
- , glmoduledate date
- , apmoduledate date
- , armoduledate date
- , immoduledate date
- , somoduledate date
- , pomoduledate date
- , prmoduledate date
- , jcmoduledate date
- , bmmoduledate date
- , womoduledate date
- , ramoduledate date
- , CONSTRAINT rsy0_companyparameters_KEY0_pk PRIMARY KEY (companycode)
- , CONSTRAINT rsy0_companyparameters_KEY0_check CHECK (companycode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy0ste_nametocodexreffile(
- name varchar(50)
- , abbreviation varchar(5)
- , CONSTRAINT rsy0ste_nametocodexreffile_KEY0_pk PRIMARY KEY (name)
- , CONSTRAINT rsy0ste_nametocodexreffile_KEY0_check CHECK (name IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rsy1fax_faxformdefmasterfile(
- formname varchar(6)
- , formcode varchar(2)
- , usercode varchar(3)
- , companycode varchar(3)
- , faxenabled varchar(1)
- , sendto varchar(60)
- , subject varchar(60)
- , usecoverpage varchar(1)
- , quickcover varchar(1)
- , coverpagefile varchar(136)
- , priority varchar(1)
- , billcode varchar(30)
- , key_words varchar(60)
- , useoffpeak varchar(1)
- , highresolution varchar(1)
- , hold varchar(1)
- , usecreditcard varchar(1)
- , coverpagetext text
- , CONSTRAINT rsy1fax_faxformdefmasterfile_KEY0_pk PRIMARY KEY (formname,formcode,usercode,companycode)
- , CONSTRAINT rsy1fax_faxformdefmasterfile_KEY0_check CHECK (formname is not null and formcode is not null and usercode is not null and companycode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rvi_defaultperform(
- tablename varchar(30)
- , performtype varchar(2)
- , filetype varchar(1)
- , columnname varchar(30)
- , sequenceno varchar(3)
- , jobtype varchar(1)
- , performpath varchar(120)
- , modulecode varchar(3)
- , CONSTRAINT rvi_defaultperform_KEY0_pk PRIMARY KEY (tablename,performtype,filetype,columnname,sequenceno)
- , CONSTRAINT rvi_defaultperform_KEY0_check CHECK (tablename is not null and performtype is not null and filetype is not null and columnname is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rvi_jobexportelements(
- jobname varchar(15)
- , sequenceno varchar(4)
- , linktablename varchar(30)
- , columnname varchar(30)
- , filetype varchar(1)
- , datatype varchar(1)
- , fieldtype varchar(1)
- , class varchar(30)
- , operationcode varchar(1)
- , nsdmask varchar(50)
- , sourceoriglength numeric(15,4)
- , sourcesubstring varchar(1)
- , sourcestartpos numeric(15,4)
- , sourcelength numeric(15,4)
- , exportcolpos numeric(15,4)
- , exportfieldlength numeric(15,4)
- , exportsubstring varchar(1)
- , exportstartpos numeric(15,4)
- , exportlength numeric(15,4)
- , padwithspaces varchar(1)
- , defaultvalue varchar(60)
- , calcexpression text
- , conditionalexpression text
- , calculationonly varchar(1)
- , runtimeprompt varchar(30)
- , resettempvar varchar(1)
- , partofodbcindex varchar(1)
- , odbcfielddata varchar(60)
- , odbcfieldtype varchar(10)
- , libobjectname varchar(12)
- , tablereferenceno varchar(2)
- , CONSTRAINT rvi_jobexportelements_KEY0_pk PRIMARY KEY (jobname,sequenceno)
- , CONSTRAINT rvi_jobexportelements_KEY0_check CHECK (jobname is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rvi_jobexportelements_KEY1_index ON sageimport.rvi_jobexportelements (columnname,jobname,sequenceno);
- CREATE TABLE sageimport.rvi_jobexportselection(
- jobname varchar(15)
- , sequenceno varchar(4)
- , linktablename varchar(30)
- , columnname varchar(30)
- , filetype varchar(1)
- , datatype varchar(1)
- , fieldtype varchar(1)
- , class varchar(30)
- , condition varchar(1)
- , relation varchar(1)
- , casesensitive varchar(1)
- , charactermatch varchar(1)
- , selectbegin varchar(60)
- , selectend varchar(60)
- , originalstartpos numeric(15,4)
- , originallength numeric(15,4)
- , substring varchar(1)
- , startposition numeric(15,4)
- , length numeric(15,4)
- , userinput varchar(1)
- , runtimeprompt varchar(30)
- , rangestart text
- , rangeend text
- , selectionvalue text
- , selectionmask text
- , selectionlist text
- , selectionseq text
- , libobjectname varchar(12)
- , tablereferenceno varchar(2)
- , CONSTRAINT rvi_jobexportselection_KEY0_pk PRIMARY KEY (jobname,sequenceno)
- , CONSTRAINT rvi_jobexportselection_KEY0_check CHECK (jobname is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rvi_jobheader(
- jobname varchar(15)
- , jobtype varchar(1)
- , compiledname varchar(6)
- , jobcompiled varchar(1)
- , currentstate varchar(1)
- , usercode varchar(3)
- , lastcompanycode varchar(3)
- , tablename varchar(30)
- , menuname varchar(40)
- , joblongdescription varchar(240)
- , fielddelimiter varchar(1)
- , delimiterasciivalue varchar(3)
- , importfilename varchar(120)
- , importfiletype varchar(1)
- , importfileonhost varchar(1)
- , jobpassword varchar(7)
- , nextjobchain varchar(15)
- , waithours numeric(15,4)
- , waitminutes numeric(15,4)
- , executionloops numeric(15,4)
- , currentexecutionloop numeric(15,4)
- , insertrequiredfields varchar(1)
- , insertallfields varchar(1)
- , skipoverexistingrecords varchar(1)
- , odbcdatasourcename varchar(60)
- , datasourceonhost varchar(1)
- , odbcloginusername varchar(15)
- , odbcloginpassword varchar(15)
- , datecreated date
- , timecreated varchar(8)
- , usercreatedkey varchar(10)
- , dateupdated date
- , timeupdated varchar(8)
- , userupdatedkey varchar(10)
- , separateheaderrecord varchar(1)
- , convertdelimtospace varchar(1)
- , padfieldswithspaces varchar(1)
- , exportnamesasfirstrecord varchar(1)
- , displayreadonlyfields varchar(1)
- , wrapstringinquotes varchar(1)
- , skipsourcedatatruncation varchar(1)
- , CONSTRAINT rvi_jobheader_KEY0_pk PRIMARY KEY (jobname)
- , CONSTRAINT rvi_jobheader_KEY0_check CHECK (jobname IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE TABLE sageimport.rvi_jobimportelements(
- jobname varchar(15)
- , sequenceno varchar(4)
- , columnname varchar(30)
- , datatype varchar(1)
- , fieldtype varchar(1)
- , filetype varchar(2)
- , operationcode varchar(1)
- , maskformat varchar(20)
- , dateformatcode numeric(15,4)
- , importcolumnno numeric(15,4)
- , importstartpos numeric(15,4)
- , importlength numeric(15,4)
- , defaultvalue varchar(60)
- , calcexpression text
- , conditionalexpression text
- , runtimeprompt varchar(30)
- , resettempvar varchar(1)
- , tableassignname varchar(30)
- , tableassigncolumnname varchar(30)
- , libobjectname varchar(12)
- , importsubstring varchar(1)
- , importfieldlength numeric(15,4)
- , fieldsubstring varchar(1)
- , fieldoriglength numeric(15,4)
- , fieldstart numeric(15,4)
- , fieldlength numeric(15,4)
- , class varchar(30)
- , assignsequence numeric(15,4)
- , tablereferenceno varchar(2)
- , CONSTRAINT rvi_jobimportelements_KEY0_pk PRIMARY KEY (jobname,sequenceno)
- , CONSTRAINT rvi_jobimportelements_KEY0_check CHECK (jobname is not null and sequenceno IS NOT NULL)
- ) WITH (OIDS=FALSE);
- CREATE INDEX rvi_jobimportelements_KEY1_index ON sageimport.rvi_jobimportelements (columnname,jobname,sequenceno);
- CREATE TABLE sageimport.rvi_options(
- modulecode varchar(3)
- , newsystem varchar(1)
- , dataversion numeric(15,4)
- , CONSTRAINT rvi_options_KEY0_pk PRIMARY KEY (modulecode)
- , CONSTRAINT rvi_options_KEY0_check CHECK (modulecode IS NOT NULL)
- ) WITH (OIDS=FALSE);
- dsafasdfds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement