home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1999 February
/
Dpcb0299.iso
/
Business
/
Superoff
/
Super
/
Sql
/
SO_CREAT.OQL
< prev
next >
Wrap
Text File
|
1996-02-29
|
28KB
|
182 lines
CREATE TABLE so.company (id NUMBER(10), version NUMBER(10), revision NUMBER(5), reserved VARCHAR2(162)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXCompId ON so.company (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.associate (id NUMBER(10), loginname VARCHAR2(16), group_idx NUMBER(5), reserved VARCHAR2(42), lastlogin NUMBER(10), lastlogout NUMBER(10), person_id NUMBER(10), checklistlimit NUMBER(10), type NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXAssocId ON so.associate (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IDXAssocName ON so.associate (loginname ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.contact (id NUMBER(10), name VARCHAR2(50), department VARCHAR2(40), kananame VARCHAR2(74), number2 VARCHAR2(12), associate_id NUMBER(10), country_id NUMBER(10), business_idx NUMBER(5), category_idx NUMBER(5), stop NUMBER(5), nomailing NUMBER(5), custom1 VARCHAR2(22), custom2 VARCHAR2(22), custom3 VARCHAR2(22), registered NUMBER(10), registered_associate_id NUMBER(10), updated NUMBER(10), updated_associate_id NUMBER(10), text_id NUMBER(10), mother_id NUMBER(10), userdef_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXContId ON so.contact (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXContName ON so.contact (name ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXContDept ON so.contact (department ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXContKname ON so.contact (kananame ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXContNum2 ON so.contact (number2 ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXContBusn_idx ON so.contact (business_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXContCatg_idx ON so.contact (category_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXContMother_id ON so.contact (mother_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.person (id NUMBER(10), contact_id NUMBER(10), rank NUMBER(5), lastname VARCHAR2(32), firstname VARCHAR2(22), mrmrs VARCHAR2(12), title VARCHAR2(40), custom1 VARCHAR2(32), custom2 VARCHAR2(22), custom3 VARCHAR2(22), text_id NUMBER(10), position_idx NUMBER(5), mailstop VARCHAR2(20), year_of_birth NUMBER(5), month_of_birth NUMBER(5), day_of_birth NUMBER(5), phone_present NUMBER(5), email_id NUMBER(10), userdef_id NUMBER(10), registered NUMBER(10), registered_associate_id NUMBER(10), updated NUMBER(10), updated_associate_id NUMBER(10), person_number VARCHAR2(12), kanalname VARCHAR2(22), kanafname VARCHAR2(22), post1 VARCHAR2(22), post2 VARCHAR2(22), post3 VARCHAR2(22)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXPersId ON so.person (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPersLname ON so.person (lastname ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPersFname ON so.person (firstname ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPersPnum ON so.person (person_number ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPersKlname ON so.person (kanalname ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPersKfname ON so.person (kanafname ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCPersCont_IdRank ON so.person (contact_id ASC, rank ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.address (id NUMBER(10), owner_id NUMBER(10), atype_idx NUMBER(5), zipcode VARCHAR2(12), city VARCHAR2(32), state VARCHAR2(4), county VARCHAR2(30), address1 VARCHAR2(42), address2 VARCHAR2(42), address3 VARCHAR2(42)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXAddrId ON so.address (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXAddrZip ON so.address (zipcode ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXAddrState ON so.address (state ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IXCAddrOwner_IdType_Idx ON so.address (owner_id ASC, atype_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.phone (id NUMBER(10), owner_id NUMBER(10), ptype_idx NUMBER(5), search_phone NUMBER(10), phone VARCHAR2(18)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXPhoneId ON so.phone (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPhoneKey ON so.phone (search_phone ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IXCPhoneOwner_IdType_Idx ON so.phone (owner_id ASC, ptype_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.appointment (id NUMBER(10), contact_id NUMBER(10), person_id NUMBER(10), associate_id NUMBER(10), group_idx NUMBER(5), registered NUMBER(10), registered_associate_id NUMBER(10), done NUMBER(10), do_by NUMBER(10), duration NUMBER(5), leadtime NUMBER(5), task_idx NUMBER(5), priority_idx NUMBER(5), type NUMBER(5), status NUMBER(5), private NUMBER(5), alarm NUMBER(5), text_id NUMBER(10), project_id NUMBER(10), mother_id NUMBER(10), userdef_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXAppntId ON so.appointment (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXAppntGrp_idx ON so.appointment (group_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXAppntDone ON so.appointment (done ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXAppntMother_id ON so.appointment (mother_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCAppntCont_IdDone ON so.appointment (contact_id ASC, done ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCAppntAssoc_IdDoneType ON so.appointment (associate_id ASC, done ASC, type ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCAppntAssoc_IdStatus ON so.appointment (associate_id ASC, status ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCAppntProj_IdDone ON so.appointment (project_id ASC, done ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.document (id NUMBER(10), application_id NUMBER(10), name VARCHAR2(30), header VARCHAR2(60), our_ref VARCHAR2(20), your_ref VARCHAR2(20), searchname VARCHAR2(20), attention VARCHAR2(30), about_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXDocId ON so.document (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXDocSname ON so.document (searchname ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.mail (id NUMBER(10), type NUMBER(5), flag NUMBER(5), to_associate_id NUMBER(10), from_associate_id NUMBER(10), is_read NUMBER(5), is_seen NUMBER(5), mailappoint_id NUMBER(10), senddate NUMBER(10), text VARCHAR2(80)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXMailId ON so.mail (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCMailTo_IdSdate ON so.mail (to_associate_id ASC, senddate ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.project (id NUMBER(10), name VARCHAR2(50), project_number VARCHAR2(12), type_idx NUMBER(5), status_idx NUMBER(5), associate_id NUMBER(10), custom1 VARCHAR2(22), custom2 VARCHAR2(22), custom3 VARCHAR2(22), text_id NUMBER(10), registered NUMBER(10), registered_associate_id NUMBER(10), updated NUMBER(10), updated_associate_id NUMBER(10), userdef_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXProjId ON so.project (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXProjName ON so.project (name ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXProjPnum ON so.project (project_number ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.projectmember (id NUMBER(10), project_id NUMBER(10), ownertype NUMBER(5), owner_id NUMBER(10), rank NUMBER(5), mtype_idx NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXPmembId ON so.projectmember (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCPmembProj_IdRank ON so.projectmember (project_id ASC, rank ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.sale (id NUMBER(10), associate_id NUMBER(10), group_idx NUMBER(5), contact_id NUMBER(10), person_id NUMBER(10), registered NUMBER(10), saledate NUMBER(10), amount NUMBER(10), probability_idx NUMBER(5), appointment_id NUMBER(10), text_id NUMBER(10), project_id NUMBER(10), earning NUMBER(10), earning_percent NUMBER(5), userdef_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXSaleId ON so.sale (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCSaleCont_IdSaledate ON so.sale (contact_id ASC, saledate ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCSaleAssoc_IdSaledate ON so.sale (associate_id ASC, saledate ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCSaleProj_IdSaledate ON so.sale (project_id ASC, saledate ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCSaleGrp_IdxCont_IdSaledate ON so.sale (group_idx ASC, contact_id ASC, saledate ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.budget (id NUMBER(10), associate_id NUMBER(10), contact_id NUMBER(10), period NUMBER(5), budgetyear NUMBER(5), amount NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXBudId ON so.budget (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCBudPeriodYear ON so.budget (period ASC, budgetyear ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.contactinterest (id NUMBER(10), contact_id NUMBER(10), cinterest_idx NUMBER(5), interest_date NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXCintrId ON so.contactinterest (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXCintrCont_id ON so.contactinterest (contact_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXCintrIntr_idx ON so.contactinterest (cinterest_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.personinterest (id NUMBER(10), person_id NUMBER(10), pinterest_idx NUMBER(5), interest_date NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXPintrId ON so.personinterest (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPintrPers_id ON so.personinterest (person_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXPintrIntr_idx ON so.personinterest (pinterest_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.ziptocity (id NUMBER(10), country_id NUMBER(10), zipcode VARCHAR2(12), city VARCHAR2(32)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXZipId ON so.ziptocity (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXZipZip ON so.ziptocity (zipcode ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXZipCity ON so.ziptocity (city ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCZipCntry_IdZip ON so.ziptocity (country_id ASC, zipcode ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.template (id NUMBER(10), machinetype NUMBER(5), dynamic NUMBER(5), type NUMBER(5), templatename VARCHAR2(32), filename VARCHAR2(32), application_id NUMBER(10), refcount NUMBER(10), template_idx NUMBER(5), auto_event_id NUMBER(10), generate_sale NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXTmplId ON so.template (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXTmplType ON so.template (type ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.application (id NUMBER(10), name VARCHAR2(70), path VARCHAR2(130), filename VARCHAR2(62), parameters VARCHAR2(62), working_directory VARCHAR2(62), dde_topic VARCHAR2(40), dde_open VARCHAR2(100), dde_minimize VARCHAR2(40), dde_maximize VARCHAR2(40), dde_restore VARCHAR2(40), dde_show NUMBER(5), dde_merge VARCHAR2(100), mac_creator VARCHAR2(6), mac_type VARCHAR2(6), win_type VARCHAR2(4), win_charactermap_id NUMBER(10), mac_charactermap_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXApplId ON so.application (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.listtext (id NUMBER(10), list_id NUMBER(5), list_idx NUMBER(5), show_idx NUMBER(5), parent NUMBER(5), text VARCHAR2(30)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXLtextId ON so.listtext (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IXCLtextList_IdList_Idx ON so.listtext (list_id ASC, list_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCLtextList_IdShow_Idx ON so.listtext (list_id ASC, show_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.redletterday (id NUMBER(10), reddate NUMBER(10), country_id NUMBER(10), reds NUMBER(10), colored NUMBER(10), color NUMBER(5), text VARCHAR2(80)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXRldayId ON so.redletterday (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCRldayCntry_IdReddate ON so.redletterday (country_id ASC, reddate ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.text (id NUMBER(10), type NUMBER(5), owner_id NUMBER(10), text LONG) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXTextId ON so.text (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCTextOwner_IdType ON so.text (owner_id ASC, type ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.country (id NUMBER(10), name VARCHAR2(40), english_name VARCHAR2(40), phone_prefix VARCHAR2(10), layout_id NUMBER(10), time_offset NUMBER(5), time_name VARCHAR2(10), summer_time VARCHAR2(20), winter_time VARCHAR2(20), zip_prefix VARCHAR2(6), flagres_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXCntryId ON so.country (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXCntryName ON so.country (name ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXCntryEname ON so.country (english_name ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.preference (id NUMBER(10), type NUMBER(5), pdata VARCHAR2(1024)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXPrefId ON so.preference (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IXCPrefTypeId ON so.preference (type ASC, id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.charactermap (id NUMBER(10), type NUMBER(5), default_padding NUMBER(5), openbracket VARCHAR2(6), closebracket VARCHAR2(6), map VARCHAR2(1024)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXCmapId ON so.charactermap (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.selection (id NUMBER(10), associate_id NUMBER(10), name VARCHAR2(50)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXSelId ON so.selection (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXSelAssoc_id ON so.selection (associate_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXSelName ON so.selection (name ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.selectionmember (id NUMBER(10), selection_id NUMBER(10), contact_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXSmembId ON so.selectionmember (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IXCSmembSel_IdCont_Id ON so.selectionmember (selection_id ASC, contact_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.autoevent (id NUMBER(10), type NUMBER(5), pdata VARCHAR2(100)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXAevtId ON so.autoevent (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IXCAevtTypeId ON so.autoevent (type ASC, id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.mailappointment (id NUMBER(10), contact_id NUMBER(10), person_id NUMBER(10), associate_id NUMBER(10), group_idx NUMBER(5), registered NUMBER(10), registered_associate_id NUMBER(10), done NUMBER(10), do_by NUMBER(10), duration NUMBER(5), leadtime NUMBER(5), task_idx NUMBER(5), priority_idx NUMBER(5), type NUMBER(5), status NUMBER(5), private NUMBER(5), alarm NUMBER(5), text_id NUMBER(10), project_id NUMBER(10), mother_id NUMBER(10), userdef_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXMappntId ON so.mailappointment (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXMappntCont_id ON so.mailappointment (contact_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXMappntGrp_idx ON so.mailappointment (group_idx ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXMappntReg ON so.mailappointment (registered ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCMappntAssoc_IdDoneType ON so.mailappointment (associate_id ASC, done ASC, type ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.accessrights (id NUMBER(10), a_id NUMBER(10), a_type NUMBER(5), b_id NUMBER(10), b_type NUMBER(5), rights NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXRightsId ON so.accessrights (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.activeuser (id NUMBER(10), login NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXAuserId ON so.activeuser (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.traveltransactionlog (id NUMBER(10), ttime NUMBER(10), tmode NUMBER(5), type NUMBER(5), associate_id NUMBER(10), tablenumber NUMBER(5), record_id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXTrlogId ON so.traveltransactionlog (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IDXTrlogTime ON so.traveltransactionlog (ttime ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.travelgeneratedtransaction (id NUMBER(10), travel_id NUMBER(10), tranlogfirst_id NUMBER(10), tranloglast_id NUMBER(10), recordstatus NUMBER(5), transmissionnumber NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXTrgtrId ON so.travelgeneratedtransaction (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.traveller (id NUMBER(10), systemlevel NUMBER(5), travel_id NUMBER(10), area_id NUMBER(10), generatedtime NUMBER(10), last_recordtime NUMBER(10), last_recordnumber NUMBER(10), last_playbacktime NUMBER(10), last_playbacknumber NUMBER(10), databasetype NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXTrlerId ON so.traveller (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.travelcurrent (id NUMBER(10), systemlevel NUMBER(5), current_id NUMBER(10), central_id NUMBER(10), area_id NUMBER(10), central_generatedtime NUMBER(10), current_generatedtime NUMBER(10), last_recordtime NUMBER(10), last_recordnumber NUMBER(10), first_recordnumber NUMBER(10), last_playbacktime NUMBER(10), last_playbacknumber NUMBER(10), databasetype NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXTrcurId ON so.travelcurrent (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.travelgenerateddatabase (id NUMBER(10), databasetype NUMBER(5), area_id NUMBER(10), areatext_id NUMBER(10), generatedtime NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXTrgdbId ON so.travelgenerateddatabase (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.userdeftable (id NUMBER(10), name VARCHAR2(40), table_number NUMBER(5), width NUMBER(5), length NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXUdtabId ON so.userdeftable (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.userdefcontrol (id NUMBER(10), userdeftable_id NUMBER(10), type NUMBER(5), list_id NUMBER(5), csize NUMBER(5), prefix VARCHAR2(20), prefix_pos NUMBER(10), prefix_width NUMBER(5), control_pos NUMBER(10), control_width NUMBER(5), control_height NUMBER(5), rank NUMBER(5), field_number NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXUdctlId ON so.userdefcontrol (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE INDEX IXCUdctlUdtab_IdRank ON so.userdefcontrol (userdeftable_id ASC, rank ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.udcontact1 (id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXUdcont1Id ON so.udcontact1 (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.udcontact2 (id NUMBER(10)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDXUdcont2Id ON so.udcontact2 (id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE TABLE so.recordlink (id NUMBER(10), tablenumber NUMBER(10), record_id NUMBER(10), associate_id NUMBER(10), external_id NUMBER(10), generatedtime NUMBER(10), flag NUMBER(5)) PCTFREE 20 PCTUSED 60 STORAGE (INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 50);
CREATE UNIQUE INDEX IDCRLinkTabnoRec_IdAssoc_Id ON so.recordlink (tablenumber ASC, record_id ASC, associate_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);
CREATE UNIQUE INDEX IDCRLinkAssoc_IdTabnoRec_Id ON so.recordlink (associate_id ASC, tablenumber ASC, record_id ASC) PCTFREE 20 STORAGE (INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 99 PCTINCREASE 0);