chado_tables.schema.inc 218 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897
  1. <?php
  2. function tripal_core_get_chado_schema (){
  3. $schema['organism_dbxref'] = array(
  4. 'description' => t('TODO: please describe this table!'),
  5. 'fields' => array(
  6. 'organism_dbxref_id' => array(
  7. 'description' => t('TODO: please describe this field!'),
  8. 'type' => 'serial',
  9. 'not null' => TRUE,
  10. ),
  11. 'organism_id' => array(
  12. 'description' => t('TODO: please describe this field!'),
  13. 'type' => 'int',
  14. 'not null' => TRUE,
  15. ),
  16. 'dbxref_id' => array(
  17. 'description' => t('TODO: please describe this field!'),
  18. 'type' => 'int',
  19. 'not null' => TRUE,
  20. ),
  21. ),
  22. 'primary key' => array('organism_dbxref_id'),
  23. 'unique keys' => array(
  24. 'organism_dbxref_c1' => array('organism_id', 'dbxref_id')
  25. ),
  26. 'indexes' => array(
  27. 'organism_dbxref_idx1' => array('organism_id'),
  28. 'organism_dbxref_idx2' => array('dbxref_id'),
  29. ),
  30. );
  31. $schema['organismprop'] = array(
  32. 'description' => t('TODO: please describe this table!'),
  33. 'fields' => array(
  34. 'organismprop_id' => array(
  35. 'description' => t('TODO: please describe this field!'),
  36. 'type' => 'serial',
  37. 'not null' => TRUE,
  38. ),
  39. 'organism_id' => array(
  40. 'description' => t('TODO: please describe this field!'),
  41. 'type' => 'int',
  42. 'not null' => TRUE,
  43. ),
  44. 'type_id' => array(
  45. 'description' => t('TODO: please describe this field!'),
  46. 'type' => 'int',
  47. 'not null' => TRUE,
  48. ),
  49. 'value' => array(
  50. 'description' => t('TODO: please describe this field!'),
  51. 'type' => 'text',
  52. 'not null' => FALSE,
  53. ),
  54. 'rank' => array(
  55. 'description' => t('TODO: please describe this field!'),
  56. 'type' => 'int',
  57. 'not null' => TRUE,
  58. 'default' => 0,
  59. ),
  60. ),
  61. 'primary key' => array('organismprop_id'),
  62. 'unique keys' => array(
  63. 'organismprop_c1' => array('organism_id', 'type_id', 'rank')
  64. ),
  65. 'indexes' => array(
  66. 'organismprop_idx1' => array('organism_id'),
  67. 'organismprop_idx2' => array('type_id'),
  68. ),
  69. );
  70. $schema['phendesc'] = array(
  71. 'description' => t('TODO: please describe this table!'),
  72. 'fields' => array(
  73. 'phendesc_id' => array(
  74. 'description' => t('TODO: please describe this field!'),
  75. 'type' => 'serial',
  76. 'not null' => TRUE,
  77. ),
  78. 'genotype_id' => array(
  79. 'description' => t('TODO: please describe this field!'),
  80. 'type' => 'int',
  81. 'not null' => TRUE,
  82. ),
  83. 'environment_id' => array(
  84. 'description' => t('TODO: please describe this field!'),
  85. 'type' => 'int',
  86. 'not null' => TRUE,
  87. ),
  88. 'description' => array(
  89. 'description' => t('TODO: please describe this field!'),
  90. 'type' => 'text',
  91. 'not null' => TRUE,
  92. ),
  93. 'type_id' => array(
  94. 'description' => t('TODO: please describe this field!'),
  95. 'type' => 'int',
  96. 'not null' => TRUE,
  97. ),
  98. 'pub_id' => array(
  99. 'description' => t('TODO: please describe this field!'),
  100. 'type' => 'int',
  101. 'not null' => TRUE,
  102. ),
  103. ),
  104. 'primary key' => array('phendesc_id'),
  105. 'unique keys' => array(
  106. 'phendesc_c1' => array('genotype_id', 'environment_id', 'type_id', 'pub_id')
  107. ),
  108. 'indexes' => array(
  109. 'phendesc_idx1' => array('genotype_id'),
  110. 'phendesc_idx2' => array('environment_id'),
  111. 'phendesc_idx3' => array('pub_id'),
  112. ),
  113. );
  114. $schema['phenotype'] = array(
  115. 'description' => t('TODO: please describe this table!'),
  116. 'fields' => array(
  117. 'phenotype_id' => array(
  118. 'description' => t('TODO: please describe this field!'),
  119. 'type' => 'serial',
  120. 'not null' => TRUE,
  121. ),
  122. 'uniquename' => array(
  123. 'description' => t('TODO: please describe this field!'),
  124. 'type' => 'text',
  125. 'not null' => TRUE,
  126. ),
  127. 'observable_id' => array(
  128. 'description' => t('TODO: please describe this field!'),
  129. 'type' => 'int',
  130. 'not null' => FALSE,
  131. ),
  132. 'attr_id' => array(
  133. 'description' => t('TODO: please describe this field!'),
  134. 'type' => 'int',
  135. 'not null' => FALSE,
  136. ),
  137. 'value' => array(
  138. 'description' => t('TODO: please describe this field!'),
  139. 'type' => 'text',
  140. 'not null' => FALSE,
  141. ),
  142. 'cvalue_id' => array(
  143. 'description' => t('TODO: please describe this field!'),
  144. 'type' => 'int',
  145. 'not null' => FALSE,
  146. ),
  147. 'assay_id' => array(
  148. 'description' => t('TODO: please describe this field!'),
  149. 'type' => 'int',
  150. 'not null' => FALSE,
  151. ),
  152. ),
  153. 'primary key' => array('phenotype_id'),
  154. 'unique keys' => array(
  155. 'phenotype_c1' => array('uniquename')
  156. ),
  157. 'indexes' => array(
  158. 'phenotype_idx1' => array('cvalue_id'),
  159. 'phenotype_idx2' => array('observable_id'),
  160. 'phenotype_idx3' => array('attr_id'),
  161. ),
  162. );
  163. $schema['organism'] = array(
  164. 'description' => t('TODO: please describe this table!'),
  165. 'fields' => array(
  166. 'organism_id' => array(
  167. 'description' => t('TODO: please describe this field!'),
  168. 'type' => 'serial',
  169. 'not null' => TRUE,
  170. ),
  171. 'abbreviation' => array(
  172. 'description' => t('TODO: please describe this field!'),
  173. 'type' => 'varchar',
  174. 'length' => '255',
  175. 'not null' => FALSE,
  176. ),
  177. 'genus' => array(
  178. 'description' => t('TODO: please describe this field!'),
  179. 'type' => 'varchar',
  180. 'length' => '255',
  181. 'not null' => TRUE,
  182. ),
  183. 'species' => array(
  184. 'description' => t('TODO: please describe this field!'),
  185. 'type' => 'varchar',
  186. 'length' => '255',
  187. 'not null' => TRUE,
  188. ),
  189. 'common_name' => array(
  190. 'description' => t('TODO: please describe this field!'),
  191. 'type' => 'varchar',
  192. 'length' => '255',
  193. 'not null' => FALSE,
  194. ),
  195. 'comment' => array(
  196. 'description' => t('TODO: please describe this field!'),
  197. 'type' => 'text',
  198. 'not null' => FALSE,
  199. ),
  200. ),
  201. 'primary key' => array('organism_id'),
  202. 'unique keys' => array(
  203. 'organism_c1' => array('genus', 'species')
  204. ),
  205. );
  206. $schema['materialized_view'] = array(
  207. 'description' => t('TODO: please describe this table!'),
  208. 'fields' => array(
  209. 'materialized_view_id' => array(
  210. 'description' => t('TODO: please describe this field!'),
  211. 'type' => 'serial',
  212. 'not null' => TRUE,
  213. ),
  214. 'last_update' => array(
  215. 'description' => t('TODO: please describe this field!'),
  216. 'type' => 'datetime',
  217. 'not null' => FALSE,
  218. ),
  219. 'refresh_time' => array(
  220. 'description' => t('TODO: please describe this field!'),
  221. 'type' => 'int',
  222. 'not null' => FALSE,
  223. ),
  224. 'name' => array(
  225. 'description' => t('TODO: please describe this field!'),
  226. 'type' => 'varchar',
  227. 'length' => '64',
  228. 'not null' => FALSE,
  229. ),
  230. 'mv_schema' => array(
  231. 'description' => t('TODO: please describe this field!'),
  232. 'type' => 'varchar',
  233. 'length' => '64',
  234. 'not null' => FALSE,
  235. ),
  236. 'mv_table' => array(
  237. 'description' => t('TODO: please describe this field!'),
  238. 'type' => 'varchar',
  239. 'length' => '128',
  240. 'not null' => FALSE,
  241. ),
  242. 'mv_specs' => array(
  243. 'description' => t('TODO: please describe this field!'),
  244. 'type' => 'text',
  245. 'not null' => FALSE,
  246. ),
  247. 'indexed' => array(
  248. 'description' => t('TODO: please describe this field!'),
  249. 'type' => 'text',
  250. 'not null' => FALSE,
  251. ),
  252. 'query' => array(
  253. 'description' => t('TODO: please describe this field!'),
  254. 'type' => 'text',
  255. 'not null' => FALSE,
  256. ),
  257. 'special_index' => array(
  258. 'description' => t('TODO: please describe this field!'),
  259. 'type' => 'text',
  260. 'not null' => FALSE,
  261. ),
  262. ),
  263. 'unique keys' => array(
  264. 'name' => array('name')
  265. ),
  266. );
  267. $schema['libraryprop'] = array(
  268. 'description' => t('TODO: please describe this table!'),
  269. 'fields' => array(
  270. 'libraryprop_id' => array(
  271. 'description' => t('TODO: please describe this field!'),
  272. 'type' => 'serial',
  273. 'not null' => TRUE,
  274. ),
  275. 'library_id' => array(
  276. 'description' => t('TODO: please describe this field!'),
  277. 'type' => 'int',
  278. 'not null' => TRUE,
  279. ),
  280. 'type_id' => array(
  281. 'description' => t('TODO: please describe this field!'),
  282. 'type' => 'int',
  283. 'not null' => TRUE,
  284. ),
  285. 'value' => array(
  286. 'description' => t('TODO: please describe this field!'),
  287. 'type' => 'text',
  288. 'not null' => FALSE,
  289. ),
  290. 'rank' => array(
  291. 'description' => t('TODO: please describe this field!'),
  292. 'type' => 'int',
  293. 'not null' => TRUE,
  294. 'default' => 0,
  295. ),
  296. ),
  297. 'primary key' => array('libraryprop_id'),
  298. 'unique keys' => array(
  299. 'libraryprop_c1' => array('library_id', 'type_id', 'rank')
  300. ),
  301. 'indexes' => array(
  302. 'libraryprop_idx1' => array('library_id'),
  303. 'libraryprop_idx2' => array('type_id'),
  304. ),
  305. );
  306. $schema['libraryprop_pub'] = array(
  307. 'description' => t('TODO: please describe this table!'),
  308. 'fields' => array(
  309. 'libraryprop_pub_id' => array(
  310. 'description' => t('TODO: please describe this field!'),
  311. 'type' => 'serial',
  312. 'not null' => TRUE,
  313. ),
  314. 'libraryprop_id' => array(
  315. 'description' => t('TODO: please describe this field!'),
  316. 'type' => 'int',
  317. 'not null' => TRUE,
  318. ),
  319. 'pub_id' => array(
  320. 'description' => t('TODO: please describe this field!'),
  321. 'type' => 'int',
  322. 'not null' => TRUE,
  323. ),
  324. ),
  325. 'primary key' => array('libraryprop_pub_id'),
  326. 'unique keys' => array(
  327. 'libraryprop_pub_c1' => array('libraryprop_id', 'pub_id')
  328. ),
  329. 'indexes' => array(
  330. 'libraryprop_pub_idx1' => array('libraryprop_id'),
  331. 'libraryprop_pub_idx2' => array('pub_id'),
  332. ),
  333. );
  334. $schema['magedocumentation'] = array(
  335. 'description' => t('TODO: please describe this table!'),
  336. 'fields' => array(
  337. 'magedocumentation_id' => array(
  338. 'description' => t('TODO: please describe this field!'),
  339. 'type' => 'serial',
  340. 'not null' => TRUE,
  341. ),
  342. 'mageml_id' => array(
  343. 'description' => t('TODO: please describe this field!'),
  344. 'type' => 'int',
  345. 'not null' => TRUE,
  346. ),
  347. 'tableinfo_id' => array(
  348. 'description' => t('TODO: please describe this field!'),
  349. 'type' => 'int',
  350. 'not null' => TRUE,
  351. ),
  352. 'row_id' => array(
  353. 'description' => t('TODO: please describe this field!'),
  354. 'type' => 'int',
  355. 'not null' => TRUE,
  356. ),
  357. 'mageidentifier' => array(
  358. 'description' => t('TODO: please describe this field!'),
  359. 'type' => 'text',
  360. 'not null' => TRUE,
  361. ),
  362. ),
  363. 'primary key' => array('magedocumentation_id'),
  364. 'indexes' => array(
  365. 'magedocumentation_idx1' => array('mageml_id'),
  366. 'magedocumentation_idx2' => array('tableinfo_id'),
  367. 'magedocumentation_idx3' => array('row_id'),
  368. ),
  369. );
  370. $schema['mageml'] = array(
  371. 'description' => t('TODO: please describe this table!'),
  372. 'fields' => array(
  373. 'mageml_id' => array(
  374. 'description' => t('TODO: please describe this field!'),
  375. 'type' => 'serial',
  376. 'not null' => TRUE,
  377. ),
  378. 'mage_package' => array(
  379. 'description' => t('TODO: please describe this field!'),
  380. 'type' => 'text',
  381. 'not null' => TRUE,
  382. ),
  383. 'mage_ml' => array(
  384. 'description' => t('TODO: please describe this field!'),
  385. 'type' => 'text',
  386. 'not null' => TRUE,
  387. ),
  388. ),
  389. 'primary key' => array('mageml_id'),
  390. );
  391. $schema['phenotype_comparison'] = array(
  392. 'description' => t('TODO: please describe this table!'),
  393. 'fields' => array(
  394. 'phenotype_comparison_id' => array(
  395. 'description' => t('TODO: please describe this field!'),
  396. 'type' => 'serial',
  397. 'not null' => TRUE,
  398. ),
  399. 'genotype1_id' => array(
  400. 'description' => t('TODO: please describe this field!'),
  401. 'type' => 'int',
  402. 'not null' => TRUE,
  403. ),
  404. 'environment1_id' => array(
  405. 'description' => t('TODO: please describe this field!'),
  406. 'type' => 'int',
  407. 'not null' => TRUE,
  408. ),
  409. 'genotype2_id' => array(
  410. 'description' => t('TODO: please describe this field!'),
  411. 'type' => 'int',
  412. 'not null' => TRUE,
  413. ),
  414. 'environment2_id' => array(
  415. 'description' => t('TODO: please describe this field!'),
  416. 'type' => 'int',
  417. 'not null' => TRUE,
  418. ),
  419. 'phenotype1_id' => array(
  420. 'description' => t('TODO: please describe this field!'),
  421. 'type' => 'int',
  422. 'not null' => TRUE,
  423. ),
  424. 'phenotype2_id' => array(
  425. 'description' => t('TODO: please describe this field!'),
  426. 'type' => 'int',
  427. 'not null' => FALSE,
  428. ),
  429. 'pub_id' => array(
  430. 'description' => t('TODO: please describe this field!'),
  431. 'type' => 'int',
  432. 'not null' => TRUE,
  433. ),
  434. 'organism_id' => array(
  435. 'description' => t('TODO: please describe this field!'),
  436. 'type' => 'int',
  437. 'not null' => TRUE,
  438. ),
  439. ),
  440. 'primary key' => array('phenotype_comparison_id'),
  441. 'unique keys' => array(
  442. 'phenotype_comparison_c1' => array('genotype1_id', 'environment1_id', 'genotype2_id', 'environment2_id', 'phenotype1_id', 'pub_id')
  443. ),
  444. 'indexes' => array(
  445. 'phenotype_comparison_idx1' => array('genotype1_id'),
  446. 'phenotype_comparison_idx2' => array('genotype2_id'),
  447. 'phenotype_comparison_idx4' => array('pub_id'),
  448. ),
  449. );
  450. $schema['phenotype_comparison_cvterm'] = array(
  451. 'description' => t('TODO: please describe this table!'),
  452. 'fields' => array(
  453. 'phenotype_comparison_cvterm_id' => array(
  454. 'description' => t('TODO: please describe this field!'),
  455. 'type' => 'serial',
  456. 'not null' => TRUE,
  457. ),
  458. 'phenotype_comparison_id' => array(
  459. 'description' => t('TODO: please describe this field!'),
  460. 'type' => 'int',
  461. 'not null' => TRUE,
  462. ),
  463. 'cvterm_id' => array(
  464. 'description' => t('TODO: please describe this field!'),
  465. 'type' => 'int',
  466. 'not null' => TRUE,
  467. ),
  468. 'pub_id' => array(
  469. 'description' => t('TODO: please describe this field!'),
  470. 'type' => 'int',
  471. 'not null' => TRUE,
  472. ),
  473. 'rank' => array(
  474. 'description' => t('TODO: please describe this field!'),
  475. 'type' => 'int',
  476. 'not null' => TRUE,
  477. 'default' => 0,
  478. ),
  479. ),
  480. 'primary key' => array('phenotype_comparison_cvterm_id'),
  481. 'unique keys' => array(
  482. 'phenotype_comparison_cvterm_c1' => array('phenotype_comparison_id', 'cvterm_id')
  483. ),
  484. 'indexes' => array(
  485. 'phenotype_comparison_cvterm_idx1' => array('phenotype_comparison_id'),
  486. 'phenotype_comparison_cvterm_idx2' => array('cvterm_id'),
  487. ),
  488. );
  489. $schema['phylonode_relationship'] = array(
  490. 'description' => t('TODO: please describe this table!'),
  491. 'fields' => array(
  492. 'phylonode_relationship_id' => array(
  493. 'description' => t('TODO: please describe this field!'),
  494. 'type' => 'serial',
  495. 'not null' => TRUE,
  496. ),
  497. 'subject_id' => array(
  498. 'description' => t('TODO: please describe this field!'),
  499. 'type' => 'int',
  500. 'not null' => TRUE,
  501. ),
  502. 'object_id' => array(
  503. 'description' => t('TODO: please describe this field!'),
  504. 'type' => 'int',
  505. 'not null' => TRUE,
  506. ),
  507. 'type_id' => array(
  508. 'description' => t('TODO: please describe this field!'),
  509. 'type' => 'int',
  510. 'not null' => TRUE,
  511. ),
  512. 'rank' => array(
  513. 'description' => t('TODO: please describe this field!'),
  514. 'type' => 'int',
  515. 'not null' => FALSE,
  516. ),
  517. 'phylotree_id' => array(
  518. 'description' => t('TODO: please describe this field!'),
  519. 'type' => 'int',
  520. 'not null' => TRUE,
  521. ),
  522. ),
  523. 'primary key' => array('phylonode_relationship_id'),
  524. 'unique keys' => array(
  525. 'subject_id' => array('subject_id', 'object_id', 'type_id')
  526. ),
  527. 'indexes' => array(
  528. 'phylonode_relationship_idx1' => array('subject_id'),
  529. 'phylonode_relationship_idx2' => array('object_id'),
  530. 'phylonode_relationship_idx3' => array('type_id'),
  531. ),
  532. );
  533. $schema['phylonodeprop'] = array(
  534. 'description' => t('TODO: please describe this table!'),
  535. 'fields' => array(
  536. 'phylonodeprop_id' => array(
  537. 'description' => t('TODO: please describe this field!'),
  538. 'type' => 'serial',
  539. 'not null' => TRUE,
  540. ),
  541. 'phylonode_id' => array(
  542. 'description' => t('TODO: please describe this field!'),
  543. 'type' => 'int',
  544. 'not null' => TRUE,
  545. ),
  546. 'type_id' => array(
  547. 'description' => t('TODO: please describe this field!'),
  548. 'type' => 'int',
  549. 'not null' => TRUE,
  550. ),
  551. 'value' => array(
  552. 'description' => t('TODO: please describe this field!'),
  553. 'type' => 'text',
  554. 'not null' => TRUE,
  555. 'default' => '',
  556. ),
  557. 'rank' => array(
  558. 'description' => t('TODO: please describe this field!'),
  559. 'type' => 'int',
  560. 'not null' => TRUE,
  561. 'default' => 0,
  562. ),
  563. ),
  564. 'primary key' => array('phylonodeprop_id'),
  565. 'unique keys' => array(
  566. 'phylonode_id' => array('phylonode_id', 'type_id', 'value', 'rank')
  567. ),
  568. 'indexes' => array(
  569. 'phylonodeprop_idx1' => array('phylonode_id'),
  570. 'phylonodeprop_idx2' => array('type_id'),
  571. ),
  572. );
  573. $schema['phylotree'] = array(
  574. 'description' => t('TODO: please describe this table!'),
  575. 'fields' => array(
  576. 'phylotree_id' => array(
  577. 'description' => t('TODO: please describe this field!'),
  578. 'type' => 'serial',
  579. 'not null' => TRUE,
  580. ),
  581. 'dbxref_id' => array(
  582. 'description' => t('TODO: please describe this field!'),
  583. 'type' => 'int',
  584. 'not null' => TRUE,
  585. ),
  586. 'name' => array(
  587. 'description' => t('TODO: please describe this field!'),
  588. 'type' => 'varchar',
  589. 'length' => '255',
  590. 'not null' => FALSE,
  591. ),
  592. 'type_id' => array(
  593. 'description' => t('TODO: please describe this field!'),
  594. 'type' => 'int',
  595. 'not null' => FALSE,
  596. ),
  597. 'analysis_id' => array(
  598. 'description' => t('TODO: please describe this field!'),
  599. 'type' => 'int',
  600. 'not null' => FALSE,
  601. ),
  602. 'comment' => array(
  603. 'description' => t('TODO: please describe this field!'),
  604. 'type' => 'text',
  605. 'not null' => FALSE,
  606. ),
  607. ),
  608. 'primary key' => array('phylotree_id'),
  609. 'indexes' => array(
  610. 'phylotree_idx1' => array('phylotree_id'),
  611. ),
  612. );
  613. $schema['phylotree_pub'] = array(
  614. 'description' => t('TODO: please describe this table!'),
  615. 'fields' => array(
  616. 'phylotree_pub_id' => array(
  617. 'description' => t('TODO: please describe this field!'),
  618. 'type' => 'serial',
  619. 'not null' => TRUE,
  620. ),
  621. 'phylotree_id' => array(
  622. 'description' => t('TODO: please describe this field!'),
  623. 'type' => 'int',
  624. 'not null' => TRUE,
  625. ),
  626. 'pub_id' => array(
  627. 'description' => t('TODO: please describe this field!'),
  628. 'type' => 'int',
  629. 'not null' => TRUE,
  630. ),
  631. ),
  632. 'primary key' => array('phylotree_pub_id'),
  633. 'unique keys' => array(
  634. 'phylotree_id' => array('phylotree_id', 'pub_id')
  635. ),
  636. 'indexes' => array(
  637. 'phylotree_pub_idx1' => array('phylotree_id'),
  638. 'phylotree_pub_idx2' => array('pub_id'),
  639. ),
  640. );
  641. $schema['phylonode_pub'] = array(
  642. 'description' => t('TODO: please describe this table!'),
  643. 'fields' => array(
  644. 'phylonode_pub_id' => array(
  645. 'description' => t('TODO: please describe this field!'),
  646. 'type' => 'serial',
  647. 'not null' => TRUE,
  648. ),
  649. 'phylonode_id' => array(
  650. 'description' => t('TODO: please describe this field!'),
  651. 'type' => 'int',
  652. 'not null' => TRUE,
  653. ),
  654. 'pub_id' => array(
  655. 'description' => t('TODO: please describe this field!'),
  656. 'type' => 'int',
  657. 'not null' => TRUE,
  658. ),
  659. ),
  660. 'primary key' => array('phylonode_pub_id'),
  661. 'unique keys' => array(
  662. 'phylonode_id' => array('phylonode_id', 'pub_id')
  663. ),
  664. 'indexes' => array(
  665. 'phylonode_pub_idx1' => array('phylonode_id'),
  666. 'phylonode_pub_idx2' => array('pub_id'),
  667. ),
  668. );
  669. $schema['phylonode_organism'] = array(
  670. 'description' => t('TODO: please describe this table!'),
  671. 'fields' => array(
  672. 'phylonode_organism_id' => array(
  673. 'description' => t('TODO: please describe this field!'),
  674. 'type' => 'serial',
  675. 'not null' => TRUE,
  676. ),
  677. 'phylonode_id' => array(
  678. 'description' => t('TODO: please describe this field!'),
  679. 'type' => 'int',
  680. 'not null' => TRUE,
  681. ),
  682. 'organism_id' => array(
  683. 'description' => t('TODO: please describe this field!'),
  684. 'type' => 'int',
  685. 'not null' => TRUE,
  686. ),
  687. ),
  688. 'primary key' => array('phylonode_organism_id'),
  689. 'unique keys' => array(
  690. 'phylonode_id' => array('phylonode_id')
  691. ),
  692. 'indexes' => array(
  693. 'phylonode_organism_idx1' => array('phylonode_id'),
  694. 'phylonode_organism_idx2' => array('organism_id'),
  695. ),
  696. );
  697. $schema['phenotype_cvterm'] = array(
  698. 'description' => t('TODO: please describe this table!'),
  699. 'fields' => array(
  700. 'phenotype_cvterm_id' => array(
  701. 'description' => t('TODO: please describe this field!'),
  702. 'type' => 'serial',
  703. 'not null' => TRUE,
  704. ),
  705. 'phenotype_id' => array(
  706. 'description' => t('TODO: please describe this field!'),
  707. 'type' => 'int',
  708. 'not null' => TRUE,
  709. ),
  710. 'cvterm_id' => array(
  711. 'description' => t('TODO: please describe this field!'),
  712. 'type' => 'int',
  713. 'not null' => TRUE,
  714. ),
  715. 'rank' => array(
  716. 'description' => t('TODO: please describe this field!'),
  717. 'type' => 'int',
  718. 'not null' => TRUE,
  719. 'default' => 0,
  720. ),
  721. ),
  722. 'primary key' => array('phenotype_cvterm_id'),
  723. 'unique keys' => array(
  724. 'phenotype_cvterm_c1' => array('phenotype_id', 'cvterm_id', 'rank')
  725. ),
  726. 'indexes' => array(
  727. 'phenotype_cvterm_idx1' => array('phenotype_id'),
  728. 'phenotype_cvterm_idx2' => array('cvterm_id'),
  729. ),
  730. );
  731. $schema['phenstatement'] = array(
  732. 'description' => t('TODO: please describe this table!'),
  733. 'fields' => array(
  734. 'phenstatement_id' => array(
  735. 'description' => t('TODO: please describe this field!'),
  736. 'type' => 'serial',
  737. 'not null' => TRUE,
  738. ),
  739. 'genotype_id' => array(
  740. 'description' => t('TODO: please describe this field!'),
  741. 'type' => 'int',
  742. 'not null' => TRUE,
  743. ),
  744. 'environment_id' => array(
  745. 'description' => t('TODO: please describe this field!'),
  746. 'type' => 'int',
  747. 'not null' => TRUE,
  748. ),
  749. 'phenotype_id' => array(
  750. 'description' => t('TODO: please describe this field!'),
  751. 'type' => 'int',
  752. 'not null' => TRUE,
  753. ),
  754. 'type_id' => array(
  755. 'description' => t('TODO: please describe this field!'),
  756. 'type' => 'int',
  757. 'not null' => TRUE,
  758. ),
  759. 'pub_id' => array(
  760. 'description' => t('TODO: please describe this field!'),
  761. 'type' => 'int',
  762. 'not null' => TRUE,
  763. ),
  764. ),
  765. 'primary key' => array('phenstatement_id'),
  766. 'unique keys' => array(
  767. 'phenstatement_c1' => array('genotype_id', 'phenotype_id', 'environment_id', 'type_id', 'pub_id')
  768. ),
  769. 'indexes' => array(
  770. 'phenstatement_idx1' => array('genotype_id'),
  771. 'phenstatement_idx2' => array('phenotype_id'),
  772. ),
  773. );
  774. $schema['phylonode'] = array(
  775. 'description' => t('TODO: please describe this table!'),
  776. 'fields' => array(
  777. 'phylonode_id' => array(
  778. 'description' => t('TODO: please describe this field!'),
  779. 'type' => 'serial',
  780. 'not null' => TRUE,
  781. ),
  782. 'phylotree_id' => array(
  783. 'description' => t('TODO: please describe this field!'),
  784. 'type' => 'int',
  785. 'not null' => TRUE,
  786. ),
  787. 'parent_phylonode_id' => array(
  788. 'description' => t('TODO: please describe this field!'),
  789. 'type' => 'int',
  790. 'not null' => FALSE,
  791. ),
  792. 'left_idx' => array(
  793. 'description' => t('TODO: please describe this field!'),
  794. 'type' => 'int',
  795. 'not null' => TRUE,
  796. ),
  797. 'right_idx' => array(
  798. 'description' => t('TODO: please describe this field!'),
  799. 'type' => 'int',
  800. 'not null' => TRUE,
  801. ),
  802. 'type_id' => array(
  803. 'description' => t('TODO: please describe this field!'),
  804. 'type' => 'int',
  805. 'not null' => FALSE,
  806. ),
  807. 'feature_id' => array(
  808. 'description' => t('TODO: please describe this field!'),
  809. 'type' => 'int',
  810. 'not null' => FALSE,
  811. ),
  812. 'label' => array(
  813. 'description' => t('TODO: please describe this field!'),
  814. 'type' => 'varchar',
  815. 'length' => '255',
  816. 'not null' => FALSE,
  817. ),
  818. 'distance' => array(
  819. 'description' => t('TODO: please describe this field!'),
  820. 'type' => 'float',
  821. 'size' => 'big',
  822. 'not null' => FALSE,
  823. ),
  824. ),
  825. 'primary key' => array('phylonode_id'),
  826. 'unique keys' => array(
  827. 'phylotree_id' => array('phylotree_id', 'left_idx'),
  828. 'phylonode_phylotree_id_key1' => array('phylotree_id', 'right_idx')
  829. ),
  830. );
  831. $schema['phylonode_dbxref'] = array(
  832. 'description' => t('TODO: please describe this table!'),
  833. 'fields' => array(
  834. 'phylonode_dbxref_id' => array(
  835. 'description' => t('TODO: please describe this field!'),
  836. 'type' => 'serial',
  837. 'not null' => TRUE,
  838. ),
  839. 'phylonode_id' => array(
  840. 'description' => t('TODO: please describe this field!'),
  841. 'type' => 'int',
  842. 'not null' => TRUE,
  843. ),
  844. 'dbxref_id' => array(
  845. 'description' => t('TODO: please describe this field!'),
  846. 'type' => 'int',
  847. 'not null' => TRUE,
  848. ),
  849. ),
  850. 'primary key' => array('phylonode_dbxref_id'),
  851. 'unique keys' => array(
  852. 'phylonode_id' => array('phylonode_id', 'dbxref_id')
  853. ),
  854. 'indexes' => array(
  855. 'phylonode_dbxref_idx1' => array('phylonode_id'),
  856. 'phylonode_dbxref_idx2' => array('dbxref_id'),
  857. ),
  858. );
  859. $schema['library_synonym'] = array(
  860. 'description' => t('TODO: please describe this table!'),
  861. 'fields' => array(
  862. 'library_synonym_id' => array(
  863. 'description' => t('TODO: please describe this field!'),
  864. 'type' => 'serial',
  865. 'not null' => TRUE,
  866. ),
  867. 'synonym_id' => array(
  868. 'description' => t('TODO: please describe this field!'),
  869. 'type' => 'int',
  870. 'not null' => TRUE,
  871. ),
  872. 'library_id' => array(
  873. 'description' => t('TODO: please describe this field!'),
  874. 'type' => 'int',
  875. 'not null' => TRUE,
  876. ),
  877. 'pub_id' => array(
  878. 'description' => t('TODO: please describe this field!'),
  879. 'type' => 'int',
  880. 'not null' => TRUE,
  881. ),
  882. 'is_current' => array(
  883. 'description' => t('TODO: please describe this field!'),
  884. 'type' => 'boolean',
  885. 'not null' => TRUE,
  886. 'default' => 'ru',
  887. ),
  888. 'is_internal' => array(
  889. 'description' => t('TODO: please describe this field!'),
  890. 'type' => 'boolean',
  891. 'not null' => TRUE,
  892. 'default' => 'als',
  893. ),
  894. ),
  895. 'primary key' => array('library_synonym_id'),
  896. 'unique keys' => array(
  897. 'library_synonym_c1' => array('synonym_id', 'library_id', 'pub_id')
  898. ),
  899. 'indexes' => array(
  900. 'library_synonym_idx1' => array('synonym_id'),
  901. 'library_synonym_idx2' => array('library_id'),
  902. 'library_synonym_idx3' => array('pub_id'),
  903. ),
  904. );
  905. $schema['library_pub'] = array(
  906. 'description' => t('TODO: please describe this table!'),
  907. 'fields' => array(
  908. 'library_pub_id' => array(
  909. 'description' => t('TODO: please describe this field!'),
  910. 'type' => 'serial',
  911. 'not null' => TRUE,
  912. ),
  913. 'library_id' => array(
  914. 'description' => t('TODO: please describe this field!'),
  915. 'type' => 'int',
  916. 'not null' => TRUE,
  917. ),
  918. 'pub_id' => array(
  919. 'description' => t('TODO: please describe this field!'),
  920. 'type' => 'int',
  921. 'not null' => TRUE,
  922. ),
  923. ),
  924. 'primary key' => array('library_pub_id'),
  925. 'unique keys' => array(
  926. 'library_pub_c1' => array('library_id', 'pub_id')
  927. ),
  928. 'indexes' => array(
  929. 'library_pub_idx1' => array('library_id'),
  930. 'library_pub_idx2' => array('pub_id'),
  931. ),
  932. );
  933. $schema['featureprop_pub'] = array(
  934. 'description' => t('TODO: please describe this table!'),
  935. 'fields' => array(
  936. 'featureprop_pub_id' => array(
  937. 'description' => t('TODO: please describe this field!'),
  938. 'type' => 'serial',
  939. 'not null' => TRUE,
  940. ),
  941. 'featureprop_id' => array(
  942. 'description' => t('TODO: please describe this field!'),
  943. 'type' => 'int',
  944. 'not null' => TRUE,
  945. ),
  946. 'pub_id' => array(
  947. 'description' => t('TODO: please describe this field!'),
  948. 'type' => 'int',
  949. 'not null' => TRUE,
  950. ),
  951. ),
  952. 'primary key' => array('featureprop_pub_id'),
  953. 'unique keys' => array(
  954. 'featureprop_pub_c1' => array('featureprop_id', 'pub_id')
  955. ),
  956. 'indexes' => array(
  957. 'featureprop_pub_idx1' => array('featureprop_id'),
  958. 'featureprop_pub_idx2' => array('pub_id'),
  959. ),
  960. );
  961. $schema['featureprop'] = array(
  962. 'description' => t('TODO: please describe this table!'),
  963. 'fields' => array(
  964. 'featureprop_id' => array(
  965. 'description' => t('TODO: please describe this field!'),
  966. 'type' => 'serial',
  967. 'not null' => TRUE,
  968. ),
  969. 'feature_id' => array(
  970. 'description' => t('TODO: please describe this field!'),
  971. 'type' => 'int',
  972. 'not null' => TRUE,
  973. ),
  974. 'type_id' => array(
  975. 'description' => t('TODO: please describe this field!'),
  976. 'type' => 'int',
  977. 'not null' => TRUE,
  978. ),
  979. 'value' => array(
  980. 'description' => t('TODO: please describe this field!'),
  981. 'type' => 'text',
  982. 'not null' => FALSE,
  983. ),
  984. 'rank' => array(
  985. 'description' => t('TODO: please describe this field!'),
  986. 'type' => 'int',
  987. 'not null' => TRUE,
  988. 'default' => 0,
  989. ),
  990. ),
  991. 'primary key' => array('featureprop_id'),
  992. 'unique keys' => array(
  993. 'featureprop_c1' => array('feature_id', 'type_id', 'rank')
  994. ),
  995. 'indexes' => array(
  996. 'featureprop_idx1' => array('feature_id'),
  997. 'featureprop_idx2' => array('type_id'),
  998. ),
  999. );
  1000. $schema['featurerange'] = array(
  1001. 'description' => t('TODO: please describe this table!'),
  1002. 'fields' => array(
  1003. 'featurerange_id' => array(
  1004. 'description' => t('TODO: please describe this field!'),
  1005. 'type' => 'serial',
  1006. 'not null' => TRUE,
  1007. ),
  1008. 'featuremap_id' => array(
  1009. 'description' => t('TODO: please describe this field!'),
  1010. 'type' => 'int',
  1011. 'not null' => TRUE,
  1012. ),
  1013. 'feature_id' => array(
  1014. 'description' => t('TODO: please describe this field!'),
  1015. 'type' => 'int',
  1016. 'not null' => TRUE,
  1017. ),
  1018. 'leftstartf_id' => array(
  1019. 'description' => t('TODO: please describe this field!'),
  1020. 'type' => 'int',
  1021. 'not null' => TRUE,
  1022. ),
  1023. 'leftendf_id' => array(
  1024. 'description' => t('TODO: please describe this field!'),
  1025. 'type' => 'int',
  1026. 'not null' => FALSE,
  1027. ),
  1028. 'rightstartf_id' => array(
  1029. 'description' => t('TODO: please describe this field!'),
  1030. 'type' => 'int',
  1031. 'not null' => FALSE,
  1032. ),
  1033. 'rightendf_id' => array(
  1034. 'description' => t('TODO: please describe this field!'),
  1035. 'type' => 'int',
  1036. 'not null' => TRUE,
  1037. ),
  1038. 'rangestr' => array(
  1039. 'description' => t('TODO: please describe this field!'),
  1040. 'type' => 'varchar',
  1041. 'length' => '255',
  1042. 'not null' => FALSE,
  1043. ),
  1044. ),
  1045. 'primary key' => array('featurerange_id'),
  1046. 'indexes' => array(
  1047. 'featurerange_idx1' => array('featuremap_id'),
  1048. 'featurerange_idx2' => array('feature_id'),
  1049. 'featurerange_idx3' => array('leftstartf_id'),
  1050. 'featurerange_idx4' => array('leftendf_id'),
  1051. 'featurerange_idx5' => array('rightstartf_id'),
  1052. 'featurerange_idx6' => array('rightendf_id'),
  1053. ),
  1054. );
  1055. $schema['featureset_meets'] = array(
  1056. 'description' => t('TODO: please describe this table!'),
  1057. 'fields' => array(
  1058. 'subject_id' => array(
  1059. 'description' => t('TODO: please describe this field!'),
  1060. 'type' => 'int',
  1061. 'not null' => FALSE,
  1062. ),
  1063. 'object_id' => array(
  1064. 'description' => t('TODO: please describe this field!'),
  1065. 'type' => 'int',
  1066. 'not null' => FALSE,
  1067. ),
  1068. ),
  1069. );
  1070. $schema['fnr_type'] = array(
  1071. 'description' => t('TODO: please describe this table!'),
  1072. 'fields' => array(
  1073. 'feature_id' => array(
  1074. 'description' => t('TODO: please describe this field!'),
  1075. 'type' => 'int',
  1076. 'not null' => FALSE,
  1077. ),
  1078. 'name' => array(
  1079. 'description' => t('TODO: please describe this field!'),
  1080. 'type' => 'varchar',
  1081. 'length' => '255',
  1082. 'not null' => FALSE,
  1083. ),
  1084. 'dbxref_id' => array(
  1085. 'description' => t('TODO: please describe this field!'),
  1086. 'type' => 'int',
  1087. 'not null' => FALSE,
  1088. ),
  1089. 'type' => array(
  1090. 'description' => t('TODO: please describe this field!'),
  1091. 'type' => 'varchar',
  1092. 'length' => '1024',
  1093. 'not null' => FALSE,
  1094. ),
  1095. 'residues' => array(
  1096. 'description' => t('TODO: please describe this field!'),
  1097. 'type' => 'text',
  1098. 'not null' => FALSE,
  1099. ),
  1100. 'seqlen' => array(
  1101. 'description' => t('TODO: please describe this field!'),
  1102. 'type' => 'int',
  1103. 'not null' => FALSE,
  1104. ),
  1105. 'md5checksum' => array(
  1106. 'description' => t('TODO: please describe this field!'),
  1107. 'type' => 'char',
  1108. 'length' => '32',
  1109. 'not null' => FALSE,
  1110. ),
  1111. 'type_id' => array(
  1112. 'description' => t('TODO: please describe this field!'),
  1113. 'type' => 'int',
  1114. 'not null' => FALSE,
  1115. ),
  1116. 'timeaccessioned' => array(
  1117. 'description' => t('TODO: please describe this field!'),
  1118. 'type' => 'datetime',
  1119. 'not null' => FALSE,
  1120. ),
  1121. 'timelastmodified' => array(
  1122. 'description' => t('TODO: please describe this field!'),
  1123. 'type' => 'datetime',
  1124. 'not null' => FALSE,
  1125. ),
  1126. ),
  1127. );
  1128. $schema['featurepos'] = array(
  1129. 'description' => t('TODO: please describe this table!'),
  1130. 'fields' => array(
  1131. 'featurepos_id' => array(
  1132. 'description' => t('TODO: please describe this field!'),
  1133. 'type' => 'serial',
  1134. 'not null' => TRUE,
  1135. ),
  1136. 'featuremap_id' => array(
  1137. 'description' => t('TODO: please describe this field!'),
  1138. 'type' => 'serial',
  1139. 'not null' => TRUE,
  1140. ),
  1141. 'feature_id' => array(
  1142. 'description' => t('TODO: please describe this field!'),
  1143. 'type' => 'int',
  1144. 'not null' => TRUE,
  1145. ),
  1146. 'map_feature_id' => array(
  1147. 'description' => t('TODO: please describe this field!'),
  1148. 'type' => 'int',
  1149. 'not null' => TRUE,
  1150. ),
  1151. 'mappos' => array(
  1152. 'description' => t('TODO: please describe this field!'),
  1153. 'type' => 'float',
  1154. 'size' => 'big',
  1155. 'not null' => TRUE,
  1156. ),
  1157. ),
  1158. 'primary key' => array('featurepos_id'),
  1159. 'indexes' => array(
  1160. 'featurepos_idx1' => array('featuremap_id'),
  1161. 'featurepos_idx2' => array('feature_id'),
  1162. 'featurepos_idx3' => array('map_feature_id'),
  1163. ),
  1164. );
  1165. $schema['featuremap_pub'] = array(
  1166. 'description' => t('TODO: please describe this table!'),
  1167. 'fields' => array(
  1168. 'featuremap_pub_id' => array(
  1169. 'description' => t('TODO: please describe this field!'),
  1170. 'type' => 'serial',
  1171. 'not null' => TRUE,
  1172. ),
  1173. 'featuremap_id' => array(
  1174. 'description' => t('TODO: please describe this field!'),
  1175. 'type' => 'int',
  1176. 'not null' => TRUE,
  1177. ),
  1178. 'pub_id' => array(
  1179. 'description' => t('TODO: please describe this field!'),
  1180. 'type' => 'int',
  1181. 'not null' => TRUE,
  1182. ),
  1183. ),
  1184. 'primary key' => array('featuremap_pub_id'),
  1185. 'indexes' => array(
  1186. 'featuremap_pub_idx1' => array('featuremap_id'),
  1187. 'featuremap_pub_idx2' => array('pub_id'),
  1188. ),
  1189. );
  1190. $schema['feature_union'] = array(
  1191. 'description' => t('TODO: please describe this table!'),
  1192. 'fields' => array(
  1193. 'subject_id' => array(
  1194. 'description' => t('TODO: please describe this field!'),
  1195. 'type' => 'int',
  1196. 'not null' => FALSE,
  1197. ),
  1198. 'object_id' => array(
  1199. 'description' => t('TODO: please describe this field!'),
  1200. 'type' => 'int',
  1201. 'not null' => FALSE,
  1202. ),
  1203. 'srcfeature_id' => array(
  1204. 'description' => t('TODO: please describe this field!'),
  1205. 'type' => 'int',
  1206. 'not null' => FALSE,
  1207. ),
  1208. 'subject_strand' => array(
  1209. 'description' => t('TODO: please describe this field!'),
  1210. 'type' => 'int',
  1211. 'size' => 'small',
  1212. 'not null' => FALSE,
  1213. ),
  1214. 'object_strand' => array(
  1215. 'description' => t('TODO: please describe this field!'),
  1216. 'type' => 'int',
  1217. 'size' => 'small',
  1218. 'not null' => FALSE,
  1219. ),
  1220. 'fmin' => array(
  1221. 'description' => t('TODO: please describe this field!'),
  1222. 'type' => 'int',
  1223. 'not null' => FALSE,
  1224. ),
  1225. 'fmax' => array(
  1226. 'description' => t('TODO: please describe this field!'),
  1227. 'type' => 'int',
  1228. 'not null' => FALSE,
  1229. ),
  1230. ),
  1231. );
  1232. $schema['featureloc'] = array(
  1233. 'description' => t('TODO: please describe this table!'),
  1234. 'fields' => array(
  1235. 'featureloc_id' => array(
  1236. 'description' => t('TODO: please describe this field!'),
  1237. 'type' => 'serial',
  1238. 'not null' => TRUE,
  1239. ),
  1240. 'feature_id' => array(
  1241. 'description' => t('TODO: please describe this field!'),
  1242. 'type' => 'int',
  1243. 'not null' => TRUE,
  1244. ),
  1245. 'srcfeature_id' => array(
  1246. 'description' => t('TODO: please describe this field!'),
  1247. 'type' => 'int',
  1248. 'not null' => FALSE,
  1249. ),
  1250. 'fmin' => array(
  1251. 'description' => t('TODO: please describe this field!'),
  1252. 'type' => 'int',
  1253. 'not null' => FALSE,
  1254. ),
  1255. 'is_fmin_partial' => array(
  1256. 'description' => t('TODO: please describe this field!'),
  1257. 'type' => 'boolean',
  1258. 'not null' => TRUE,
  1259. 'default' => 'als',
  1260. ),
  1261. 'fmax' => array(
  1262. 'description' => t('TODO: please describe this field!'),
  1263. 'type' => 'int',
  1264. 'not null' => FALSE,
  1265. ),
  1266. 'is_fmax_partial' => array(
  1267. 'description' => t('TODO: please describe this field!'),
  1268. 'type' => 'boolean',
  1269. 'not null' => TRUE,
  1270. 'default' => 'als',
  1271. ),
  1272. 'strand' => array(
  1273. 'description' => t('TODO: please describe this field!'),
  1274. 'type' => 'int',
  1275. 'size' => 'small',
  1276. 'not null' => FALSE,
  1277. ),
  1278. 'phase' => array(
  1279. 'description' => t('TODO: please describe this field!'),
  1280. 'type' => 'int',
  1281. 'not null' => FALSE,
  1282. ),
  1283. 'residue_info' => array(
  1284. 'description' => t('TODO: please describe this field!'),
  1285. 'type' => 'text',
  1286. 'not null' => FALSE,
  1287. ),
  1288. 'locgroup' => array(
  1289. 'description' => t('TODO: please describe this field!'),
  1290. 'type' => 'int',
  1291. 'not null' => TRUE,
  1292. 'default' => 0,
  1293. ),
  1294. 'rank' => array(
  1295. 'description' => t('TODO: please describe this field!'),
  1296. 'type' => 'int',
  1297. 'not null' => TRUE,
  1298. 'default' => 0,
  1299. ),
  1300. ),
  1301. 'primary key' => array('featureloc_id'),
  1302. 'unique keys' => array(
  1303. 'featureloc_c1' => array('feature_id', 'locgroup', 'rank')
  1304. ),
  1305. 'indexes' => array(
  1306. 'binloc_boxrange' => array('fmin'),
  1307. 'binloc_boxrange_src' => array('srcfeature_id', 'fmin'),
  1308. 'featureloc_idx1' => array('feature_id'),
  1309. 'featureloc_idx2' => array('srcfeature_id'),
  1310. 'featureloc_idx3' => array('srcfeature_id', 'fmin', 'fmax'),
  1311. ),
  1312. );
  1313. $schema['featureloc_pub'] = array(
  1314. 'description' => t('TODO: please describe this table!'),
  1315. 'fields' => array(
  1316. 'featureloc_pub_id' => array(
  1317. 'description' => t('TODO: please describe this field!'),
  1318. 'type' => 'serial',
  1319. 'not null' => TRUE,
  1320. ),
  1321. 'featureloc_id' => array(
  1322. 'description' => t('TODO: please describe this field!'),
  1323. 'type' => 'int',
  1324. 'not null' => TRUE,
  1325. ),
  1326. 'pub_id' => array(
  1327. 'description' => t('TODO: please describe this field!'),
  1328. 'type' => 'int',
  1329. 'not null' => TRUE,
  1330. ),
  1331. ),
  1332. 'primary key' => array('featureloc_pub_id'),
  1333. 'unique keys' => array(
  1334. 'featureloc_pub_c1' => array('featureloc_id', 'pub_id')
  1335. ),
  1336. 'indexes' => array(
  1337. 'featureloc_pub_idx1' => array('featureloc_id'),
  1338. 'featureloc_pub_idx2' => array('pub_id'),
  1339. ),
  1340. );
  1341. $schema['featuremap'] = array(
  1342. 'description' => t('TODO: please describe this table!'),
  1343. 'fields' => array(
  1344. 'featuremap_id' => array(
  1345. 'description' => t('TODO: please describe this field!'),
  1346. 'type' => 'serial',
  1347. 'not null' => TRUE,
  1348. ),
  1349. 'name' => array(
  1350. 'description' => t('TODO: please describe this field!'),
  1351. 'type' => 'varchar',
  1352. 'length' => '255',
  1353. 'not null' => FALSE,
  1354. ),
  1355. 'description' => array(
  1356. 'description' => t('TODO: please describe this field!'),
  1357. 'type' => 'text',
  1358. 'not null' => FALSE,
  1359. ),
  1360. 'unittype_id' => array(
  1361. 'description' => t('TODO: please describe this field!'),
  1362. 'type' => 'int',
  1363. 'not null' => FALSE,
  1364. ),
  1365. ),
  1366. 'primary key' => array('featuremap_id'),
  1367. 'unique keys' => array(
  1368. 'featuremap_c1' => array('name')
  1369. ),
  1370. );
  1371. $schema['fp_key'] = array(
  1372. 'description' => t('TODO: please describe this table!'),
  1373. 'fields' => array(
  1374. 'feature_id' => array(
  1375. 'description' => t('TODO: please describe this field!'),
  1376. 'type' => 'int',
  1377. 'not null' => FALSE,
  1378. ),
  1379. 'pkey' => array(
  1380. 'description' => t('TODO: please describe this field!'),
  1381. 'type' => 'varchar',
  1382. 'length' => '1024',
  1383. 'not null' => FALSE,
  1384. ),
  1385. 'value' => array(
  1386. 'description' => t('TODO: please describe this field!'),
  1387. 'type' => 'text',
  1388. 'not null' => FALSE,
  1389. ),
  1390. ),
  1391. );
  1392. $schema['genotype'] = array(
  1393. 'description' => t('TODO: please describe this table!'),
  1394. 'fields' => array(
  1395. 'genotype_id' => array(
  1396. 'description' => t('TODO: please describe this field!'),
  1397. 'type' => 'serial',
  1398. 'not null' => TRUE,
  1399. ),
  1400. 'name' => array(
  1401. 'description' => t('TODO: please describe this field!'),
  1402. 'type' => 'text',
  1403. 'not null' => FALSE,
  1404. ),
  1405. 'uniquename' => array(
  1406. 'description' => t('TODO: please describe this field!'),
  1407. 'type' => 'text',
  1408. 'not null' => TRUE,
  1409. ),
  1410. 'description' => array(
  1411. 'description' => t('TODO: please describe this field!'),
  1412. 'type' => 'varchar',
  1413. 'length' => '255',
  1414. 'not null' => FALSE,
  1415. ),
  1416. ),
  1417. 'primary key' => array('genotype_id'),
  1418. 'unique keys' => array(
  1419. 'genotype_c1' => array('uniquename')
  1420. ),
  1421. 'indexes' => array(
  1422. 'genotype_idx1' => array('uniquename'),
  1423. 'genotype_idx2' => array('name'),
  1424. ),
  1425. );
  1426. $schema['library_cvterm'] = array(
  1427. 'description' => t('TODO: please describe this table!'),
  1428. 'fields' => array(
  1429. 'library_cvterm_id' => array(
  1430. 'description' => t('TODO: please describe this field!'),
  1431. 'type' => 'serial',
  1432. 'not null' => TRUE,
  1433. ),
  1434. 'library_id' => array(
  1435. 'description' => t('TODO: please describe this field!'),
  1436. 'type' => 'int',
  1437. 'not null' => TRUE,
  1438. ),
  1439. 'cvterm_id' => array(
  1440. 'description' => t('TODO: please describe this field!'),
  1441. 'type' => 'int',
  1442. 'not null' => TRUE,
  1443. ),
  1444. 'pub_id' => array(
  1445. 'description' => t('TODO: please describe this field!'),
  1446. 'type' => 'int',
  1447. 'not null' => TRUE,
  1448. ),
  1449. ),
  1450. 'primary key' => array('library_cvterm_id'),
  1451. 'unique keys' => array(
  1452. 'library_cvterm_c1' => array('library_id', 'cvterm_id', 'pub_id')
  1453. ),
  1454. 'indexes' => array(
  1455. 'library_cvterm_idx1' => array('library_id'),
  1456. 'library_cvterm_idx2' => array('cvterm_id'),
  1457. 'library_cvterm_idx3' => array('pub_id'),
  1458. ),
  1459. );
  1460. $schema['library_dbxref'] = array(
  1461. 'description' => t('TODO: please describe this table!'),
  1462. 'fields' => array(
  1463. 'library_dbxref_id' => array(
  1464. 'description' => t('TODO: please describe this field!'),
  1465. 'type' => 'serial',
  1466. 'not null' => TRUE,
  1467. ),
  1468. 'library_id' => array(
  1469. 'description' => t('TODO: please describe this field!'),
  1470. 'type' => 'int',
  1471. 'not null' => TRUE,
  1472. ),
  1473. 'dbxref_id' => array(
  1474. 'description' => t('TODO: please describe this field!'),
  1475. 'type' => 'int',
  1476. 'not null' => TRUE,
  1477. ),
  1478. 'is_current' => array(
  1479. 'description' => t('TODO: please describe this field!'),
  1480. 'type' => 'boolean',
  1481. 'not null' => TRUE,
  1482. 'default' => 'ru',
  1483. ),
  1484. ),
  1485. 'primary key' => array('library_dbxref_id'),
  1486. 'unique keys' => array(
  1487. 'library_dbxref_c1' => array('library_id', 'dbxref_id')
  1488. ),
  1489. 'indexes' => array(
  1490. 'library_dbxref_idx1' => array('library_id'),
  1491. 'library_dbxref_idx2' => array('dbxref_id'),
  1492. ),
  1493. );
  1494. $schema['library_feature'] = array(
  1495. 'description' => t('TODO: please describe this table!'),
  1496. 'fields' => array(
  1497. 'library_feature_id' => array(
  1498. 'description' => t('TODO: please describe this field!'),
  1499. 'type' => 'serial',
  1500. 'not null' => TRUE,
  1501. ),
  1502. 'library_id' => array(
  1503. 'description' => t('TODO: please describe this field!'),
  1504. 'type' => 'int',
  1505. 'not null' => TRUE,
  1506. ),
  1507. 'feature_id' => array(
  1508. 'description' => t('TODO: please describe this field!'),
  1509. 'type' => 'int',
  1510. 'not null' => TRUE,
  1511. ),
  1512. ),
  1513. 'primary key' => array('library_feature_id'),
  1514. 'unique keys' => array(
  1515. 'library_feature_c1' => array('library_id', 'feature_id')
  1516. ),
  1517. 'indexes' => array(
  1518. 'library_feature_idx1' => array('library_id'),
  1519. 'library_feature_idx2' => array('feature_id'),
  1520. ),
  1521. );
  1522. $schema['library_feature_count'] = array(
  1523. 'description' => t('TODO: please describe this table!'),
  1524. 'fields' => array(
  1525. 'library_id' => array(
  1526. 'description' => t('TODO: please describe this field!'),
  1527. 'type' => 'int',
  1528. 'not null' => FALSE,
  1529. ),
  1530. 'name' => array(
  1531. 'description' => t('TODO: please describe this field!'),
  1532. 'type' => 'varchar',
  1533. 'length' => '255',
  1534. 'not null' => FALSE,
  1535. ),
  1536. 'num_features' => array(
  1537. 'description' => t('TODO: please describe this field!'),
  1538. 'type' => 'int',
  1539. 'not null' => FALSE,
  1540. ),
  1541. 'feature_type' => array(
  1542. 'description' => t('TODO: please describe this field!'),
  1543. 'type' => 'varchar',
  1544. 'length' => '255',
  1545. 'not null' => FALSE,
  1546. ),
  1547. ),
  1548. 'unique keys' => array(
  1549. 'library_feature_count_index' => array('library_id')
  1550. ),
  1551. );
  1552. $schema['library'] = array(
  1553. 'description' => t('TODO: please describe this table!'),
  1554. 'fields' => array(
  1555. 'library_id' => array(
  1556. 'description' => t('TODO: please describe this field!'),
  1557. 'type' => 'serial',
  1558. 'not null' => TRUE,
  1559. ),
  1560. 'organism_id' => array(
  1561. 'description' => t('TODO: please describe this field!'),
  1562. 'type' => 'int',
  1563. 'not null' => TRUE,
  1564. ),
  1565. 'name' => array(
  1566. 'description' => t('TODO: please describe this field!'),
  1567. 'type' => 'varchar',
  1568. 'length' => '255',
  1569. 'not null' => FALSE,
  1570. ),
  1571. 'uniquename' => array(
  1572. 'description' => t('TODO: please describe this field!'),
  1573. 'type' => 'text',
  1574. 'not null' => TRUE,
  1575. ),
  1576. 'type_id' => array(
  1577. 'description' => t('TODO: please describe this field!'),
  1578. 'type' => 'int',
  1579. 'not null' => TRUE,
  1580. ),
  1581. 'is_obsolete' => array(
  1582. 'description' => t('TODO: please describe this field!'),
  1583. 'type' => 'int',
  1584. 'not null' => TRUE,
  1585. 'default' => 0,
  1586. ),
  1587. 'timeaccessioned' => array(
  1588. 'description' => t('TODO: please describe this field!'),
  1589. 'type' => 'datetime',
  1590. 'not null' => TRUE,
  1591. 'default' => 'ow(',
  1592. ),
  1593. 'timelastmodified' => array(
  1594. 'description' => t('TODO: please describe this field!'),
  1595. 'type' => 'datetime',
  1596. 'not null' => TRUE,
  1597. 'default' => 'ow(',
  1598. ),
  1599. ),
  1600. 'primary key' => array('library_id'),
  1601. 'unique keys' => array(
  1602. 'library_c1' => array('organism_id', 'uniquename', 'type_id')
  1603. ),
  1604. 'indexes' => array(
  1605. 'library_idx1' => array('organism_id'),
  1606. 'library_idx2' => array('type_id'),
  1607. 'library_idx3' => array('uniquename'),
  1608. 'library_name_ind1' => array('name'),
  1609. ),
  1610. );
  1611. $schema['intronloc_view'] = array(
  1612. 'description' => t('TODO: please describe this table!'),
  1613. 'fields' => array(
  1614. 'exon1_id' => array(
  1615. 'description' => t('TODO: please describe this field!'),
  1616. 'type' => 'int',
  1617. 'not null' => FALSE,
  1618. ),
  1619. 'exon2_id' => array(
  1620. 'description' => t('TODO: please describe this field!'),
  1621. 'type' => 'int',
  1622. 'not null' => FALSE,
  1623. ),
  1624. 'fmin' => array(
  1625. 'description' => t('TODO: please describe this field!'),
  1626. 'type' => 'int',
  1627. 'not null' => FALSE,
  1628. ),
  1629. 'fmax' => array(
  1630. 'description' => t('TODO: please describe this field!'),
  1631. 'type' => 'int',
  1632. 'not null' => FALSE,
  1633. ),
  1634. 'strand' => array(
  1635. 'description' => t('TODO: please describe this field!'),
  1636. 'type' => 'int',
  1637. 'size' => 'small',
  1638. 'not null' => FALSE,
  1639. ),
  1640. 'srcfeature_id' => array(
  1641. 'description' => t('TODO: please describe this field!'),
  1642. 'type' => 'int',
  1643. 'not null' => FALSE,
  1644. ),
  1645. ),
  1646. );
  1647. $schema['gff3atts'] = array(
  1648. 'description' => t('TODO: please describe this table!'),
  1649. 'fields' => array(
  1650. 'feature_id' => array(
  1651. 'description' => t('TODO: please describe this field!'),
  1652. 'type' => 'int',
  1653. 'not null' => FALSE,
  1654. ),
  1655. 'type' => array(
  1656. 'description' => t('TODO: please describe this field!'),
  1657. 'type' => 'text',
  1658. 'not null' => FALSE,
  1659. ),
  1660. 'attribute' => array(
  1661. 'description' => t('TODO: please describe this field!'),
  1662. 'type' => 'varchar',
  1663. 'not null' => FALSE,
  1664. ),
  1665. ),
  1666. );
  1667. $schema['gff3view'] = array(
  1668. 'description' => t('TODO: please describe this table!'),
  1669. 'fields' => array(
  1670. 'feature_id' => array(
  1671. 'description' => t('TODO: please describe this field!'),
  1672. 'type' => 'int',
  1673. 'not null' => FALSE,
  1674. ),
  1675. 'ref' => array(
  1676. 'description' => t('TODO: please describe this field!'),
  1677. 'type' => 'varchar',
  1678. 'length' => '255',
  1679. 'not null' => FALSE,
  1680. ),
  1681. 'source' => array(
  1682. 'description' => t('TODO: please describe this field!'),
  1683. 'type' => 'varchar',
  1684. 'length' => '255',
  1685. 'not null' => FALSE,
  1686. ),
  1687. 'type' => array(
  1688. 'description' => t('TODO: please describe this field!'),
  1689. 'type' => 'varchar',
  1690. 'length' => '1024',
  1691. 'not null' => FALSE,
  1692. ),
  1693. 'fstart' => array(
  1694. 'description' => t('TODO: please describe this field!'),
  1695. 'type' => 'int',
  1696. 'not null' => FALSE,
  1697. ),
  1698. 'fend' => array(
  1699. 'description' => t('TODO: please describe this field!'),
  1700. 'type' => 'int',
  1701. 'not null' => FALSE,
  1702. ),
  1703. 'score' => array(
  1704. 'description' => t('TODO: please describe this field!'),
  1705. 'type' => 'float',
  1706. 'size' => 'big',
  1707. 'not null' => FALSE,
  1708. ),
  1709. 'strand' => array(
  1710. 'description' => t('TODO: please describe this field!'),
  1711. 'type' => 'int',
  1712. 'size' => 'small',
  1713. 'not null' => FALSE,
  1714. ),
  1715. 'phase' => array(
  1716. 'description' => t('TODO: please describe this field!'),
  1717. 'type' => 'int',
  1718. 'not null' => FALSE,
  1719. ),
  1720. 'seqlen' => array(
  1721. 'description' => t('TODO: please describe this field!'),
  1722. 'type' => 'int',
  1723. 'not null' => FALSE,
  1724. ),
  1725. 'name' => array(
  1726. 'description' => t('TODO: please describe this field!'),
  1727. 'type' => 'varchar',
  1728. 'length' => '255',
  1729. 'not null' => FALSE,
  1730. ),
  1731. 'organism_id' => array(
  1732. 'description' => t('TODO: please describe this field!'),
  1733. 'type' => 'int',
  1734. 'not null' => FALSE,
  1735. ),
  1736. ),
  1737. );
  1738. $schema['gffatts'] = array(
  1739. 'description' => t('TODO: please describe this table!'),
  1740. 'fields' => array(
  1741. 'feature_id' => array(
  1742. 'description' => t('TODO: please describe this field!'),
  1743. 'type' => 'int',
  1744. 'not null' => FALSE,
  1745. ),
  1746. 'type' => array(
  1747. 'description' => t('TODO: please describe this field!'),
  1748. 'type' => 'text',
  1749. 'not null' => FALSE,
  1750. ),
  1751. 'attribute' => array(
  1752. 'description' => t('TODO: please describe this field!'),
  1753. 'type' => 'varchar',
  1754. 'not null' => FALSE,
  1755. ),
  1756. ),
  1757. );
  1758. $schema['intron_combined_view'] = array(
  1759. 'description' => t('TODO: please describe this table!'),
  1760. 'fields' => array(
  1761. 'exon1_id' => array(
  1762. 'description' => t('TODO: please describe this field!'),
  1763. 'type' => 'int',
  1764. 'not null' => FALSE,
  1765. ),
  1766. 'exon2_id' => array(
  1767. 'description' => t('TODO: please describe this field!'),
  1768. 'type' => 'int',
  1769. 'not null' => FALSE,
  1770. ),
  1771. 'fmin' => array(
  1772. 'description' => t('TODO: please describe this field!'),
  1773. 'type' => 'int',
  1774. 'not null' => FALSE,
  1775. ),
  1776. 'fmax' => array(
  1777. 'description' => t('TODO: please describe this field!'),
  1778. 'type' => 'int',
  1779. 'not null' => FALSE,
  1780. ),
  1781. 'strand' => array(
  1782. 'description' => t('TODO: please describe this field!'),
  1783. 'type' => 'int',
  1784. 'size' => 'small',
  1785. 'not null' => FALSE,
  1786. ),
  1787. 'srcfeature_id' => array(
  1788. 'description' => t('TODO: please describe this field!'),
  1789. 'type' => 'int',
  1790. 'not null' => FALSE,
  1791. ),
  1792. 'intron_rank' => array(
  1793. 'description' => t('TODO: please describe this field!'),
  1794. 'type' => 'int',
  1795. 'not null' => FALSE,
  1796. ),
  1797. 'transcript_id' => array(
  1798. 'description' => t('TODO: please describe this field!'),
  1799. 'type' => 'int',
  1800. 'not null' => FALSE,
  1801. ),
  1802. ),
  1803. );
  1804. $schema['project'] = array(
  1805. 'description' => t('TODO: please describe this table!'),
  1806. 'fields' => array(
  1807. 'project_id' => array(
  1808. 'description' => t('TODO: please describe this field!'),
  1809. 'type' => 'serial',
  1810. 'not null' => TRUE,
  1811. ),
  1812. 'name' => array(
  1813. 'description' => t('TODO: please describe this field!'),
  1814. 'type' => 'varchar',
  1815. 'length' => '255',
  1816. 'not null' => TRUE,
  1817. ),
  1818. 'description' => array(
  1819. 'description' => t('TODO: please describe this field!'),
  1820. 'type' => 'varchar',
  1821. 'length' => '255',
  1822. 'not null' => TRUE,
  1823. ),
  1824. ),
  1825. 'primary key' => array('project_id'),
  1826. 'unique keys' => array(
  1827. 'project_c1' => array('name')
  1828. ),
  1829. );
  1830. $schema['protein_coding_gene'] = array(
  1831. 'description' => t('TODO: please describe this table!'),
  1832. 'fields' => array(
  1833. 'feature_id' => array(
  1834. 'description' => t('TODO: please describe this field!'),
  1835. 'type' => 'int',
  1836. 'not null' => FALSE,
  1837. ),
  1838. 'dbxref_id' => array(
  1839. 'description' => t('TODO: please describe this field!'),
  1840. 'type' => 'int',
  1841. 'not null' => FALSE,
  1842. ),
  1843. 'organism_id' => array(
  1844. 'description' => t('TODO: please describe this field!'),
  1845. 'type' => 'int',
  1846. 'not null' => FALSE,
  1847. ),
  1848. 'name' => array(
  1849. 'description' => t('TODO: please describe this field!'),
  1850. 'type' => 'varchar',
  1851. 'length' => '255',
  1852. 'not null' => FALSE,
  1853. ),
  1854. 'uniquename' => array(
  1855. 'description' => t('TODO: please describe this field!'),
  1856. 'type' => 'text',
  1857. 'not null' => FALSE,
  1858. ),
  1859. 'residues' => array(
  1860. 'description' => t('TODO: please describe this field!'),
  1861. 'type' => 'text',
  1862. 'not null' => FALSE,
  1863. ),
  1864. 'seqlen' => array(
  1865. 'description' => t('TODO: please describe this field!'),
  1866. 'type' => 'int',
  1867. 'not null' => FALSE,
  1868. ),
  1869. 'md5checksum' => array(
  1870. 'description' => t('TODO: please describe this field!'),
  1871. 'type' => 'char',
  1872. 'length' => '32',
  1873. 'not null' => FALSE,
  1874. ),
  1875. 'type_id' => array(
  1876. 'description' => t('TODO: please describe this field!'),
  1877. 'type' => 'int',
  1878. 'not null' => FALSE,
  1879. ),
  1880. 'is_analysis' => array(
  1881. 'description' => t('TODO: please describe this field!'),
  1882. 'type' => 'boolean',
  1883. 'not null' => FALSE,
  1884. ),
  1885. 'is_obsolete' => array(
  1886. 'description' => t('TODO: please describe this field!'),
  1887. 'type' => 'boolean',
  1888. 'not null' => FALSE,
  1889. ),
  1890. 'timeaccessioned' => array(
  1891. 'description' => t('TODO: please describe this field!'),
  1892. 'type' => 'datetime',
  1893. 'not null' => FALSE,
  1894. ),
  1895. 'timelastmodified' => array(
  1896. 'description' => t('TODO: please describe this field!'),
  1897. 'type' => 'datetime',
  1898. 'not null' => FALSE,
  1899. ),
  1900. ),
  1901. );
  1902. $schema['studyfactorvalue'] = array(
  1903. 'description' => t('TODO: please describe this table!'),
  1904. 'fields' => array(
  1905. 'studyfactorvalue_id' => array(
  1906. 'description' => t('TODO: please describe this field!'),
  1907. 'type' => 'serial',
  1908. 'not null' => TRUE,
  1909. ),
  1910. 'studyfactor_id' => array(
  1911. 'description' => t('TODO: please describe this field!'),
  1912. 'type' => 'int',
  1913. 'not null' => TRUE,
  1914. ),
  1915. 'assay_id' => array(
  1916. 'description' => t('TODO: please describe this field!'),
  1917. 'type' => 'int',
  1918. 'not null' => TRUE,
  1919. ),
  1920. 'factorvalue' => array(
  1921. 'description' => t('TODO: please describe this field!'),
  1922. 'type' => 'text',
  1923. 'not null' => FALSE,
  1924. ),
  1925. 'name' => array(
  1926. 'description' => t('TODO: please describe this field!'),
  1927. 'type' => 'text',
  1928. 'not null' => FALSE,
  1929. ),
  1930. 'rank' => array(
  1931. 'description' => t('TODO: please describe this field!'),
  1932. 'type' => 'int',
  1933. 'not null' => TRUE,
  1934. 'default' => 0,
  1935. ),
  1936. ),
  1937. 'primary key' => array('studyfactorvalue_id'),
  1938. 'indexes' => array(
  1939. 'studyfactorvalue_idx1' => array('studyfactor_id'),
  1940. 'studyfactorvalue_idx2' => array('assay_id'),
  1941. ),
  1942. );
  1943. $schema['studyfactor'] = array(
  1944. 'description' => t('TODO: please describe this table!'),
  1945. 'fields' => array(
  1946. 'studyfactor_id' => array(
  1947. 'description' => t('TODO: please describe this field!'),
  1948. 'type' => 'serial',
  1949. 'not null' => TRUE,
  1950. ),
  1951. 'studydesign_id' => array(
  1952. 'description' => t('TODO: please describe this field!'),
  1953. 'type' => 'int',
  1954. 'not null' => TRUE,
  1955. ),
  1956. 'type_id' => array(
  1957. 'description' => t('TODO: please describe this field!'),
  1958. 'type' => 'int',
  1959. 'not null' => FALSE,
  1960. ),
  1961. 'name' => array(
  1962. 'description' => t('TODO: please describe this field!'),
  1963. 'type' => 'text',
  1964. 'not null' => TRUE,
  1965. ),
  1966. 'description' => array(
  1967. 'description' => t('TODO: please describe this field!'),
  1968. 'type' => 'text',
  1969. 'not null' => FALSE,
  1970. ),
  1971. ),
  1972. 'primary key' => array('studyfactor_id'),
  1973. 'indexes' => array(
  1974. 'studyfactor_idx1' => array('studydesign_id'),
  1975. 'studyfactor_idx2' => array('type_id'),
  1976. ),
  1977. );
  1978. $schema['studyprop'] = array(
  1979. 'description' => t('TODO: please describe this table!'),
  1980. 'fields' => array(
  1981. 'studyprop_id' => array(
  1982. 'description' => t('TODO: please describe this field!'),
  1983. 'type' => 'serial',
  1984. 'not null' => TRUE,
  1985. ),
  1986. 'study_id' => array(
  1987. 'description' => t('TODO: please describe this field!'),
  1988. 'type' => 'int',
  1989. 'not null' => TRUE,
  1990. ),
  1991. 'type_id' => array(
  1992. 'description' => t('TODO: please describe this field!'),
  1993. 'type' => 'int',
  1994. 'not null' => TRUE,
  1995. ),
  1996. 'value' => array(
  1997. 'description' => t('TODO: please describe this field!'),
  1998. 'type' => 'text',
  1999. 'not null' => FALSE,
  2000. ),
  2001. 'rank' => array(
  2002. 'description' => t('TODO: please describe this field!'),
  2003. 'type' => 'int',
  2004. 'not null' => TRUE,
  2005. 'default' => 0,
  2006. ),
  2007. ),
  2008. 'primary key' => array('studyprop_id'),
  2009. 'unique keys' => array(
  2010. 'study_id' => array('study_id', 'type_id', 'rank')
  2011. ),
  2012. 'indexes' => array(
  2013. 'studyprop_idx1' => array('study_id'),
  2014. 'studyprop_idx2' => array('type_id'),
  2015. ),
  2016. );
  2017. $schema['studyprop_feature'] = array(
  2018. 'description' => t('TODO: please describe this table!'),
  2019. 'fields' => array(
  2020. 'studyprop_feature_id' => array(
  2021. 'description' => t('TODO: please describe this field!'),
  2022. 'type' => 'serial',
  2023. 'not null' => TRUE,
  2024. ),
  2025. 'studyprop_id' => array(
  2026. 'description' => t('TODO: please describe this field!'),
  2027. 'type' => 'int',
  2028. 'not null' => TRUE,
  2029. ),
  2030. 'feature_id' => array(
  2031. 'description' => t('TODO: please describe this field!'),
  2032. 'type' => 'int',
  2033. 'not null' => TRUE,
  2034. ),
  2035. 'type_id' => array(
  2036. 'description' => t('TODO: please describe this field!'),
  2037. 'type' => 'int',
  2038. 'not null' => FALSE,
  2039. ),
  2040. ),
  2041. 'primary key' => array('studyprop_feature_id'),
  2042. 'unique keys' => array(
  2043. 'studyprop_id' => array('studyprop_id', 'feature_id')
  2044. ),
  2045. 'indexes' => array(
  2046. 'studyprop_feature_idx1' => array('studyprop_id'),
  2047. 'studyprop_feature_idx2' => array('feature_id'),
  2048. ),
  2049. );
  2050. $schema['synonym'] = array(
  2051. 'description' => t('TODO: please describe this table!'),
  2052. 'fields' => array(
  2053. 'synonym_id' => array(
  2054. 'description' => t('TODO: please describe this field!'),
  2055. 'type' => 'serial',
  2056. 'not null' => TRUE,
  2057. ),
  2058. 'name' => array(
  2059. 'description' => t('TODO: please describe this field!'),
  2060. 'type' => 'varchar',
  2061. 'length' => '255',
  2062. 'not null' => TRUE,
  2063. ),
  2064. 'type_id' => array(
  2065. 'description' => t('TODO: please describe this field!'),
  2066. 'type' => 'int',
  2067. 'not null' => TRUE,
  2068. ),
  2069. 'synonym_sgml' => array(
  2070. 'description' => t('TODO: please describe this field!'),
  2071. 'type' => 'varchar',
  2072. 'length' => '255',
  2073. 'not null' => TRUE,
  2074. ),
  2075. ),
  2076. 'primary key' => array('synonym_id'),
  2077. 'unique keys' => array(
  2078. 'synonym_c1' => array('name', 'type_id')
  2079. ),
  2080. 'indexes' => array(
  2081. 'synonym_idx1' => array('type_id'),
  2082. ),
  2083. );
  2084. $schema['studydesignprop'] = array(
  2085. 'description' => t('TODO: please describe this table!'),
  2086. 'fields' => array(
  2087. 'studydesignprop_id' => array(
  2088. 'description' => t('TODO: please describe this field!'),
  2089. 'type' => 'serial',
  2090. 'not null' => TRUE,
  2091. ),
  2092. 'studydesign_id' => array(
  2093. 'description' => t('TODO: please describe this field!'),
  2094. 'type' => 'int',
  2095. 'not null' => TRUE,
  2096. ),
  2097. 'type_id' => array(
  2098. 'description' => t('TODO: please describe this field!'),
  2099. 'type' => 'int',
  2100. 'not null' => TRUE,
  2101. ),
  2102. 'value' => array(
  2103. 'description' => t('TODO: please describe this field!'),
  2104. 'type' => 'text',
  2105. 'not null' => FALSE,
  2106. ),
  2107. 'rank' => array(
  2108. 'description' => t('TODO: please describe this field!'),
  2109. 'type' => 'int',
  2110. 'not null' => TRUE,
  2111. 'default' => 0,
  2112. ),
  2113. ),
  2114. 'primary key' => array('studydesignprop_id'),
  2115. 'unique keys' => array(
  2116. 'studydesignprop_c1' => array('studydesign_id', 'type_id', 'rank')
  2117. ),
  2118. 'indexes' => array(
  2119. 'studydesignprop_idx1' => array('studydesign_id'),
  2120. 'studydesignprop_idx2' => array('type_id'),
  2121. ),
  2122. );
  2123. $schema['studydesign'] = array(
  2124. 'description' => t('TODO: please describe this table!'),
  2125. 'fields' => array(
  2126. 'studydesign_id' => array(
  2127. 'description' => t('TODO: please describe this field!'),
  2128. 'type' => 'serial',
  2129. 'not null' => TRUE,
  2130. ),
  2131. 'study_id' => array(
  2132. 'description' => t('TODO: please describe this field!'),
  2133. 'type' => 'int',
  2134. 'not null' => TRUE,
  2135. ),
  2136. 'description' => array(
  2137. 'description' => t('TODO: please describe this field!'),
  2138. 'type' => 'text',
  2139. 'not null' => FALSE,
  2140. ),
  2141. ),
  2142. 'primary key' => array('studydesign_id'),
  2143. 'indexes' => array(
  2144. 'studydesign_idx1' => array('study_id'),
  2145. ),
  2146. );
  2147. $schema['stockprop'] = array(
  2148. 'description' => t('TODO: please describe this table!'),
  2149. 'fields' => array(
  2150. 'stockprop_id' => array(
  2151. 'description' => t('TODO: please describe this field!'),
  2152. 'type' => 'serial',
  2153. 'not null' => TRUE,
  2154. ),
  2155. 'stock_id' => array(
  2156. 'description' => t('TODO: please describe this field!'),
  2157. 'type' => 'int',
  2158. 'not null' => TRUE,
  2159. ),
  2160. 'type_id' => array(
  2161. 'description' => t('TODO: please describe this field!'),
  2162. 'type' => 'int',
  2163. 'not null' => TRUE,
  2164. ),
  2165. 'value' => array(
  2166. 'description' => t('TODO: please describe this field!'),
  2167. 'type' => 'text',
  2168. 'not null' => FALSE,
  2169. ),
  2170. 'rank' => array(
  2171. 'description' => t('TODO: please describe this field!'),
  2172. 'type' => 'int',
  2173. 'not null' => TRUE,
  2174. 'default' => 0,
  2175. ),
  2176. ),
  2177. 'primary key' => array('stockprop_id'),
  2178. 'unique keys' => array(
  2179. 'stockprop_c1' => array('stock_id', 'type_id', 'rank')
  2180. ),
  2181. 'indexes' => array(
  2182. 'stockprop_idx1' => array('stock_id'),
  2183. 'stockprop_idx2' => array('type_id'),
  2184. ),
  2185. 'foreign keys' => array(
  2186. 'stock' => array(
  2187. 'table' => 'stock',
  2188. 'columns' => array('stock_id' => 'stock_id'),
  2189. ),
  2190. 'cvterm' => array(
  2191. 'table' => 'cvterm',
  2192. 'columns' => array('type_id' => 'cvterm_id'),
  2193. ),
  2194. ),
  2195. );
  2196. $schema['stockprop_pub'] = array(
  2197. 'description' => t('TODO: please describe this table!'),
  2198. 'fields' => array(
  2199. 'stockprop_pub_id' => array(
  2200. 'description' => t('TODO: please describe this field!'),
  2201. 'type' => 'serial',
  2202. 'not null' => TRUE,
  2203. ),
  2204. 'stockprop_id' => array(
  2205. 'description' => t('TODO: please describe this field!'),
  2206. 'type' => 'int',
  2207. 'not null' => TRUE,
  2208. ),
  2209. 'pub_id' => array(
  2210. 'description' => t('TODO: please describe this field!'),
  2211. 'type' => 'int',
  2212. 'not null' => TRUE,
  2213. ),
  2214. ),
  2215. 'primary key' => array('stockprop_pub_id'),
  2216. 'unique keys' => array(
  2217. 'stockprop_pub_c1' => array('stockprop_id', 'pub_id')
  2218. ),
  2219. 'indexes' => array(
  2220. 'stockprop_pub_idx1' => array('stockprop_id'),
  2221. 'stockprop_pub_idx2' => array('pub_id'),
  2222. ),
  2223. );
  2224. $schema['study'] = array(
  2225. 'description' => t('TODO: please describe this table!'),
  2226. 'fields' => array(
  2227. 'study_id' => array(
  2228. 'description' => t('TODO: please describe this field!'),
  2229. 'type' => 'serial',
  2230. 'not null' => TRUE,
  2231. ),
  2232. 'contact_id' => array(
  2233. 'description' => t('TODO: please describe this field!'),
  2234. 'type' => 'int',
  2235. 'not null' => TRUE,
  2236. ),
  2237. 'pub_id' => array(
  2238. 'description' => t('TODO: please describe this field!'),
  2239. 'type' => 'int',
  2240. 'not null' => FALSE,
  2241. ),
  2242. 'dbxref_id' => array(
  2243. 'description' => t('TODO: please describe this field!'),
  2244. 'type' => 'int',
  2245. 'not null' => FALSE,
  2246. ),
  2247. 'name' => array(
  2248. 'description' => t('TODO: please describe this field!'),
  2249. 'type' => 'text',
  2250. 'not null' => TRUE,
  2251. ),
  2252. 'description' => array(
  2253. 'description' => t('TODO: please describe this field!'),
  2254. 'type' => 'text',
  2255. 'not null' => FALSE,
  2256. ),
  2257. ),
  2258. 'primary key' => array('study_id'),
  2259. 'unique keys' => array(
  2260. 'study_c1' => array('name')
  2261. ),
  2262. 'indexes' => array(
  2263. 'study_idx1' => array('contact_id'),
  2264. 'study_idx2' => array('pub_id'),
  2265. 'study_idx3' => array('dbxref_id'),
  2266. ),
  2267. );
  2268. $schema['study_assay'] = array(
  2269. 'description' => t('TODO: please describe this table!'),
  2270. 'fields' => array(
  2271. 'study_assay_id' => array(
  2272. 'description' => t('TODO: please describe this field!'),
  2273. 'type' => 'serial',
  2274. 'not null' => TRUE,
  2275. ),
  2276. 'study_id' => array(
  2277. 'description' => t('TODO: please describe this field!'),
  2278. 'type' => 'int',
  2279. 'not null' => TRUE,
  2280. ),
  2281. 'assay_id' => array(
  2282. 'description' => t('TODO: please describe this field!'),
  2283. 'type' => 'int',
  2284. 'not null' => TRUE,
  2285. ),
  2286. ),
  2287. 'primary key' => array('study_assay_id'),
  2288. 'unique keys' => array(
  2289. 'study_assay_c1' => array('study_id', 'assay_id')
  2290. ),
  2291. 'indexes' => array(
  2292. 'study_assay_idx1' => array('study_id'),
  2293. 'study_assay_idx2' => array('assay_id'),
  2294. ),
  2295. );
  2296. $schema['tableinfo'] = array(
  2297. 'description' => t('TODO: please describe this table!'),
  2298. 'fields' => array(
  2299. 'tableinfo_id' => array(
  2300. 'description' => t('TODO: please describe this field!'),
  2301. 'type' => 'serial',
  2302. 'not null' => TRUE,
  2303. ),
  2304. 'name' => array(
  2305. 'description' => t('TODO: please describe this field!'),
  2306. 'type' => 'varchar',
  2307. 'length' => '30',
  2308. 'not null' => TRUE,
  2309. ),
  2310. 'primary_key_column' => array(
  2311. 'description' => t('TODO: please describe this field!'),
  2312. 'type' => 'varchar',
  2313. 'length' => '30',
  2314. 'not null' => FALSE,
  2315. ),
  2316. 'is_view' => array(
  2317. 'description' => t('TODO: please describe this field!'),
  2318. 'type' => 'int',
  2319. 'not null' => TRUE,
  2320. 'default' => 0,
  2321. ),
  2322. 'view_on_table_id' => array(
  2323. 'description' => t('TODO: please describe this field!'),
  2324. 'type' => 'int',
  2325. 'not null' => FALSE,
  2326. ),
  2327. 'superclass_table_id' => array(
  2328. 'description' => t('TODO: please describe this field!'),
  2329. 'type' => 'int',
  2330. 'not null' => FALSE,
  2331. ),
  2332. 'is_updateable' => array(
  2333. 'description' => t('TODO: please describe this field!'),
  2334. 'type' => 'int',
  2335. 'not null' => TRUE,
  2336. 'default' => 1,
  2337. ),
  2338. 'modification_date' => array(
  2339. 'description' => t('TODO: please describe this field!'),
  2340. 'type' => 'date',
  2341. 'not null' => TRUE,
  2342. 'default' => 'ow(',
  2343. ),
  2344. ),
  2345. 'primary key' => array('tableinfo_id'),
  2346. 'unique keys' => array(
  2347. 'tableinfo_c1' => array('name')
  2348. ),
  2349. );
  2350. $schema['treatment'] = array(
  2351. 'description' => t('TODO: please describe this table!'),
  2352. 'fields' => array(
  2353. 'treatment_id' => array(
  2354. 'description' => t('TODO: please describe this field!'),
  2355. 'type' => 'serial',
  2356. 'not null' => TRUE,
  2357. ),
  2358. 'rank' => array(
  2359. 'description' => t('TODO: please describe this field!'),
  2360. 'type' => 'int',
  2361. 'not null' => TRUE,
  2362. 'default' => 0,
  2363. ),
  2364. 'biomaterial_id' => array(
  2365. 'description' => t('TODO: please describe this field!'),
  2366. 'type' => 'int',
  2367. 'not null' => TRUE,
  2368. ),
  2369. 'type_id' => array(
  2370. 'description' => t('TODO: please describe this field!'),
  2371. 'type' => 'int',
  2372. 'not null' => TRUE,
  2373. ),
  2374. 'protocol_id' => array(
  2375. 'description' => t('TODO: please describe this field!'),
  2376. 'type' => 'int',
  2377. 'not null' => FALSE,
  2378. ),
  2379. 'name' => array(
  2380. 'description' => t('TODO: please describe this field!'),
  2381. 'type' => 'text',
  2382. 'not null' => FALSE,
  2383. ),
  2384. ),
  2385. 'primary key' => array('treatment_id'),
  2386. 'indexes' => array(
  2387. 'treatment_idx1' => array('biomaterial_id'),
  2388. 'treatment_idx2' => array('type_id'),
  2389. 'treatment_idx3' => array('protocol_id'),
  2390. ),
  2391. );
  2392. $schema['tripal_obo'] = array(
  2393. 'description' => t('TODO: please describe this table!'),
  2394. 'fields' => array(
  2395. 'cv_id' => array(
  2396. 'description' => t('TODO: please describe this field!'),
  2397. 'type' => 'int',
  2398. 'unsigned' => TRUE,
  2399. 'not null' => TRUE,
  2400. 'default' => 0,
  2401. ),
  2402. 'file' => array(
  2403. 'description' => t('TODO: please describe this field!'),
  2404. 'type' => 'varchar',
  2405. 'length' => '1024',
  2406. 'not null' => FALSE,
  2407. ),
  2408. 'url' => array(
  2409. 'description' => t('TODO: please describe this field!'),
  2410. 'type' => 'varchar',
  2411. 'length' => '1024',
  2412. 'not null' => FALSE,
  2413. ),
  2414. ),
  2415. 'primary key' => array('cv_id'),
  2416. 'indexes' => array(
  2417. 'cv_id' => array('cv_id'),
  2418. ),
  2419. );
  2420. $schema['tripal_organism_views_common_name'] = array(
  2421. 'description' => t('TODO: please describe this table!'),
  2422. 'fields' => array(
  2423. 'nid' => array(
  2424. 'description' => t('TODO: please describe this field!'),
  2425. 'type' => 'int',
  2426. 'unsigned' => TRUE,
  2427. 'not null' => TRUE,
  2428. 'default' => 0,
  2429. ),
  2430. 'common_name' => array(
  2431. 'description' => t('TODO: please describe this field!'),
  2432. 'type' => 'varchar',
  2433. 'length' => '255',
  2434. 'not null' => TRUE,
  2435. 'default' => 'NA',
  2436. ),
  2437. ),
  2438. );
  2439. $schema['type_feature_count'] = array(
  2440. 'description' => t('TODO: please describe this table!'),
  2441. 'fields' => array(
  2442. 'type' => array(
  2443. 'description' => t('TODO: please describe this field!'),
  2444. 'type' => 'varchar',
  2445. 'length' => '1024',
  2446. 'not null' => FALSE,
  2447. ),
  2448. 'num_features' => array(
  2449. 'description' => t('TODO: please describe this field!'),
  2450. 'type' => 'int',
  2451. 'size' => 'big',
  2452. 'not null' => FALSE,
  2453. ),
  2454. ),
  2455. );
  2456. $schema['stockcollectionprop'] = array(
  2457. 'description' => t('TODO: please describe this table!'),
  2458. 'fields' => array(
  2459. 'stockcollectionprop_id' => array(
  2460. 'description' => t('TODO: please describe this field!'),
  2461. 'type' => 'serial',
  2462. 'not null' => TRUE,
  2463. ),
  2464. 'stockcollection_id' => array(
  2465. 'description' => t('TODO: please describe this field!'),
  2466. 'type' => 'int',
  2467. 'not null' => TRUE,
  2468. ),
  2469. 'type_id' => array(
  2470. 'description' => t('TODO: please describe this field!'),
  2471. 'type' => 'int',
  2472. 'not null' => TRUE,
  2473. ),
  2474. 'value' => array(
  2475. 'description' => t('TODO: please describe this field!'),
  2476. 'type' => 'text',
  2477. 'not null' => FALSE,
  2478. ),
  2479. 'rank' => array(
  2480. 'description' => t('TODO: please describe this field!'),
  2481. 'type' => 'int',
  2482. 'not null' => TRUE,
  2483. 'default' => 0,
  2484. ),
  2485. ),
  2486. 'primary key' => array('stockcollectionprop_id'),
  2487. 'unique keys' => array(
  2488. 'stockcollectionprop_c1' => array('stockcollection_id', 'type_id', 'rank')
  2489. ),
  2490. 'indexes' => array(
  2491. 'stockcollectionprop_idx1' => array('stockcollection_id'),
  2492. 'stockcollectionprop_idx2' => array('type_id'),
  2493. ),
  2494. );
  2495. $schema['stockcollection_stock'] = array(
  2496. 'description' => t('TODO: please describe this table!'),
  2497. 'fields' => array(
  2498. 'stockcollection_stock_id' => array(
  2499. 'description' => t('TODO: please describe this field!'),
  2500. 'type' => 'serial',
  2501. 'not null' => TRUE,
  2502. ),
  2503. 'stockcollection_id' => array(
  2504. 'description' => t('TODO: please describe this field!'),
  2505. 'type' => 'int',
  2506. 'not null' => TRUE,
  2507. ),
  2508. 'stock_id' => array(
  2509. 'description' => t('TODO: please describe this field!'),
  2510. 'type' => 'int',
  2511. 'not null' => TRUE,
  2512. ),
  2513. ),
  2514. 'primary key' => array('stockcollection_stock_id'),
  2515. 'unique keys' => array(
  2516. 'stockcollection_stock_c1' => array('stockcollection_id', 'stock_id')
  2517. ),
  2518. 'indexes' => array(
  2519. 'stockcollection_stock_idx1' => array('stockcollection_id'),
  2520. 'stockcollection_stock_idx2' => array('stock_id'),
  2521. ),
  2522. );
  2523. $schema['public_feature'] = array(
  2524. 'description' => t('TODO: please describe this table!'),
  2525. 'fields' => array(
  2526. 'vid' => array(
  2527. 'description' => t('TODO: please describe this field!'),
  2528. 'type' => 'int',
  2529. 'unsigned' => TRUE,
  2530. 'not null' => TRUE,
  2531. 'default' => 0,
  2532. ),
  2533. 'nid' => array(
  2534. 'description' => t('TODO: please describe this field!'),
  2535. 'type' => 'int',
  2536. 'unsigned' => TRUE,
  2537. 'not null' => TRUE,
  2538. 'default' => 0,
  2539. ),
  2540. 'feature_id' => array(
  2541. 'description' => t('TODO: please describe this field!'),
  2542. 'type' => 'int',
  2543. 'not null' => TRUE,
  2544. 'default' => 0,
  2545. ),
  2546. 'sync_date' => array(
  2547. 'description' => t('TODO: please describe this field!'),
  2548. 'type' => 'int',
  2549. 'not null' => FALSE,
  2550. ),
  2551. ),
  2552. 'primary key' => array('nid'),
  2553. 'unique keys' => array(
  2554. 'nid_vid' => array('nid', 'vid'),
  2555. 'vid' => array('vid')
  2556. ),
  2557. 'indexes' => array(
  2558. 'feature_id' => array('feature_id'),
  2559. ),
  2560. );
  2561. $schema['public_library'] = array(
  2562. 'description' => t('TODO: please describe this table!'),
  2563. 'fields' => array(
  2564. 'vid' => array(
  2565. 'description' => t('TODO: please describe this field!'),
  2566. 'type' => 'int',
  2567. 'unsigned' => TRUE,
  2568. 'not null' => TRUE,
  2569. 'default' => 0,
  2570. ),
  2571. 'nid' => array(
  2572. 'description' => t('TODO: please describe this field!'),
  2573. 'type' => 'int',
  2574. 'unsigned' => TRUE,
  2575. 'not null' => TRUE,
  2576. 'default' => 0,
  2577. ),
  2578. 'library_id' => array(
  2579. 'description' => t('TODO: please describe this field!'),
  2580. 'type' => 'int',
  2581. 'not null' => TRUE,
  2582. 'default' => 0,
  2583. ),
  2584. ),
  2585. 'primary key' => array('nid'),
  2586. 'unique keys' => array(
  2587. 'nid_vid' => array('nid', 'vid'),
  2588. 'vid' => array('vid')
  2589. ),
  2590. 'indexes' => array(
  2591. 'library_id' => array('library_id'),
  2592. ),
  2593. );
  2594. $schema['public_organism'] = array(
  2595. 'description' => t('TODO: please describe this table!'),
  2596. 'fields' => array(
  2597. 'vid' => array(
  2598. 'description' => t('TODO: please describe this field!'),
  2599. 'type' => 'int',
  2600. 'unsigned' => TRUE,
  2601. 'not null' => TRUE,
  2602. 'default' => 0,
  2603. ),
  2604. 'nid' => array(
  2605. 'description' => t('TODO: please describe this field!'),
  2606. 'type' => 'int',
  2607. 'unsigned' => TRUE,
  2608. 'not null' => TRUE,
  2609. 'default' => 0,
  2610. ),
  2611. 'organism_id' => array(
  2612. 'description' => t('TODO: please describe this field!'),
  2613. 'type' => 'int',
  2614. 'not null' => TRUE,
  2615. 'default' => 0,
  2616. ),
  2617. ),
  2618. 'primary key' => array('nid'),
  2619. 'unique keys' => array(
  2620. 'nid_vid' => array('nid', 'vid'),
  2621. 'vid' => array('vid')
  2622. ),
  2623. 'indexes' => array(
  2624. 'organism_id' => array('organism_id'),
  2625. ),
  2626. );
  2627. $schema['pubprop'] = array(
  2628. 'description' => t('TODO: please describe this table!'),
  2629. 'fields' => array(
  2630. 'pubprop_id' => array(
  2631. 'description' => t('TODO: please describe this field!'),
  2632. 'type' => 'serial',
  2633. 'not null' => TRUE,
  2634. ),
  2635. 'pub_id' => array(
  2636. 'description' => t('TODO: please describe this field!'),
  2637. 'type' => 'int',
  2638. 'not null' => TRUE,
  2639. ),
  2640. 'type_id' => array(
  2641. 'description' => t('TODO: please describe this field!'),
  2642. 'type' => 'int',
  2643. 'not null' => TRUE,
  2644. ),
  2645. 'value' => array(
  2646. 'description' => t('TODO: please describe this field!'),
  2647. 'type' => 'text',
  2648. 'not null' => TRUE,
  2649. ),
  2650. 'rank' => array(
  2651. 'description' => t('TODO: please describe this field!'),
  2652. 'type' => 'int',
  2653. 'not null' => FALSE,
  2654. ),
  2655. ),
  2656. 'primary key' => array('pubprop_id'),
  2657. 'unique keys' => array(
  2658. 'pubprop_c1' => array('pub_id', 'type_id', 'rank')
  2659. ),
  2660. 'indexes' => array(
  2661. 'pubprop_idx1' => array('pub_id'),
  2662. 'pubprop_idx2' => array('type_id'),
  2663. ),
  2664. );
  2665. $schema['pubauthor'] = array(
  2666. 'description' => t('TODO: please describe this table!'),
  2667. 'fields' => array(
  2668. 'pubauthor_id' => array(
  2669. 'description' => t('TODO: please describe this field!'),
  2670. 'type' => 'serial',
  2671. 'not null' => TRUE,
  2672. ),
  2673. 'pub_id' => array(
  2674. 'description' => t('TODO: please describe this field!'),
  2675. 'type' => 'int',
  2676. 'not null' => TRUE,
  2677. ),
  2678. 'rank' => array(
  2679. 'description' => t('TODO: please describe this field!'),
  2680. 'type' => 'int',
  2681. 'not null' => TRUE,
  2682. ),
  2683. 'editor' => array(
  2684. 'description' => t('TODO: please describe this field!'),
  2685. 'type' => 'boolean',
  2686. 'not null' => FALSE,
  2687. 'default' => 'als',
  2688. ),
  2689. 'surname' => array(
  2690. 'description' => t('TODO: please describe this field!'),
  2691. 'type' => 'varchar',
  2692. 'length' => '100',
  2693. 'not null' => TRUE,
  2694. ),
  2695. 'givennames' => array(
  2696. 'description' => t('TODO: please describe this field!'),
  2697. 'type' => 'varchar',
  2698. 'length' => '100',
  2699. 'not null' => FALSE,
  2700. ),
  2701. 'suffix' => array(
  2702. 'description' => t('TODO: please describe this field!'),
  2703. 'type' => 'varchar',
  2704. 'length' => '100',
  2705. 'not null' => FALSE,
  2706. ),
  2707. ),
  2708. 'primary key' => array('pubauthor_id'),
  2709. 'unique keys' => array(
  2710. 'pubauthor_c1' => array('pub_id', 'rank')
  2711. ),
  2712. 'indexes' => array(
  2713. 'pubauthor_idx2' => array('pub_id'),
  2714. ),
  2715. );
  2716. $schema['pub_relationship'] = array(
  2717. 'description' => t('TODO: please describe this table!'),
  2718. 'fields' => array(
  2719. 'pub_relationship_id' => array(
  2720. 'description' => t('TODO: please describe this field!'),
  2721. 'type' => 'serial',
  2722. 'not null' => TRUE,
  2723. ),
  2724. 'subject_id' => array(
  2725. 'description' => t('TODO: please describe this field!'),
  2726. 'type' => 'int',
  2727. 'not null' => TRUE,
  2728. ),
  2729. 'object_id' => array(
  2730. 'description' => t('TODO: please describe this field!'),
  2731. 'type' => 'int',
  2732. 'not null' => TRUE,
  2733. ),
  2734. 'type_id' => array(
  2735. 'description' => t('TODO: please describe this field!'),
  2736. 'type' => 'int',
  2737. 'not null' => TRUE,
  2738. ),
  2739. ),
  2740. 'primary key' => array('pub_relationship_id'),
  2741. 'unique keys' => array(
  2742. 'pub_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  2743. ),
  2744. 'indexes' => array(
  2745. 'pub_relationship_idx1' => array('subject_id'),
  2746. 'pub_relationship_idx2' => array('object_id'),
  2747. 'pub_relationship_idx3' => array('type_id'),
  2748. ),
  2749. );
  2750. $schema['protocol'] = array(
  2751. 'description' => t('TODO: please describe this table!'),
  2752. 'fields' => array(
  2753. 'protocol_id' => array(
  2754. 'description' => t('TODO: please describe this field!'),
  2755. 'type' => 'serial',
  2756. 'not null' => TRUE,
  2757. ),
  2758. 'type_id' => array(
  2759. 'description' => t('TODO: please describe this field!'),
  2760. 'type' => 'int',
  2761. 'not null' => TRUE,
  2762. ),
  2763. 'pub_id' => array(
  2764. 'description' => t('TODO: please describe this field!'),
  2765. 'type' => 'int',
  2766. 'not null' => FALSE,
  2767. ),
  2768. 'dbxref_id' => array(
  2769. 'description' => t('TODO: please describe this field!'),
  2770. 'type' => 'int',
  2771. 'not null' => FALSE,
  2772. ),
  2773. 'name' => array(
  2774. 'description' => t('TODO: please describe this field!'),
  2775. 'type' => 'text',
  2776. 'not null' => TRUE,
  2777. ),
  2778. 'uri' => array(
  2779. 'description' => t('TODO: please describe this field!'),
  2780. 'type' => 'text',
  2781. 'not null' => FALSE,
  2782. ),
  2783. 'protocoldescription' => array(
  2784. 'description' => t('TODO: please describe this field!'),
  2785. 'type' => 'text',
  2786. 'not null' => FALSE,
  2787. ),
  2788. 'hardwaredescription' => array(
  2789. 'description' => t('TODO: please describe this field!'),
  2790. 'type' => 'text',
  2791. 'not null' => FALSE,
  2792. ),
  2793. 'softwaredescription' => array(
  2794. 'description' => t('TODO: please describe this field!'),
  2795. 'type' => 'text',
  2796. 'not null' => FALSE,
  2797. ),
  2798. ),
  2799. 'primary key' => array('protocol_id'),
  2800. 'unique keys' => array(
  2801. 'protocol_c1' => array('name')
  2802. ),
  2803. 'indexes' => array(
  2804. 'protocol_idx1' => array('type_id'),
  2805. 'protocol_idx2' => array('pub_id'),
  2806. 'protocol_idx3' => array('dbxref_id'),
  2807. ),
  2808. );
  2809. $schema['protocolparam'] = array(
  2810. 'description' => t('TODO: please describe this table!'),
  2811. 'fields' => array(
  2812. 'protocolparam_id' => array(
  2813. 'description' => t('TODO: please describe this field!'),
  2814. 'type' => 'serial',
  2815. 'not null' => TRUE,
  2816. ),
  2817. 'protocol_id' => array(
  2818. 'description' => t('TODO: please describe this field!'),
  2819. 'type' => 'int',
  2820. 'not null' => TRUE,
  2821. ),
  2822. 'name' => array(
  2823. 'description' => t('TODO: please describe this field!'),
  2824. 'type' => 'text',
  2825. 'not null' => TRUE,
  2826. ),
  2827. 'datatype_id' => array(
  2828. 'description' => t('TODO: please describe this field!'),
  2829. 'type' => 'int',
  2830. 'not null' => FALSE,
  2831. ),
  2832. 'unittype_id' => array(
  2833. 'description' => t('TODO: please describe this field!'),
  2834. 'type' => 'int',
  2835. 'not null' => FALSE,
  2836. ),
  2837. 'value' => array(
  2838. 'description' => t('TODO: please describe this field!'),
  2839. 'type' => 'text',
  2840. 'not null' => FALSE,
  2841. ),
  2842. 'rank' => array(
  2843. 'description' => t('TODO: please describe this field!'),
  2844. 'type' => 'int',
  2845. 'not null' => TRUE,
  2846. 'default' => 0,
  2847. ),
  2848. ),
  2849. 'primary key' => array('protocolparam_id'),
  2850. 'indexes' => array(
  2851. 'protocolparam_idx1' => array('protocol_id'),
  2852. 'protocolparam_idx2' => array('datatype_id'),
  2853. 'protocolparam_idx3' => array('unittype_id'),
  2854. ),
  2855. );
  2856. $schema['pub'] = array(
  2857. 'description' => t('TODO: please describe this table!'),
  2858. 'fields' => array(
  2859. 'pub_id' => array(
  2860. 'description' => t('TODO: please describe this field!'),
  2861. 'type' => 'serial',
  2862. 'not null' => TRUE,
  2863. ),
  2864. 'title' => array(
  2865. 'description' => t('TODO: please describe this field!'),
  2866. 'type' => 'text',
  2867. 'not null' => FALSE,
  2868. ),
  2869. 'volumetitle' => array(
  2870. 'description' => t('TODO: please describe this field!'),
  2871. 'type' => 'text',
  2872. 'not null' => FALSE,
  2873. ),
  2874. 'volume' => array(
  2875. 'description' => t('TODO: please describe this field!'),
  2876. 'type' => 'varchar',
  2877. 'length' => '255',
  2878. 'not null' => FALSE,
  2879. ),
  2880. 'series_name' => array(
  2881. 'description' => t('TODO: please describe this field!'),
  2882. 'type' => 'varchar',
  2883. 'length' => '255',
  2884. 'not null' => FALSE,
  2885. ),
  2886. 'issue' => array(
  2887. 'description' => t('TODO: please describe this field!'),
  2888. 'type' => 'varchar',
  2889. 'length' => '255',
  2890. 'not null' => FALSE,
  2891. ),
  2892. 'pyear' => array(
  2893. 'description' => t('TODO: please describe this field!'),
  2894. 'type' => 'varchar',
  2895. 'length' => '255',
  2896. 'not null' => FALSE,
  2897. ),
  2898. 'pages' => array(
  2899. 'description' => t('TODO: please describe this field!'),
  2900. 'type' => 'varchar',
  2901. 'length' => '255',
  2902. 'not null' => FALSE,
  2903. ),
  2904. 'miniref' => array(
  2905. 'description' => t('TODO: please describe this field!'),
  2906. 'type' => 'varchar',
  2907. 'length' => '255',
  2908. 'not null' => FALSE,
  2909. ),
  2910. 'uniquename' => array(
  2911. 'description' => t('TODO: please describe this field!'),
  2912. 'type' => 'text',
  2913. 'not null' => TRUE,
  2914. ),
  2915. 'type_id' => array(
  2916. 'description' => t('TODO: please describe this field!'),
  2917. 'type' => 'int',
  2918. 'not null' => TRUE,
  2919. ),
  2920. 'is_obsolete' => array(
  2921. 'description' => t('TODO: please describe this field!'),
  2922. 'type' => 'boolean',
  2923. 'not null' => FALSE,
  2924. 'default' => 'als',
  2925. ),
  2926. 'publisher' => array(
  2927. 'description' => t('TODO: please describe this field!'),
  2928. 'type' => 'varchar',
  2929. 'length' => '255',
  2930. 'not null' => FALSE,
  2931. ),
  2932. 'pubplace' => array(
  2933. 'description' => t('TODO: please describe this field!'),
  2934. 'type' => 'varchar',
  2935. 'length' => '255',
  2936. 'not null' => FALSE,
  2937. ),
  2938. ),
  2939. 'primary key' => array('pub_id'),
  2940. 'unique keys' => array(
  2941. 'pub_c1' => array('uniquename')
  2942. ),
  2943. 'indexes' => array(
  2944. 'pub_idx1' => array('type_id'),
  2945. ),
  2946. );
  2947. $schema['pub_dbxref'] = array(
  2948. 'description' => t('TODO: please describe this table!'),
  2949. 'fields' => array(
  2950. 'pub_dbxref_id' => array(
  2951. 'description' => t('TODO: please describe this field!'),
  2952. 'type' => 'serial',
  2953. 'not null' => TRUE,
  2954. ),
  2955. 'pub_id' => array(
  2956. 'description' => t('TODO: please describe this field!'),
  2957. 'type' => 'int',
  2958. 'not null' => TRUE,
  2959. ),
  2960. 'dbxref_id' => array(
  2961. 'description' => t('TODO: please describe this field!'),
  2962. 'type' => 'int',
  2963. 'not null' => TRUE,
  2964. ),
  2965. 'is_current' => array(
  2966. 'description' => t('TODO: please describe this field!'),
  2967. 'type' => 'boolean',
  2968. 'not null' => TRUE,
  2969. 'default' => 'ru',
  2970. ),
  2971. ),
  2972. 'primary key' => array('pub_dbxref_id'),
  2973. 'unique keys' => array(
  2974. 'pub_dbxref_c1' => array('pub_id', 'dbxref_id')
  2975. ),
  2976. 'indexes' => array(
  2977. 'pub_dbxref_idx1' => array('pub_id'),
  2978. 'pub_dbxref_idx2' => array('dbxref_id'),
  2979. ),
  2980. );
  2981. $schema['quantification'] = array(
  2982. 'description' => t('TODO: please describe this table!'),
  2983. 'fields' => array(
  2984. 'quantification_id' => array(
  2985. 'description' => t('TODO: please describe this field!'),
  2986. 'type' => 'serial',
  2987. 'not null' => TRUE,
  2988. ),
  2989. 'acquisition_id' => array(
  2990. 'description' => t('TODO: please describe this field!'),
  2991. 'type' => 'int',
  2992. 'not null' => TRUE,
  2993. ),
  2994. 'operator_id' => array(
  2995. 'description' => t('TODO: please describe this field!'),
  2996. 'type' => 'int',
  2997. 'not null' => FALSE,
  2998. ),
  2999. 'protocol_id' => array(
  3000. 'description' => t('TODO: please describe this field!'),
  3001. 'type' => 'int',
  3002. 'not null' => FALSE,
  3003. ),
  3004. 'analysis_id' => array(
  3005. 'description' => t('TODO: please describe this field!'),
  3006. 'type' => 'int',
  3007. 'not null' => TRUE,
  3008. ),
  3009. 'quantificationdate' => array(
  3010. 'description' => t('TODO: please describe this field!'),
  3011. 'type' => 'datetime',
  3012. 'not null' => FALSE,
  3013. 'default' => 'ow(',
  3014. ),
  3015. 'name' => array(
  3016. 'description' => t('TODO: please describe this field!'),
  3017. 'type' => 'text',
  3018. 'not null' => FALSE,
  3019. ),
  3020. 'uri' => array(
  3021. 'description' => t('TODO: please describe this field!'),
  3022. 'type' => 'text',
  3023. 'not null' => FALSE,
  3024. ),
  3025. ),
  3026. 'primary key' => array('quantification_id'),
  3027. 'unique keys' => array(
  3028. 'quantification_c1' => array('name', 'analysis_id')
  3029. ),
  3030. 'indexes' => array(
  3031. 'quantification_idx1' => array('acquisition_id'),
  3032. 'quantification_idx2' => array('operator_id'),
  3033. 'quantification_idx3' => array('protocol_id'),
  3034. 'quantification_idx4' => array('analysis_id'),
  3035. ),
  3036. );
  3037. $schema['quantification_relationship'] = array(
  3038. 'description' => t('TODO: please describe this table!'),
  3039. 'fields' => array(
  3040. 'quantification_relationship_id' => array(
  3041. 'description' => t('TODO: please describe this field!'),
  3042. 'type' => 'serial',
  3043. 'not null' => TRUE,
  3044. ),
  3045. 'subject_id' => array(
  3046. 'description' => t('TODO: please describe this field!'),
  3047. 'type' => 'int',
  3048. 'not null' => TRUE,
  3049. ),
  3050. 'type_id' => array(
  3051. 'description' => t('TODO: please describe this field!'),
  3052. 'type' => 'int',
  3053. 'not null' => TRUE,
  3054. ),
  3055. 'object_id' => array(
  3056. 'description' => t('TODO: please describe this field!'),
  3057. 'type' => 'int',
  3058. 'not null' => TRUE,
  3059. ),
  3060. ),
  3061. 'primary key' => array('quantification_relationship_id'),
  3062. 'unique keys' => array(
  3063. 'quantification_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  3064. ),
  3065. 'indexes' => array(
  3066. 'quantification_relationship_idx1' => array('subject_id'),
  3067. 'quantification_relationship_idx2' => array('type_id'),
  3068. 'quantification_relationship_idx3' => array('object_id'),
  3069. ),
  3070. );
  3071. $schema['stock_pub'] = array(
  3072. 'description' => t('TODO: please describe this table!'),
  3073. 'fields' => array(
  3074. 'stock_pub_id' => array(
  3075. 'description' => t('TODO: please describe this field!'),
  3076. 'type' => 'serial',
  3077. 'not null' => TRUE,
  3078. ),
  3079. 'stock_id' => array(
  3080. 'description' => t('TODO: please describe this field!'),
  3081. 'type' => 'int',
  3082. 'not null' => TRUE,
  3083. ),
  3084. 'pub_id' => array(
  3085. 'description' => t('TODO: please describe this field!'),
  3086. 'type' => 'int',
  3087. 'not null' => TRUE,
  3088. ),
  3089. ),
  3090. 'primary key' => array('stock_pub_id'),
  3091. 'unique keys' => array(
  3092. 'stock_pub_c1' => array('stock_id', 'pub_id')
  3093. ),
  3094. 'indexes' => array(
  3095. 'stock_pub_idx1' => array('stock_id'),
  3096. 'stock_pub_idx2' => array('pub_id'),
  3097. ),
  3098. );
  3099. $schema['stock_relationship'] = array(
  3100. 'description' => t('TODO: please describe this table!'),
  3101. 'fields' => array(
  3102. 'stock_relationship_id' => array(
  3103. 'description' => t('TODO: please describe this field!'),
  3104. 'type' => 'serial',
  3105. 'not null' => TRUE,
  3106. ),
  3107. 'subject_id' => array(
  3108. 'description' => t('TODO: please describe this field!'),
  3109. 'type' => 'int',
  3110. 'not null' => TRUE,
  3111. ),
  3112. 'object_id' => array(
  3113. 'description' => t('TODO: please describe this field!'),
  3114. 'type' => 'int',
  3115. 'not null' => TRUE,
  3116. ),
  3117. 'type_id' => array(
  3118. 'description' => t('TODO: please describe this field!'),
  3119. 'type' => 'int',
  3120. 'not null' => TRUE,
  3121. ),
  3122. 'value' => array(
  3123. 'description' => t('TODO: please describe this field!'),
  3124. 'type' => 'text',
  3125. 'not null' => FALSE,
  3126. ),
  3127. 'rank' => array(
  3128. 'description' => t('TODO: please describe this field!'),
  3129. 'type' => 'int',
  3130. 'not null' => TRUE,
  3131. 'default' => 0,
  3132. ),
  3133. ),
  3134. 'primary key' => array('stock_relationship_id'),
  3135. 'unique keys' => array(
  3136. 'stock_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  3137. ),
  3138. 'indexes' => array(
  3139. 'stock_relationship_idx1' => array('subject_id'),
  3140. 'stock_relationship_idx2' => array('object_id'),
  3141. 'stock_relationship_idx3' => array('type_id'),
  3142. ),
  3143. );
  3144. $schema['stock_relationship_pub'] = array(
  3145. 'description' => t('TODO: please describe this table!'),
  3146. 'fields' => array(
  3147. 'stock_relationship_pub_id' => array(
  3148. 'description' => t('TODO: please describe this field!'),
  3149. 'type' => 'serial',
  3150. 'not null' => TRUE,
  3151. ),
  3152. 'stock_relationship_id' => array(
  3153. 'description' => t('TODO: please describe this field!'),
  3154. 'type' => 'int',
  3155. 'not null' => TRUE,
  3156. ),
  3157. 'pub_id' => array(
  3158. 'description' => t('TODO: please describe this field!'),
  3159. 'type' => 'int',
  3160. 'not null' => TRUE,
  3161. ),
  3162. ),
  3163. 'primary key' => array('stock_relationship_pub_id'),
  3164. 'unique keys' => array(
  3165. 'stock_relationship_pub_c1' => array('stock_relationship_id', 'pub_id')
  3166. ),
  3167. 'indexes' => array(
  3168. 'stock_relationship_pub_idx1' => array('stock_relationship_id'),
  3169. 'stock_relationship_pub_idx2' => array('pub_id'),
  3170. ),
  3171. );
  3172. $schema['stockcollection'] = array(
  3173. 'description' => t('TODO: please describe this table!'),
  3174. 'fields' => array(
  3175. 'stockcollection_id' => array(
  3176. 'description' => t('TODO: please describe this field!'),
  3177. 'type' => 'serial',
  3178. 'not null' => TRUE,
  3179. ),
  3180. 'type_id' => array(
  3181. 'description' => t('TODO: please describe this field!'),
  3182. 'type' => 'int',
  3183. 'not null' => TRUE,
  3184. ),
  3185. 'contact_id' => array(
  3186. 'description' => t('TODO: please describe this field!'),
  3187. 'type' => 'int',
  3188. 'not null' => FALSE,
  3189. ),
  3190. 'name' => array(
  3191. 'description' => t('TODO: please describe this field!'),
  3192. 'type' => 'varchar',
  3193. 'length' => '255',
  3194. 'not null' => FALSE,
  3195. ),
  3196. 'uniquename' => array(
  3197. 'description' => t('TODO: please describe this field!'),
  3198. 'type' => 'text',
  3199. 'not null' => TRUE,
  3200. ),
  3201. ),
  3202. 'primary key' => array('stockcollection_id'),
  3203. 'unique keys' => array(
  3204. 'stockcollection_c1' => array('uniquename', 'type_id')
  3205. ),
  3206. 'indexes' => array(
  3207. 'stockcollection_idx1' => array('contact_id'),
  3208. 'stockcollection_idx2' => array('type_id'),
  3209. 'stockcollection_idx3' => array('uniquename'),
  3210. 'stockcollection_name_ind1' => array('name'),
  3211. ),
  3212. );
  3213. $schema['stock_genotype'] = array(
  3214. 'description' => t('TODO: please describe this table!'),
  3215. 'fields' => array(
  3216. 'stock_genotype_id' => array(
  3217. 'description' => t('TODO: please describe this field!'),
  3218. 'type' => 'serial',
  3219. 'not null' => TRUE,
  3220. ),
  3221. 'stock_id' => array(
  3222. 'description' => t('TODO: please describe this field!'),
  3223. 'type' => 'int',
  3224. 'not null' => TRUE,
  3225. ),
  3226. 'genotype_id' => array(
  3227. 'description' => t('TODO: please describe this field!'),
  3228. 'type' => 'int',
  3229. 'not null' => TRUE,
  3230. ),
  3231. ),
  3232. 'primary key' => array('stock_genotype_id'),
  3233. 'unique keys' => array(
  3234. 'stock_genotype_c1' => array('stock_id', 'genotype_id')
  3235. ),
  3236. 'indexes' => array(
  3237. 'stock_genotype_idx1' => array('stock_id'),
  3238. 'stock_genotype_idx2' => array('genotype_id'),
  3239. ),
  3240. );
  3241. $schema['stock_dbxref'] = array(
  3242. 'description' => t('TODO: please describe this table!'),
  3243. 'fields' => array(
  3244. 'stock_dbxref_id' => array(
  3245. 'description' => t('TODO: please describe this field!'),
  3246. 'type' => 'serial',
  3247. 'not null' => TRUE,
  3248. ),
  3249. 'stock_id' => array(
  3250. 'description' => t('TODO: please describe this field!'),
  3251. 'type' => 'int',
  3252. 'not null' => TRUE,
  3253. ),
  3254. 'dbxref_id' => array(
  3255. 'description' => t('TODO: please describe this field!'),
  3256. 'type' => 'int',
  3257. 'not null' => TRUE,
  3258. ),
  3259. 'is_current' => array(
  3260. 'description' => t('TODO: please describe this field!'),
  3261. 'type' => 'boolean',
  3262. 'not null' => TRUE,
  3263. 'default' => 'ru',
  3264. ),
  3265. ),
  3266. 'primary key' => array('stock_dbxref_id'),
  3267. 'unique keys' => array(
  3268. 'stock_dbxref_c1' => array('stock_id', 'dbxref_id')
  3269. ),
  3270. 'indexes' => array(
  3271. 'stock_dbxref_idx1' => array('stock_id'),
  3272. 'stock_dbxref_idx2' => array('dbxref_id'),
  3273. ),
  3274. 'foreign keys' => array(
  3275. 'dbxref' => array(
  3276. 'table' => 'dbxref',
  3277. 'columns' => array('dbxref_id' => 'dbxref_id'),
  3278. ),
  3279. 'stock' => array(
  3280. 'table' => 'stock',
  3281. 'columns' => array('stock_id' => 'stock_id'),
  3282. ),
  3283. ),
  3284. );
  3285. $schema['quantificationprop'] = array(
  3286. 'description' => t('TODO: please describe this table!'),
  3287. 'fields' => array(
  3288. 'quantificationprop_id' => array(
  3289. 'description' => t('TODO: please describe this field!'),
  3290. 'type' => 'serial',
  3291. 'not null' => TRUE,
  3292. ),
  3293. 'quantification_id' => array(
  3294. 'description' => t('TODO: please describe this field!'),
  3295. 'type' => 'int',
  3296. 'not null' => TRUE,
  3297. ),
  3298. 'type_id' => array(
  3299. 'description' => t('TODO: please describe this field!'),
  3300. 'type' => 'int',
  3301. 'not null' => TRUE,
  3302. ),
  3303. 'value' => array(
  3304. 'description' => t('TODO: please describe this field!'),
  3305. 'type' => 'text',
  3306. 'not null' => FALSE,
  3307. ),
  3308. 'rank' => array(
  3309. 'description' => t('TODO: please describe this field!'),
  3310. 'type' => 'int',
  3311. 'not null' => TRUE,
  3312. 'default' => 0,
  3313. ),
  3314. ),
  3315. 'primary key' => array('quantificationprop_id'),
  3316. 'unique keys' => array(
  3317. 'quantificationprop_c1' => array('quantification_id', 'type_id', 'rank')
  3318. ),
  3319. 'indexes' => array(
  3320. 'quantificationprop_idx1' => array('quantification_id'),
  3321. 'quantificationprop_idx2' => array('type_id'),
  3322. ),
  3323. );
  3324. $schema['stats_paths_to_root'] = array(
  3325. 'description' => t('TODO: please describe this table!'),
  3326. 'fields' => array(
  3327. 'cvterm_id' => array(
  3328. 'description' => t('TODO: please describe this field!'),
  3329. 'type' => 'int',
  3330. 'not null' => FALSE,
  3331. ),
  3332. 'total_paths' => array(
  3333. 'description' => t('TODO: please describe this field!'),
  3334. 'type' => 'int',
  3335. 'size' => 'big',
  3336. 'not null' => FALSE,
  3337. ),
  3338. 'avg_distance' => array(
  3339. 'description' => t('TODO: please describe this field!'),
  3340. 'type' => 'numeric',
  3341. 'not null' => FALSE,
  3342. 'precision' => 0,
  3343. 'scale' => 0,
  3344. ),
  3345. 'min_distance' => array(
  3346. 'description' => t('TODO: please describe this field!'),
  3347. 'type' => 'int',
  3348. 'not null' => FALSE,
  3349. ),
  3350. 'max_distance' => array(
  3351. 'description' => t('TODO: please describe this field!'),
  3352. 'type' => 'int',
  3353. 'not null' => FALSE,
  3354. ),
  3355. ),
  3356. );
  3357. $schema['stock'] = array(
  3358. 'description' => t('TODO: please describe this table!'),
  3359. 'fields' => array(
  3360. 'stock_id' => array(
  3361. 'description' => t('TODO: please describe this field!'),
  3362. 'type' => 'serial',
  3363. 'not null' => TRUE,
  3364. ),
  3365. 'dbxref_id' => array(
  3366. 'description' => t('TODO: please describe this field!'),
  3367. 'type' => 'int',
  3368. 'not null' => FALSE,
  3369. ),
  3370. 'organism_id' => array(
  3371. 'description' => t('TODO: please describe this field!'),
  3372. 'type' => 'int',
  3373. 'not null' => TRUE,
  3374. ),
  3375. 'name' => array(
  3376. 'description' => t('TODO: please describe this field!'),
  3377. 'type' => 'varchar',
  3378. 'length' => '255',
  3379. 'not null' => FALSE,
  3380. ),
  3381. 'uniquename' => array(
  3382. 'description' => t('TODO: please describe this field!'),
  3383. 'type' => 'text',
  3384. 'not null' => TRUE,
  3385. ),
  3386. 'description' => array(
  3387. 'description' => t('TODO: please describe this field!'),
  3388. 'type' => 'text',
  3389. 'not null' => FALSE,
  3390. ),
  3391. 'type_id' => array(
  3392. 'description' => t('TODO: please describe this field!'),
  3393. 'type' => 'int',
  3394. 'not null' => TRUE,
  3395. ),
  3396. 'is_obsolete' => array(
  3397. 'description' => t('TODO: please describe this field!'),
  3398. 'type' => 'boolean',
  3399. 'not null' => TRUE,
  3400. 'default' => 'als',
  3401. ),
  3402. ),
  3403. 'primary key' => array('stock_id'),
  3404. 'unique keys' => array(
  3405. 'stock_c1' => array('organism_id', 'uniquename', 'type_id')
  3406. ),
  3407. 'indexes' => array(
  3408. 'stock_idx1' => array('dbxref_id'),
  3409. 'stock_idx2' => array('organism_id'),
  3410. 'stock_idx3' => array('type_id'),
  3411. 'stock_idx4' => array('uniquename'),
  3412. 'stock_name_ind1' => array('name'),
  3413. ),
  3414. 'foreign keys' => array(
  3415. 'organism' => array(
  3416. 'table' => 'organism',
  3417. 'columns' => array('organism_id' => 'organism_id'),
  3418. ),
  3419. 'dbxref' => array(
  3420. 'table' => 'dbxref',
  3421. 'columns' => array('dbxref_id' => 'dbxref_id'),
  3422. ),
  3423. 'cvterm' => array(
  3424. 'table' => 'cvterm',
  3425. 'columns' => array('type_id' => 'cvterm_id'),
  3426. ),
  3427. ),
  3428. );
  3429. $schema['stock_cvterm'] = array(
  3430. 'description' => t('TODO: please describe this table!'),
  3431. 'fields' => array(
  3432. 'stock_cvterm_id' => array(
  3433. 'description' => t('TODO: please describe this field!'),
  3434. 'type' => 'serial',
  3435. 'not null' => TRUE,
  3436. ),
  3437. 'stock_id' => array(
  3438. 'description' => t('TODO: please describe this field!'),
  3439. 'type' => 'int',
  3440. 'not null' => TRUE,
  3441. ),
  3442. 'cvterm_id' => array(
  3443. 'description' => t('TODO: please describe this field!'),
  3444. 'type' => 'int',
  3445. 'not null' => TRUE,
  3446. ),
  3447. 'pub_id' => array(
  3448. 'description' => t('TODO: please describe this field!'),
  3449. 'type' => 'int',
  3450. 'not null' => TRUE,
  3451. ),
  3452. ),
  3453. 'primary key' => array('stock_cvterm_id'),
  3454. 'unique keys' => array(
  3455. 'stock_cvterm_c1' => array('stock_id', 'cvterm_id', 'pub_id')
  3456. ),
  3457. 'indexes' => array(
  3458. 'stock_cvterm_idx1' => array('stock_id'),
  3459. 'stock_cvterm_idx2' => array('cvterm_id'),
  3460. 'stock_cvterm_idx3' => array('pub_id'),
  3461. ),
  3462. );
  3463. $schema['feature_synonym'] = array(
  3464. 'description' => t('TODO: please describe this table!'),
  3465. 'fields' => array(
  3466. 'feature_synonym_id' => array(
  3467. 'description' => t('TODO: please describe this field!'),
  3468. 'type' => 'serial',
  3469. 'not null' => TRUE,
  3470. ),
  3471. 'synonym_id' => array(
  3472. 'description' => t('TODO: please describe this field!'),
  3473. 'type' => 'int',
  3474. 'not null' => TRUE,
  3475. ),
  3476. 'feature_id' => array(
  3477. 'description' => t('TODO: please describe this field!'),
  3478. 'type' => 'int',
  3479. 'not null' => TRUE,
  3480. ),
  3481. 'pub_id' => array(
  3482. 'description' => t('TODO: please describe this field!'),
  3483. 'type' => 'int',
  3484. 'not null' => TRUE,
  3485. ),
  3486. 'is_current' => array(
  3487. 'description' => t('TODO: please describe this field!'),
  3488. 'type' => 'boolean',
  3489. 'not null' => TRUE,
  3490. 'default' => 'als',
  3491. ),
  3492. 'is_internal' => array(
  3493. 'description' => t('TODO: please describe this field!'),
  3494. 'type' => 'boolean',
  3495. 'not null' => TRUE,
  3496. 'default' => 'als',
  3497. ),
  3498. ),
  3499. 'primary key' => array('feature_synonym_id'),
  3500. 'unique keys' => array(
  3501. 'feature_synonym_c1' => array('synonym_id', 'feature_id', 'pub_id')
  3502. ),
  3503. 'indexes' => array(
  3504. 'feature_synonym_idx1' => array('synonym_id'),
  3505. 'feature_synonym_idx2' => array('feature_id'),
  3506. 'feature_synonym_idx3' => array('pub_id'),
  3507. ),
  3508. );
  3509. $schema['feature_relationshipprop_pub'] = array(
  3510. 'description' => t('TODO: please describe this table!'),
  3511. 'fields' => array(
  3512. 'feature_relationshipprop_pub_id' => array(
  3513. 'description' => t('TODO: please describe this field!'),
  3514. 'type' => 'serial',
  3515. 'not null' => TRUE,
  3516. ),
  3517. 'feature_relationshipprop_id' => array(
  3518. 'description' => t('TODO: please describe this field!'),
  3519. 'type' => 'int',
  3520. 'not null' => TRUE,
  3521. ),
  3522. 'pub_id' => array(
  3523. 'description' => t('TODO: please describe this field!'),
  3524. 'type' => 'int',
  3525. 'not null' => TRUE,
  3526. ),
  3527. ),
  3528. 'primary key' => array('feature_relationshipprop_pub_id'),
  3529. 'unique keys' => array(
  3530. 'feature_relationshipprop_pub_c1' => array('feature_relationshipprop_id', 'pub_id')
  3531. ),
  3532. 'indexes' => array(
  3533. 'feature_relationshipprop_pub_idx1' => array('feature_relationshipprop_id'),
  3534. 'feature_relationshipprop_pub_idx2' => array('pub_id'),
  3535. ),
  3536. );
  3537. $schema['cell_line_relationship'] = array(
  3538. 'description' => t('TODO: please describe this table!'),
  3539. 'fields' => array(
  3540. 'cell_line_relationship_id' => array(
  3541. 'description' => t('TODO: please describe this field!'),
  3542. 'type' => 'serial',
  3543. 'not null' => TRUE,
  3544. ),
  3545. 'subject_id' => array(
  3546. 'description' => t('TODO: please describe this field!'),
  3547. 'type' => 'int',
  3548. 'not null' => TRUE,
  3549. ),
  3550. 'object_id' => array(
  3551. 'description' => t('TODO: please describe this field!'),
  3552. 'type' => 'int',
  3553. 'not null' => TRUE,
  3554. ),
  3555. 'type_id' => array(
  3556. 'description' => t('TODO: please describe this field!'),
  3557. 'type' => 'int',
  3558. 'not null' => TRUE,
  3559. ),
  3560. ),
  3561. 'primary key' => array('cell_line_relationship_id'),
  3562. 'unique keys' => array(
  3563. 'cell_line_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  3564. ),
  3565. );
  3566. $schema['cell_line_pub'] = array(
  3567. 'description' => t('TODO: please describe this table!'),
  3568. 'fields' => array(
  3569. 'cell_line_pub_id' => array(
  3570. 'description' => t('TODO: please describe this field!'),
  3571. 'type' => 'serial',
  3572. 'not null' => TRUE,
  3573. ),
  3574. 'cell_line_id' => array(
  3575. 'description' => t('TODO: please describe this field!'),
  3576. 'type' => 'int',
  3577. 'not null' => TRUE,
  3578. ),
  3579. 'pub_id' => array(
  3580. 'description' => t('TODO: please describe this field!'),
  3581. 'type' => 'int',
  3582. 'not null' => TRUE,
  3583. ),
  3584. ),
  3585. 'primary key' => array('cell_line_pub_id'),
  3586. 'unique keys' => array(
  3587. 'cell_line_pub_c1' => array('cell_line_id', 'pub_id')
  3588. ),
  3589. );
  3590. $schema['cell_line_synonym'] = array(
  3591. 'description' => t('TODO: please describe this table!'),
  3592. 'fields' => array(
  3593. 'cell_line_synonym_id' => array(
  3594. 'description' => t('TODO: please describe this field!'),
  3595. 'type' => 'serial',
  3596. 'not null' => TRUE,
  3597. ),
  3598. 'cell_line_id' => array(
  3599. 'description' => t('TODO: please describe this field!'),
  3600. 'type' => 'int',
  3601. 'not null' => TRUE,
  3602. ),
  3603. 'synonym_id' => array(
  3604. 'description' => t('TODO: please describe this field!'),
  3605. 'type' => 'int',
  3606. 'not null' => TRUE,
  3607. ),
  3608. 'pub_id' => array(
  3609. 'description' => t('TODO: please describe this field!'),
  3610. 'type' => 'int',
  3611. 'not null' => TRUE,
  3612. ),
  3613. 'is_current' => array(
  3614. 'description' => t('TODO: please describe this field!'),
  3615. 'type' => 'boolean',
  3616. 'not null' => TRUE,
  3617. 'default' => 'als',
  3618. ),
  3619. 'is_internal' => array(
  3620. 'description' => t('TODO: please describe this field!'),
  3621. 'type' => 'boolean',
  3622. 'not null' => TRUE,
  3623. 'default' => 'als',
  3624. ),
  3625. ),
  3626. 'primary key' => array('cell_line_synonym_id'),
  3627. 'unique keys' => array(
  3628. 'cell_line_synonym_c1' => array('synonym_id', 'cell_line_id', 'pub_id')
  3629. ),
  3630. );
  3631. $schema['cell_lineprop'] = array(
  3632. 'description' => t('TODO: please describe this table!'),
  3633. 'fields' => array(
  3634. 'cell_lineprop_id' => array(
  3635. 'description' => t('TODO: please describe this field!'),
  3636. 'type' => 'serial',
  3637. 'not null' => TRUE,
  3638. ),
  3639. 'cell_line_id' => array(
  3640. 'description' => t('TODO: please describe this field!'),
  3641. 'type' => 'int',
  3642. 'not null' => TRUE,
  3643. ),
  3644. 'type_id' => array(
  3645. 'description' => t('TODO: please describe this field!'),
  3646. 'type' => 'int',
  3647. 'not null' => TRUE,
  3648. ),
  3649. 'value' => array(
  3650. 'description' => t('TODO: please describe this field!'),
  3651. 'type' => 'text',
  3652. 'not null' => FALSE,
  3653. ),
  3654. 'rank' => array(
  3655. 'description' => t('TODO: please describe this field!'),
  3656. 'type' => 'int',
  3657. 'not null' => TRUE,
  3658. 'default' => 0,
  3659. ),
  3660. ),
  3661. 'primary key' => array('cell_lineprop_id'),
  3662. 'unique keys' => array(
  3663. 'cell_lineprop_c1' => array('cell_line_id', 'type_id', 'rank')
  3664. ),
  3665. );
  3666. $schema['cell_lineprop_pub'] = array(
  3667. 'description' => t('TODO: please describe this table!'),
  3668. 'fields' => array(
  3669. 'cell_lineprop_pub_id' => array(
  3670. 'description' => t('TODO: please describe this field!'),
  3671. 'type' => 'serial',
  3672. 'not null' => TRUE,
  3673. ),
  3674. 'cell_lineprop_id' => array(
  3675. 'description' => t('TODO: please describe this field!'),
  3676. 'type' => 'int',
  3677. 'not null' => TRUE,
  3678. ),
  3679. 'pub_id' => array(
  3680. 'description' => t('TODO: please describe this field!'),
  3681. 'type' => 'int',
  3682. 'not null' => TRUE,
  3683. ),
  3684. ),
  3685. 'primary key' => array('cell_lineprop_pub_id'),
  3686. 'unique keys' => array(
  3687. 'cell_lineprop_pub_c1' => array('cell_lineprop_id', 'pub_id')
  3688. ),
  3689. );
  3690. $schema['cell_line_library'] = array(
  3691. 'description' => t('TODO: please describe this table!'),
  3692. 'fields' => array(
  3693. 'cell_line_library_id' => array(
  3694. 'description' => t('TODO: please describe this field!'),
  3695. 'type' => 'serial',
  3696. 'not null' => TRUE,
  3697. ),
  3698. 'cell_line_id' => array(
  3699. 'description' => t('TODO: please describe this field!'),
  3700. 'type' => 'int',
  3701. 'not null' => TRUE,
  3702. ),
  3703. 'library_id' => array(
  3704. 'description' => t('TODO: please describe this field!'),
  3705. 'type' => 'int',
  3706. 'not null' => TRUE,
  3707. ),
  3708. 'pub_id' => array(
  3709. 'description' => t('TODO: please describe this field!'),
  3710. 'type' => 'int',
  3711. 'not null' => TRUE,
  3712. ),
  3713. ),
  3714. 'primary key' => array('cell_line_library_id'),
  3715. 'unique keys' => array(
  3716. 'cell_line_library_c1' => array('cell_line_id', 'library_id', 'pub_id')
  3717. ),
  3718. );
  3719. $schema['cell_line_feature'] = array(
  3720. 'description' => t('TODO: please describe this table!'),
  3721. 'fields' => array(
  3722. 'cell_line_feature_id' => array(
  3723. 'description' => t('TODO: please describe this field!'),
  3724. 'type' => 'serial',
  3725. 'not null' => TRUE,
  3726. ),
  3727. 'cell_line_id' => array(
  3728. 'description' => t('TODO: please describe this field!'),
  3729. 'type' => 'int',
  3730. 'not null' => TRUE,
  3731. ),
  3732. 'feature_id' => array(
  3733. 'description' => t('TODO: please describe this field!'),
  3734. 'type' => 'int',
  3735. 'not null' => TRUE,
  3736. ),
  3737. 'pub_id' => array(
  3738. 'description' => t('TODO: please describe this field!'),
  3739. 'type' => 'int',
  3740. 'not null' => TRUE,
  3741. ),
  3742. ),
  3743. 'primary key' => array('cell_line_feature_id'),
  3744. 'unique keys' => array(
  3745. 'cell_line_feature_c1' => array('cell_line_id', 'feature_id', 'pub_id')
  3746. ),
  3747. );
  3748. $schema['cell_line'] = array(
  3749. 'description' => t('TODO: please describe this table!'),
  3750. 'fields' => array(
  3751. 'cell_line_id' => array(
  3752. 'description' => t('TODO: please describe this field!'),
  3753. 'type' => 'serial',
  3754. 'not null' => TRUE,
  3755. ),
  3756. 'name' => array(
  3757. 'description' => t('TODO: please describe this field!'),
  3758. 'type' => 'varchar',
  3759. 'length' => '255',
  3760. 'not null' => FALSE,
  3761. ),
  3762. 'uniquename' => array(
  3763. 'description' => t('TODO: please describe this field!'),
  3764. 'type' => 'varchar',
  3765. 'length' => '255',
  3766. 'not null' => TRUE,
  3767. ),
  3768. 'organism_id' => array(
  3769. 'description' => t('TODO: please describe this field!'),
  3770. 'type' => 'int',
  3771. 'not null' => TRUE,
  3772. ),
  3773. 'timeaccessioned' => array(
  3774. 'description' => t('TODO: please describe this field!'),
  3775. 'type' => 'datetime',
  3776. 'not null' => TRUE,
  3777. 'default' => 'ow(',
  3778. ),
  3779. 'timelastmodified' => array(
  3780. 'description' => t('TODO: please describe this field!'),
  3781. 'type' => 'datetime',
  3782. 'not null' => TRUE,
  3783. 'default' => 'ow(',
  3784. ),
  3785. ),
  3786. 'primary key' => array('cell_line_id'),
  3787. 'unique keys' => array(
  3788. 'cell_line_c1' => array('uniquename', 'organism_id')
  3789. ),
  3790. );
  3791. $schema['cell_line_cvterm'] = array(
  3792. 'description' => t('TODO: please describe this table!'),
  3793. 'fields' => array(
  3794. 'cell_line_cvterm_id' => array(
  3795. 'description' => t('TODO: please describe this field!'),
  3796. 'type' => 'serial',
  3797. 'not null' => TRUE,
  3798. ),
  3799. 'cell_line_id' => array(
  3800. 'description' => t('TODO: please describe this field!'),
  3801. 'type' => 'int',
  3802. 'not null' => TRUE,
  3803. ),
  3804. 'cvterm_id' => array(
  3805. 'description' => t('TODO: please describe this field!'),
  3806. 'type' => 'int',
  3807. 'not null' => TRUE,
  3808. ),
  3809. 'pub_id' => array(
  3810. 'description' => t('TODO: please describe this field!'),
  3811. 'type' => 'int',
  3812. 'not null' => TRUE,
  3813. ),
  3814. 'rank' => array(
  3815. 'description' => t('TODO: please describe this field!'),
  3816. 'type' => 'int',
  3817. 'not null' => TRUE,
  3818. 'default' => 0,
  3819. ),
  3820. ),
  3821. 'primary key' => array('cell_line_cvterm_id'),
  3822. 'unique keys' => array(
  3823. 'cell_line_cvterm_c1' => array('cell_line_id', 'cvterm_id', 'pub_id', 'rank')
  3824. ),
  3825. );
  3826. $schema['cell_line_cvtermprop'] = array(
  3827. 'description' => t('TODO: please describe this table!'),
  3828. 'fields' => array(
  3829. 'cell_line_cvtermprop_id' => array(
  3830. 'description' => t('TODO: please describe this field!'),
  3831. 'type' => 'serial',
  3832. 'not null' => TRUE,
  3833. ),
  3834. 'cell_line_cvterm_id' => array(
  3835. 'description' => t('TODO: please describe this field!'),
  3836. 'type' => 'int',
  3837. 'not null' => TRUE,
  3838. ),
  3839. 'type_id' => array(
  3840. 'description' => t('TODO: please describe this field!'),
  3841. 'type' => 'int',
  3842. 'not null' => TRUE,
  3843. ),
  3844. 'value' => array(
  3845. 'description' => t('TODO: please describe this field!'),
  3846. 'type' => 'text',
  3847. 'not null' => FALSE,
  3848. ),
  3849. 'rank' => array(
  3850. 'description' => t('TODO: please describe this field!'),
  3851. 'type' => 'int',
  3852. 'not null' => TRUE,
  3853. 'default' => 0,
  3854. ),
  3855. ),
  3856. 'primary key' => array('cell_line_cvtermprop_id'),
  3857. 'unique keys' => array(
  3858. 'cell_line_cvtermprop_c1' => array('cell_line_cvterm_id', 'type_id', 'rank')
  3859. ),
  3860. );
  3861. $schema['cell_line_dbxref'] = array(
  3862. 'description' => t('TODO: please describe this table!'),
  3863. 'fields' => array(
  3864. 'cell_line_dbxref_id' => array(
  3865. 'description' => t('TODO: please describe this field!'),
  3866. 'type' => 'serial',
  3867. 'not null' => TRUE,
  3868. ),
  3869. 'cell_line_id' => array(
  3870. 'description' => t('TODO: please describe this field!'),
  3871. 'type' => 'int',
  3872. 'not null' => TRUE,
  3873. ),
  3874. 'dbxref_id' => array(
  3875. 'description' => t('TODO: please describe this field!'),
  3876. 'type' => 'int',
  3877. 'not null' => TRUE,
  3878. ),
  3879. 'is_current' => array(
  3880. 'description' => t('TODO: please describe this field!'),
  3881. 'type' => 'boolean',
  3882. 'not null' => TRUE,
  3883. 'default' => 'ru',
  3884. ),
  3885. ),
  3886. 'primary key' => array('cell_line_dbxref_id'),
  3887. 'unique keys' => array(
  3888. 'cell_line_dbxref_c1' => array('cell_line_id', 'dbxref_id')
  3889. ),
  3890. );
  3891. $schema['channel'] = array(
  3892. 'description' => t('TODO: please describe this table!'),
  3893. 'fields' => array(
  3894. 'channel_id' => array(
  3895. 'description' => t('TODO: please describe this field!'),
  3896. 'type' => 'serial',
  3897. 'not null' => TRUE,
  3898. ),
  3899. 'name' => array(
  3900. 'description' => t('TODO: please describe this field!'),
  3901. 'type' => 'text',
  3902. 'not null' => TRUE,
  3903. ),
  3904. 'definition' => array(
  3905. 'description' => t('TODO: please describe this field!'),
  3906. 'type' => 'text',
  3907. 'not null' => TRUE,
  3908. ),
  3909. ),
  3910. 'primary key' => array('channel_id'),
  3911. 'unique keys' => array(
  3912. 'channel_c1' => array('name')
  3913. ),
  3914. );
  3915. $schema['common_ancestor_cvterm'] = array(
  3916. 'description' => t('TODO: please describe this table!'),
  3917. 'fields' => array(
  3918. 'cvterm1_id' => array(
  3919. 'description' => t('TODO: please describe this field!'),
  3920. 'type' => 'int',
  3921. 'not null' => FALSE,
  3922. ),
  3923. 'cvterm2_id' => array(
  3924. 'description' => t('TODO: please describe this field!'),
  3925. 'type' => 'int',
  3926. 'not null' => FALSE,
  3927. ),
  3928. 'ancestor_cvterm_id' => array(
  3929. 'description' => t('TODO: please describe this field!'),
  3930. 'type' => 'int',
  3931. 'not null' => FALSE,
  3932. ),
  3933. 'pathdistance1' => array(
  3934. 'description' => t('TODO: please describe this field!'),
  3935. 'type' => 'int',
  3936. 'not null' => FALSE,
  3937. ),
  3938. 'pathdistance2' => array(
  3939. 'description' => t('TODO: please describe this field!'),
  3940. 'type' => 'int',
  3941. 'not null' => FALSE,
  3942. ),
  3943. 'total_pathdistance' => array(
  3944. 'description' => t('TODO: please describe this field!'),
  3945. 'type' => 'int',
  3946. 'not null' => FALSE,
  3947. ),
  3948. ),
  3949. );
  3950. $schema['cv_cvterm_count_with_obs'] = array(
  3951. 'description' => t('TODO: please describe this table!'),
  3952. 'fields' => array(
  3953. 'name' => array(
  3954. 'description' => t('TODO: please describe this field!'),
  3955. 'type' => 'varchar',
  3956. 'length' => '255',
  3957. 'not null' => FALSE,
  3958. ),
  3959. 'num_terms_incl_obs' => array(
  3960. 'description' => t('TODO: please describe this field!'),
  3961. 'type' => 'int',
  3962. 'size' => 'big',
  3963. 'not null' => FALSE,
  3964. ),
  3965. ),
  3966. );
  3967. $schema['cv_leaf'] = array(
  3968. 'description' => t('TODO: please describe this table!'),
  3969. 'fields' => array(
  3970. 'cv_id' => array(
  3971. 'description' => t('TODO: please describe this field!'),
  3972. 'type' => 'int',
  3973. 'not null' => FALSE,
  3974. ),
  3975. 'cvterm_id' => array(
  3976. 'description' => t('TODO: please describe this field!'),
  3977. 'type' => 'int',
  3978. 'not null' => FALSE,
  3979. ),
  3980. ),
  3981. );
  3982. $schema['cv_link_count'] = array(
  3983. 'description' => t('TODO: please describe this table!'),
  3984. 'fields' => array(
  3985. 'cv_name' => array(
  3986. 'description' => t('TODO: please describe this field!'),
  3987. 'type' => 'varchar',
  3988. 'length' => '255',
  3989. 'not null' => FALSE,
  3990. ),
  3991. 'relation_name' => array(
  3992. 'description' => t('TODO: please describe this field!'),
  3993. 'type' => 'varchar',
  3994. 'length' => '1024',
  3995. 'not null' => FALSE,
  3996. ),
  3997. 'relation_cv_name' => array(
  3998. 'description' => t('TODO: please describe this field!'),
  3999. 'type' => 'varchar',
  4000. 'length' => '255',
  4001. 'not null' => FALSE,
  4002. ),
  4003. 'num_links' => array(
  4004. 'description' => t('TODO: please describe this field!'),
  4005. 'type' => 'int',
  4006. 'size' => 'big',
  4007. 'not null' => FALSE,
  4008. ),
  4009. ),
  4010. );
  4011. $schema['cv_path_count'] = array(
  4012. 'description' => t('TODO: please describe this table!'),
  4013. 'fields' => array(
  4014. 'cv_name' => array(
  4015. 'description' => t('TODO: please describe this field!'),
  4016. 'type' => 'varchar',
  4017. 'length' => '255',
  4018. 'not null' => FALSE,
  4019. ),
  4020. 'relation_name' => array(
  4021. 'description' => t('TODO: please describe this field!'),
  4022. 'type' => 'varchar',
  4023. 'length' => '1024',
  4024. 'not null' => FALSE,
  4025. ),
  4026. 'relation_cv_name' => array(
  4027. 'description' => t('TODO: please describe this field!'),
  4028. 'type' => 'varchar',
  4029. 'length' => '255',
  4030. 'not null' => FALSE,
  4031. ),
  4032. 'num_paths' => array(
  4033. 'description' => t('TODO: please describe this field!'),
  4034. 'type' => 'int',
  4035. 'size' => 'big',
  4036. 'not null' => FALSE,
  4037. ),
  4038. ),
  4039. );
  4040. $schema['cv_cvterm_count'] = array(
  4041. 'description' => t('TODO: please describe this table!'),
  4042. 'fields' => array(
  4043. 'name' => array(
  4044. 'description' => t('TODO: please describe this field!'),
  4045. 'type' => 'varchar',
  4046. 'length' => '255',
  4047. 'not null' => FALSE,
  4048. ),
  4049. 'num_terms_excl_obs' => array(
  4050. 'description' => t('TODO: please describe this field!'),
  4051. 'type' => 'int',
  4052. 'size' => 'big',
  4053. 'not null' => FALSE,
  4054. ),
  4055. ),
  4056. );
  4057. $schema['cv'] = array(
  4058. 'description' => t('TODO: please describe this table!'),
  4059. 'fields' => array(
  4060. 'cv_id' => array(
  4061. 'description' => t('TODO: please describe this field!'),
  4062. 'type' => 'serial',
  4063. 'not null' => TRUE,
  4064. ),
  4065. 'name' => array(
  4066. 'description' => t('TODO: please describe this field!'),
  4067. 'type' => 'varchar',
  4068. 'length' => '255',
  4069. 'not null' => TRUE,
  4070. ),
  4071. 'definition' => array(
  4072. 'description' => t('TODO: please describe this field!'),
  4073. 'type' => 'text',
  4074. 'not null' => FALSE,
  4075. ),
  4076. ),
  4077. 'primary key' => array('cv_id'),
  4078. 'unique keys' => array(
  4079. 'cv_c1' => array('name')
  4080. ),
  4081. );
  4082. $schema['common_descendant_cvterm'] = array(
  4083. 'description' => t('TODO: please describe this table!'),
  4084. 'fields' => array(
  4085. 'cvterm1_id' => array(
  4086. 'description' => t('TODO: please describe this field!'),
  4087. 'type' => 'int',
  4088. 'not null' => FALSE,
  4089. ),
  4090. 'cvterm2_id' => array(
  4091. 'description' => t('TODO: please describe this field!'),
  4092. 'type' => 'int',
  4093. 'not null' => FALSE,
  4094. ),
  4095. 'ancestor_cvterm_id' => array(
  4096. 'description' => t('TODO: please describe this field!'),
  4097. 'type' => 'int',
  4098. 'not null' => FALSE,
  4099. ),
  4100. 'pathdistance1' => array(
  4101. 'description' => t('TODO: please describe this field!'),
  4102. 'type' => 'int',
  4103. 'not null' => FALSE,
  4104. ),
  4105. 'pathdistance2' => array(
  4106. 'description' => t('TODO: please describe this field!'),
  4107. 'type' => 'int',
  4108. 'not null' => FALSE,
  4109. ),
  4110. 'total_pathdistance' => array(
  4111. 'description' => t('TODO: please describe this field!'),
  4112. 'type' => 'int',
  4113. 'not null' => FALSE,
  4114. ),
  4115. ),
  4116. );
  4117. $schema['contact'] = array(
  4118. 'description' => t('TODO: please describe this table!'),
  4119. 'fields' => array(
  4120. 'contact_id' => array(
  4121. 'description' => t('TODO: please describe this field!'),
  4122. 'type' => 'serial',
  4123. 'not null' => TRUE,
  4124. ),
  4125. 'type_id' => array(
  4126. 'description' => t('TODO: please describe this field!'),
  4127. 'type' => 'int',
  4128. 'not null' => FALSE,
  4129. ),
  4130. 'name' => array(
  4131. 'description' => t('TODO: please describe this field!'),
  4132. 'type' => 'varchar',
  4133. 'length' => '255',
  4134. 'not null' => TRUE,
  4135. ),
  4136. 'description' => array(
  4137. 'description' => t('TODO: please describe this field!'),
  4138. 'type' => 'varchar',
  4139. 'length' => '255',
  4140. 'not null' => FALSE,
  4141. ),
  4142. ),
  4143. 'primary key' => array('contact_id'),
  4144. 'unique keys' => array(
  4145. 'contact_c1' => array('name')
  4146. ),
  4147. );
  4148. $schema['contact_relationship'] = array(
  4149. 'description' => t('TODO: please describe this table!'),
  4150. 'fields' => array(
  4151. 'contact_relationship_id' => array(
  4152. 'description' => t('TODO: please describe this field!'),
  4153. 'type' => 'serial',
  4154. 'not null' => TRUE,
  4155. ),
  4156. 'type_id' => array(
  4157. 'description' => t('TODO: please describe this field!'),
  4158. 'type' => 'int',
  4159. 'not null' => TRUE,
  4160. ),
  4161. 'subject_id' => array(
  4162. 'description' => t('TODO: please describe this field!'),
  4163. 'type' => 'int',
  4164. 'not null' => TRUE,
  4165. ),
  4166. 'object_id' => array(
  4167. 'description' => t('TODO: please describe this field!'),
  4168. 'type' => 'int',
  4169. 'not null' => TRUE,
  4170. ),
  4171. ),
  4172. 'primary key' => array('contact_relationship_id'),
  4173. 'unique keys' => array(
  4174. 'contact_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  4175. ),
  4176. 'indexes' => array(
  4177. 'contact_relationship_idx1' => array('type_id'),
  4178. 'contact_relationship_idx2' => array('subject_id'),
  4179. 'contact_relationship_idx3' => array('object_id'),
  4180. ),
  4181. );
  4182. $schema['control'] = array(
  4183. 'description' => t('TODO: please describe this table!'),
  4184. 'fields' => array(
  4185. 'control_id' => array(
  4186. 'description' => t('TODO: please describe this field!'),
  4187. 'type' => 'serial',
  4188. 'not null' => TRUE,
  4189. ),
  4190. 'type_id' => array(
  4191. 'description' => t('TODO: please describe this field!'),
  4192. 'type' => 'int',
  4193. 'not null' => TRUE,
  4194. ),
  4195. 'assay_id' => array(
  4196. 'description' => t('TODO: please describe this field!'),
  4197. 'type' => 'int',
  4198. 'not null' => TRUE,
  4199. ),
  4200. 'tableinfo_id' => array(
  4201. 'description' => t('TODO: please describe this field!'),
  4202. 'type' => 'int',
  4203. 'not null' => TRUE,
  4204. ),
  4205. 'row_id' => array(
  4206. 'description' => t('TODO: please describe this field!'),
  4207. 'type' => 'int',
  4208. 'not null' => TRUE,
  4209. ),
  4210. 'name' => array(
  4211. 'description' => t('TODO: please describe this field!'),
  4212. 'type' => 'text',
  4213. 'not null' => FALSE,
  4214. ),
  4215. 'value' => array(
  4216. 'description' => t('TODO: please describe this field!'),
  4217. 'type' => 'text',
  4218. 'not null' => FALSE,
  4219. ),
  4220. 'rank' => array(
  4221. 'description' => t('TODO: please describe this field!'),
  4222. 'type' => 'int',
  4223. 'not null' => TRUE,
  4224. 'default' => 0,
  4225. ),
  4226. ),
  4227. 'primary key' => array('control_id'),
  4228. 'indexes' => array(
  4229. 'control_idx1' => array('type_id'),
  4230. 'control_idx2' => array('assay_id'),
  4231. 'control_idx3' => array('tableinfo_id'),
  4232. 'control_idx4' => array('row_id'),
  4233. ),
  4234. );
  4235. $schema['biomaterialprop'] = array(
  4236. 'description' => t('TODO: please describe this table!'),
  4237. 'fields' => array(
  4238. 'biomaterialprop_id' => array(
  4239. 'description' => t('TODO: please describe this field!'),
  4240. 'type' => 'serial',
  4241. 'not null' => TRUE,
  4242. ),
  4243. 'biomaterial_id' => array(
  4244. 'description' => t('TODO: please describe this field!'),
  4245. 'type' => 'int',
  4246. 'not null' => TRUE,
  4247. ),
  4248. 'type_id' => array(
  4249. 'description' => t('TODO: please describe this field!'),
  4250. 'type' => 'int',
  4251. 'not null' => TRUE,
  4252. ),
  4253. 'value' => array(
  4254. 'description' => t('TODO: please describe this field!'),
  4255. 'type' => 'text',
  4256. 'not null' => FALSE,
  4257. ),
  4258. 'rank' => array(
  4259. 'description' => t('TODO: please describe this field!'),
  4260. 'type' => 'int',
  4261. 'not null' => TRUE,
  4262. 'default' => 0,
  4263. ),
  4264. ),
  4265. 'primary key' => array('biomaterialprop_id'),
  4266. 'unique keys' => array(
  4267. 'biomaterialprop_c1' => array('biomaterial_id', 'type_id', 'rank')
  4268. ),
  4269. 'indexes' => array(
  4270. 'biomaterialprop_idx1' => array('biomaterial_id'),
  4271. 'biomaterialprop_idx2' => array('type_id'),
  4272. ),
  4273. );
  4274. $schema['biomaterial_treatment'] = array(
  4275. 'description' => t('TODO: please describe this table!'),
  4276. 'fields' => array(
  4277. 'biomaterial_treatment_id' => array(
  4278. 'description' => t('TODO: please describe this field!'),
  4279. 'type' => 'serial',
  4280. 'not null' => TRUE,
  4281. ),
  4282. 'biomaterial_id' => array(
  4283. 'description' => t('TODO: please describe this field!'),
  4284. 'type' => 'int',
  4285. 'not null' => TRUE,
  4286. ),
  4287. 'treatment_id' => array(
  4288. 'description' => t('TODO: please describe this field!'),
  4289. 'type' => 'int',
  4290. 'not null' => TRUE,
  4291. ),
  4292. 'unittype_id' => array(
  4293. 'description' => t('TODO: please describe this field!'),
  4294. 'type' => 'int',
  4295. 'not null' => FALSE,
  4296. ),
  4297. 'value' => array(
  4298. 'description' => t('TODO: please describe this field!'),
  4299. 'type' => 'float',
  4300. 'not null' => FALSE,
  4301. ),
  4302. 'rank' => array(
  4303. 'description' => t('TODO: please describe this field!'),
  4304. 'type' => 'int',
  4305. 'not null' => TRUE,
  4306. 'default' => 0,
  4307. ),
  4308. ),
  4309. 'primary key' => array('biomaterial_treatment_id'),
  4310. 'unique keys' => array(
  4311. 'biomaterial_treatment_c1' => array('biomaterial_id', 'treatment_id')
  4312. ),
  4313. 'indexes' => array(
  4314. 'biomaterial_treatment_idx1' => array('biomaterial_id'),
  4315. 'biomaterial_treatment_idx2' => array('treatment_id'),
  4316. 'biomaterial_treatment_idx3' => array('unittype_id'),
  4317. ),
  4318. );
  4319. $schema['acquisition_relationship'] = array(
  4320. 'description' => t('TODO: please describe this table!'),
  4321. 'fields' => array(
  4322. 'acquisition_relationship_id' => array(
  4323. 'description' => t('TODO: please describe this field!'),
  4324. 'type' => 'serial',
  4325. 'not null' => TRUE,
  4326. ),
  4327. 'subject_id' => array(
  4328. 'description' => t('TODO: please describe this field!'),
  4329. 'type' => 'int',
  4330. 'not null' => TRUE,
  4331. ),
  4332. 'type_id' => array(
  4333. 'description' => t('TODO: please describe this field!'),
  4334. 'type' => 'int',
  4335. 'not null' => TRUE,
  4336. ),
  4337. 'object_id' => array(
  4338. 'description' => t('TODO: please describe this field!'),
  4339. 'type' => 'int',
  4340. 'not null' => TRUE,
  4341. ),
  4342. 'value' => array(
  4343. 'description' => t('TODO: please describe this field!'),
  4344. 'type' => 'text',
  4345. 'not null' => FALSE,
  4346. ),
  4347. 'rank' => array(
  4348. 'description' => t('TODO: please describe this field!'),
  4349. 'type' => 'int',
  4350. 'not null' => TRUE,
  4351. 'default' => 0,
  4352. ),
  4353. ),
  4354. 'primary key' => array('acquisition_relationship_id'),
  4355. 'unique keys' => array(
  4356. 'acquisition_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  4357. ),
  4358. 'indexes' => array(
  4359. 'acquisition_relationship_idx1' => array('subject_id'),
  4360. 'acquisition_relationship_idx2' => array('type_id'),
  4361. 'acquisition_relationship_idx3' => array('object_id'),
  4362. ),
  4363. );
  4364. $schema['acquisition'] = array(
  4365. 'description' => t('TODO: please describe this table!'),
  4366. 'fields' => array(
  4367. 'acquisition_id' => array(
  4368. 'description' => t('TODO: please describe this field!'),
  4369. 'type' => 'serial',
  4370. 'not null' => TRUE,
  4371. ),
  4372. 'assay_id' => array(
  4373. 'description' => t('TODO: please describe this field!'),
  4374. 'type' => 'int',
  4375. 'not null' => TRUE,
  4376. ),
  4377. 'protocol_id' => array(
  4378. 'description' => t('TODO: please describe this field!'),
  4379. 'type' => 'int',
  4380. 'not null' => FALSE,
  4381. ),
  4382. 'channel_id' => array(
  4383. 'description' => t('TODO: please describe this field!'),
  4384. 'type' => 'int',
  4385. 'not null' => FALSE,
  4386. ),
  4387. 'acquisitiondate' => array(
  4388. 'description' => t('TODO: please describe this field!'),
  4389. 'type' => 'datetime',
  4390. 'not null' => FALSE,
  4391. 'default' => 'ow(',
  4392. ),
  4393. 'name' => array(
  4394. 'description' => t('TODO: please describe this field!'),
  4395. 'type' => 'text',
  4396. 'not null' => FALSE,
  4397. ),
  4398. 'uri' => array(
  4399. 'description' => t('TODO: please describe this field!'),
  4400. 'type' => 'text',
  4401. 'not null' => FALSE,
  4402. ),
  4403. ),
  4404. 'primary key' => array('acquisition_id'),
  4405. 'unique keys' => array(
  4406. 'acquisition_c1' => array('name')
  4407. ),
  4408. 'indexes' => array(
  4409. 'acquisition_idx1' => array('assay_id'),
  4410. 'acquisition_idx2' => array('protocol_id'),
  4411. 'acquisition_idx3' => array('channel_id'),
  4412. ),
  4413. );
  4414. $schema['acquisitionprop'] = array(
  4415. 'description' => t('TODO: please describe this table!'),
  4416. 'fields' => array(
  4417. 'acquisitionprop_id' => array(
  4418. 'description' => t('TODO: please describe this field!'),
  4419. 'type' => 'serial',
  4420. 'not null' => TRUE,
  4421. ),
  4422. 'acquisition_id' => array(
  4423. 'description' => t('TODO: please describe this field!'),
  4424. 'type' => 'int',
  4425. 'not null' => TRUE,
  4426. ),
  4427. 'type_id' => array(
  4428. 'description' => t('TODO: please describe this field!'),
  4429. 'type' => 'int',
  4430. 'not null' => TRUE,
  4431. ),
  4432. 'value' => array(
  4433. 'description' => t('TODO: please describe this field!'),
  4434. 'type' => 'text',
  4435. 'not null' => FALSE,
  4436. ),
  4437. 'rank' => array(
  4438. 'description' => t('TODO: please describe this field!'),
  4439. 'type' => 'int',
  4440. 'not null' => TRUE,
  4441. 'default' => 0,
  4442. ),
  4443. ),
  4444. 'primary key' => array('acquisitionprop_id'),
  4445. 'unique keys' => array(
  4446. 'acquisitionprop_c1' => array('acquisition_id', 'type_id', 'rank')
  4447. ),
  4448. 'indexes' => array(
  4449. 'acquisitionprop_idx1' => array('acquisition_id'),
  4450. 'acquisitionprop_idx2' => array('type_id'),
  4451. ),
  4452. );
  4453. $schema['all_feature_names'] = array(
  4454. 'description' => t('TODO: please describe this table!'),
  4455. 'fields' => array(
  4456. 'feature_id' => array(
  4457. 'description' => t('TODO: please describe this field!'),
  4458. 'type' => 'int',
  4459. 'not null' => FALSE,
  4460. ),
  4461. 'name' => array(
  4462. 'description' => t('TODO: please describe this field!'),
  4463. 'type' => 'varchar',
  4464. 'length' => '255',
  4465. 'not null' => FALSE,
  4466. ),
  4467. 'organism_id' => array(
  4468. 'description' => t('TODO: please describe this field!'),
  4469. 'type' => 'int',
  4470. 'not null' => FALSE,
  4471. ),
  4472. ),
  4473. );
  4474. $schema['analysis'] = array(
  4475. 'description' => t('TODO: please describe this table!'),
  4476. 'fields' => array(
  4477. 'analysis_id' => array(
  4478. 'description' => t('TODO: please describe this field!'),
  4479. 'type' => 'serial',
  4480. 'not null' => TRUE,
  4481. ),
  4482. 'name' => array(
  4483. 'description' => t('TODO: please describe this field!'),
  4484. 'type' => 'varchar',
  4485. 'length' => '255',
  4486. 'not null' => FALSE,
  4487. ),
  4488. 'description' => array(
  4489. 'description' => t('TODO: please describe this field!'),
  4490. 'type' => 'text',
  4491. 'not null' => FALSE,
  4492. ),
  4493. 'program' => array(
  4494. 'description' => t('TODO: please describe this field!'),
  4495. 'type' => 'varchar',
  4496. 'length' => '255',
  4497. 'not null' => TRUE,
  4498. ),
  4499. 'programversion' => array(
  4500. 'description' => t('TODO: please describe this field!'),
  4501. 'type' => 'varchar',
  4502. 'length' => '255',
  4503. 'not null' => TRUE,
  4504. ),
  4505. 'algorithm' => array(
  4506. 'description' => t('TODO: please describe this field!'),
  4507. 'type' => 'varchar',
  4508. 'length' => '255',
  4509. 'not null' => FALSE,
  4510. ),
  4511. 'sourcename' => array(
  4512. 'description' => t('TODO: please describe this field!'),
  4513. 'type' => 'varchar',
  4514. 'length' => '255',
  4515. 'not null' => FALSE,
  4516. ),
  4517. 'sourceversion' => array(
  4518. 'description' => t('TODO: please describe this field!'),
  4519. 'type' => 'varchar',
  4520. 'length' => '255',
  4521. 'not null' => FALSE,
  4522. ),
  4523. 'sourceuri' => array(
  4524. 'description' => t('TODO: please describe this field!'),
  4525. 'type' => 'text',
  4526. 'not null' => FALSE,
  4527. ),
  4528. 'timeexecuted' => array(
  4529. 'description' => t('TODO: please describe this field!'),
  4530. 'type' => 'datetime',
  4531. 'not null' => TRUE,
  4532. 'default' => 'ow(',
  4533. ),
  4534. ),
  4535. 'primary key' => array('analysis_id'),
  4536. 'unique keys' => array(
  4537. 'analysis_c1' => array('program', 'programversion', 'sourcename')
  4538. ),
  4539. );
  4540. $schema['analysisfeature'] = array(
  4541. 'description' => t('TODO: please describe this table!'),
  4542. 'fields' => array(
  4543. 'analysisfeature_id' => array(
  4544. 'description' => t('TODO: please describe this field!'),
  4545. 'type' => 'serial',
  4546. 'not null' => TRUE,
  4547. ),
  4548. 'feature_id' => array(
  4549. 'description' => t('TODO: please describe this field!'),
  4550. 'type' => 'int',
  4551. 'not null' => TRUE,
  4552. ),
  4553. 'analysis_id' => array(
  4554. 'description' => t('TODO: please describe this field!'),
  4555. 'type' => 'int',
  4556. 'not null' => TRUE,
  4557. ),
  4558. 'rawscore' => array(
  4559. 'description' => t('TODO: please describe this field!'),
  4560. 'type' => 'float',
  4561. 'size' => 'big',
  4562. 'not null' => FALSE,
  4563. ),
  4564. 'normscore' => array(
  4565. 'description' => t('TODO: please describe this field!'),
  4566. 'type' => 'float',
  4567. 'size' => 'big',
  4568. 'not null' => FALSE,
  4569. ),
  4570. 'significance' => array(
  4571. 'description' => t('TODO: please describe this field!'),
  4572. 'type' => 'float',
  4573. 'size' => 'big',
  4574. 'not null' => FALSE,
  4575. ),
  4576. 'identity' => array(
  4577. 'description' => t('TODO: please describe this field!'),
  4578. 'type' => 'float',
  4579. 'size' => 'big',
  4580. 'not null' => FALSE,
  4581. ),
  4582. ),
  4583. 'primary key' => array('analysisfeature_id'),
  4584. 'unique keys' => array(
  4585. 'analysisfeature_c1' => array('feature_id', 'analysis_id')
  4586. ),
  4587. 'indexes' => array(
  4588. 'analysisfeature_idx1' => array('feature_id'),
  4589. 'analysisfeature_idx2' => array('analysis_id'),
  4590. ),
  4591. );
  4592. $schema['analysisfeatureprop'] = array(
  4593. 'description' => t('TODO: please describe this table!'),
  4594. 'fields' => array(
  4595. 'analysisfeatureprop_id' => array(
  4596. 'description' => t('TODO: please describe this field!'),
  4597. 'type' => 'serial',
  4598. 'not null' => TRUE,
  4599. ),
  4600. 'analysisfeature_id' => array(
  4601. 'description' => t('TODO: please describe this field!'),
  4602. 'type' => 'int',
  4603. 'not null' => TRUE,
  4604. ),
  4605. 'type_id' => array(
  4606. 'description' => t('TODO: please describe this field!'),
  4607. 'type' => 'int',
  4608. 'not null' => TRUE,
  4609. ),
  4610. 'value' => array(
  4611. 'description' => t('TODO: please describe this field!'),
  4612. 'type' => 'text',
  4613. 'not null' => FALSE,
  4614. ),
  4615. 'rank' => array(
  4616. 'description' => t('TODO: please describe this field!'),
  4617. 'type' => 'int',
  4618. 'not null' => TRUE,
  4619. ),
  4620. ),
  4621. 'primary key' => array('analysisfeatureprop_id'),
  4622. 'unique keys' => array(
  4623. 'analysisfeature_id_type_id_rank' => array('analysisfeature_id', 'type_id', 'rank')
  4624. ),
  4625. );
  4626. $schema['assayprop'] = array(
  4627. 'description' => t('TODO: please describe this table!'),
  4628. 'fields' => array(
  4629. 'assayprop_id' => array(
  4630. 'description' => t('TODO: please describe this field!'),
  4631. 'type' => 'serial',
  4632. 'not null' => TRUE,
  4633. ),
  4634. 'assay_id' => array(
  4635. 'description' => t('TODO: please describe this field!'),
  4636. 'type' => 'int',
  4637. 'not null' => TRUE,
  4638. ),
  4639. 'type_id' => array(
  4640. 'description' => t('TODO: please describe this field!'),
  4641. 'type' => 'int',
  4642. 'not null' => TRUE,
  4643. ),
  4644. 'value' => array(
  4645. 'description' => t('TODO: please describe this field!'),
  4646. 'type' => 'text',
  4647. 'not null' => FALSE,
  4648. ),
  4649. 'rank' => array(
  4650. 'description' => t('TODO: please describe this field!'),
  4651. 'type' => 'int',
  4652. 'not null' => TRUE,
  4653. 'default' => 0,
  4654. ),
  4655. ),
  4656. 'primary key' => array('assayprop_id'),
  4657. 'unique keys' => array(
  4658. 'assayprop_c1' => array('assay_id', 'type_id', 'rank')
  4659. ),
  4660. 'indexes' => array(
  4661. 'assayprop_idx1' => array('assay_id'),
  4662. 'assayprop_idx2' => array('type_id'),
  4663. ),
  4664. );
  4665. $schema['biomaterial'] = array(
  4666. 'description' => t('TODO: please describe this table!'),
  4667. 'fields' => array(
  4668. 'biomaterial_id' => array(
  4669. 'description' => t('TODO: please describe this field!'),
  4670. 'type' => 'serial',
  4671. 'not null' => TRUE,
  4672. ),
  4673. 'taxon_id' => array(
  4674. 'description' => t('TODO: please describe this field!'),
  4675. 'type' => 'int',
  4676. 'not null' => FALSE,
  4677. ),
  4678. 'biosourceprovider_id' => array(
  4679. 'description' => t('TODO: please describe this field!'),
  4680. 'type' => 'int',
  4681. 'not null' => FALSE,
  4682. ),
  4683. 'dbxref_id' => array(
  4684. 'description' => t('TODO: please describe this field!'),
  4685. 'type' => 'int',
  4686. 'not null' => FALSE,
  4687. ),
  4688. 'name' => array(
  4689. 'description' => t('TODO: please describe this field!'),
  4690. 'type' => 'text',
  4691. 'not null' => FALSE,
  4692. ),
  4693. 'description' => array(
  4694. 'description' => t('TODO: please describe this field!'),
  4695. 'type' => 'text',
  4696. 'not null' => FALSE,
  4697. ),
  4698. ),
  4699. 'primary key' => array('biomaterial_id'),
  4700. 'unique keys' => array(
  4701. 'biomaterial_c1' => array('name')
  4702. ),
  4703. 'indexes' => array(
  4704. 'biomaterial_idx1' => array('taxon_id'),
  4705. 'biomaterial_idx2' => array('biosourceprovider_id'),
  4706. 'biomaterial_idx3' => array('dbxref_id'),
  4707. ),
  4708. );
  4709. $schema['biomaterial_dbxref'] = array(
  4710. 'description' => t('TODO: please describe this table!'),
  4711. 'fields' => array(
  4712. 'biomaterial_dbxref_id' => array(
  4713. 'description' => t('TODO: please describe this field!'),
  4714. 'type' => 'serial',
  4715. 'not null' => TRUE,
  4716. ),
  4717. 'biomaterial_id' => array(
  4718. 'description' => t('TODO: please describe this field!'),
  4719. 'type' => 'int',
  4720. 'not null' => TRUE,
  4721. ),
  4722. 'dbxref_id' => array(
  4723. 'description' => t('TODO: please describe this field!'),
  4724. 'type' => 'int',
  4725. 'not null' => TRUE,
  4726. ),
  4727. ),
  4728. 'primary key' => array('biomaterial_dbxref_id'),
  4729. 'unique keys' => array(
  4730. 'biomaterial_dbxref_c1' => array('biomaterial_id', 'dbxref_id')
  4731. ),
  4732. 'indexes' => array(
  4733. 'biomaterial_dbxref_idx1' => array('biomaterial_id'),
  4734. 'biomaterial_dbxref_idx2' => array('dbxref_id'),
  4735. ),
  4736. );
  4737. $schema['biomaterial_relationship'] = array(
  4738. 'description' => t('TODO: please describe this table!'),
  4739. 'fields' => array(
  4740. 'biomaterial_relationship_id' => array(
  4741. 'description' => t('TODO: please describe this field!'),
  4742. 'type' => 'serial',
  4743. 'not null' => TRUE,
  4744. ),
  4745. 'subject_id' => array(
  4746. 'description' => t('TODO: please describe this field!'),
  4747. 'type' => 'int',
  4748. 'not null' => TRUE,
  4749. ),
  4750. 'type_id' => array(
  4751. 'description' => t('TODO: please describe this field!'),
  4752. 'type' => 'int',
  4753. 'not null' => TRUE,
  4754. ),
  4755. 'object_id' => array(
  4756. 'description' => t('TODO: please describe this field!'),
  4757. 'type' => 'int',
  4758. 'not null' => TRUE,
  4759. ),
  4760. ),
  4761. 'primary key' => array('biomaterial_relationship_id'),
  4762. 'unique keys' => array(
  4763. 'biomaterial_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  4764. ),
  4765. 'indexes' => array(
  4766. 'biomaterial_relationship_idx1' => array('subject_id'),
  4767. 'biomaterial_relationship_idx2' => array('object_id'),
  4768. 'biomaterial_relationship_idx3' => array('type_id'),
  4769. ),
  4770. );
  4771. $schema['assay_project'] = array(
  4772. 'description' => t('TODO: please describe this table!'),
  4773. 'fields' => array(
  4774. 'assay_project_id' => array(
  4775. 'description' => t('TODO: please describe this field!'),
  4776. 'type' => 'serial',
  4777. 'not null' => TRUE,
  4778. ),
  4779. 'assay_id' => array(
  4780. 'description' => t('TODO: please describe this field!'),
  4781. 'type' => 'int',
  4782. 'not null' => TRUE,
  4783. ),
  4784. 'project_id' => array(
  4785. 'description' => t('TODO: please describe this field!'),
  4786. 'type' => 'int',
  4787. 'not null' => TRUE,
  4788. ),
  4789. ),
  4790. 'primary key' => array('assay_project_id'),
  4791. 'unique keys' => array(
  4792. 'assay_project_c1' => array('assay_id', 'project_id')
  4793. ),
  4794. 'indexes' => array(
  4795. 'assay_project_idx1' => array('assay_id'),
  4796. 'assay_project_idx2' => array('project_id'),
  4797. ),
  4798. );
  4799. $schema['assay_biomaterial'] = array(
  4800. 'description' => t('TODO: please describe this table!'),
  4801. 'fields' => array(
  4802. 'assay_biomaterial_id' => array(
  4803. 'description' => t('TODO: please describe this field!'),
  4804. 'type' => 'serial',
  4805. 'not null' => TRUE,
  4806. ),
  4807. 'assay_id' => array(
  4808. 'description' => t('TODO: please describe this field!'),
  4809. 'type' => 'int',
  4810. 'not null' => TRUE,
  4811. ),
  4812. 'biomaterial_id' => array(
  4813. 'description' => t('TODO: please describe this field!'),
  4814. 'type' => 'int',
  4815. 'not null' => TRUE,
  4816. ),
  4817. 'channel_id' => array(
  4818. 'description' => t('TODO: please describe this field!'),
  4819. 'type' => 'int',
  4820. 'not null' => FALSE,
  4821. ),
  4822. 'rank' => array(
  4823. 'description' => t('TODO: please describe this field!'),
  4824. 'type' => 'int',
  4825. 'not null' => TRUE,
  4826. 'default' => 0,
  4827. ),
  4828. ),
  4829. 'primary key' => array('assay_biomaterial_id'),
  4830. 'unique keys' => array(
  4831. 'assay_biomaterial_c1' => array('assay_id', 'biomaterial_id', 'channel_id', 'rank')
  4832. ),
  4833. 'indexes' => array(
  4834. 'assay_biomaterial_idx1' => array('assay_id'),
  4835. 'assay_biomaterial_idx2' => array('biomaterial_id'),
  4836. 'assay_biomaterial_idx3' => array('channel_id'),
  4837. ),
  4838. );
  4839. $schema['analysisprop'] = array(
  4840. 'description' => t('TODO: please describe this table!'),
  4841. 'fields' => array(
  4842. 'analysisprop_id' => array(
  4843. 'description' => t('TODO: please describe this field!'),
  4844. 'type' => 'serial',
  4845. 'not null' => TRUE,
  4846. ),
  4847. 'analysis_id' => array(
  4848. 'description' => t('TODO: please describe this field!'),
  4849. 'type' => 'int',
  4850. 'not null' => TRUE,
  4851. ),
  4852. 'type_id' => array(
  4853. 'description' => t('TODO: please describe this field!'),
  4854. 'type' => 'int',
  4855. 'not null' => TRUE,
  4856. ),
  4857. 'value' => array(
  4858. 'description' => t('TODO: please describe this field!'),
  4859. 'type' => 'text',
  4860. 'not null' => FALSE,
  4861. ),
  4862. 'rank' => array(
  4863. 'description' => t('TODO: please describe this field!'),
  4864. 'type' => 'int',
  4865. 'not null' => TRUE,
  4866. 'default' => 0,
  4867. ),
  4868. ),
  4869. 'primary key' => array('analysisprop_id'),
  4870. 'unique keys' => array(
  4871. 'analysisprop_c1' => array('analysis_id', 'type_id', 'rank')
  4872. ),
  4873. 'indexes' => array(
  4874. 'analysisprop_idx1' => array('analysis_id'),
  4875. 'analysisprop_idx2' => array('type_id'),
  4876. ),
  4877. );
  4878. $schema['arraydesign'] = array(
  4879. 'description' => t('TODO: please describe this table!'),
  4880. 'fields' => array(
  4881. 'arraydesign_id' => array(
  4882. 'description' => t('TODO: please describe this field!'),
  4883. 'type' => 'serial',
  4884. 'not null' => TRUE,
  4885. ),
  4886. 'manufacturer_id' => array(
  4887. 'description' => t('TODO: please describe this field!'),
  4888. 'type' => 'int',
  4889. 'not null' => TRUE,
  4890. ),
  4891. 'platformtype_id' => array(
  4892. 'description' => t('TODO: please describe this field!'),
  4893. 'type' => 'int',
  4894. 'not null' => TRUE,
  4895. ),
  4896. 'substratetype_id' => array(
  4897. 'description' => t('TODO: please describe this field!'),
  4898. 'type' => 'int',
  4899. 'not null' => FALSE,
  4900. ),
  4901. 'protocol_id' => array(
  4902. 'description' => t('TODO: please describe this field!'),
  4903. 'type' => 'int',
  4904. 'not null' => FALSE,
  4905. ),
  4906. 'dbxref_id' => array(
  4907. 'description' => t('TODO: please describe this field!'),
  4908. 'type' => 'int',
  4909. 'not null' => FALSE,
  4910. ),
  4911. 'name' => array(
  4912. 'description' => t('TODO: please describe this field!'),
  4913. 'type' => 'text',
  4914. 'not null' => TRUE,
  4915. ),
  4916. 'version' => array(
  4917. 'description' => t('TODO: please describe this field!'),
  4918. 'type' => 'text',
  4919. 'not null' => FALSE,
  4920. ),
  4921. 'description' => array(
  4922. 'description' => t('TODO: please describe this field!'),
  4923. 'type' => 'text',
  4924. 'not null' => FALSE,
  4925. ),
  4926. 'array_dimensions' => array(
  4927. 'description' => t('TODO: please describe this field!'),
  4928. 'type' => 'text',
  4929. 'not null' => FALSE,
  4930. ),
  4931. 'element_dimensions' => array(
  4932. 'description' => t('TODO: please describe this field!'),
  4933. 'type' => 'text',
  4934. 'not null' => FALSE,
  4935. ),
  4936. 'num_of_elements' => array(
  4937. 'description' => t('TODO: please describe this field!'),
  4938. 'type' => 'int',
  4939. 'not null' => FALSE,
  4940. ),
  4941. 'num_array_columns' => array(
  4942. 'description' => t('TODO: please describe this field!'),
  4943. 'type' => 'int',
  4944. 'not null' => FALSE,
  4945. ),
  4946. 'num_array_rows' => array(
  4947. 'description' => t('TODO: please describe this field!'),
  4948. 'type' => 'int',
  4949. 'not null' => FALSE,
  4950. ),
  4951. 'num_grid_columns' => array(
  4952. 'description' => t('TODO: please describe this field!'),
  4953. 'type' => 'int',
  4954. 'not null' => FALSE,
  4955. ),
  4956. 'num_grid_rows' => array(
  4957. 'description' => t('TODO: please describe this field!'),
  4958. 'type' => 'int',
  4959. 'not null' => FALSE,
  4960. ),
  4961. 'num_sub_columns' => array(
  4962. 'description' => t('TODO: please describe this field!'),
  4963. 'type' => 'int',
  4964. 'not null' => FALSE,
  4965. ),
  4966. 'num_sub_rows' => array(
  4967. 'description' => t('TODO: please describe this field!'),
  4968. 'type' => 'int',
  4969. 'not null' => FALSE,
  4970. ),
  4971. ),
  4972. 'primary key' => array('arraydesign_id'),
  4973. 'unique keys' => array(
  4974. 'arraydesign_c1' => array('name')
  4975. ),
  4976. 'indexes' => array(
  4977. 'arraydesign_idx1' => array('manufacturer_id'),
  4978. 'arraydesign_idx2' => array('platformtype_id'),
  4979. 'arraydesign_idx3' => array('substratetype_id'),
  4980. 'arraydesign_idx4' => array('protocol_id'),
  4981. 'arraydesign_idx5' => array('dbxref_id'),
  4982. ),
  4983. );
  4984. $schema['arraydesignprop'] = array(
  4985. 'description' => t('TODO: please describe this table!'),
  4986. 'fields' => array(
  4987. 'arraydesignprop_id' => array(
  4988. 'description' => t('TODO: please describe this field!'),
  4989. 'type' => 'serial',
  4990. 'not null' => TRUE,
  4991. ),
  4992. 'arraydesign_id' => array(
  4993. 'description' => t('TODO: please describe this field!'),
  4994. 'type' => 'int',
  4995. 'not null' => TRUE,
  4996. ),
  4997. 'type_id' => array(
  4998. 'description' => t('TODO: please describe this field!'),
  4999. 'type' => 'int',
  5000. 'not null' => TRUE,
  5001. ),
  5002. 'value' => array(
  5003. 'description' => t('TODO: please describe this field!'),
  5004. 'type' => 'text',
  5005. 'not null' => FALSE,
  5006. ),
  5007. 'rank' => array(
  5008. 'description' => t('TODO: please describe this field!'),
  5009. 'type' => 'int',
  5010. 'not null' => TRUE,
  5011. 'default' => 0,
  5012. ),
  5013. ),
  5014. 'primary key' => array('arraydesignprop_id'),
  5015. 'unique keys' => array(
  5016. 'arraydesignprop_c1' => array('arraydesign_id', 'type_id', 'rank')
  5017. ),
  5018. 'indexes' => array(
  5019. 'arraydesignprop_idx1' => array('arraydesign_id'),
  5020. 'arraydesignprop_idx2' => array('type_id'),
  5021. ),
  5022. );
  5023. $schema['assay'] = array(
  5024. 'description' => t('TODO: please describe this table!'),
  5025. 'fields' => array(
  5026. 'assay_id' => array(
  5027. 'description' => t('TODO: please describe this field!'),
  5028. 'type' => 'serial',
  5029. 'not null' => TRUE,
  5030. ),
  5031. 'arraydesign_id' => array(
  5032. 'description' => t('TODO: please describe this field!'),
  5033. 'type' => 'int',
  5034. 'not null' => TRUE,
  5035. ),
  5036. 'protocol_id' => array(
  5037. 'description' => t('TODO: please describe this field!'),
  5038. 'type' => 'int',
  5039. 'not null' => FALSE,
  5040. ),
  5041. 'assaydate' => array(
  5042. 'description' => t('TODO: please describe this field!'),
  5043. 'type' => 'datetime',
  5044. 'not null' => FALSE,
  5045. 'default' => 'ow(',
  5046. ),
  5047. 'arrayidentifier' => array(
  5048. 'description' => t('TODO: please describe this field!'),
  5049. 'type' => 'text',
  5050. 'not null' => FALSE,
  5051. ),
  5052. 'arraybatchidentifier' => array(
  5053. 'description' => t('TODO: please describe this field!'),
  5054. 'type' => 'text',
  5055. 'not null' => FALSE,
  5056. ),
  5057. 'operator_id' => array(
  5058. 'description' => t('TODO: please describe this field!'),
  5059. 'type' => 'int',
  5060. 'not null' => TRUE,
  5061. ),
  5062. 'dbxref_id' => array(
  5063. 'description' => t('TODO: please describe this field!'),
  5064. 'type' => 'int',
  5065. 'not null' => FALSE,
  5066. ),
  5067. 'name' => array(
  5068. 'description' => t('TODO: please describe this field!'),
  5069. 'type' => 'text',
  5070. 'not null' => FALSE,
  5071. ),
  5072. 'description' => array(
  5073. 'description' => t('TODO: please describe this field!'),
  5074. 'type' => 'text',
  5075. 'not null' => FALSE,
  5076. ),
  5077. ),
  5078. 'primary key' => array('assay_id'),
  5079. 'unique keys' => array(
  5080. 'assay_c1' => array('name')
  5081. ),
  5082. 'indexes' => array(
  5083. 'assay_idx1' => array('arraydesign_id'),
  5084. 'assay_idx2' => array('protocol_id'),
  5085. 'assay_idx3' => array('operator_id'),
  5086. 'assay_idx4' => array('dbxref_id'),
  5087. ),
  5088. );
  5089. $schema['cv_root'] = array(
  5090. 'description' => t('TODO: please describe this table!'),
  5091. 'fields' => array(
  5092. 'cv_id' => array(
  5093. 'description' => t('TODO: please describe this field!'),
  5094. 'type' => 'int',
  5095. 'not null' => FALSE,
  5096. ),
  5097. 'root_cvterm_id' => array(
  5098. 'description' => t('TODO: please describe this field!'),
  5099. 'type' => 'int',
  5100. 'not null' => FALSE,
  5101. ),
  5102. ),
  5103. );
  5104. $schema['cvterm'] = array(
  5105. 'description' => t('TODO: please describe this table!'),
  5106. 'fields' => array(
  5107. 'cvterm_id' => array(
  5108. 'description' => t('TODO: please describe this field!'),
  5109. 'type' => 'serial',
  5110. 'not null' => TRUE,
  5111. ),
  5112. 'cv_id' => array(
  5113. 'description' => t('TODO: please describe this field!'),
  5114. 'type' => 'int',
  5115. 'not null' => TRUE,
  5116. ),
  5117. 'name' => array(
  5118. 'description' => t('TODO: please describe this field!'),
  5119. 'type' => 'varchar',
  5120. 'length' => '1024',
  5121. 'not null' => TRUE,
  5122. ),
  5123. 'definition' => array(
  5124. 'description' => t('TODO: please describe this field!'),
  5125. 'type' => 'text',
  5126. 'not null' => FALSE,
  5127. ),
  5128. 'dbxref_id' => array(
  5129. 'description' => t('TODO: please describe this field!'),
  5130. 'type' => 'int',
  5131. 'not null' => TRUE,
  5132. ),
  5133. 'is_obsolete' => array(
  5134. 'description' => t('TODO: please describe this field!'),
  5135. 'type' => 'int',
  5136. 'not null' => TRUE,
  5137. 'default' => 0,
  5138. ),
  5139. 'is_relationshiptype' => array(
  5140. 'description' => t('TODO: please describe this field!'),
  5141. 'type' => 'int',
  5142. 'not null' => TRUE,
  5143. 'default' => 0,
  5144. ),
  5145. ),
  5146. 'primary key' => array('cvterm_id'),
  5147. 'unique keys' => array(
  5148. 'cvterm_c1' => array('name', 'cv_id', 'is_obsolete'),
  5149. 'cvterm_c2' => array('dbxref_id')
  5150. ),
  5151. 'indexes' => array(
  5152. 'cvterm_idx1' => array('cv_id'),
  5153. 'cvterm_idx2' => array('name'),
  5154. 'cvterm_idx3' => array('dbxref_id'),
  5155. ),
  5156. 'foreign keys' => array(
  5157. 'cv' => array(
  5158. 'table' => 'cv',
  5159. 'columns' => array('cv_id' => 'cv_id'),
  5160. ),
  5161. 'dbxref' => array(
  5162. 'table' => 'dbxref',
  5163. 'columns' => array('dbxref_id' => 'dbxref_id'),
  5164. ),
  5165. ),
  5166. );
  5167. $schema['feature_dbxref'] = array(
  5168. 'description' => t('TODO: please describe this table!'),
  5169. 'fields' => array(
  5170. 'feature_dbxref_id' => array(
  5171. 'description' => t('TODO: please describe this field!'),
  5172. 'type' => 'serial',
  5173. 'not null' => TRUE,
  5174. ),
  5175. 'feature_id' => array(
  5176. 'description' => t('TODO: please describe this field!'),
  5177. 'type' => 'int',
  5178. 'not null' => TRUE,
  5179. ),
  5180. 'dbxref_id' => array(
  5181. 'description' => t('TODO: please describe this field!'),
  5182. 'type' => 'int',
  5183. 'not null' => TRUE,
  5184. ),
  5185. 'is_current' => array(
  5186. 'description' => t('TODO: please describe this field!'),
  5187. 'type' => 'boolean',
  5188. 'not null' => TRUE,
  5189. 'default' => 'ru',
  5190. ),
  5191. ),
  5192. 'primary key' => array('feature_dbxref_id'),
  5193. 'unique keys' => array(
  5194. 'feature_dbxref_c1' => array('feature_id', 'dbxref_id')
  5195. ),
  5196. 'indexes' => array(
  5197. 'feature_dbxref_idx1' => array('feature_id'),
  5198. 'feature_dbxref_idx2' => array('dbxref_id'),
  5199. ),
  5200. );
  5201. $schema['feature_cvtermprop'] = array(
  5202. 'description' => t('TODO: please describe this table!'),
  5203. 'fields' => array(
  5204. 'feature_cvtermprop_id' => array(
  5205. 'description' => t('TODO: please describe this field!'),
  5206. 'type' => 'serial',
  5207. 'not null' => TRUE,
  5208. ),
  5209. 'feature_cvterm_id' => array(
  5210. 'description' => t('TODO: please describe this field!'),
  5211. 'type' => 'int',
  5212. 'not null' => TRUE,
  5213. ),
  5214. 'type_id' => array(
  5215. 'description' => t('TODO: please describe this field!'),
  5216. 'type' => 'int',
  5217. 'not null' => TRUE,
  5218. ),
  5219. 'value' => array(
  5220. 'description' => t('TODO: please describe this field!'),
  5221. 'type' => 'text',
  5222. 'not null' => FALSE,
  5223. ),
  5224. 'rank' => array(
  5225. 'description' => t('TODO: please describe this field!'),
  5226. 'type' => 'int',
  5227. 'not null' => TRUE,
  5228. 'default' => 0,
  5229. ),
  5230. ),
  5231. 'primary key' => array('feature_cvtermprop_id'),
  5232. 'unique keys' => array(
  5233. 'feature_cvtermprop_c1' => array('feature_cvterm_id', 'type_id', 'rank')
  5234. ),
  5235. 'indexes' => array(
  5236. 'feature_cvtermprop_idx1' => array('feature_cvterm_id'),
  5237. 'feature_cvtermprop_idx2' => array('type_id'),
  5238. ),
  5239. );
  5240. $schema['feature_difference'] = array(
  5241. 'description' => t('TODO: please describe this table!'),
  5242. 'fields' => array(
  5243. 'subject_id' => array(
  5244. 'description' => t('TODO: please describe this field!'),
  5245. 'type' => 'int',
  5246. 'not null' => FALSE,
  5247. ),
  5248. 'object_id' => array(
  5249. 'description' => t('TODO: please describe this field!'),
  5250. 'type' => 'int',
  5251. 'not null' => FALSE,
  5252. ),
  5253. 'srcfeature_id' => array(
  5254. 'description' => t('TODO: please describe this field!'),
  5255. 'type' => 'int',
  5256. 'size' => 'small',
  5257. 'not null' => FALSE,
  5258. ),
  5259. 'fmin' => array(
  5260. 'description' => t('TODO: please describe this field!'),
  5261. 'type' => 'int',
  5262. 'not null' => FALSE,
  5263. ),
  5264. 'fmax' => array(
  5265. 'description' => t('TODO: please describe this field!'),
  5266. 'type' => 'int',
  5267. 'not null' => FALSE,
  5268. ),
  5269. 'strand' => array(
  5270. 'description' => t('TODO: please describe this field!'),
  5271. 'type' => 'int',
  5272. 'not null' => FALSE,
  5273. ),
  5274. ),
  5275. );
  5276. $schema['feature_disjoint'] = array(
  5277. 'description' => t('TODO: please describe this table!'),
  5278. 'fields' => array(
  5279. 'subject_id' => array(
  5280. 'description' => t('TODO: please describe this field!'),
  5281. 'type' => 'int',
  5282. 'not null' => FALSE,
  5283. ),
  5284. 'object_id' => array(
  5285. 'description' => t('TODO: please describe this field!'),
  5286. 'type' => 'int',
  5287. 'not null' => FALSE,
  5288. ),
  5289. ),
  5290. );
  5291. $schema['feature_distance'] = array(
  5292. 'description' => t('TODO: please describe this table!'),
  5293. 'fields' => array(
  5294. 'subject_id' => array(
  5295. 'description' => t('TODO: please describe this field!'),
  5296. 'type' => 'int',
  5297. 'not null' => FALSE,
  5298. ),
  5299. 'object_id' => array(
  5300. 'description' => t('TODO: please describe this field!'),
  5301. 'type' => 'int',
  5302. 'not null' => FALSE,
  5303. ),
  5304. 'srcfeature_id' => array(
  5305. 'description' => t('TODO: please describe this field!'),
  5306. 'type' => 'int',
  5307. 'not null' => FALSE,
  5308. ),
  5309. 'subject_strand' => array(
  5310. 'description' => t('TODO: please describe this field!'),
  5311. 'type' => 'int',
  5312. 'size' => 'small',
  5313. 'not null' => FALSE,
  5314. ),
  5315. 'object_strand' => array(
  5316. 'description' => t('TODO: please describe this field!'),
  5317. 'type' => 'int',
  5318. 'size' => 'small',
  5319. 'not null' => FALSE,
  5320. ),
  5321. 'distance' => array(
  5322. 'description' => t('TODO: please describe this field!'),
  5323. 'type' => 'int',
  5324. 'not null' => FALSE,
  5325. ),
  5326. ),
  5327. );
  5328. $schema['feature_cvterm_pub'] = array(
  5329. 'description' => t('TODO: please describe this table!'),
  5330. 'fields' => array(
  5331. 'feature_cvterm_pub_id' => array(
  5332. 'description' => t('TODO: please describe this field!'),
  5333. 'type' => 'serial',
  5334. 'not null' => TRUE,
  5335. ),
  5336. 'feature_cvterm_id' => array(
  5337. 'description' => t('TODO: please describe this field!'),
  5338. 'type' => 'int',
  5339. 'not null' => TRUE,
  5340. ),
  5341. 'pub_id' => array(
  5342. 'description' => t('TODO: please describe this field!'),
  5343. 'type' => 'int',
  5344. 'not null' => TRUE,
  5345. ),
  5346. ),
  5347. 'primary key' => array('feature_cvterm_pub_id'),
  5348. 'unique keys' => array(
  5349. 'feature_cvterm_pub_c1' => array('feature_cvterm_id', 'pub_id')
  5350. ),
  5351. 'indexes' => array(
  5352. 'feature_cvterm_pub_idx1' => array('feature_cvterm_id'),
  5353. 'feature_cvterm_pub_idx2' => array('pub_id'),
  5354. ),
  5355. );
  5356. $schema['feature_cvterm_dbxref'] = array(
  5357. 'description' => t('TODO: please describe this table!'),
  5358. 'fields' => array(
  5359. 'feature_cvterm_dbxref_id' => array(
  5360. 'description' => t('TODO: please describe this field!'),
  5361. 'type' => 'serial',
  5362. 'not null' => TRUE,
  5363. ),
  5364. 'feature_cvterm_id' => array(
  5365. 'description' => t('TODO: please describe this field!'),
  5366. 'type' => 'int',
  5367. 'not null' => TRUE,
  5368. ),
  5369. 'dbxref_id' => array(
  5370. 'description' => t('TODO: please describe this field!'),
  5371. 'type' => 'int',
  5372. 'not null' => TRUE,
  5373. ),
  5374. ),
  5375. 'primary key' => array('feature_cvterm_dbxref_id'),
  5376. 'unique keys' => array(
  5377. 'feature_cvterm_dbxref_c1' => array('feature_cvterm_id', 'dbxref_id')
  5378. ),
  5379. 'indexes' => array(
  5380. 'feature_cvterm_dbxref_idx1' => array('feature_cvterm_id'),
  5381. 'feature_cvterm_dbxref_idx2' => array('dbxref_id'),
  5382. ),
  5383. );
  5384. $schema['f_type'] = array(
  5385. 'description' => t('TODO: please describe this table!'),
  5386. 'fields' => array(
  5387. 'feature_id' => array(
  5388. 'description' => t('TODO: please describe this field!'),
  5389. 'type' => 'int',
  5390. 'not null' => FALSE,
  5391. ),
  5392. 'name' => array(
  5393. 'description' => t('TODO: please describe this field!'),
  5394. 'type' => 'varchar',
  5395. 'length' => '255',
  5396. 'not null' => FALSE,
  5397. ),
  5398. 'dbxref_id' => array(
  5399. 'description' => t('TODO: please describe this field!'),
  5400. 'type' => 'int',
  5401. 'not null' => FALSE,
  5402. ),
  5403. 'type' => array(
  5404. 'description' => t('TODO: please describe this field!'),
  5405. 'type' => 'varchar',
  5406. 'length' => '1024',
  5407. 'not null' => FALSE,
  5408. ),
  5409. 'residues' => array(
  5410. 'description' => t('TODO: please describe this field!'),
  5411. 'type' => 'text',
  5412. 'not null' => FALSE,
  5413. ),
  5414. 'seqlen' => array(
  5415. 'description' => t('TODO: please describe this field!'),
  5416. 'type' => 'int',
  5417. 'not null' => FALSE,
  5418. ),
  5419. 'md5checksum' => array(
  5420. 'description' => t('TODO: please describe this field!'),
  5421. 'type' => 'char',
  5422. 'length' => '32',
  5423. 'not null' => FALSE,
  5424. ),
  5425. 'type_id' => array(
  5426. 'description' => t('TODO: please describe this field!'),
  5427. 'type' => 'int',
  5428. 'not null' => FALSE,
  5429. ),
  5430. 'timeaccessioned' => array(
  5431. 'description' => t('TODO: please describe this field!'),
  5432. 'type' => 'datetime',
  5433. 'not null' => FALSE,
  5434. ),
  5435. 'timelastmodified' => array(
  5436. 'description' => t('TODO: please describe this field!'),
  5437. 'type' => 'datetime',
  5438. 'not null' => FALSE,
  5439. ),
  5440. ),
  5441. );
  5442. $schema['feature'] = array(
  5443. 'description' => t('TODO: please describe this table!'),
  5444. 'fields' => array(
  5445. 'feature_id' => array(
  5446. 'description' => t('TODO: please describe this field!'),
  5447. 'type' => 'serial',
  5448. 'not null' => TRUE,
  5449. ),
  5450. 'dbxref_id' => array(
  5451. 'description' => t('TODO: please describe this field!'),
  5452. 'type' => 'int',
  5453. 'not null' => FALSE,
  5454. ),
  5455. 'organism_id' => array(
  5456. 'description' => t('TODO: please describe this field!'),
  5457. 'type' => 'int',
  5458. 'not null' => TRUE,
  5459. ),
  5460. 'name' => array(
  5461. 'description' => t('TODO: please describe this field!'),
  5462. 'type' => 'varchar',
  5463. 'length' => '255',
  5464. 'not null' => FALSE,
  5465. ),
  5466. 'uniquename' => array(
  5467. 'description' => t('TODO: please describe this field!'),
  5468. 'type' => 'text',
  5469. 'not null' => TRUE,
  5470. ),
  5471. 'residues' => array(
  5472. 'description' => t('TODO: please describe this field!'),
  5473. 'type' => 'text',
  5474. 'not null' => FALSE,
  5475. ),
  5476. 'seqlen' => array(
  5477. 'description' => t('TODO: please describe this field!'),
  5478. 'type' => 'int',
  5479. 'not null' => FALSE,
  5480. ),
  5481. 'md5checksum' => array(
  5482. 'description' => t('TODO: please describe this field!'),
  5483. 'type' => 'char',
  5484. 'length' => '32',
  5485. 'not null' => FALSE,
  5486. ),
  5487. 'type_id' => array(
  5488. 'description' => t('TODO: please describe this field!'),
  5489. 'type' => 'int',
  5490. 'not null' => TRUE,
  5491. ),
  5492. 'is_analysis' => array(
  5493. 'description' => t('TODO: please describe this field!'),
  5494. 'type' => 'boolean',
  5495. 'not null' => TRUE,
  5496. 'default' => 'als',
  5497. ),
  5498. 'is_obsolete' => array(
  5499. 'description' => t('TODO: please describe this field!'),
  5500. 'type' => 'boolean',
  5501. 'not null' => TRUE,
  5502. 'default' => 'als',
  5503. ),
  5504. 'timeaccessioned' => array(
  5505. 'description' => t('TODO: please describe this field!'),
  5506. 'type' => 'datetime',
  5507. 'not null' => TRUE,
  5508. 'default' => 'ow(',
  5509. ),
  5510. 'timelastmodified' => array(
  5511. 'description' => t('TODO: please describe this field!'),
  5512. 'type' => 'datetime',
  5513. 'not null' => TRUE,
  5514. 'default' => 'ow(',
  5515. ),
  5516. ),
  5517. 'primary key' => array('feature_id'),
  5518. 'unique keys' => array(
  5519. 'feature_c1' => array('organism_id', 'uniquename', 'type_id')
  5520. ),
  5521. 'indexes' => array(
  5522. 'feature_idx1' => array('dbxref_id'),
  5523. 'feature_idx2' => array('organism_id'),
  5524. 'feature_idx3' => array('type_id'),
  5525. 'feature_idx4' => array('uniquename'),
  5526. 'feature_name_ind1' => array('name'),
  5527. ),
  5528. 'foreign keys' => array(
  5529. 'organism' => array(
  5530. 'table' => 'organism',
  5531. 'columns' => array('organism_id' => 'organism_id'),
  5532. ),
  5533. 'dbxref' => array(
  5534. 'table' => 'dbxref',
  5535. 'columns' => array('dbxref_id' => 'dbxref_id'),
  5536. ),
  5537. 'cvterm' => array(
  5538. 'table' => 'cvterm',
  5539. 'columns' => array('type_id' => 'cvterm_id'),
  5540. ),
  5541. ),
  5542. );
  5543. $schema['feature_contains'] = array(
  5544. 'description' => t('TODO: please describe this table!'),
  5545. 'fields' => array(
  5546. 'subject_id' => array(
  5547. 'description' => t('TODO: please describe this field!'),
  5548. 'type' => 'int',
  5549. 'not null' => FALSE,
  5550. ),
  5551. 'object_id' => array(
  5552. 'description' => t('TODO: please describe this field!'),
  5553. 'type' => 'int',
  5554. 'not null' => FALSE,
  5555. ),
  5556. ),
  5557. );
  5558. $schema['feature_cvterm'] = array(
  5559. 'description' => t('TODO: please describe this table!'),
  5560. 'fields' => array(
  5561. 'feature_cvterm_id' => array(
  5562. 'description' => t('TODO: please describe this field!'),
  5563. 'type' => 'serial',
  5564. 'not null' => TRUE,
  5565. ),
  5566. 'feature_id' => array(
  5567. 'description' => t('TODO: please describe this field!'),
  5568. 'type' => 'int',
  5569. 'not null' => TRUE,
  5570. ),
  5571. 'cvterm_id' => array(
  5572. 'description' => t('TODO: please describe this field!'),
  5573. 'type' => 'int',
  5574. 'not null' => TRUE,
  5575. ),
  5576. 'pub_id' => array(
  5577. 'description' => t('TODO: please describe this field!'),
  5578. 'type' => 'int',
  5579. 'not null' => TRUE,
  5580. ),
  5581. 'is_not' => array(
  5582. 'description' => t('TODO: please describe this field!'),
  5583. 'type' => 'boolean',
  5584. 'not null' => TRUE,
  5585. 'default' => 'als',
  5586. ),
  5587. 'rank' => array(
  5588. 'description' => t('TODO: please describe this field!'),
  5589. 'type' => 'int',
  5590. 'not null' => TRUE,
  5591. 'default' => 0,
  5592. ),
  5593. ),
  5594. 'primary key' => array('feature_cvterm_id'),
  5595. 'unique keys' => array(
  5596. 'feature_cvterm_c1' => array('feature_id', 'cvterm_id', 'pub_id', 'rank')
  5597. ),
  5598. 'indexes' => array(
  5599. 'feature_cvterm_idx1' => array('feature_id'),
  5600. 'feature_cvterm_idx2' => array('cvterm_id'),
  5601. 'feature_cvterm_idx3' => array('pub_id'),
  5602. ),
  5603. );
  5604. $schema['feature_expression'] = array(
  5605. 'description' => t('TODO: please describe this table!'),
  5606. 'fields' => array(
  5607. 'feature_expression_id' => array(
  5608. 'description' => t('TODO: please describe this field!'),
  5609. 'type' => 'serial',
  5610. 'not null' => TRUE,
  5611. ),
  5612. 'expression_id' => array(
  5613. 'description' => t('TODO: please describe this field!'),
  5614. 'type' => 'int',
  5615. 'not null' => TRUE,
  5616. ),
  5617. 'feature_id' => array(
  5618. 'description' => t('TODO: please describe this field!'),
  5619. 'type' => 'int',
  5620. 'not null' => TRUE,
  5621. ),
  5622. 'pub_id' => array(
  5623. 'description' => t('TODO: please describe this field!'),
  5624. 'type' => 'int',
  5625. 'not null' => TRUE,
  5626. ),
  5627. ),
  5628. 'primary key' => array('feature_expression_id'),
  5629. 'unique keys' => array(
  5630. 'feature_expression_c1' => array('expression_id', 'feature_id', 'pub_id')
  5631. ),
  5632. 'indexes' => array(
  5633. 'feature_expression_idx1' => array('expression_id'),
  5634. 'feature_expression_idx2' => array('feature_id'),
  5635. 'feature_expression_idx3' => array('pub_id'),
  5636. ),
  5637. );
  5638. $schema['feature_expressionprop'] = array(
  5639. 'description' => t('TODO: please describe this table!'),
  5640. 'fields' => array(
  5641. 'feature_expressionprop_id' => array(
  5642. 'description' => t('TODO: please describe this field!'),
  5643. 'type' => 'serial',
  5644. 'not null' => TRUE,
  5645. ),
  5646. 'feature_expression_id' => array(
  5647. 'description' => t('TODO: please describe this field!'),
  5648. 'type' => 'int',
  5649. 'not null' => TRUE,
  5650. ),
  5651. 'type_id' => array(
  5652. 'description' => t('TODO: please describe this field!'),
  5653. 'type' => 'int',
  5654. 'not null' => TRUE,
  5655. ),
  5656. 'value' => array(
  5657. 'description' => t('TODO: please describe this field!'),
  5658. 'type' => 'text',
  5659. 'not null' => FALSE,
  5660. ),
  5661. 'rank' => array(
  5662. 'description' => t('TODO: please describe this field!'),
  5663. 'type' => 'int',
  5664. 'not null' => TRUE,
  5665. 'default' => 0,
  5666. ),
  5667. ),
  5668. 'primary key' => array('feature_expressionprop_id'),
  5669. 'unique keys' => array(
  5670. 'feature_expressionprop_c1' => array('feature_expression_id', 'type_id', 'rank')
  5671. ),
  5672. 'indexes' => array(
  5673. 'feature_expressionprop_idx1' => array('feature_expression_id'),
  5674. 'feature_expressionprop_idx2' => array('type_id'),
  5675. ),
  5676. );
  5677. $schema['feature_pubprop'] = array(
  5678. 'description' => t('TODO: please describe this table!'),
  5679. 'fields' => array(
  5680. 'feature_pubprop_id' => array(
  5681. 'description' => t('TODO: please describe this field!'),
  5682. 'type' => 'serial',
  5683. 'not null' => TRUE,
  5684. ),
  5685. 'feature_pub_id' => array(
  5686. 'description' => t('TODO: please describe this field!'),
  5687. 'type' => 'int',
  5688. 'not null' => TRUE,
  5689. ),
  5690. 'type_id' => array(
  5691. 'description' => t('TODO: please describe this field!'),
  5692. 'type' => 'int',
  5693. 'not null' => TRUE,
  5694. ),
  5695. 'value' => array(
  5696. 'description' => t('TODO: please describe this field!'),
  5697. 'type' => 'text',
  5698. 'not null' => FALSE,
  5699. ),
  5700. 'rank' => array(
  5701. 'description' => t('TODO: please describe this field!'),
  5702. 'type' => 'int',
  5703. 'not null' => TRUE,
  5704. 'default' => 0,
  5705. ),
  5706. ),
  5707. 'primary key' => array('feature_pubprop_id'),
  5708. 'unique keys' => array(
  5709. 'feature_pubprop_c1' => array('feature_pub_id', 'type_id', 'rank')
  5710. ),
  5711. 'indexes' => array(
  5712. 'feature_pubprop_idx1' => array('feature_pub_id'),
  5713. ),
  5714. );
  5715. $schema['feature_relationship'] = array(
  5716. 'description' => t('TODO: please describe this table!'),
  5717. 'fields' => array(
  5718. 'feature_relationship_id' => array(
  5719. 'description' => t('TODO: please describe this field!'),
  5720. 'type' => 'serial',
  5721. 'not null' => TRUE,
  5722. ),
  5723. 'subject_id' => array(
  5724. 'description' => t('TODO: please describe this field!'),
  5725. 'type' => 'int',
  5726. 'not null' => TRUE,
  5727. ),
  5728. 'object_id' => array(
  5729. 'description' => t('TODO: please describe this field!'),
  5730. 'type' => 'int',
  5731. 'not null' => TRUE,
  5732. ),
  5733. 'type_id' => array(
  5734. 'description' => t('TODO: please describe this field!'),
  5735. 'type' => 'int',
  5736. 'not null' => TRUE,
  5737. ),
  5738. 'value' => array(
  5739. 'description' => t('TODO: please describe this field!'),
  5740. 'type' => 'text',
  5741. 'not null' => FALSE,
  5742. ),
  5743. 'rank' => array(
  5744. 'description' => t('TODO: please describe this field!'),
  5745. 'type' => 'int',
  5746. 'not null' => TRUE,
  5747. 'default' => 0,
  5748. ),
  5749. ),
  5750. 'primary key' => array('feature_relationship_id'),
  5751. 'unique keys' => array(
  5752. 'feature_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  5753. ),
  5754. 'indexes' => array(
  5755. 'feature_relationship_idx1' => array('subject_id'),
  5756. 'feature_relationship_idx2' => array('object_id'),
  5757. 'feature_relationship_idx3' => array('type_id'),
  5758. ),
  5759. );
  5760. $schema['feature_relationship_pub'] = array(
  5761. 'description' => t('TODO: please describe this table!'),
  5762. 'fields' => array(
  5763. 'feature_relationship_pub_id' => array(
  5764. 'description' => t('TODO: please describe this field!'),
  5765. 'type' => 'serial',
  5766. 'not null' => TRUE,
  5767. ),
  5768. 'feature_relationship_id' => array(
  5769. 'description' => t('TODO: please describe this field!'),
  5770. 'type' => 'int',
  5771. 'not null' => TRUE,
  5772. ),
  5773. 'pub_id' => array(
  5774. 'description' => t('TODO: please describe this field!'),
  5775. 'type' => 'int',
  5776. 'not null' => TRUE,
  5777. ),
  5778. ),
  5779. 'primary key' => array('feature_relationship_pub_id'),
  5780. 'unique keys' => array(
  5781. 'feature_relationship_pub_c1' => array('feature_relationship_id', 'pub_id')
  5782. ),
  5783. 'indexes' => array(
  5784. 'feature_relationship_pub_idx1' => array('feature_relationship_id'),
  5785. 'feature_relationship_pub_idx2' => array('pub_id'),
  5786. ),
  5787. );
  5788. $schema['feature_relationshipprop'] = array(
  5789. 'description' => t('TODO: please describe this table!'),
  5790. 'fields' => array(
  5791. 'feature_relationshipprop_id' => array(
  5792. 'description' => t('TODO: please describe this field!'),
  5793. 'type' => 'serial',
  5794. 'not null' => TRUE,
  5795. ),
  5796. 'feature_relationship_id' => array(
  5797. 'description' => t('TODO: please describe this field!'),
  5798. 'type' => 'int',
  5799. 'not null' => TRUE,
  5800. ),
  5801. 'type_id' => array(
  5802. 'description' => t('TODO: please describe this field!'),
  5803. 'type' => 'int',
  5804. 'not null' => TRUE,
  5805. ),
  5806. 'value' => array(
  5807. 'description' => t('TODO: please describe this field!'),
  5808. 'type' => 'text',
  5809. 'not null' => FALSE,
  5810. ),
  5811. 'rank' => array(
  5812. 'description' => t('TODO: please describe this field!'),
  5813. 'type' => 'int',
  5814. 'not null' => TRUE,
  5815. 'default' => 0,
  5816. ),
  5817. ),
  5818. 'primary key' => array('feature_relationshipprop_id'),
  5819. 'unique keys' => array(
  5820. 'feature_relationshipprop_c1' => array('feature_relationship_id', 'type_id', 'rank')
  5821. ),
  5822. 'indexes' => array(
  5823. 'feature_relationshipprop_idx1' => array('feature_relationship_id'),
  5824. 'feature_relationshipprop_idx2' => array('type_id'),
  5825. ),
  5826. );
  5827. $schema['feature_pub'] = array(
  5828. 'description' => t('TODO: please describe this table!'),
  5829. 'fields' => array(
  5830. 'feature_pub_id' => array(
  5831. 'description' => t('TODO: please describe this field!'),
  5832. 'type' => 'serial',
  5833. 'not null' => TRUE,
  5834. ),
  5835. 'feature_id' => array(
  5836. 'description' => t('TODO: please describe this field!'),
  5837. 'type' => 'int',
  5838. 'not null' => TRUE,
  5839. ),
  5840. 'pub_id' => array(
  5841. 'description' => t('TODO: please describe this field!'),
  5842. 'type' => 'int',
  5843. 'not null' => TRUE,
  5844. ),
  5845. ),
  5846. 'primary key' => array('feature_pub_id'),
  5847. 'unique keys' => array(
  5848. 'feature_pub_c1' => array('feature_id', 'pub_id')
  5849. ),
  5850. 'indexes' => array(
  5851. 'feature_pub_idx1' => array('feature_id'),
  5852. 'feature_pub_idx2' => array('pub_id'),
  5853. ),
  5854. );
  5855. $schema['feature_phenotype'] = array(
  5856. 'description' => t('TODO: please describe this table!'),
  5857. 'fields' => array(
  5858. 'feature_phenotype_id' => array(
  5859. 'description' => t('TODO: please describe this field!'),
  5860. 'type' => 'serial',
  5861. 'not null' => TRUE,
  5862. ),
  5863. 'feature_id' => array(
  5864. 'description' => t('TODO: please describe this field!'),
  5865. 'type' => 'int',
  5866. 'not null' => TRUE,
  5867. ),
  5868. 'phenotype_id' => array(
  5869. 'description' => t('TODO: please describe this field!'),
  5870. 'type' => 'int',
  5871. 'not null' => TRUE,
  5872. ),
  5873. ),
  5874. 'primary key' => array('feature_phenotype_id'),
  5875. 'unique keys' => array(
  5876. 'feature_phenotype_c1' => array('feature_id', 'phenotype_id')
  5877. ),
  5878. 'indexes' => array(
  5879. 'feature_phenotype_idx1' => array('feature_id'),
  5880. 'feature_phenotype_idx2' => array('phenotype_id'),
  5881. ),
  5882. );
  5883. $schema['feature_genotype'] = array(
  5884. 'description' => t('TODO: please describe this table!'),
  5885. 'fields' => array(
  5886. 'feature_genotype_id' => array(
  5887. 'description' => t('TODO: please describe this field!'),
  5888. 'type' => 'serial',
  5889. 'not null' => TRUE,
  5890. ),
  5891. 'feature_id' => array(
  5892. 'description' => t('TODO: please describe this field!'),
  5893. 'type' => 'int',
  5894. 'not null' => TRUE,
  5895. ),
  5896. 'genotype_id' => array(
  5897. 'description' => t('TODO: please describe this field!'),
  5898. 'type' => 'int',
  5899. 'not null' => TRUE,
  5900. ),
  5901. 'chromosome_id' => array(
  5902. 'description' => t('TODO: please describe this field!'),
  5903. 'type' => 'int',
  5904. 'not null' => FALSE,
  5905. ),
  5906. 'rank' => array(
  5907. 'description' => t('TODO: please describe this field!'),
  5908. 'type' => 'int',
  5909. 'not null' => TRUE,
  5910. ),
  5911. 'cgroup' => array(
  5912. 'description' => t('TODO: please describe this field!'),
  5913. 'type' => 'int',
  5914. 'not null' => TRUE,
  5915. ),
  5916. 'cvterm_id' => array(
  5917. 'description' => t('TODO: please describe this field!'),
  5918. 'type' => 'int',
  5919. 'not null' => TRUE,
  5920. ),
  5921. ),
  5922. 'primary key' => array('feature_genotype_id'),
  5923. 'unique keys' => array(
  5924. 'feature_genotype_c1' => array('feature_id', 'genotype_id', 'cvterm_id', 'chromosome_id', 'rank', 'cgroup')
  5925. ),
  5926. 'indexes' => array(
  5927. 'feature_genotype_idx1' => array('feature_id'),
  5928. 'feature_genotype_idx2' => array('genotype_id'),
  5929. ),
  5930. );
  5931. $schema['feature_intersection'] = array(
  5932. 'description' => t('TODO: please describe this table!'),
  5933. 'fields' => array(
  5934. 'subject_id' => array(
  5935. 'description' => t('TODO: please describe this field!'),
  5936. 'type' => 'int',
  5937. 'not null' => FALSE,
  5938. ),
  5939. 'object_id' => array(
  5940. 'description' => t('TODO: please describe this field!'),
  5941. 'type' => 'int',
  5942. 'not null' => FALSE,
  5943. ),
  5944. 'srcfeature_id' => array(
  5945. 'description' => t('TODO: please describe this field!'),
  5946. 'type' => 'int',
  5947. 'not null' => FALSE,
  5948. ),
  5949. 'subject_strand' => array(
  5950. 'description' => t('TODO: please describe this field!'),
  5951. 'type' => 'int',
  5952. 'size' => 'small',
  5953. 'not null' => FALSE,
  5954. ),
  5955. 'object_strand' => array(
  5956. 'description' => t('TODO: please describe this field!'),
  5957. 'type' => 'int',
  5958. 'size' => 'small',
  5959. 'not null' => FALSE,
  5960. ),
  5961. 'fmin' => array(
  5962. 'description' => t('TODO: please describe this field!'),
  5963. 'type' => 'int',
  5964. 'not null' => FALSE,
  5965. ),
  5966. 'fmax' => array(
  5967. 'description' => t('TODO: please describe this field!'),
  5968. 'type' => 'int',
  5969. 'not null' => FALSE,
  5970. ),
  5971. ),
  5972. );
  5973. $schema['feature_meets'] = array(
  5974. 'description' => t('TODO: please describe this table!'),
  5975. 'fields' => array(
  5976. 'subject_id' => array(
  5977. 'description' => t('TODO: please describe this field!'),
  5978. 'type' => 'int',
  5979. 'not null' => FALSE,
  5980. ),
  5981. 'object_id' => array(
  5982. 'description' => t('TODO: please describe this field!'),
  5983. 'type' => 'int',
  5984. 'not null' => FALSE,
  5985. ),
  5986. ),
  5987. );
  5988. $schema['feature_meets_on_same_strand'] = array(
  5989. 'description' => t('TODO: please describe this table!'),
  5990. 'fields' => array(
  5991. 'subject_id' => array(
  5992. 'description' => t('TODO: please describe this field!'),
  5993. 'type' => 'int',
  5994. 'not null' => FALSE,
  5995. ),
  5996. 'object_id' => array(
  5997. 'description' => t('TODO: please describe this field!'),
  5998. 'type' => 'int',
  5999. 'not null' => FALSE,
  6000. ),
  6001. ),
  6002. );
  6003. $schema['f_loc'] = array(
  6004. 'description' => t('TODO: please describe this table!'),
  6005. 'fields' => array(
  6006. 'feature_id' => array(
  6007. 'description' => t('TODO: please describe this field!'),
  6008. 'type' => 'int',
  6009. 'not null' => FALSE,
  6010. ),
  6011. 'name' => array(
  6012. 'description' => t('TODO: please describe this field!'),
  6013. 'type' => 'varchar',
  6014. 'length' => '255',
  6015. 'not null' => FALSE,
  6016. ),
  6017. 'dbxref_id' => array(
  6018. 'description' => t('TODO: please describe this field!'),
  6019. 'type' => 'int',
  6020. 'not null' => FALSE,
  6021. ),
  6022. 'nbeg' => array(
  6023. 'description' => t('TODO: please describe this field!'),
  6024. 'type' => 'int',
  6025. 'not null' => FALSE,
  6026. ),
  6027. 'nend' => array(
  6028. 'description' => t('TODO: please describe this field!'),
  6029. 'type' => 'int',
  6030. 'not null' => FALSE,
  6031. ),
  6032. 'strand' => array(
  6033. 'description' => t('TODO: please describe this field!'),
  6034. 'type' => 'int',
  6035. 'size' => 'small',
  6036. 'not null' => FALSE,
  6037. ),
  6038. ),
  6039. );
  6040. $schema['expressionprop'] = array(
  6041. 'description' => t('TODO: please describe this table!'),
  6042. 'fields' => array(
  6043. 'expressionprop_id' => array(
  6044. 'description' => t('TODO: please describe this field!'),
  6045. 'type' => 'serial',
  6046. 'not null' => TRUE,
  6047. ),
  6048. 'expression_id' => array(
  6049. 'description' => t('TODO: please describe this field!'),
  6050. 'type' => 'int',
  6051. 'not null' => TRUE,
  6052. ),
  6053. 'type_id' => array(
  6054. 'description' => t('TODO: please describe this field!'),
  6055. 'type' => 'int',
  6056. 'not null' => TRUE,
  6057. ),
  6058. 'value' => array(
  6059. 'description' => t('TODO: please describe this field!'),
  6060. 'type' => 'text',
  6061. 'not null' => FALSE,
  6062. ),
  6063. 'rank' => array(
  6064. 'description' => t('TODO: please describe this field!'),
  6065. 'type' => 'int',
  6066. 'not null' => TRUE,
  6067. 'default' => 0,
  6068. ),
  6069. ),
  6070. 'primary key' => array('expressionprop_id'),
  6071. 'unique keys' => array(
  6072. 'expressionprop_c1' => array('expression_id', 'type_id', 'rank')
  6073. ),
  6074. 'indexes' => array(
  6075. 'expressionprop_idx1' => array('expression_id'),
  6076. 'expressionprop_idx2' => array('type_id'),
  6077. ),
  6078. );
  6079. $schema['db_dbxref_count'] = array(
  6080. 'description' => t('TODO: please describe this table!'),
  6081. 'fields' => array(
  6082. 'name' => array(
  6083. 'description' => t('TODO: please describe this field!'),
  6084. 'type' => 'varchar',
  6085. 'length' => '255',
  6086. 'not null' => FALSE,
  6087. ),
  6088. 'num_dbxrefs' => array(
  6089. 'description' => t('TODO: please describe this field!'),
  6090. 'type' => 'int',
  6091. 'size' => 'big',
  6092. 'not null' => FALSE,
  6093. ),
  6094. ),
  6095. );
  6096. $schema['dbxref'] = array(
  6097. 'description' => t('TODO: please describe this table!'),
  6098. 'fields' => array(
  6099. 'dbxref_id' => array(
  6100. 'description' => t('TODO: please describe this field!'),
  6101. 'type' => 'serial',
  6102. 'not null' => TRUE,
  6103. ),
  6104. 'db_id' => array(
  6105. 'description' => t('TODO: please describe this field!'),
  6106. 'type' => 'int',
  6107. 'not null' => TRUE,
  6108. ),
  6109. 'accession' => array(
  6110. 'description' => t('TODO: please describe this field!'),
  6111. 'type' => 'varchar',
  6112. 'length' => '255',
  6113. 'not null' => TRUE,
  6114. ),
  6115. 'version' => array(
  6116. 'description' => t('TODO: please describe this field!'),
  6117. 'type' => 'varchar',
  6118. 'length' => '255',
  6119. 'not null' => TRUE,
  6120. 'default' => '',
  6121. ),
  6122. 'description' => array(
  6123. 'description' => t('TODO: please describe this field!'),
  6124. 'type' => 'text',
  6125. 'not null' => FALSE,
  6126. ),
  6127. ),
  6128. 'primary key' => array('dbxref_id'),
  6129. 'unique keys' => array(
  6130. 'dbxref_c1' => array('db_id', 'accession', 'version')
  6131. ),
  6132. 'indexes' => array(
  6133. 'dbxref_idx1' => array('db_id'),
  6134. 'dbxref_idx2' => array('accession'),
  6135. 'dbxref_idx3' => array('version'),
  6136. ),
  6137. );
  6138. $schema['dbxrefprop'] = array(
  6139. 'description' => t('TODO: please describe this table!'),
  6140. 'fields' => array(
  6141. 'dbxrefprop_id' => array(
  6142. 'description' => t('TODO: please describe this field!'),
  6143. 'type' => 'serial',
  6144. 'not null' => TRUE,
  6145. ),
  6146. 'dbxref_id' => array(
  6147. 'description' => t('TODO: please describe this field!'),
  6148. 'type' => 'int',
  6149. 'not null' => TRUE,
  6150. ),
  6151. 'type_id' => array(
  6152. 'description' => t('TODO: please describe this field!'),
  6153. 'type' => 'int',
  6154. 'not null' => TRUE,
  6155. ),
  6156. 'value' => array(
  6157. 'description' => t('TODO: please describe this field!'),
  6158. 'type' => 'text',
  6159. 'not null' => TRUE,
  6160. 'default' => '',
  6161. ),
  6162. 'rank' => array(
  6163. 'description' => t('TODO: please describe this field!'),
  6164. 'type' => 'int',
  6165. 'not null' => TRUE,
  6166. 'default' => 0,
  6167. ),
  6168. ),
  6169. 'primary key' => array('dbxrefprop_id'),
  6170. 'unique keys' => array(
  6171. 'dbxrefprop_c1' => array('dbxref_id', 'type_id', 'rank')
  6172. ),
  6173. 'indexes' => array(
  6174. 'dbxrefprop_idx1' => array('dbxref_id'),
  6175. 'dbxrefprop_idx2' => array('type_id'),
  6176. ),
  6177. );
  6178. $schema['dfeatureloc'] = array(
  6179. 'description' => t('TODO: please describe this table!'),
  6180. 'fields' => array(
  6181. 'featureloc_id' => array(
  6182. 'description' => t('TODO: please describe this field!'),
  6183. 'type' => 'int',
  6184. 'not null' => FALSE,
  6185. ),
  6186. 'feature_id' => array(
  6187. 'description' => t('TODO: please describe this field!'),
  6188. 'type' => 'int',
  6189. 'not null' => FALSE,
  6190. ),
  6191. 'srcfeature_id' => array(
  6192. 'description' => t('TODO: please describe this field!'),
  6193. 'type' => 'int',
  6194. 'not null' => FALSE,
  6195. ),
  6196. 'nbeg' => array(
  6197. 'description' => t('TODO: please describe this field!'),
  6198. 'type' => 'int',
  6199. 'not null' => FALSE,
  6200. ),
  6201. 'is_nbeg_partial' => array(
  6202. 'description' => t('TODO: please describe this field!'),
  6203. 'type' => 'boolean',
  6204. 'not null' => FALSE,
  6205. ),
  6206. 'nend' => array(
  6207. 'description' => t('TODO: please describe this field!'),
  6208. 'type' => 'int',
  6209. 'not null' => FALSE,
  6210. ),
  6211. 'is_nend_partial' => array(
  6212. 'description' => t('TODO: please describe this field!'),
  6213. 'type' => 'boolean',
  6214. 'not null' => FALSE,
  6215. ),
  6216. 'strand' => array(
  6217. 'description' => t('TODO: please describe this field!'),
  6218. 'type' => 'int',
  6219. 'size' => 'small',
  6220. 'not null' => FALSE,
  6221. ),
  6222. 'phase' => array(
  6223. 'description' => t('TODO: please describe this field!'),
  6224. 'type' => 'int',
  6225. 'not null' => FALSE,
  6226. ),
  6227. 'residue_info' => array(
  6228. 'description' => t('TODO: please describe this field!'),
  6229. 'type' => 'text',
  6230. 'not null' => FALSE,
  6231. ),
  6232. 'locgroup' => array(
  6233. 'description' => t('TODO: please describe this field!'),
  6234. 'type' => 'int',
  6235. 'not null' => FALSE,
  6236. ),
  6237. 'rank' => array(
  6238. 'description' => t('TODO: please describe this field!'),
  6239. 'type' => 'int',
  6240. 'not null' => FALSE,
  6241. ),
  6242. ),
  6243. );
  6244. $schema['db'] = array(
  6245. 'description' => t('TODO: please describe this table!'),
  6246. 'fields' => array(
  6247. 'db_id' => array(
  6248. 'description' => t('TODO: please describe this field!'),
  6249. 'type' => 'serial',
  6250. 'not null' => TRUE,
  6251. ),
  6252. 'name' => array(
  6253. 'description' => t('TODO: please describe this field!'),
  6254. 'type' => 'varchar',
  6255. 'length' => '255',
  6256. 'not null' => TRUE,
  6257. ),
  6258. 'description' => array(
  6259. 'description' => t('TODO: please describe this field!'),
  6260. 'type' => 'varchar',
  6261. 'length' => '255',
  6262. 'not null' => FALSE,
  6263. ),
  6264. 'urlprefix' => array(
  6265. 'description' => t('TODO: please describe this field!'),
  6266. 'type' => 'varchar',
  6267. 'length' => '255',
  6268. 'not null' => FALSE,
  6269. ),
  6270. 'url' => array(
  6271. 'description' => t('TODO: please describe this field!'),
  6272. 'type' => 'varchar',
  6273. 'length' => '255',
  6274. 'not null' => FALSE,
  6275. ),
  6276. ),
  6277. 'primary key' => array('db_id'),
  6278. 'unique keys' => array(
  6279. 'db_c1' => array('name')
  6280. ),
  6281. );
  6282. $schema['cvtermsynonym'] = array(
  6283. 'description' => t('TODO: please describe this table!'),
  6284. 'fields' => array(
  6285. 'cvtermsynonym_id' => array(
  6286. 'description' => t('TODO: please describe this field!'),
  6287. 'type' => 'serial',
  6288. 'not null' => TRUE,
  6289. ),
  6290. 'cvterm_id' => array(
  6291. 'description' => t('TODO: please describe this field!'),
  6292. 'type' => 'int',
  6293. 'not null' => TRUE,
  6294. ),
  6295. 'synonym' => array(
  6296. 'description' => t('TODO: please describe this field!'),
  6297. 'type' => 'varchar',
  6298. 'length' => '1024',
  6299. 'not null' => TRUE,
  6300. ),
  6301. 'type_id' => array(
  6302. 'description' => t('TODO: please describe this field!'),
  6303. 'type' => 'int',
  6304. 'not null' => FALSE,
  6305. ),
  6306. ),
  6307. 'primary key' => array('cvtermsynonym_id'),
  6308. 'unique keys' => array(
  6309. 'cvtermsynonym_c1' => array('cvterm_id', 'synonym')
  6310. ),
  6311. 'indexes' => array(
  6312. 'cvtermsynonym_idx1' => array('cvterm_id'),
  6313. ),
  6314. );
  6315. $schema['cvterm_dbxref'] = array(
  6316. 'description' => t('TODO: please describe this table!'),
  6317. 'fields' => array(
  6318. 'cvterm_dbxref_id' => array(
  6319. 'description' => t('TODO: please describe this field!'),
  6320. 'type' => 'serial',
  6321. 'not null' => TRUE,
  6322. ),
  6323. 'cvterm_id' => array(
  6324. 'description' => t('TODO: please describe this field!'),
  6325. 'type' => 'int',
  6326. 'not null' => TRUE,
  6327. ),
  6328. 'dbxref_id' => array(
  6329. 'description' => t('TODO: please describe this field!'),
  6330. 'type' => 'int',
  6331. 'not null' => TRUE,
  6332. ),
  6333. 'is_for_definition' => array(
  6334. 'description' => t('TODO: please describe this field!'),
  6335. 'type' => 'int',
  6336. 'not null' => TRUE,
  6337. 'default' => 0,
  6338. ),
  6339. ),
  6340. 'primary key' => array('cvterm_dbxref_id'),
  6341. 'unique keys' => array(
  6342. 'cvterm_dbxref_c1' => array('cvterm_id', 'dbxref_id')
  6343. ),
  6344. 'indexes' => array(
  6345. 'cvterm_dbxref_idx1' => array('cvterm_id'),
  6346. 'cvterm_dbxref_idx2' => array('dbxref_id'),
  6347. ),
  6348. );
  6349. $schema['cvterm_relationship'] = array(
  6350. 'description' => t('TODO: please describe this table!'),
  6351. 'fields' => array(
  6352. 'cvterm_relationship_id' => array(
  6353. 'description' => t('TODO: please describe this field!'),
  6354. 'type' => 'serial',
  6355. 'not null' => TRUE,
  6356. ),
  6357. 'type_id' => array(
  6358. 'description' => t('TODO: please describe this field!'),
  6359. 'type' => 'int',
  6360. 'not null' => TRUE,
  6361. ),
  6362. 'subject_id' => array(
  6363. 'description' => t('TODO: please describe this field!'),
  6364. 'type' => 'int',
  6365. 'not null' => TRUE,
  6366. ),
  6367. 'object_id' => array(
  6368. 'description' => t('TODO: please describe this field!'),
  6369. 'type' => 'int',
  6370. 'not null' => TRUE,
  6371. ),
  6372. ),
  6373. 'primary key' => array('cvterm_relationship_id'),
  6374. 'unique keys' => array(
  6375. 'cvterm_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  6376. ),
  6377. 'indexes' => array(
  6378. 'cvterm_relationship_idx1' => array('type_id'),
  6379. 'cvterm_relationship_idx2' => array('subject_id'),
  6380. 'cvterm_relationship_idx3' => array('object_id'),
  6381. ),
  6382. );
  6383. $schema['cvtermpath'] = array(
  6384. 'description' => t('TODO: please describe this table!'),
  6385. 'fields' => array(
  6386. 'cvtermpath_id' => array(
  6387. 'description' => t('TODO: please describe this field!'),
  6388. 'type' => 'serial',
  6389. 'not null' => TRUE,
  6390. ),
  6391. 'type_id' => array(
  6392. 'description' => t('TODO: please describe this field!'),
  6393. 'type' => 'int',
  6394. 'not null' => FALSE,
  6395. ),
  6396. 'subject_id' => array(
  6397. 'description' => t('TODO: please describe this field!'),
  6398. 'type' => 'int',
  6399. 'not null' => TRUE,
  6400. ),
  6401. 'object_id' => array(
  6402. 'description' => t('TODO: please describe this field!'),
  6403. 'type' => 'int',
  6404. 'not null' => TRUE,
  6405. ),
  6406. 'cv_id' => array(
  6407. 'description' => t('TODO: please describe this field!'),
  6408. 'type' => 'int',
  6409. 'not null' => TRUE,
  6410. ),
  6411. 'pathdistance' => array(
  6412. 'description' => t('TODO: please describe this field!'),
  6413. 'type' => 'int',
  6414. 'not null' => FALSE,
  6415. ),
  6416. ),
  6417. 'primary key' => array('cvtermpath_id'),
  6418. 'unique keys' => array(
  6419. 'cvtermpath_c1' => array('subject_id', 'object_id', 'type_id', 'pathdistance')
  6420. ),
  6421. 'indexes' => array(
  6422. 'cvtermpath_idx1' => array('type_id'),
  6423. 'cvtermpath_idx2' => array('subject_id'),
  6424. 'cvtermpath_idx3' => array('object_id'),
  6425. 'cvtermpath_idx4' => array('cv_id'),
  6426. ),
  6427. );
  6428. $schema['cvtermprop'] = array(
  6429. 'description' => t('TODO: please describe this table!'),
  6430. 'fields' => array(
  6431. 'cvtermprop_id' => array(
  6432. 'description' => t('TODO: please describe this field!'),
  6433. 'type' => 'serial',
  6434. 'not null' => TRUE,
  6435. ),
  6436. 'cvterm_id' => array(
  6437. 'description' => t('TODO: please describe this field!'),
  6438. 'type' => 'int',
  6439. 'not null' => TRUE,
  6440. ),
  6441. 'type_id' => array(
  6442. 'description' => t('TODO: please describe this field!'),
  6443. 'type' => 'int',
  6444. 'not null' => TRUE,
  6445. ),
  6446. 'value' => array(
  6447. 'description' => t('TODO: please describe this field!'),
  6448. 'type' => 'text',
  6449. 'not null' => TRUE,
  6450. 'default' => '',
  6451. ),
  6452. 'rank' => array(
  6453. 'description' => t('TODO: please describe this field!'),
  6454. 'type' => 'int',
  6455. 'not null' => TRUE,
  6456. 'default' => 0,
  6457. ),
  6458. ),
  6459. 'primary key' => array('cvtermprop_id'),
  6460. 'unique keys' => array(
  6461. 'cvterm_id' => array('cvterm_id', 'type_id', 'value', 'rank')
  6462. ),
  6463. 'indexes' => array(
  6464. 'cvtermprop_idx1' => array('cvterm_id'),
  6465. 'cvtermprop_idx2' => array('type_id'),
  6466. ),
  6467. );
  6468. $schema['eimage'] = array(
  6469. 'description' => t('TODO: please describe this table!'),
  6470. 'fields' => array(
  6471. 'eimage_id' => array(
  6472. 'description' => t('TODO: please describe this field!'),
  6473. 'type' => 'serial',
  6474. 'not null' => TRUE,
  6475. ),
  6476. 'eimage_data' => array(
  6477. 'description' => t('TODO: please describe this field!'),
  6478. 'type' => 'text',
  6479. 'not null' => FALSE,
  6480. ),
  6481. 'eimage_type' => array(
  6482. 'description' => t('TODO: please describe this field!'),
  6483. 'type' => 'varchar',
  6484. 'length' => '255',
  6485. 'not null' => TRUE,
  6486. ),
  6487. 'image_uri' => array(
  6488. 'description' => t('TODO: please describe this field!'),
  6489. 'type' => 'varchar',
  6490. 'length' => '255',
  6491. 'not null' => FALSE,
  6492. ),
  6493. ),
  6494. 'primary key' => array('eimage_id'),
  6495. );
  6496. $schema['element'] = array(
  6497. 'description' => t('TODO: please describe this table!'),
  6498. 'fields' => array(
  6499. 'element_id' => array(
  6500. 'description' => t('TODO: please describe this field!'),
  6501. 'type' => 'serial',
  6502. 'not null' => TRUE,
  6503. ),
  6504. 'feature_id' => array(
  6505. 'description' => t('TODO: please describe this field!'),
  6506. 'type' => 'int',
  6507. 'not null' => FALSE,
  6508. ),
  6509. 'arraydesign_id' => array(
  6510. 'description' => t('TODO: please describe this field!'),
  6511. 'type' => 'int',
  6512. 'not null' => TRUE,
  6513. ),
  6514. 'type_id' => array(
  6515. 'description' => t('TODO: please describe this field!'),
  6516. 'type' => 'int',
  6517. 'not null' => FALSE,
  6518. ),
  6519. 'dbxref_id' => array(
  6520. 'description' => t('TODO: please describe this field!'),
  6521. 'type' => 'int',
  6522. 'not null' => FALSE,
  6523. ),
  6524. ),
  6525. 'primary key' => array('element_id'),
  6526. 'unique keys' => array(
  6527. 'element_c1' => array('feature_id', 'arraydesign_id')
  6528. ),
  6529. 'indexes' => array(
  6530. 'element_idx1' => array('feature_id'),
  6531. 'element_idx2' => array('arraydesign_id'),
  6532. 'element_idx3' => array('type_id'),
  6533. 'element_idx4' => array('dbxref_id'),
  6534. ),
  6535. );
  6536. $schema['expression_cvterm'] = array(
  6537. 'description' => t('TODO: please describe this table!'),
  6538. 'fields' => array(
  6539. 'expression_cvterm_id' => array(
  6540. 'description' => t('TODO: please describe this field!'),
  6541. 'type' => 'serial',
  6542. 'not null' => TRUE,
  6543. ),
  6544. 'expression_id' => array(
  6545. 'description' => t('TODO: please describe this field!'),
  6546. 'type' => 'int',
  6547. 'not null' => TRUE,
  6548. ),
  6549. 'cvterm_id' => array(
  6550. 'description' => t('TODO: please describe this field!'),
  6551. 'type' => 'int',
  6552. 'not null' => TRUE,
  6553. ),
  6554. 'rank' => array(
  6555. 'description' => t('TODO: please describe this field!'),
  6556. 'type' => 'int',
  6557. 'not null' => TRUE,
  6558. 'default' => 0,
  6559. ),
  6560. 'cvterm_type_id' => array(
  6561. 'description' => t('TODO: please describe this field!'),
  6562. 'type' => 'int',
  6563. 'not null' => TRUE,
  6564. ),
  6565. ),
  6566. 'primary key' => array('expression_cvterm_id'),
  6567. 'unique keys' => array(
  6568. 'expression_cvterm_c1' => array('expression_id', 'cvterm_id', 'cvterm_type_id')
  6569. ),
  6570. 'indexes' => array(
  6571. 'expression_cvterm_idx1' => array('expression_id'),
  6572. 'expression_cvterm_idx2' => array('cvterm_id'),
  6573. 'expression_cvterm_idx3' => array('cvterm_type_id'),
  6574. ),
  6575. );
  6576. $schema['expression_cvtermprop'] = array(
  6577. 'description' => t('TODO: please describe this table!'),
  6578. 'fields' => array(
  6579. 'expression_cvtermprop_id' => array(
  6580. 'description' => t('TODO: please describe this field!'),
  6581. 'type' => 'serial',
  6582. 'not null' => TRUE,
  6583. ),
  6584. 'expression_cvterm_id' => array(
  6585. 'description' => t('TODO: please describe this field!'),
  6586. 'type' => 'int',
  6587. 'not null' => TRUE,
  6588. ),
  6589. 'type_id' => array(
  6590. 'description' => t('TODO: please describe this field!'),
  6591. 'type' => 'int',
  6592. 'not null' => TRUE,
  6593. ),
  6594. 'value' => array(
  6595. 'description' => t('TODO: please describe this field!'),
  6596. 'type' => 'text',
  6597. 'not null' => FALSE,
  6598. ),
  6599. 'rank' => array(
  6600. 'description' => t('TODO: please describe this field!'),
  6601. 'type' => 'int',
  6602. 'not null' => TRUE,
  6603. 'default' => 0,
  6604. ),
  6605. ),
  6606. 'primary key' => array('expression_cvtermprop_id'),
  6607. 'unique keys' => array(
  6608. 'expression_cvtermprop_c1' => array('expression_cvterm_id', 'type_id', 'rank')
  6609. ),
  6610. 'indexes' => array(
  6611. 'expression_cvtermprop_idx1' => array('expression_cvterm_id'),
  6612. 'expression_cvtermprop_idx2' => array('type_id'),
  6613. ),
  6614. );
  6615. $schema['expression_image'] = array(
  6616. 'description' => t('TODO: please describe this table!'),
  6617. 'fields' => array(
  6618. 'expression_image_id' => array(
  6619. 'description' => t('TODO: please describe this field!'),
  6620. 'type' => 'serial',
  6621. 'not null' => TRUE,
  6622. ),
  6623. 'expression_id' => array(
  6624. 'description' => t('TODO: please describe this field!'),
  6625. 'type' => 'int',
  6626. 'not null' => TRUE,
  6627. ),
  6628. 'eimage_id' => array(
  6629. 'description' => t('TODO: please describe this field!'),
  6630. 'type' => 'int',
  6631. 'not null' => TRUE,
  6632. ),
  6633. ),
  6634. 'primary key' => array('expression_image_id'),
  6635. 'unique keys' => array(
  6636. 'expression_image_c1' => array('expression_id', 'eimage_id')
  6637. ),
  6638. 'indexes' => array(
  6639. 'expression_image_idx1' => array('expression_id'),
  6640. 'expression_image_idx2' => array('eimage_id'),
  6641. ),
  6642. );
  6643. $schema['expression_pub'] = array(
  6644. 'description' => t('TODO: please describe this table!'),
  6645. 'fields' => array(
  6646. 'expression_pub_id' => array(
  6647. 'description' => t('TODO: please describe this field!'),
  6648. 'type' => 'serial',
  6649. 'not null' => TRUE,
  6650. ),
  6651. 'expression_id' => array(
  6652. 'description' => t('TODO: please describe this field!'),
  6653. 'type' => 'int',
  6654. 'not null' => TRUE,
  6655. ),
  6656. 'pub_id' => array(
  6657. 'description' => t('TODO: please describe this field!'),
  6658. 'type' => 'int',
  6659. 'not null' => TRUE,
  6660. ),
  6661. ),
  6662. 'primary key' => array('expression_pub_id'),
  6663. 'unique keys' => array(
  6664. 'expression_pub_c1' => array('expression_id', 'pub_id')
  6665. ),
  6666. 'indexes' => array(
  6667. 'expression_pub_idx1' => array('expression_id'),
  6668. 'expression_pub_idx2' => array('pub_id'),
  6669. ),
  6670. );
  6671. $schema['expression'] = array(
  6672. 'description' => t('TODO: please describe this table!'),
  6673. 'fields' => array(
  6674. 'expression_id' => array(
  6675. 'description' => t('TODO: please describe this field!'),
  6676. 'type' => 'serial',
  6677. 'not null' => TRUE,
  6678. ),
  6679. 'uniquename' => array(
  6680. 'description' => t('TODO: please describe this field!'),
  6681. 'type' => 'text',
  6682. 'not null' => TRUE,
  6683. ),
  6684. 'md5checksum' => array(
  6685. 'description' => t('TODO: please describe this field!'),
  6686. 'type' => 'char',
  6687. 'length' => '32',
  6688. 'not null' => FALSE,
  6689. ),
  6690. 'description' => array(
  6691. 'description' => t('TODO: please describe this field!'),
  6692. 'type' => 'text',
  6693. 'not null' => FALSE,
  6694. ),
  6695. ),
  6696. 'primary key' => array('expression_id'),
  6697. 'unique keys' => array(
  6698. 'expression_c1' => array('uniquename')
  6699. ),
  6700. );
  6701. $schema['environment_cvterm'] = array(
  6702. 'description' => t('TODO: please describe this table!'),
  6703. 'fields' => array(
  6704. 'environment_cvterm_id' => array(
  6705. 'description' => t('TODO: please describe this field!'),
  6706. 'type' => 'serial',
  6707. 'not null' => TRUE,
  6708. ),
  6709. 'environment_id' => array(
  6710. 'description' => t('TODO: please describe this field!'),
  6711. 'type' => 'int',
  6712. 'not null' => TRUE,
  6713. ),
  6714. 'cvterm_id' => array(
  6715. 'description' => t('TODO: please describe this field!'),
  6716. 'type' => 'int',
  6717. 'not null' => TRUE,
  6718. ),
  6719. ),
  6720. 'primary key' => array('environment_cvterm_id'),
  6721. 'unique keys' => array(
  6722. 'environment_cvterm_c1' => array('environment_id', 'cvterm_id')
  6723. ),
  6724. 'indexes' => array(
  6725. 'environment_cvterm_idx1' => array('environment_id'),
  6726. 'environment_cvterm_idx2' => array('cvterm_id'),
  6727. ),
  6728. );
  6729. $schema['element_relationship'] = array(
  6730. 'description' => t('TODO: please describe this table!'),
  6731. 'fields' => array(
  6732. 'element_relationship_id' => array(
  6733. 'description' => t('TODO: please describe this field!'),
  6734. 'type' => 'serial',
  6735. 'not null' => TRUE,
  6736. ),
  6737. 'subject_id' => array(
  6738. 'description' => t('TODO: please describe this field!'),
  6739. 'type' => 'int',
  6740. 'not null' => TRUE,
  6741. ),
  6742. 'type_id' => array(
  6743. 'description' => t('TODO: please describe this field!'),
  6744. 'type' => 'int',
  6745. 'not null' => TRUE,
  6746. ),
  6747. 'object_id' => array(
  6748. 'description' => t('TODO: please describe this field!'),
  6749. 'type' => 'int',
  6750. 'not null' => TRUE,
  6751. ),
  6752. 'value' => array(
  6753. 'description' => t('TODO: please describe this field!'),
  6754. 'type' => 'text',
  6755. 'not null' => FALSE,
  6756. ),
  6757. 'rank' => array(
  6758. 'description' => t('TODO: please describe this field!'),
  6759. 'type' => 'int',
  6760. 'not null' => TRUE,
  6761. 'default' => 0,
  6762. ),
  6763. ),
  6764. 'primary key' => array('element_relationship_id'),
  6765. 'unique keys' => array(
  6766. 'element_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  6767. ),
  6768. 'indexes' => array(
  6769. 'element_relationship_idx1' => array('subject_id'),
  6770. 'element_relationship_idx2' => array('type_id'),
  6771. 'element_relationship_idx3' => array('object_id'),
  6772. 'element_relationship_idx4' => array('value'),
  6773. ),
  6774. );
  6775. $schema['elementresult'] = array(
  6776. 'description' => t('TODO: please describe this table!'),
  6777. 'fields' => array(
  6778. 'elementresult_id' => array(
  6779. 'description' => t('TODO: please describe this field!'),
  6780. 'type' => 'serial',
  6781. 'not null' => TRUE,
  6782. ),
  6783. 'element_id' => array(
  6784. 'description' => t('TODO: please describe this field!'),
  6785. 'type' => 'int',
  6786. 'not null' => TRUE,
  6787. ),
  6788. 'quantification_id' => array(
  6789. 'description' => t('TODO: please describe this field!'),
  6790. 'type' => 'int',
  6791. 'not null' => TRUE,
  6792. ),
  6793. 'signal' => array(
  6794. 'description' => t('TODO: please describe this field!'),
  6795. 'type' => 'float',
  6796. 'size' => 'big',
  6797. 'not null' => TRUE,
  6798. ),
  6799. ),
  6800. 'primary key' => array('elementresult_id'),
  6801. 'unique keys' => array(
  6802. 'elementresult_c1' => array('element_id', 'quantification_id')
  6803. ),
  6804. 'indexes' => array(
  6805. 'elementresult_idx1' => array('element_id'),
  6806. 'elementresult_idx2' => array('quantification_id'),
  6807. 'elementresult_idx3' => array('signal'),
  6808. ),
  6809. );
  6810. $schema['elementresult_relationship'] = array(
  6811. 'description' => t('TODO: please describe this table!'),
  6812. 'fields' => array(
  6813. 'elementresult_relationship_id' => array(
  6814. 'description' => t('TODO: please describe this field!'),
  6815. 'type' => 'serial',
  6816. 'not null' => TRUE,
  6817. ),
  6818. 'subject_id' => array(
  6819. 'description' => t('TODO: please describe this field!'),
  6820. 'type' => 'int',
  6821. 'not null' => TRUE,
  6822. ),
  6823. 'type_id' => array(
  6824. 'description' => t('TODO: please describe this field!'),
  6825. 'type' => 'int',
  6826. 'not null' => TRUE,
  6827. ),
  6828. 'object_id' => array(
  6829. 'description' => t('TODO: please describe this field!'),
  6830. 'type' => 'int',
  6831. 'not null' => TRUE,
  6832. ),
  6833. 'value' => array(
  6834. 'description' => t('TODO: please describe this field!'),
  6835. 'type' => 'text',
  6836. 'not null' => FALSE,
  6837. ),
  6838. 'rank' => array(
  6839. 'description' => t('TODO: please describe this field!'),
  6840. 'type' => 'int',
  6841. 'not null' => TRUE,
  6842. 'default' => 0,
  6843. ),
  6844. ),
  6845. 'primary key' => array('elementresult_relationship_id'),
  6846. 'unique keys' => array(
  6847. 'elementresult_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  6848. ),
  6849. 'indexes' => array(
  6850. 'elementresult_relationship_idx1' => array('subject_id'),
  6851. 'elementresult_relationship_idx2' => array('type_id'),
  6852. 'elementresult_relationship_idx3' => array('object_id'),
  6853. 'elementresult_relationship_idx4' => array('value'),
  6854. ),
  6855. );
  6856. $schema['environment'] = array(
  6857. 'description' => t('TODO: please describe this table!'),
  6858. 'fields' => array(
  6859. 'environment_id' => array(
  6860. 'description' => t('TODO: please describe this field!'),
  6861. 'type' => 'serial',
  6862. 'not null' => TRUE,
  6863. ),
  6864. 'uniquename' => array(
  6865. 'description' => t('TODO: please describe this field!'),
  6866. 'type' => 'text',
  6867. 'not null' => TRUE,
  6868. ),
  6869. 'description' => array(
  6870. 'description' => t('TODO: please describe this field!'),
  6871. 'type' => 'text',
  6872. 'not null' => FALSE,
  6873. ),
  6874. ),
  6875. 'primary key' => array('environment_id'),
  6876. 'unique keys' => array(
  6877. 'environment_c1' => array('uniquename')
  6878. ),
  6879. 'indexes' => array(
  6880. 'environment_idx1' => array('uniquename'),
  6881. ),
  6882. );
  6883. return $schema;
  6884. }