chado_tables.schema.inc 217 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863
  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. );
  2186. $schema['stockprop_pub'] = array(
  2187. 'description' => t('TODO: please describe this table!'),
  2188. 'fields' => array(
  2189. 'stockprop_pub_id' => array(
  2190. 'description' => t('TODO: please describe this field!'),
  2191. 'type' => 'serial',
  2192. 'not null' => TRUE,
  2193. ),
  2194. 'stockprop_id' => array(
  2195. 'description' => t('TODO: please describe this field!'),
  2196. 'type' => 'int',
  2197. 'not null' => TRUE,
  2198. ),
  2199. 'pub_id' => array(
  2200. 'description' => t('TODO: please describe this field!'),
  2201. 'type' => 'int',
  2202. 'not null' => TRUE,
  2203. ),
  2204. ),
  2205. 'primary key' => array('stockprop_pub_id'),
  2206. 'unique keys' => array(
  2207. 'stockprop_pub_c1' => array('stockprop_id', 'pub_id')
  2208. ),
  2209. 'indexes' => array(
  2210. 'stockprop_pub_idx1' => array('stockprop_id'),
  2211. 'stockprop_pub_idx2' => array('pub_id'),
  2212. ),
  2213. );
  2214. $schema['study'] = array(
  2215. 'description' => t('TODO: please describe this table!'),
  2216. 'fields' => array(
  2217. 'study_id' => array(
  2218. 'description' => t('TODO: please describe this field!'),
  2219. 'type' => 'serial',
  2220. 'not null' => TRUE,
  2221. ),
  2222. 'contact_id' => array(
  2223. 'description' => t('TODO: please describe this field!'),
  2224. 'type' => 'int',
  2225. 'not null' => TRUE,
  2226. ),
  2227. 'pub_id' => array(
  2228. 'description' => t('TODO: please describe this field!'),
  2229. 'type' => 'int',
  2230. 'not null' => FALSE,
  2231. ),
  2232. 'dbxref_id' => array(
  2233. 'description' => t('TODO: please describe this field!'),
  2234. 'type' => 'int',
  2235. 'not null' => FALSE,
  2236. ),
  2237. 'name' => array(
  2238. 'description' => t('TODO: please describe this field!'),
  2239. 'type' => 'text',
  2240. 'not null' => TRUE,
  2241. ),
  2242. 'description' => array(
  2243. 'description' => t('TODO: please describe this field!'),
  2244. 'type' => 'text',
  2245. 'not null' => FALSE,
  2246. ),
  2247. ),
  2248. 'primary key' => array('study_id'),
  2249. 'unique keys' => array(
  2250. 'study_c1' => array('name')
  2251. ),
  2252. 'indexes' => array(
  2253. 'study_idx1' => array('contact_id'),
  2254. 'study_idx2' => array('pub_id'),
  2255. 'study_idx3' => array('dbxref_id'),
  2256. ),
  2257. );
  2258. $schema['study_assay'] = array(
  2259. 'description' => t('TODO: please describe this table!'),
  2260. 'fields' => array(
  2261. 'study_assay_id' => array(
  2262. 'description' => t('TODO: please describe this field!'),
  2263. 'type' => 'serial',
  2264. 'not null' => TRUE,
  2265. ),
  2266. 'study_id' => array(
  2267. 'description' => t('TODO: please describe this field!'),
  2268. 'type' => 'int',
  2269. 'not null' => TRUE,
  2270. ),
  2271. 'assay_id' => array(
  2272. 'description' => t('TODO: please describe this field!'),
  2273. 'type' => 'int',
  2274. 'not null' => TRUE,
  2275. ),
  2276. ),
  2277. 'primary key' => array('study_assay_id'),
  2278. 'unique keys' => array(
  2279. 'study_assay_c1' => array('study_id', 'assay_id')
  2280. ),
  2281. 'indexes' => array(
  2282. 'study_assay_idx1' => array('study_id'),
  2283. 'study_assay_idx2' => array('assay_id'),
  2284. ),
  2285. );
  2286. $schema['tableinfo'] = array(
  2287. 'description' => t('TODO: please describe this table!'),
  2288. 'fields' => array(
  2289. 'tableinfo_id' => array(
  2290. 'description' => t('TODO: please describe this field!'),
  2291. 'type' => 'serial',
  2292. 'not null' => TRUE,
  2293. ),
  2294. 'name' => array(
  2295. 'description' => t('TODO: please describe this field!'),
  2296. 'type' => 'varchar',
  2297. 'length' => '30',
  2298. 'not null' => TRUE,
  2299. ),
  2300. 'primary_key_column' => array(
  2301. 'description' => t('TODO: please describe this field!'),
  2302. 'type' => 'varchar',
  2303. 'length' => '30',
  2304. 'not null' => FALSE,
  2305. ),
  2306. 'is_view' => array(
  2307. 'description' => t('TODO: please describe this field!'),
  2308. 'type' => 'int',
  2309. 'not null' => TRUE,
  2310. 'default' => 0,
  2311. ),
  2312. 'view_on_table_id' => array(
  2313. 'description' => t('TODO: please describe this field!'),
  2314. 'type' => 'int',
  2315. 'not null' => FALSE,
  2316. ),
  2317. 'superclass_table_id' => array(
  2318. 'description' => t('TODO: please describe this field!'),
  2319. 'type' => 'int',
  2320. 'not null' => FALSE,
  2321. ),
  2322. 'is_updateable' => array(
  2323. 'description' => t('TODO: please describe this field!'),
  2324. 'type' => 'int',
  2325. 'not null' => TRUE,
  2326. 'default' => 1,
  2327. ),
  2328. 'modification_date' => array(
  2329. 'description' => t('TODO: please describe this field!'),
  2330. 'type' => 'date',
  2331. 'not null' => TRUE,
  2332. 'default' => 'ow(',
  2333. ),
  2334. ),
  2335. 'primary key' => array('tableinfo_id'),
  2336. 'unique keys' => array(
  2337. 'tableinfo_c1' => array('name')
  2338. ),
  2339. );
  2340. $schema['treatment'] = array(
  2341. 'description' => t('TODO: please describe this table!'),
  2342. 'fields' => array(
  2343. 'treatment_id' => array(
  2344. 'description' => t('TODO: please describe this field!'),
  2345. 'type' => 'serial',
  2346. 'not null' => TRUE,
  2347. ),
  2348. 'rank' => array(
  2349. 'description' => t('TODO: please describe this field!'),
  2350. 'type' => 'int',
  2351. 'not null' => TRUE,
  2352. 'default' => 0,
  2353. ),
  2354. 'biomaterial_id' => array(
  2355. 'description' => t('TODO: please describe this field!'),
  2356. 'type' => 'int',
  2357. 'not null' => TRUE,
  2358. ),
  2359. 'type_id' => array(
  2360. 'description' => t('TODO: please describe this field!'),
  2361. 'type' => 'int',
  2362. 'not null' => TRUE,
  2363. ),
  2364. 'protocol_id' => array(
  2365. 'description' => t('TODO: please describe this field!'),
  2366. 'type' => 'int',
  2367. 'not null' => FALSE,
  2368. ),
  2369. 'name' => array(
  2370. 'description' => t('TODO: please describe this field!'),
  2371. 'type' => 'text',
  2372. 'not null' => FALSE,
  2373. ),
  2374. ),
  2375. 'primary key' => array('treatment_id'),
  2376. 'indexes' => array(
  2377. 'treatment_idx1' => array('biomaterial_id'),
  2378. 'treatment_idx2' => array('type_id'),
  2379. 'treatment_idx3' => array('protocol_id'),
  2380. ),
  2381. );
  2382. $schema['tripal_obo'] = array(
  2383. 'description' => t('TODO: please describe this table!'),
  2384. 'fields' => array(
  2385. 'cv_id' => array(
  2386. 'description' => t('TODO: please describe this field!'),
  2387. 'type' => 'int',
  2388. 'unsigned' => TRUE,
  2389. 'not null' => TRUE,
  2390. 'default' => 0,
  2391. ),
  2392. 'file' => array(
  2393. 'description' => t('TODO: please describe this field!'),
  2394. 'type' => 'varchar',
  2395. 'length' => '1024',
  2396. 'not null' => FALSE,
  2397. ),
  2398. 'url' => array(
  2399. 'description' => t('TODO: please describe this field!'),
  2400. 'type' => 'varchar',
  2401. 'length' => '1024',
  2402. 'not null' => FALSE,
  2403. ),
  2404. ),
  2405. 'primary key' => array('cv_id'),
  2406. 'indexes' => array(
  2407. 'cv_id' => array('cv_id'),
  2408. ),
  2409. );
  2410. $schema['tripal_organism_views_common_name'] = array(
  2411. 'description' => t('TODO: please describe this table!'),
  2412. 'fields' => array(
  2413. 'nid' => array(
  2414. 'description' => t('TODO: please describe this field!'),
  2415. 'type' => 'int',
  2416. 'unsigned' => TRUE,
  2417. 'not null' => TRUE,
  2418. 'default' => 0,
  2419. ),
  2420. 'common_name' => array(
  2421. 'description' => t('TODO: please describe this field!'),
  2422. 'type' => 'varchar',
  2423. 'length' => '255',
  2424. 'not null' => TRUE,
  2425. 'default' => 'NA',
  2426. ),
  2427. ),
  2428. );
  2429. $schema['type_feature_count'] = array(
  2430. 'description' => t('TODO: please describe this table!'),
  2431. 'fields' => array(
  2432. 'type' => array(
  2433. 'description' => t('TODO: please describe this field!'),
  2434. 'type' => 'varchar',
  2435. 'length' => '1024',
  2436. 'not null' => FALSE,
  2437. ),
  2438. 'num_features' => array(
  2439. 'description' => t('TODO: please describe this field!'),
  2440. 'type' => 'int',
  2441. 'size' => 'big',
  2442. 'not null' => FALSE,
  2443. ),
  2444. ),
  2445. );
  2446. $schema['stockcollectionprop'] = array(
  2447. 'description' => t('TODO: please describe this table!'),
  2448. 'fields' => array(
  2449. 'stockcollectionprop_id' => array(
  2450. 'description' => t('TODO: please describe this field!'),
  2451. 'type' => 'serial',
  2452. 'not null' => TRUE,
  2453. ),
  2454. 'stockcollection_id' => array(
  2455. 'description' => t('TODO: please describe this field!'),
  2456. 'type' => 'int',
  2457. 'not null' => TRUE,
  2458. ),
  2459. 'type_id' => array(
  2460. 'description' => t('TODO: please describe this field!'),
  2461. 'type' => 'int',
  2462. 'not null' => TRUE,
  2463. ),
  2464. 'value' => array(
  2465. 'description' => t('TODO: please describe this field!'),
  2466. 'type' => 'text',
  2467. 'not null' => FALSE,
  2468. ),
  2469. 'rank' => array(
  2470. 'description' => t('TODO: please describe this field!'),
  2471. 'type' => 'int',
  2472. 'not null' => TRUE,
  2473. 'default' => 0,
  2474. ),
  2475. ),
  2476. 'primary key' => array('stockcollectionprop_id'),
  2477. 'unique keys' => array(
  2478. 'stockcollectionprop_c1' => array('stockcollection_id', 'type_id', 'rank')
  2479. ),
  2480. 'indexes' => array(
  2481. 'stockcollectionprop_idx1' => array('stockcollection_id'),
  2482. 'stockcollectionprop_idx2' => array('type_id'),
  2483. ),
  2484. );
  2485. $schema['stockcollection_stock'] = array(
  2486. 'description' => t('TODO: please describe this table!'),
  2487. 'fields' => array(
  2488. 'stockcollection_stock_id' => array(
  2489. 'description' => t('TODO: please describe this field!'),
  2490. 'type' => 'serial',
  2491. 'not null' => TRUE,
  2492. ),
  2493. 'stockcollection_id' => array(
  2494. 'description' => t('TODO: please describe this field!'),
  2495. 'type' => 'int',
  2496. 'not null' => TRUE,
  2497. ),
  2498. 'stock_id' => array(
  2499. 'description' => t('TODO: please describe this field!'),
  2500. 'type' => 'int',
  2501. 'not null' => TRUE,
  2502. ),
  2503. ),
  2504. 'primary key' => array('stockcollection_stock_id'),
  2505. 'unique keys' => array(
  2506. 'stockcollection_stock_c1' => array('stockcollection_id', 'stock_id')
  2507. ),
  2508. 'indexes' => array(
  2509. 'stockcollection_stock_idx1' => array('stockcollection_id'),
  2510. 'stockcollection_stock_idx2' => array('stock_id'),
  2511. ),
  2512. );
  2513. $schema['public_feature'] = array(
  2514. 'description' => t('TODO: please describe this table!'),
  2515. 'fields' => array(
  2516. 'vid' => array(
  2517. 'description' => t('TODO: please describe this field!'),
  2518. 'type' => 'int',
  2519. 'unsigned' => TRUE,
  2520. 'not null' => TRUE,
  2521. 'default' => 0,
  2522. ),
  2523. 'nid' => array(
  2524. 'description' => t('TODO: please describe this field!'),
  2525. 'type' => 'int',
  2526. 'unsigned' => TRUE,
  2527. 'not null' => TRUE,
  2528. 'default' => 0,
  2529. ),
  2530. 'feature_id' => array(
  2531. 'description' => t('TODO: please describe this field!'),
  2532. 'type' => 'int',
  2533. 'not null' => TRUE,
  2534. 'default' => 0,
  2535. ),
  2536. 'sync_date' => array(
  2537. 'description' => t('TODO: please describe this field!'),
  2538. 'type' => 'int',
  2539. 'not null' => FALSE,
  2540. ),
  2541. ),
  2542. 'primary key' => array('nid'),
  2543. 'unique keys' => array(
  2544. 'nid_vid' => array('nid', 'vid'),
  2545. 'vid' => array('vid')
  2546. ),
  2547. 'indexes' => array(
  2548. 'feature_id' => array('feature_id'),
  2549. ),
  2550. );
  2551. $schema['public_library'] = array(
  2552. 'description' => t('TODO: please describe this table!'),
  2553. 'fields' => array(
  2554. 'vid' => array(
  2555. 'description' => t('TODO: please describe this field!'),
  2556. 'type' => 'int',
  2557. 'unsigned' => TRUE,
  2558. 'not null' => TRUE,
  2559. 'default' => 0,
  2560. ),
  2561. 'nid' => array(
  2562. 'description' => t('TODO: please describe this field!'),
  2563. 'type' => 'int',
  2564. 'unsigned' => TRUE,
  2565. 'not null' => TRUE,
  2566. 'default' => 0,
  2567. ),
  2568. 'library_id' => array(
  2569. 'description' => t('TODO: please describe this field!'),
  2570. 'type' => 'int',
  2571. 'not null' => TRUE,
  2572. 'default' => 0,
  2573. ),
  2574. ),
  2575. 'primary key' => array('nid'),
  2576. 'unique keys' => array(
  2577. 'nid_vid' => array('nid', 'vid'),
  2578. 'vid' => array('vid')
  2579. ),
  2580. 'indexes' => array(
  2581. 'library_id' => array('library_id'),
  2582. ),
  2583. );
  2584. $schema['public_organism'] = array(
  2585. 'description' => t('TODO: please describe this table!'),
  2586. 'fields' => array(
  2587. 'vid' => array(
  2588. 'description' => t('TODO: please describe this field!'),
  2589. 'type' => 'int',
  2590. 'unsigned' => TRUE,
  2591. 'not null' => TRUE,
  2592. 'default' => 0,
  2593. ),
  2594. 'nid' => array(
  2595. 'description' => t('TODO: please describe this field!'),
  2596. 'type' => 'int',
  2597. 'unsigned' => TRUE,
  2598. 'not null' => TRUE,
  2599. 'default' => 0,
  2600. ),
  2601. 'organism_id' => array(
  2602. 'description' => t('TODO: please describe this field!'),
  2603. 'type' => 'int',
  2604. 'not null' => TRUE,
  2605. 'default' => 0,
  2606. ),
  2607. ),
  2608. 'primary key' => array('nid'),
  2609. 'unique keys' => array(
  2610. 'nid_vid' => array('nid', 'vid'),
  2611. 'vid' => array('vid')
  2612. ),
  2613. 'indexes' => array(
  2614. 'organism_id' => array('organism_id'),
  2615. ),
  2616. );
  2617. $schema['pubprop'] = array(
  2618. 'description' => t('TODO: please describe this table!'),
  2619. 'fields' => array(
  2620. 'pubprop_id' => array(
  2621. 'description' => t('TODO: please describe this field!'),
  2622. 'type' => 'serial',
  2623. 'not null' => TRUE,
  2624. ),
  2625. 'pub_id' => array(
  2626. 'description' => t('TODO: please describe this field!'),
  2627. 'type' => 'int',
  2628. 'not null' => TRUE,
  2629. ),
  2630. 'type_id' => array(
  2631. 'description' => t('TODO: please describe this field!'),
  2632. 'type' => 'int',
  2633. 'not null' => TRUE,
  2634. ),
  2635. 'value' => array(
  2636. 'description' => t('TODO: please describe this field!'),
  2637. 'type' => 'text',
  2638. 'not null' => TRUE,
  2639. ),
  2640. 'rank' => array(
  2641. 'description' => t('TODO: please describe this field!'),
  2642. 'type' => 'int',
  2643. 'not null' => FALSE,
  2644. ),
  2645. ),
  2646. 'primary key' => array('pubprop_id'),
  2647. 'unique keys' => array(
  2648. 'pubprop_c1' => array('pub_id', 'type_id', 'rank')
  2649. ),
  2650. 'indexes' => array(
  2651. 'pubprop_idx1' => array('pub_id'),
  2652. 'pubprop_idx2' => array('type_id'),
  2653. ),
  2654. );
  2655. $schema['pubauthor'] = array(
  2656. 'description' => t('TODO: please describe this table!'),
  2657. 'fields' => array(
  2658. 'pubauthor_id' => array(
  2659. 'description' => t('TODO: please describe this field!'),
  2660. 'type' => 'serial',
  2661. 'not null' => TRUE,
  2662. ),
  2663. 'pub_id' => array(
  2664. 'description' => t('TODO: please describe this field!'),
  2665. 'type' => 'int',
  2666. 'not null' => TRUE,
  2667. ),
  2668. 'rank' => array(
  2669. 'description' => t('TODO: please describe this field!'),
  2670. 'type' => 'int',
  2671. 'not null' => TRUE,
  2672. ),
  2673. 'editor' => array(
  2674. 'description' => t('TODO: please describe this field!'),
  2675. 'type' => 'boolean',
  2676. 'not null' => FALSE,
  2677. 'default' => 'als',
  2678. ),
  2679. 'surname' => array(
  2680. 'description' => t('TODO: please describe this field!'),
  2681. 'type' => 'varchar',
  2682. 'length' => '100',
  2683. 'not null' => TRUE,
  2684. ),
  2685. 'givennames' => array(
  2686. 'description' => t('TODO: please describe this field!'),
  2687. 'type' => 'varchar',
  2688. 'length' => '100',
  2689. 'not null' => FALSE,
  2690. ),
  2691. 'suffix' => array(
  2692. 'description' => t('TODO: please describe this field!'),
  2693. 'type' => 'varchar',
  2694. 'length' => '100',
  2695. 'not null' => FALSE,
  2696. ),
  2697. ),
  2698. 'primary key' => array('pubauthor_id'),
  2699. 'unique keys' => array(
  2700. 'pubauthor_c1' => array('pub_id', 'rank')
  2701. ),
  2702. 'indexes' => array(
  2703. 'pubauthor_idx2' => array('pub_id'),
  2704. ),
  2705. );
  2706. $schema['pub_relationship'] = array(
  2707. 'description' => t('TODO: please describe this table!'),
  2708. 'fields' => array(
  2709. 'pub_relationship_id' => array(
  2710. 'description' => t('TODO: please describe this field!'),
  2711. 'type' => 'serial',
  2712. 'not null' => TRUE,
  2713. ),
  2714. 'subject_id' => array(
  2715. 'description' => t('TODO: please describe this field!'),
  2716. 'type' => 'int',
  2717. 'not null' => TRUE,
  2718. ),
  2719. 'object_id' => array(
  2720. 'description' => t('TODO: please describe this field!'),
  2721. 'type' => 'int',
  2722. 'not null' => TRUE,
  2723. ),
  2724. 'type_id' => array(
  2725. 'description' => t('TODO: please describe this field!'),
  2726. 'type' => 'int',
  2727. 'not null' => TRUE,
  2728. ),
  2729. ),
  2730. 'primary key' => array('pub_relationship_id'),
  2731. 'unique keys' => array(
  2732. 'pub_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  2733. ),
  2734. 'indexes' => array(
  2735. 'pub_relationship_idx1' => array('subject_id'),
  2736. 'pub_relationship_idx2' => array('object_id'),
  2737. 'pub_relationship_idx3' => array('type_id'),
  2738. ),
  2739. );
  2740. $schema['protocol'] = array(
  2741. 'description' => t('TODO: please describe this table!'),
  2742. 'fields' => array(
  2743. 'protocol_id' => array(
  2744. 'description' => t('TODO: please describe this field!'),
  2745. 'type' => 'serial',
  2746. 'not null' => TRUE,
  2747. ),
  2748. 'type_id' => array(
  2749. 'description' => t('TODO: please describe this field!'),
  2750. 'type' => 'int',
  2751. 'not null' => TRUE,
  2752. ),
  2753. 'pub_id' => array(
  2754. 'description' => t('TODO: please describe this field!'),
  2755. 'type' => 'int',
  2756. 'not null' => FALSE,
  2757. ),
  2758. 'dbxref_id' => array(
  2759. 'description' => t('TODO: please describe this field!'),
  2760. 'type' => 'int',
  2761. 'not null' => FALSE,
  2762. ),
  2763. 'name' => array(
  2764. 'description' => t('TODO: please describe this field!'),
  2765. 'type' => 'text',
  2766. 'not null' => TRUE,
  2767. ),
  2768. 'uri' => array(
  2769. 'description' => t('TODO: please describe this field!'),
  2770. 'type' => 'text',
  2771. 'not null' => FALSE,
  2772. ),
  2773. 'protocoldescription' => array(
  2774. 'description' => t('TODO: please describe this field!'),
  2775. 'type' => 'text',
  2776. 'not null' => FALSE,
  2777. ),
  2778. 'hardwaredescription' => array(
  2779. 'description' => t('TODO: please describe this field!'),
  2780. 'type' => 'text',
  2781. 'not null' => FALSE,
  2782. ),
  2783. 'softwaredescription' => array(
  2784. 'description' => t('TODO: please describe this field!'),
  2785. 'type' => 'text',
  2786. 'not null' => FALSE,
  2787. ),
  2788. ),
  2789. 'primary key' => array('protocol_id'),
  2790. 'unique keys' => array(
  2791. 'protocol_c1' => array('name')
  2792. ),
  2793. 'indexes' => array(
  2794. 'protocol_idx1' => array('type_id'),
  2795. 'protocol_idx2' => array('pub_id'),
  2796. 'protocol_idx3' => array('dbxref_id'),
  2797. ),
  2798. );
  2799. $schema['protocolparam'] = array(
  2800. 'description' => t('TODO: please describe this table!'),
  2801. 'fields' => array(
  2802. 'protocolparam_id' => array(
  2803. 'description' => t('TODO: please describe this field!'),
  2804. 'type' => 'serial',
  2805. 'not null' => TRUE,
  2806. ),
  2807. 'protocol_id' => array(
  2808. 'description' => t('TODO: please describe this field!'),
  2809. 'type' => 'int',
  2810. 'not null' => TRUE,
  2811. ),
  2812. 'name' => array(
  2813. 'description' => t('TODO: please describe this field!'),
  2814. 'type' => 'text',
  2815. 'not null' => TRUE,
  2816. ),
  2817. 'datatype_id' => array(
  2818. 'description' => t('TODO: please describe this field!'),
  2819. 'type' => 'int',
  2820. 'not null' => FALSE,
  2821. ),
  2822. 'unittype_id' => array(
  2823. 'description' => t('TODO: please describe this field!'),
  2824. 'type' => 'int',
  2825. 'not null' => FALSE,
  2826. ),
  2827. 'value' => array(
  2828. 'description' => t('TODO: please describe this field!'),
  2829. 'type' => 'text',
  2830. 'not null' => FALSE,
  2831. ),
  2832. 'rank' => array(
  2833. 'description' => t('TODO: please describe this field!'),
  2834. 'type' => 'int',
  2835. 'not null' => TRUE,
  2836. 'default' => 0,
  2837. ),
  2838. ),
  2839. 'primary key' => array('protocolparam_id'),
  2840. 'indexes' => array(
  2841. 'protocolparam_idx1' => array('protocol_id'),
  2842. 'protocolparam_idx2' => array('datatype_id'),
  2843. 'protocolparam_idx3' => array('unittype_id'),
  2844. ),
  2845. );
  2846. $schema['pub'] = array(
  2847. 'description' => t('TODO: please describe this table!'),
  2848. 'fields' => array(
  2849. 'pub_id' => array(
  2850. 'description' => t('TODO: please describe this field!'),
  2851. 'type' => 'serial',
  2852. 'not null' => TRUE,
  2853. ),
  2854. 'title' => array(
  2855. 'description' => t('TODO: please describe this field!'),
  2856. 'type' => 'text',
  2857. 'not null' => FALSE,
  2858. ),
  2859. 'volumetitle' => array(
  2860. 'description' => t('TODO: please describe this field!'),
  2861. 'type' => 'text',
  2862. 'not null' => FALSE,
  2863. ),
  2864. 'volume' => array(
  2865. 'description' => t('TODO: please describe this field!'),
  2866. 'type' => 'varchar',
  2867. 'length' => '255',
  2868. 'not null' => FALSE,
  2869. ),
  2870. 'series_name' => array(
  2871. 'description' => t('TODO: please describe this field!'),
  2872. 'type' => 'varchar',
  2873. 'length' => '255',
  2874. 'not null' => FALSE,
  2875. ),
  2876. 'issue' => array(
  2877. 'description' => t('TODO: please describe this field!'),
  2878. 'type' => 'varchar',
  2879. 'length' => '255',
  2880. 'not null' => FALSE,
  2881. ),
  2882. 'pyear' => array(
  2883. 'description' => t('TODO: please describe this field!'),
  2884. 'type' => 'varchar',
  2885. 'length' => '255',
  2886. 'not null' => FALSE,
  2887. ),
  2888. 'pages' => array(
  2889. 'description' => t('TODO: please describe this field!'),
  2890. 'type' => 'varchar',
  2891. 'length' => '255',
  2892. 'not null' => FALSE,
  2893. ),
  2894. 'miniref' => array(
  2895. 'description' => t('TODO: please describe this field!'),
  2896. 'type' => 'varchar',
  2897. 'length' => '255',
  2898. 'not null' => FALSE,
  2899. ),
  2900. 'uniquename' => array(
  2901. 'description' => t('TODO: please describe this field!'),
  2902. 'type' => 'text',
  2903. 'not null' => TRUE,
  2904. ),
  2905. 'type_id' => array(
  2906. 'description' => t('TODO: please describe this field!'),
  2907. 'type' => 'int',
  2908. 'not null' => TRUE,
  2909. ),
  2910. 'is_obsolete' => array(
  2911. 'description' => t('TODO: please describe this field!'),
  2912. 'type' => 'boolean',
  2913. 'not null' => FALSE,
  2914. 'default' => 'als',
  2915. ),
  2916. 'publisher' => array(
  2917. 'description' => t('TODO: please describe this field!'),
  2918. 'type' => 'varchar',
  2919. 'length' => '255',
  2920. 'not null' => FALSE,
  2921. ),
  2922. 'pubplace' => array(
  2923. 'description' => t('TODO: please describe this field!'),
  2924. 'type' => 'varchar',
  2925. 'length' => '255',
  2926. 'not null' => FALSE,
  2927. ),
  2928. ),
  2929. 'primary key' => array('pub_id'),
  2930. 'unique keys' => array(
  2931. 'pub_c1' => array('uniquename')
  2932. ),
  2933. 'indexes' => array(
  2934. 'pub_idx1' => array('type_id'),
  2935. ),
  2936. );
  2937. $schema['pub_dbxref'] = array(
  2938. 'description' => t('TODO: please describe this table!'),
  2939. 'fields' => array(
  2940. 'pub_dbxref_id' => array(
  2941. 'description' => t('TODO: please describe this field!'),
  2942. 'type' => 'serial',
  2943. 'not null' => TRUE,
  2944. ),
  2945. 'pub_id' => array(
  2946. 'description' => t('TODO: please describe this field!'),
  2947. 'type' => 'int',
  2948. 'not null' => TRUE,
  2949. ),
  2950. 'dbxref_id' => array(
  2951. 'description' => t('TODO: please describe this field!'),
  2952. 'type' => 'int',
  2953. 'not null' => TRUE,
  2954. ),
  2955. 'is_current' => array(
  2956. 'description' => t('TODO: please describe this field!'),
  2957. 'type' => 'boolean',
  2958. 'not null' => TRUE,
  2959. 'default' => 'ru',
  2960. ),
  2961. ),
  2962. 'primary key' => array('pub_dbxref_id'),
  2963. 'unique keys' => array(
  2964. 'pub_dbxref_c1' => array('pub_id', 'dbxref_id')
  2965. ),
  2966. 'indexes' => array(
  2967. 'pub_dbxref_idx1' => array('pub_id'),
  2968. 'pub_dbxref_idx2' => array('dbxref_id'),
  2969. ),
  2970. );
  2971. $schema['quantification'] = array(
  2972. 'description' => t('TODO: please describe this table!'),
  2973. 'fields' => array(
  2974. 'quantification_id' => array(
  2975. 'description' => t('TODO: please describe this field!'),
  2976. 'type' => 'serial',
  2977. 'not null' => TRUE,
  2978. ),
  2979. 'acquisition_id' => array(
  2980. 'description' => t('TODO: please describe this field!'),
  2981. 'type' => 'int',
  2982. 'not null' => TRUE,
  2983. ),
  2984. 'operator_id' => array(
  2985. 'description' => t('TODO: please describe this field!'),
  2986. 'type' => 'int',
  2987. 'not null' => FALSE,
  2988. ),
  2989. 'protocol_id' => array(
  2990. 'description' => t('TODO: please describe this field!'),
  2991. 'type' => 'int',
  2992. 'not null' => FALSE,
  2993. ),
  2994. 'analysis_id' => array(
  2995. 'description' => t('TODO: please describe this field!'),
  2996. 'type' => 'int',
  2997. 'not null' => TRUE,
  2998. ),
  2999. 'quantificationdate' => array(
  3000. 'description' => t('TODO: please describe this field!'),
  3001. 'type' => 'datetime',
  3002. 'not null' => FALSE,
  3003. 'default' => 'ow(',
  3004. ),
  3005. 'name' => array(
  3006. 'description' => t('TODO: please describe this field!'),
  3007. 'type' => 'text',
  3008. 'not null' => FALSE,
  3009. ),
  3010. 'uri' => array(
  3011. 'description' => t('TODO: please describe this field!'),
  3012. 'type' => 'text',
  3013. 'not null' => FALSE,
  3014. ),
  3015. ),
  3016. 'primary key' => array('quantification_id'),
  3017. 'unique keys' => array(
  3018. 'quantification_c1' => array('name', 'analysis_id')
  3019. ),
  3020. 'indexes' => array(
  3021. 'quantification_idx1' => array('acquisition_id'),
  3022. 'quantification_idx2' => array('operator_id'),
  3023. 'quantification_idx3' => array('protocol_id'),
  3024. 'quantification_idx4' => array('analysis_id'),
  3025. ),
  3026. );
  3027. $schema['quantification_relationship'] = array(
  3028. 'description' => t('TODO: please describe this table!'),
  3029. 'fields' => array(
  3030. 'quantification_relationship_id' => array(
  3031. 'description' => t('TODO: please describe this field!'),
  3032. 'type' => 'serial',
  3033. 'not null' => TRUE,
  3034. ),
  3035. 'subject_id' => array(
  3036. 'description' => t('TODO: please describe this field!'),
  3037. 'type' => 'int',
  3038. 'not null' => TRUE,
  3039. ),
  3040. 'type_id' => array(
  3041. 'description' => t('TODO: please describe this field!'),
  3042. 'type' => 'int',
  3043. 'not null' => TRUE,
  3044. ),
  3045. 'object_id' => array(
  3046. 'description' => t('TODO: please describe this field!'),
  3047. 'type' => 'int',
  3048. 'not null' => TRUE,
  3049. ),
  3050. ),
  3051. 'primary key' => array('quantification_relationship_id'),
  3052. 'unique keys' => array(
  3053. 'quantification_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  3054. ),
  3055. 'indexes' => array(
  3056. 'quantification_relationship_idx1' => array('subject_id'),
  3057. 'quantification_relationship_idx2' => array('type_id'),
  3058. 'quantification_relationship_idx3' => array('object_id'),
  3059. ),
  3060. );
  3061. $schema['stock_pub'] = array(
  3062. 'description' => t('TODO: please describe this table!'),
  3063. 'fields' => array(
  3064. 'stock_pub_id' => array(
  3065. 'description' => t('TODO: please describe this field!'),
  3066. 'type' => 'serial',
  3067. 'not null' => TRUE,
  3068. ),
  3069. 'stock_id' => array(
  3070. 'description' => t('TODO: please describe this field!'),
  3071. 'type' => 'int',
  3072. 'not null' => TRUE,
  3073. ),
  3074. 'pub_id' => array(
  3075. 'description' => t('TODO: please describe this field!'),
  3076. 'type' => 'int',
  3077. 'not null' => TRUE,
  3078. ),
  3079. ),
  3080. 'primary key' => array('stock_pub_id'),
  3081. 'unique keys' => array(
  3082. 'stock_pub_c1' => array('stock_id', 'pub_id')
  3083. ),
  3084. 'indexes' => array(
  3085. 'stock_pub_idx1' => array('stock_id'),
  3086. 'stock_pub_idx2' => array('pub_id'),
  3087. ),
  3088. );
  3089. $schema['stock_relationship'] = array(
  3090. 'description' => t('TODO: please describe this table!'),
  3091. 'fields' => array(
  3092. 'stock_relationship_id' => array(
  3093. 'description' => t('TODO: please describe this field!'),
  3094. 'type' => 'serial',
  3095. 'not null' => TRUE,
  3096. ),
  3097. 'subject_id' => array(
  3098. 'description' => t('TODO: please describe this field!'),
  3099. 'type' => 'int',
  3100. 'not null' => TRUE,
  3101. ),
  3102. 'object_id' => array(
  3103. 'description' => t('TODO: please describe this field!'),
  3104. 'type' => 'int',
  3105. 'not null' => TRUE,
  3106. ),
  3107. 'type_id' => array(
  3108. 'description' => t('TODO: please describe this field!'),
  3109. 'type' => 'int',
  3110. 'not null' => TRUE,
  3111. ),
  3112. 'value' => array(
  3113. 'description' => t('TODO: please describe this field!'),
  3114. 'type' => 'text',
  3115. 'not null' => FALSE,
  3116. ),
  3117. 'rank' => array(
  3118. 'description' => t('TODO: please describe this field!'),
  3119. 'type' => 'int',
  3120. 'not null' => TRUE,
  3121. 'default' => 0,
  3122. ),
  3123. ),
  3124. 'primary key' => array('stock_relationship_id'),
  3125. 'unique keys' => array(
  3126. 'stock_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  3127. ),
  3128. 'indexes' => array(
  3129. 'stock_relationship_idx1' => array('subject_id'),
  3130. 'stock_relationship_idx2' => array('object_id'),
  3131. 'stock_relationship_idx3' => array('type_id'),
  3132. ),
  3133. );
  3134. $schema['stock_relationship_pub'] = array(
  3135. 'description' => t('TODO: please describe this table!'),
  3136. 'fields' => array(
  3137. 'stock_relationship_pub_id' => array(
  3138. 'description' => t('TODO: please describe this field!'),
  3139. 'type' => 'serial',
  3140. 'not null' => TRUE,
  3141. ),
  3142. 'stock_relationship_id' => array(
  3143. 'description' => t('TODO: please describe this field!'),
  3144. 'type' => 'int',
  3145. 'not null' => TRUE,
  3146. ),
  3147. 'pub_id' => array(
  3148. 'description' => t('TODO: please describe this field!'),
  3149. 'type' => 'int',
  3150. 'not null' => TRUE,
  3151. ),
  3152. ),
  3153. 'primary key' => array('stock_relationship_pub_id'),
  3154. 'unique keys' => array(
  3155. 'stock_relationship_pub_c1' => array('stock_relationship_id', 'pub_id')
  3156. ),
  3157. 'indexes' => array(
  3158. 'stock_relationship_pub_idx1' => array('stock_relationship_id'),
  3159. 'stock_relationship_pub_idx2' => array('pub_id'),
  3160. ),
  3161. );
  3162. $schema['stockcollection'] = array(
  3163. 'description' => t('TODO: please describe this table!'),
  3164. 'fields' => array(
  3165. 'stockcollection_id' => array(
  3166. 'description' => t('TODO: please describe this field!'),
  3167. 'type' => 'serial',
  3168. 'not null' => TRUE,
  3169. ),
  3170. 'type_id' => array(
  3171. 'description' => t('TODO: please describe this field!'),
  3172. 'type' => 'int',
  3173. 'not null' => TRUE,
  3174. ),
  3175. 'contact_id' => array(
  3176. 'description' => t('TODO: please describe this field!'),
  3177. 'type' => 'int',
  3178. 'not null' => FALSE,
  3179. ),
  3180. 'name' => array(
  3181. 'description' => t('TODO: please describe this field!'),
  3182. 'type' => 'varchar',
  3183. 'length' => '255',
  3184. 'not null' => FALSE,
  3185. ),
  3186. 'uniquename' => array(
  3187. 'description' => t('TODO: please describe this field!'),
  3188. 'type' => 'text',
  3189. 'not null' => TRUE,
  3190. ),
  3191. ),
  3192. 'primary key' => array('stockcollection_id'),
  3193. 'unique keys' => array(
  3194. 'stockcollection_c1' => array('uniquename', 'type_id')
  3195. ),
  3196. 'indexes' => array(
  3197. 'stockcollection_idx1' => array('contact_id'),
  3198. 'stockcollection_idx2' => array('type_id'),
  3199. 'stockcollection_idx3' => array('uniquename'),
  3200. 'stockcollection_name_ind1' => array('name'),
  3201. ),
  3202. );
  3203. $schema['stock_genotype'] = array(
  3204. 'description' => t('TODO: please describe this table!'),
  3205. 'fields' => array(
  3206. 'stock_genotype_id' => array(
  3207. 'description' => t('TODO: please describe this field!'),
  3208. 'type' => 'serial',
  3209. 'not null' => TRUE,
  3210. ),
  3211. 'stock_id' => array(
  3212. 'description' => t('TODO: please describe this field!'),
  3213. 'type' => 'int',
  3214. 'not null' => TRUE,
  3215. ),
  3216. 'genotype_id' => array(
  3217. 'description' => t('TODO: please describe this field!'),
  3218. 'type' => 'int',
  3219. 'not null' => TRUE,
  3220. ),
  3221. ),
  3222. 'primary key' => array('stock_genotype_id'),
  3223. 'unique keys' => array(
  3224. 'stock_genotype_c1' => array('stock_id', 'genotype_id')
  3225. ),
  3226. 'indexes' => array(
  3227. 'stock_genotype_idx1' => array('stock_id'),
  3228. 'stock_genotype_idx2' => array('genotype_id'),
  3229. ),
  3230. );
  3231. $schema['stock_dbxref'] = array(
  3232. 'description' => t('TODO: please describe this table!'),
  3233. 'fields' => array(
  3234. 'stock_dbxref_id' => array(
  3235. 'description' => t('TODO: please describe this field!'),
  3236. 'type' => 'serial',
  3237. 'not null' => TRUE,
  3238. ),
  3239. 'stock_id' => array(
  3240. 'description' => t('TODO: please describe this field!'),
  3241. 'type' => 'int',
  3242. 'not null' => TRUE,
  3243. ),
  3244. 'dbxref_id' => array(
  3245. 'description' => t('TODO: please describe this field!'),
  3246. 'type' => 'int',
  3247. 'not null' => TRUE,
  3248. ),
  3249. 'is_current' => array(
  3250. 'description' => t('TODO: please describe this field!'),
  3251. 'type' => 'boolean',
  3252. 'not null' => TRUE,
  3253. 'default' => 'ru',
  3254. ),
  3255. ),
  3256. 'primary key' => array('stock_dbxref_id'),
  3257. 'unique keys' => array(
  3258. 'stock_dbxref_c1' => array('stock_id', 'dbxref_id')
  3259. ),
  3260. 'indexes' => array(
  3261. 'stock_dbxref_idx1' => array('stock_id'),
  3262. 'stock_dbxref_idx2' => array('dbxref_id'),
  3263. ),
  3264. );
  3265. $schema['quantificationprop'] = array(
  3266. 'description' => t('TODO: please describe this table!'),
  3267. 'fields' => array(
  3268. 'quantificationprop_id' => array(
  3269. 'description' => t('TODO: please describe this field!'),
  3270. 'type' => 'serial',
  3271. 'not null' => TRUE,
  3272. ),
  3273. 'quantification_id' => array(
  3274. 'description' => t('TODO: please describe this field!'),
  3275. 'type' => 'int',
  3276. 'not null' => TRUE,
  3277. ),
  3278. 'type_id' => array(
  3279. 'description' => t('TODO: please describe this field!'),
  3280. 'type' => 'int',
  3281. 'not null' => TRUE,
  3282. ),
  3283. 'value' => array(
  3284. 'description' => t('TODO: please describe this field!'),
  3285. 'type' => 'text',
  3286. 'not null' => FALSE,
  3287. ),
  3288. 'rank' => array(
  3289. 'description' => t('TODO: please describe this field!'),
  3290. 'type' => 'int',
  3291. 'not null' => TRUE,
  3292. 'default' => 0,
  3293. ),
  3294. ),
  3295. 'primary key' => array('quantificationprop_id'),
  3296. 'unique keys' => array(
  3297. 'quantificationprop_c1' => array('quantification_id', 'type_id', 'rank')
  3298. ),
  3299. 'indexes' => array(
  3300. 'quantificationprop_idx1' => array('quantification_id'),
  3301. 'quantificationprop_idx2' => array('type_id'),
  3302. ),
  3303. );
  3304. $schema['stats_paths_to_root'] = array(
  3305. 'description' => t('TODO: please describe this table!'),
  3306. 'fields' => array(
  3307. 'cvterm_id' => array(
  3308. 'description' => t('TODO: please describe this field!'),
  3309. 'type' => 'int',
  3310. 'not null' => FALSE,
  3311. ),
  3312. 'total_paths' => array(
  3313. 'description' => t('TODO: please describe this field!'),
  3314. 'type' => 'int',
  3315. 'size' => 'big',
  3316. 'not null' => FALSE,
  3317. ),
  3318. 'avg_distance' => array(
  3319. 'description' => t('TODO: please describe this field!'),
  3320. 'type' => 'numeric',
  3321. 'not null' => FALSE,
  3322. 'precision' => 0,
  3323. 'scale' => 0,
  3324. ),
  3325. 'min_distance' => array(
  3326. 'description' => t('TODO: please describe this field!'),
  3327. 'type' => 'int',
  3328. 'not null' => FALSE,
  3329. ),
  3330. 'max_distance' => array(
  3331. 'description' => t('TODO: please describe this field!'),
  3332. 'type' => 'int',
  3333. 'not null' => FALSE,
  3334. ),
  3335. ),
  3336. );
  3337. $schema['stock'] = array(
  3338. 'description' => t('TODO: please describe this table!'),
  3339. 'fields' => array(
  3340. 'stock_id' => array(
  3341. 'description' => t('TODO: please describe this field!'),
  3342. 'type' => 'serial',
  3343. 'not null' => TRUE,
  3344. ),
  3345. 'dbxref_id' => array(
  3346. 'description' => t('TODO: please describe this field!'),
  3347. 'type' => 'int',
  3348. 'not null' => FALSE,
  3349. ),
  3350. 'organism_id' => array(
  3351. 'description' => t('TODO: please describe this field!'),
  3352. 'type' => 'int',
  3353. 'not null' => TRUE,
  3354. ),
  3355. 'name' => array(
  3356. 'description' => t('TODO: please describe this field!'),
  3357. 'type' => 'varchar',
  3358. 'length' => '255',
  3359. 'not null' => FALSE,
  3360. ),
  3361. 'uniquename' => array(
  3362. 'description' => t('TODO: please describe this field!'),
  3363. 'type' => 'text',
  3364. 'not null' => TRUE,
  3365. ),
  3366. 'description' => array(
  3367. 'description' => t('TODO: please describe this field!'),
  3368. 'type' => 'text',
  3369. 'not null' => FALSE,
  3370. ),
  3371. 'type_id' => array(
  3372. 'description' => t('TODO: please describe this field!'),
  3373. 'type' => 'int',
  3374. 'not null' => TRUE,
  3375. ),
  3376. 'is_obsolete' => array(
  3377. 'description' => t('TODO: please describe this field!'),
  3378. 'type' => 'boolean',
  3379. 'not null' => TRUE,
  3380. 'default' => 'als',
  3381. ),
  3382. ),
  3383. 'primary key' => array('stock_id'),
  3384. 'unique keys' => array(
  3385. 'stock_c1' => array('organism_id', 'uniquename', 'type_id')
  3386. ),
  3387. 'indexes' => array(
  3388. 'stock_idx1' => array('dbxref_id'),
  3389. 'stock_idx2' => array('organism_id'),
  3390. 'stock_idx3' => array('type_id'),
  3391. 'stock_idx4' => array('uniquename'),
  3392. 'stock_name_ind1' => array('name'),
  3393. ),
  3394. );
  3395. $schema['stock_cvterm'] = array(
  3396. 'description' => t('TODO: please describe this table!'),
  3397. 'fields' => array(
  3398. 'stock_cvterm_id' => array(
  3399. 'description' => t('TODO: please describe this field!'),
  3400. 'type' => 'serial',
  3401. 'not null' => TRUE,
  3402. ),
  3403. 'stock_id' => array(
  3404. 'description' => t('TODO: please describe this field!'),
  3405. 'type' => 'int',
  3406. 'not null' => TRUE,
  3407. ),
  3408. 'cvterm_id' => array(
  3409. 'description' => t('TODO: please describe this field!'),
  3410. 'type' => 'int',
  3411. 'not null' => TRUE,
  3412. ),
  3413. 'pub_id' => array(
  3414. 'description' => t('TODO: please describe this field!'),
  3415. 'type' => 'int',
  3416. 'not null' => TRUE,
  3417. ),
  3418. ),
  3419. 'primary key' => array('stock_cvterm_id'),
  3420. 'unique keys' => array(
  3421. 'stock_cvterm_c1' => array('stock_id', 'cvterm_id', 'pub_id')
  3422. ),
  3423. 'indexes' => array(
  3424. 'stock_cvterm_idx1' => array('stock_id'),
  3425. 'stock_cvterm_idx2' => array('cvterm_id'),
  3426. 'stock_cvterm_idx3' => array('pub_id'),
  3427. ),
  3428. );
  3429. $schema['feature_synonym'] = array(
  3430. 'description' => t('TODO: please describe this table!'),
  3431. 'fields' => array(
  3432. 'feature_synonym_id' => array(
  3433. 'description' => t('TODO: please describe this field!'),
  3434. 'type' => 'serial',
  3435. 'not null' => TRUE,
  3436. ),
  3437. 'synonym_id' => array(
  3438. 'description' => t('TODO: please describe this field!'),
  3439. 'type' => 'int',
  3440. 'not null' => TRUE,
  3441. ),
  3442. 'feature_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. 'is_current' => array(
  3453. 'description' => t('TODO: please describe this field!'),
  3454. 'type' => 'boolean',
  3455. 'not null' => TRUE,
  3456. 'default' => 'als',
  3457. ),
  3458. 'is_internal' => array(
  3459. 'description' => t('TODO: please describe this field!'),
  3460. 'type' => 'boolean',
  3461. 'not null' => TRUE,
  3462. 'default' => 'als',
  3463. ),
  3464. ),
  3465. 'primary key' => array('feature_synonym_id'),
  3466. 'unique keys' => array(
  3467. 'feature_synonym_c1' => array('synonym_id', 'feature_id', 'pub_id')
  3468. ),
  3469. 'indexes' => array(
  3470. 'feature_synonym_idx1' => array('synonym_id'),
  3471. 'feature_synonym_idx2' => array('feature_id'),
  3472. 'feature_synonym_idx3' => array('pub_id'),
  3473. ),
  3474. );
  3475. $schema['feature_relationshipprop_pub'] = array(
  3476. 'description' => t('TODO: please describe this table!'),
  3477. 'fields' => array(
  3478. 'feature_relationshipprop_pub_id' => array(
  3479. 'description' => t('TODO: please describe this field!'),
  3480. 'type' => 'serial',
  3481. 'not null' => TRUE,
  3482. ),
  3483. 'feature_relationshipprop_id' => array(
  3484. 'description' => t('TODO: please describe this field!'),
  3485. 'type' => 'int',
  3486. 'not null' => TRUE,
  3487. ),
  3488. 'pub_id' => array(
  3489. 'description' => t('TODO: please describe this field!'),
  3490. 'type' => 'int',
  3491. 'not null' => TRUE,
  3492. ),
  3493. ),
  3494. 'primary key' => array('feature_relationshipprop_pub_id'),
  3495. 'unique keys' => array(
  3496. 'feature_relationshipprop_pub_c1' => array('feature_relationshipprop_id', 'pub_id')
  3497. ),
  3498. 'indexes' => array(
  3499. 'feature_relationshipprop_pub_idx1' => array('feature_relationshipprop_id'),
  3500. 'feature_relationshipprop_pub_idx2' => array('pub_id'),
  3501. ),
  3502. );
  3503. $schema['cell_line_relationship'] = array(
  3504. 'description' => t('TODO: please describe this table!'),
  3505. 'fields' => array(
  3506. 'cell_line_relationship_id' => array(
  3507. 'description' => t('TODO: please describe this field!'),
  3508. 'type' => 'serial',
  3509. 'not null' => TRUE,
  3510. ),
  3511. 'subject_id' => array(
  3512. 'description' => t('TODO: please describe this field!'),
  3513. 'type' => 'int',
  3514. 'not null' => TRUE,
  3515. ),
  3516. 'object_id' => array(
  3517. 'description' => t('TODO: please describe this field!'),
  3518. 'type' => 'int',
  3519. 'not null' => TRUE,
  3520. ),
  3521. 'type_id' => array(
  3522. 'description' => t('TODO: please describe this field!'),
  3523. 'type' => 'int',
  3524. 'not null' => TRUE,
  3525. ),
  3526. ),
  3527. 'primary key' => array('cell_line_relationship_id'),
  3528. 'unique keys' => array(
  3529. 'cell_line_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  3530. ),
  3531. );
  3532. $schema['cell_line_pub'] = array(
  3533. 'description' => t('TODO: please describe this table!'),
  3534. 'fields' => array(
  3535. 'cell_line_pub_id' => array(
  3536. 'description' => t('TODO: please describe this field!'),
  3537. 'type' => 'serial',
  3538. 'not null' => TRUE,
  3539. ),
  3540. 'cell_line_id' => array(
  3541. 'description' => t('TODO: please describe this field!'),
  3542. 'type' => 'int',
  3543. 'not null' => TRUE,
  3544. ),
  3545. 'pub_id' => array(
  3546. 'description' => t('TODO: please describe this field!'),
  3547. 'type' => 'int',
  3548. 'not null' => TRUE,
  3549. ),
  3550. ),
  3551. 'primary key' => array('cell_line_pub_id'),
  3552. 'unique keys' => array(
  3553. 'cell_line_pub_c1' => array('cell_line_id', 'pub_id')
  3554. ),
  3555. );
  3556. $schema['cell_line_synonym'] = array(
  3557. 'description' => t('TODO: please describe this table!'),
  3558. 'fields' => array(
  3559. 'cell_line_synonym_id' => array(
  3560. 'description' => t('TODO: please describe this field!'),
  3561. 'type' => 'serial',
  3562. 'not null' => TRUE,
  3563. ),
  3564. 'cell_line_id' => array(
  3565. 'description' => t('TODO: please describe this field!'),
  3566. 'type' => 'int',
  3567. 'not null' => TRUE,
  3568. ),
  3569. 'synonym_id' => array(
  3570. 'description' => t('TODO: please describe this field!'),
  3571. 'type' => 'int',
  3572. 'not null' => TRUE,
  3573. ),
  3574. 'pub_id' => array(
  3575. 'description' => t('TODO: please describe this field!'),
  3576. 'type' => 'int',
  3577. 'not null' => TRUE,
  3578. ),
  3579. 'is_current' => array(
  3580. 'description' => t('TODO: please describe this field!'),
  3581. 'type' => 'boolean',
  3582. 'not null' => TRUE,
  3583. 'default' => 'als',
  3584. ),
  3585. 'is_internal' => array(
  3586. 'description' => t('TODO: please describe this field!'),
  3587. 'type' => 'boolean',
  3588. 'not null' => TRUE,
  3589. 'default' => 'als',
  3590. ),
  3591. ),
  3592. 'primary key' => array('cell_line_synonym_id'),
  3593. 'unique keys' => array(
  3594. 'cell_line_synonym_c1' => array('synonym_id', 'cell_line_id', 'pub_id')
  3595. ),
  3596. );
  3597. $schema['cell_lineprop'] = array(
  3598. 'description' => t('TODO: please describe this table!'),
  3599. 'fields' => array(
  3600. 'cell_lineprop_id' => array(
  3601. 'description' => t('TODO: please describe this field!'),
  3602. 'type' => 'serial',
  3603. 'not null' => TRUE,
  3604. ),
  3605. 'cell_line_id' => array(
  3606. 'description' => t('TODO: please describe this field!'),
  3607. 'type' => 'int',
  3608. 'not null' => TRUE,
  3609. ),
  3610. 'type_id' => array(
  3611. 'description' => t('TODO: please describe this field!'),
  3612. 'type' => 'int',
  3613. 'not null' => TRUE,
  3614. ),
  3615. 'value' => array(
  3616. 'description' => t('TODO: please describe this field!'),
  3617. 'type' => 'text',
  3618. 'not null' => FALSE,
  3619. ),
  3620. 'rank' => array(
  3621. 'description' => t('TODO: please describe this field!'),
  3622. 'type' => 'int',
  3623. 'not null' => TRUE,
  3624. 'default' => 0,
  3625. ),
  3626. ),
  3627. 'primary key' => array('cell_lineprop_id'),
  3628. 'unique keys' => array(
  3629. 'cell_lineprop_c1' => array('cell_line_id', 'type_id', 'rank')
  3630. ),
  3631. );
  3632. $schema['cell_lineprop_pub'] = array(
  3633. 'description' => t('TODO: please describe this table!'),
  3634. 'fields' => array(
  3635. 'cell_lineprop_pub_id' => array(
  3636. 'description' => t('TODO: please describe this field!'),
  3637. 'type' => 'serial',
  3638. 'not null' => TRUE,
  3639. ),
  3640. 'cell_lineprop_id' => array(
  3641. 'description' => t('TODO: please describe this field!'),
  3642. 'type' => 'int',
  3643. 'not null' => TRUE,
  3644. ),
  3645. 'pub_id' => array(
  3646. 'description' => t('TODO: please describe this field!'),
  3647. 'type' => 'int',
  3648. 'not null' => TRUE,
  3649. ),
  3650. ),
  3651. 'primary key' => array('cell_lineprop_pub_id'),
  3652. 'unique keys' => array(
  3653. 'cell_lineprop_pub_c1' => array('cell_lineprop_id', 'pub_id')
  3654. ),
  3655. );
  3656. $schema['cell_line_library'] = array(
  3657. 'description' => t('TODO: please describe this table!'),
  3658. 'fields' => array(
  3659. 'cell_line_library_id' => array(
  3660. 'description' => t('TODO: please describe this field!'),
  3661. 'type' => 'serial',
  3662. 'not null' => TRUE,
  3663. ),
  3664. 'cell_line_id' => array(
  3665. 'description' => t('TODO: please describe this field!'),
  3666. 'type' => 'int',
  3667. 'not null' => TRUE,
  3668. ),
  3669. 'library_id' => array(
  3670. 'description' => t('TODO: please describe this field!'),
  3671. 'type' => 'int',
  3672. 'not null' => TRUE,
  3673. ),
  3674. 'pub_id' => array(
  3675. 'description' => t('TODO: please describe this field!'),
  3676. 'type' => 'int',
  3677. 'not null' => TRUE,
  3678. ),
  3679. ),
  3680. 'primary key' => array('cell_line_library_id'),
  3681. 'unique keys' => array(
  3682. 'cell_line_library_c1' => array('cell_line_id', 'library_id', 'pub_id')
  3683. ),
  3684. );
  3685. $schema['cell_line_feature'] = array(
  3686. 'description' => t('TODO: please describe this table!'),
  3687. 'fields' => array(
  3688. 'cell_line_feature_id' => array(
  3689. 'description' => t('TODO: please describe this field!'),
  3690. 'type' => 'serial',
  3691. 'not null' => TRUE,
  3692. ),
  3693. 'cell_line_id' => array(
  3694. 'description' => t('TODO: please describe this field!'),
  3695. 'type' => 'int',
  3696. 'not null' => TRUE,
  3697. ),
  3698. 'feature_id' => array(
  3699. 'description' => t('TODO: please describe this field!'),
  3700. 'type' => 'int',
  3701. 'not null' => TRUE,
  3702. ),
  3703. 'pub_id' => array(
  3704. 'description' => t('TODO: please describe this field!'),
  3705. 'type' => 'int',
  3706. 'not null' => TRUE,
  3707. ),
  3708. ),
  3709. 'primary key' => array('cell_line_feature_id'),
  3710. 'unique keys' => array(
  3711. 'cell_line_feature_c1' => array('cell_line_id', 'feature_id', 'pub_id')
  3712. ),
  3713. );
  3714. $schema['cell_line'] = array(
  3715. 'description' => t('TODO: please describe this table!'),
  3716. 'fields' => array(
  3717. 'cell_line_id' => array(
  3718. 'description' => t('TODO: please describe this field!'),
  3719. 'type' => 'serial',
  3720. 'not null' => TRUE,
  3721. ),
  3722. 'name' => array(
  3723. 'description' => t('TODO: please describe this field!'),
  3724. 'type' => 'varchar',
  3725. 'length' => '255',
  3726. 'not null' => FALSE,
  3727. ),
  3728. 'uniquename' => array(
  3729. 'description' => t('TODO: please describe this field!'),
  3730. 'type' => 'varchar',
  3731. 'length' => '255',
  3732. 'not null' => TRUE,
  3733. ),
  3734. 'organism_id' => array(
  3735. 'description' => t('TODO: please describe this field!'),
  3736. 'type' => 'int',
  3737. 'not null' => TRUE,
  3738. ),
  3739. 'timeaccessioned' => array(
  3740. 'description' => t('TODO: please describe this field!'),
  3741. 'type' => 'datetime',
  3742. 'not null' => TRUE,
  3743. 'default' => 'ow(',
  3744. ),
  3745. 'timelastmodified' => array(
  3746. 'description' => t('TODO: please describe this field!'),
  3747. 'type' => 'datetime',
  3748. 'not null' => TRUE,
  3749. 'default' => 'ow(',
  3750. ),
  3751. ),
  3752. 'primary key' => array('cell_line_id'),
  3753. 'unique keys' => array(
  3754. 'cell_line_c1' => array('uniquename', 'organism_id')
  3755. ),
  3756. );
  3757. $schema['cell_line_cvterm'] = array(
  3758. 'description' => t('TODO: please describe this table!'),
  3759. 'fields' => array(
  3760. 'cell_line_cvterm_id' => array(
  3761. 'description' => t('TODO: please describe this field!'),
  3762. 'type' => 'serial',
  3763. 'not null' => TRUE,
  3764. ),
  3765. 'cell_line_id' => array(
  3766. 'description' => t('TODO: please describe this field!'),
  3767. 'type' => 'int',
  3768. 'not null' => TRUE,
  3769. ),
  3770. 'cvterm_id' => array(
  3771. 'description' => t('TODO: please describe this field!'),
  3772. 'type' => 'int',
  3773. 'not null' => TRUE,
  3774. ),
  3775. 'pub_id' => array(
  3776. 'description' => t('TODO: please describe this field!'),
  3777. 'type' => 'int',
  3778. 'not null' => TRUE,
  3779. ),
  3780. 'rank' => array(
  3781. 'description' => t('TODO: please describe this field!'),
  3782. 'type' => 'int',
  3783. 'not null' => TRUE,
  3784. 'default' => 0,
  3785. ),
  3786. ),
  3787. 'primary key' => array('cell_line_cvterm_id'),
  3788. 'unique keys' => array(
  3789. 'cell_line_cvterm_c1' => array('cell_line_id', 'cvterm_id', 'pub_id', 'rank')
  3790. ),
  3791. );
  3792. $schema['cell_line_cvtermprop'] = array(
  3793. 'description' => t('TODO: please describe this table!'),
  3794. 'fields' => array(
  3795. 'cell_line_cvtermprop_id' => array(
  3796. 'description' => t('TODO: please describe this field!'),
  3797. 'type' => 'serial',
  3798. 'not null' => TRUE,
  3799. ),
  3800. 'cell_line_cvterm_id' => array(
  3801. 'description' => t('TODO: please describe this field!'),
  3802. 'type' => 'int',
  3803. 'not null' => TRUE,
  3804. ),
  3805. 'type_id' => array(
  3806. 'description' => t('TODO: please describe this field!'),
  3807. 'type' => 'int',
  3808. 'not null' => TRUE,
  3809. ),
  3810. 'value' => array(
  3811. 'description' => t('TODO: please describe this field!'),
  3812. 'type' => 'text',
  3813. 'not null' => FALSE,
  3814. ),
  3815. 'rank' => array(
  3816. 'description' => t('TODO: please describe this field!'),
  3817. 'type' => 'int',
  3818. 'not null' => TRUE,
  3819. 'default' => 0,
  3820. ),
  3821. ),
  3822. 'primary key' => array('cell_line_cvtermprop_id'),
  3823. 'unique keys' => array(
  3824. 'cell_line_cvtermprop_c1' => array('cell_line_cvterm_id', 'type_id', 'rank')
  3825. ),
  3826. );
  3827. $schema['cell_line_dbxref'] = array(
  3828. 'description' => t('TODO: please describe this table!'),
  3829. 'fields' => array(
  3830. 'cell_line_dbxref_id' => array(
  3831. 'description' => t('TODO: please describe this field!'),
  3832. 'type' => 'serial',
  3833. 'not null' => TRUE,
  3834. ),
  3835. 'cell_line_id' => array(
  3836. 'description' => t('TODO: please describe this field!'),
  3837. 'type' => 'int',
  3838. 'not null' => TRUE,
  3839. ),
  3840. 'dbxref_id' => array(
  3841. 'description' => t('TODO: please describe this field!'),
  3842. 'type' => 'int',
  3843. 'not null' => TRUE,
  3844. ),
  3845. 'is_current' => array(
  3846. 'description' => t('TODO: please describe this field!'),
  3847. 'type' => 'boolean',
  3848. 'not null' => TRUE,
  3849. 'default' => 'ru',
  3850. ),
  3851. ),
  3852. 'primary key' => array('cell_line_dbxref_id'),
  3853. 'unique keys' => array(
  3854. 'cell_line_dbxref_c1' => array('cell_line_id', 'dbxref_id')
  3855. ),
  3856. );
  3857. $schema['channel'] = array(
  3858. 'description' => t('TODO: please describe this table!'),
  3859. 'fields' => array(
  3860. 'channel_id' => array(
  3861. 'description' => t('TODO: please describe this field!'),
  3862. 'type' => 'serial',
  3863. 'not null' => TRUE,
  3864. ),
  3865. 'name' => array(
  3866. 'description' => t('TODO: please describe this field!'),
  3867. 'type' => 'text',
  3868. 'not null' => TRUE,
  3869. ),
  3870. 'definition' => array(
  3871. 'description' => t('TODO: please describe this field!'),
  3872. 'type' => 'text',
  3873. 'not null' => TRUE,
  3874. ),
  3875. ),
  3876. 'primary key' => array('channel_id'),
  3877. 'unique keys' => array(
  3878. 'channel_c1' => array('name')
  3879. ),
  3880. );
  3881. $schema['common_ancestor_cvterm'] = array(
  3882. 'description' => t('TODO: please describe this table!'),
  3883. 'fields' => array(
  3884. 'cvterm1_id' => array(
  3885. 'description' => t('TODO: please describe this field!'),
  3886. 'type' => 'int',
  3887. 'not null' => FALSE,
  3888. ),
  3889. 'cvterm2_id' => array(
  3890. 'description' => t('TODO: please describe this field!'),
  3891. 'type' => 'int',
  3892. 'not null' => FALSE,
  3893. ),
  3894. 'ancestor_cvterm_id' => array(
  3895. 'description' => t('TODO: please describe this field!'),
  3896. 'type' => 'int',
  3897. 'not null' => FALSE,
  3898. ),
  3899. 'pathdistance1' => array(
  3900. 'description' => t('TODO: please describe this field!'),
  3901. 'type' => 'int',
  3902. 'not null' => FALSE,
  3903. ),
  3904. 'pathdistance2' => array(
  3905. 'description' => t('TODO: please describe this field!'),
  3906. 'type' => 'int',
  3907. 'not null' => FALSE,
  3908. ),
  3909. 'total_pathdistance' => array(
  3910. 'description' => t('TODO: please describe this field!'),
  3911. 'type' => 'int',
  3912. 'not null' => FALSE,
  3913. ),
  3914. ),
  3915. );
  3916. $schema['cv_cvterm_count_with_obs'] = array(
  3917. 'description' => t('TODO: please describe this table!'),
  3918. 'fields' => array(
  3919. 'name' => array(
  3920. 'description' => t('TODO: please describe this field!'),
  3921. 'type' => 'varchar',
  3922. 'length' => '255',
  3923. 'not null' => FALSE,
  3924. ),
  3925. 'num_terms_incl_obs' => array(
  3926. 'description' => t('TODO: please describe this field!'),
  3927. 'type' => 'int',
  3928. 'size' => 'big',
  3929. 'not null' => FALSE,
  3930. ),
  3931. ),
  3932. );
  3933. $schema['cv_leaf'] = array(
  3934. 'description' => t('TODO: please describe this table!'),
  3935. 'fields' => array(
  3936. 'cv_id' => array(
  3937. 'description' => t('TODO: please describe this field!'),
  3938. 'type' => 'int',
  3939. 'not null' => FALSE,
  3940. ),
  3941. 'cvterm_id' => array(
  3942. 'description' => t('TODO: please describe this field!'),
  3943. 'type' => 'int',
  3944. 'not null' => FALSE,
  3945. ),
  3946. ),
  3947. );
  3948. $schema['cv_link_count'] = array(
  3949. 'description' => t('TODO: please describe this table!'),
  3950. 'fields' => array(
  3951. 'cv_name' => array(
  3952. 'description' => t('TODO: please describe this field!'),
  3953. 'type' => 'varchar',
  3954. 'length' => '255',
  3955. 'not null' => FALSE,
  3956. ),
  3957. 'relation_name' => array(
  3958. 'description' => t('TODO: please describe this field!'),
  3959. 'type' => 'varchar',
  3960. 'length' => '1024',
  3961. 'not null' => FALSE,
  3962. ),
  3963. 'relation_cv_name' => array(
  3964. 'description' => t('TODO: please describe this field!'),
  3965. 'type' => 'varchar',
  3966. 'length' => '255',
  3967. 'not null' => FALSE,
  3968. ),
  3969. 'num_links' => array(
  3970. 'description' => t('TODO: please describe this field!'),
  3971. 'type' => 'int',
  3972. 'size' => 'big',
  3973. 'not null' => FALSE,
  3974. ),
  3975. ),
  3976. );
  3977. $schema['cv_path_count'] = array(
  3978. 'description' => t('TODO: please describe this table!'),
  3979. 'fields' => array(
  3980. 'cv_name' => array(
  3981. 'description' => t('TODO: please describe this field!'),
  3982. 'type' => 'varchar',
  3983. 'length' => '255',
  3984. 'not null' => FALSE,
  3985. ),
  3986. 'relation_name' => array(
  3987. 'description' => t('TODO: please describe this field!'),
  3988. 'type' => 'varchar',
  3989. 'length' => '1024',
  3990. 'not null' => FALSE,
  3991. ),
  3992. 'relation_cv_name' => array(
  3993. 'description' => t('TODO: please describe this field!'),
  3994. 'type' => 'varchar',
  3995. 'length' => '255',
  3996. 'not null' => FALSE,
  3997. ),
  3998. 'num_paths' => array(
  3999. 'description' => t('TODO: please describe this field!'),
  4000. 'type' => 'int',
  4001. 'size' => 'big',
  4002. 'not null' => FALSE,
  4003. ),
  4004. ),
  4005. );
  4006. $schema['cv_cvterm_count'] = array(
  4007. 'description' => t('TODO: please describe this table!'),
  4008. 'fields' => array(
  4009. 'name' => array(
  4010. 'description' => t('TODO: please describe this field!'),
  4011. 'type' => 'varchar',
  4012. 'length' => '255',
  4013. 'not null' => FALSE,
  4014. ),
  4015. 'num_terms_excl_obs' => array(
  4016. 'description' => t('TODO: please describe this field!'),
  4017. 'type' => 'int',
  4018. 'size' => 'big',
  4019. 'not null' => FALSE,
  4020. ),
  4021. ),
  4022. );
  4023. $schema['cv'] = array(
  4024. 'description' => t('TODO: please describe this table!'),
  4025. 'fields' => array(
  4026. 'cv_id' => array(
  4027. 'description' => t('TODO: please describe this field!'),
  4028. 'type' => 'serial',
  4029. 'not null' => TRUE,
  4030. ),
  4031. 'name' => array(
  4032. 'description' => t('TODO: please describe this field!'),
  4033. 'type' => 'varchar',
  4034. 'length' => '255',
  4035. 'not null' => TRUE,
  4036. ),
  4037. 'definition' => array(
  4038. 'description' => t('TODO: please describe this field!'),
  4039. 'type' => 'text',
  4040. 'not null' => FALSE,
  4041. ),
  4042. ),
  4043. 'primary key' => array('cv_id'),
  4044. 'unique keys' => array(
  4045. 'cv_c1' => array('name')
  4046. ),
  4047. );
  4048. $schema['common_descendant_cvterm'] = array(
  4049. 'description' => t('TODO: please describe this table!'),
  4050. 'fields' => array(
  4051. 'cvterm1_id' => array(
  4052. 'description' => t('TODO: please describe this field!'),
  4053. 'type' => 'int',
  4054. 'not null' => FALSE,
  4055. ),
  4056. 'cvterm2_id' => array(
  4057. 'description' => t('TODO: please describe this field!'),
  4058. 'type' => 'int',
  4059. 'not null' => FALSE,
  4060. ),
  4061. 'ancestor_cvterm_id' => array(
  4062. 'description' => t('TODO: please describe this field!'),
  4063. 'type' => 'int',
  4064. 'not null' => FALSE,
  4065. ),
  4066. 'pathdistance1' => array(
  4067. 'description' => t('TODO: please describe this field!'),
  4068. 'type' => 'int',
  4069. 'not null' => FALSE,
  4070. ),
  4071. 'pathdistance2' => array(
  4072. 'description' => t('TODO: please describe this field!'),
  4073. 'type' => 'int',
  4074. 'not null' => FALSE,
  4075. ),
  4076. 'total_pathdistance' => array(
  4077. 'description' => t('TODO: please describe this field!'),
  4078. 'type' => 'int',
  4079. 'not null' => FALSE,
  4080. ),
  4081. ),
  4082. );
  4083. $schema['contact'] = array(
  4084. 'description' => t('TODO: please describe this table!'),
  4085. 'fields' => array(
  4086. 'contact_id' => array(
  4087. 'description' => t('TODO: please describe this field!'),
  4088. 'type' => 'serial',
  4089. 'not null' => TRUE,
  4090. ),
  4091. 'type_id' => array(
  4092. 'description' => t('TODO: please describe this field!'),
  4093. 'type' => 'int',
  4094. 'not null' => FALSE,
  4095. ),
  4096. 'name' => array(
  4097. 'description' => t('TODO: please describe this field!'),
  4098. 'type' => 'varchar',
  4099. 'length' => '255',
  4100. 'not null' => TRUE,
  4101. ),
  4102. 'description' => array(
  4103. 'description' => t('TODO: please describe this field!'),
  4104. 'type' => 'varchar',
  4105. 'length' => '255',
  4106. 'not null' => FALSE,
  4107. ),
  4108. ),
  4109. 'primary key' => array('contact_id'),
  4110. 'unique keys' => array(
  4111. 'contact_c1' => array('name')
  4112. ),
  4113. );
  4114. $schema['contact_relationship'] = array(
  4115. 'description' => t('TODO: please describe this table!'),
  4116. 'fields' => array(
  4117. 'contact_relationship_id' => array(
  4118. 'description' => t('TODO: please describe this field!'),
  4119. 'type' => 'serial',
  4120. 'not null' => TRUE,
  4121. ),
  4122. 'type_id' => array(
  4123. 'description' => t('TODO: please describe this field!'),
  4124. 'type' => 'int',
  4125. 'not null' => TRUE,
  4126. ),
  4127. 'subject_id' => array(
  4128. 'description' => t('TODO: please describe this field!'),
  4129. 'type' => 'int',
  4130. 'not null' => TRUE,
  4131. ),
  4132. 'object_id' => array(
  4133. 'description' => t('TODO: please describe this field!'),
  4134. 'type' => 'int',
  4135. 'not null' => TRUE,
  4136. ),
  4137. ),
  4138. 'primary key' => array('contact_relationship_id'),
  4139. 'unique keys' => array(
  4140. 'contact_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  4141. ),
  4142. 'indexes' => array(
  4143. 'contact_relationship_idx1' => array('type_id'),
  4144. 'contact_relationship_idx2' => array('subject_id'),
  4145. 'contact_relationship_idx3' => array('object_id'),
  4146. ),
  4147. );
  4148. $schema['control'] = array(
  4149. 'description' => t('TODO: please describe this table!'),
  4150. 'fields' => array(
  4151. 'control_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. 'assay_id' => array(
  4162. 'description' => t('TODO: please describe this field!'),
  4163. 'type' => 'int',
  4164. 'not null' => TRUE,
  4165. ),
  4166. 'tableinfo_id' => array(
  4167. 'description' => t('TODO: please describe this field!'),
  4168. 'type' => 'int',
  4169. 'not null' => TRUE,
  4170. ),
  4171. 'row_id' => array(
  4172. 'description' => t('TODO: please describe this field!'),
  4173. 'type' => 'int',
  4174. 'not null' => TRUE,
  4175. ),
  4176. 'name' => array(
  4177. 'description' => t('TODO: please describe this field!'),
  4178. 'type' => 'text',
  4179. 'not null' => FALSE,
  4180. ),
  4181. 'value' => array(
  4182. 'description' => t('TODO: please describe this field!'),
  4183. 'type' => 'text',
  4184. 'not null' => FALSE,
  4185. ),
  4186. 'rank' => array(
  4187. 'description' => t('TODO: please describe this field!'),
  4188. 'type' => 'int',
  4189. 'not null' => TRUE,
  4190. 'default' => 0,
  4191. ),
  4192. ),
  4193. 'primary key' => array('control_id'),
  4194. 'indexes' => array(
  4195. 'control_idx1' => array('type_id'),
  4196. 'control_idx2' => array('assay_id'),
  4197. 'control_idx3' => array('tableinfo_id'),
  4198. 'control_idx4' => array('row_id'),
  4199. ),
  4200. );
  4201. $schema['biomaterialprop'] = array(
  4202. 'description' => t('TODO: please describe this table!'),
  4203. 'fields' => array(
  4204. 'biomaterialprop_id' => array(
  4205. 'description' => t('TODO: please describe this field!'),
  4206. 'type' => 'serial',
  4207. 'not null' => TRUE,
  4208. ),
  4209. 'biomaterial_id' => array(
  4210. 'description' => t('TODO: please describe this field!'),
  4211. 'type' => 'int',
  4212. 'not null' => TRUE,
  4213. ),
  4214. 'type_id' => array(
  4215. 'description' => t('TODO: please describe this field!'),
  4216. 'type' => 'int',
  4217. 'not null' => TRUE,
  4218. ),
  4219. 'value' => array(
  4220. 'description' => t('TODO: please describe this field!'),
  4221. 'type' => 'text',
  4222. 'not null' => FALSE,
  4223. ),
  4224. 'rank' => array(
  4225. 'description' => t('TODO: please describe this field!'),
  4226. 'type' => 'int',
  4227. 'not null' => TRUE,
  4228. 'default' => 0,
  4229. ),
  4230. ),
  4231. 'primary key' => array('biomaterialprop_id'),
  4232. 'unique keys' => array(
  4233. 'biomaterialprop_c1' => array('biomaterial_id', 'type_id', 'rank')
  4234. ),
  4235. 'indexes' => array(
  4236. 'biomaterialprop_idx1' => array('biomaterial_id'),
  4237. 'biomaterialprop_idx2' => array('type_id'),
  4238. ),
  4239. );
  4240. $schema['biomaterial_treatment'] = array(
  4241. 'description' => t('TODO: please describe this table!'),
  4242. 'fields' => array(
  4243. 'biomaterial_treatment_id' => array(
  4244. 'description' => t('TODO: please describe this field!'),
  4245. 'type' => 'serial',
  4246. 'not null' => TRUE,
  4247. ),
  4248. 'biomaterial_id' => array(
  4249. 'description' => t('TODO: please describe this field!'),
  4250. 'type' => 'int',
  4251. 'not null' => TRUE,
  4252. ),
  4253. 'treatment_id' => array(
  4254. 'description' => t('TODO: please describe this field!'),
  4255. 'type' => 'int',
  4256. 'not null' => TRUE,
  4257. ),
  4258. 'unittype_id' => array(
  4259. 'description' => t('TODO: please describe this field!'),
  4260. 'type' => 'int',
  4261. 'not null' => FALSE,
  4262. ),
  4263. 'value' => array(
  4264. 'description' => t('TODO: please describe this field!'),
  4265. 'type' => 'float',
  4266. 'not null' => FALSE,
  4267. ),
  4268. 'rank' => array(
  4269. 'description' => t('TODO: please describe this field!'),
  4270. 'type' => 'int',
  4271. 'not null' => TRUE,
  4272. 'default' => 0,
  4273. ),
  4274. ),
  4275. 'primary key' => array('biomaterial_treatment_id'),
  4276. 'unique keys' => array(
  4277. 'biomaterial_treatment_c1' => array('biomaterial_id', 'treatment_id')
  4278. ),
  4279. 'indexes' => array(
  4280. 'biomaterial_treatment_idx1' => array('biomaterial_id'),
  4281. 'biomaterial_treatment_idx2' => array('treatment_id'),
  4282. 'biomaterial_treatment_idx3' => array('unittype_id'),
  4283. ),
  4284. );
  4285. $schema['acquisition_relationship'] = array(
  4286. 'description' => t('TODO: please describe this table!'),
  4287. 'fields' => array(
  4288. 'acquisition_relationship_id' => array(
  4289. 'description' => t('TODO: please describe this field!'),
  4290. 'type' => 'serial',
  4291. 'not null' => TRUE,
  4292. ),
  4293. 'subject_id' => array(
  4294. 'description' => t('TODO: please describe this field!'),
  4295. 'type' => 'int',
  4296. 'not null' => TRUE,
  4297. ),
  4298. 'type_id' => array(
  4299. 'description' => t('TODO: please describe this field!'),
  4300. 'type' => 'int',
  4301. 'not null' => TRUE,
  4302. ),
  4303. 'object_id' => array(
  4304. 'description' => t('TODO: please describe this field!'),
  4305. 'type' => 'int',
  4306. 'not null' => TRUE,
  4307. ),
  4308. 'value' => array(
  4309. 'description' => t('TODO: please describe this field!'),
  4310. 'type' => 'text',
  4311. 'not null' => FALSE,
  4312. ),
  4313. 'rank' => array(
  4314. 'description' => t('TODO: please describe this field!'),
  4315. 'type' => 'int',
  4316. 'not null' => TRUE,
  4317. 'default' => 0,
  4318. ),
  4319. ),
  4320. 'primary key' => array('acquisition_relationship_id'),
  4321. 'unique keys' => array(
  4322. 'acquisition_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  4323. ),
  4324. 'indexes' => array(
  4325. 'acquisition_relationship_idx1' => array('subject_id'),
  4326. 'acquisition_relationship_idx2' => array('type_id'),
  4327. 'acquisition_relationship_idx3' => array('object_id'),
  4328. ),
  4329. );
  4330. $schema['acquisition'] = array(
  4331. 'description' => t('TODO: please describe this table!'),
  4332. 'fields' => array(
  4333. 'acquisition_id' => array(
  4334. 'description' => t('TODO: please describe this field!'),
  4335. 'type' => 'serial',
  4336. 'not null' => TRUE,
  4337. ),
  4338. 'assay_id' => array(
  4339. 'description' => t('TODO: please describe this field!'),
  4340. 'type' => 'int',
  4341. 'not null' => TRUE,
  4342. ),
  4343. 'protocol_id' => array(
  4344. 'description' => t('TODO: please describe this field!'),
  4345. 'type' => 'int',
  4346. 'not null' => FALSE,
  4347. ),
  4348. 'channel_id' => array(
  4349. 'description' => t('TODO: please describe this field!'),
  4350. 'type' => 'int',
  4351. 'not null' => FALSE,
  4352. ),
  4353. 'acquisitiondate' => array(
  4354. 'description' => t('TODO: please describe this field!'),
  4355. 'type' => 'datetime',
  4356. 'not null' => FALSE,
  4357. 'default' => 'ow(',
  4358. ),
  4359. 'name' => array(
  4360. 'description' => t('TODO: please describe this field!'),
  4361. 'type' => 'text',
  4362. 'not null' => FALSE,
  4363. ),
  4364. 'uri' => array(
  4365. 'description' => t('TODO: please describe this field!'),
  4366. 'type' => 'text',
  4367. 'not null' => FALSE,
  4368. ),
  4369. ),
  4370. 'primary key' => array('acquisition_id'),
  4371. 'unique keys' => array(
  4372. 'acquisition_c1' => array('name')
  4373. ),
  4374. 'indexes' => array(
  4375. 'acquisition_idx1' => array('assay_id'),
  4376. 'acquisition_idx2' => array('protocol_id'),
  4377. 'acquisition_idx3' => array('channel_id'),
  4378. ),
  4379. );
  4380. $schema['acquisitionprop'] = array(
  4381. 'description' => t('TODO: please describe this table!'),
  4382. 'fields' => array(
  4383. 'acquisitionprop_id' => array(
  4384. 'description' => t('TODO: please describe this field!'),
  4385. 'type' => 'serial',
  4386. 'not null' => TRUE,
  4387. ),
  4388. 'acquisition_id' => array(
  4389. 'description' => t('TODO: please describe this field!'),
  4390. 'type' => 'int',
  4391. 'not null' => TRUE,
  4392. ),
  4393. 'type_id' => array(
  4394. 'description' => t('TODO: please describe this field!'),
  4395. 'type' => 'int',
  4396. 'not null' => TRUE,
  4397. ),
  4398. 'value' => array(
  4399. 'description' => t('TODO: please describe this field!'),
  4400. 'type' => 'text',
  4401. 'not null' => FALSE,
  4402. ),
  4403. 'rank' => array(
  4404. 'description' => t('TODO: please describe this field!'),
  4405. 'type' => 'int',
  4406. 'not null' => TRUE,
  4407. 'default' => 0,
  4408. ),
  4409. ),
  4410. 'primary key' => array('acquisitionprop_id'),
  4411. 'unique keys' => array(
  4412. 'acquisitionprop_c1' => array('acquisition_id', 'type_id', 'rank')
  4413. ),
  4414. 'indexes' => array(
  4415. 'acquisitionprop_idx1' => array('acquisition_id'),
  4416. 'acquisitionprop_idx2' => array('type_id'),
  4417. ),
  4418. );
  4419. $schema['all_feature_names'] = array(
  4420. 'description' => t('TODO: please describe this table!'),
  4421. 'fields' => array(
  4422. 'feature_id' => array(
  4423. 'description' => t('TODO: please describe this field!'),
  4424. 'type' => 'int',
  4425. 'not null' => FALSE,
  4426. ),
  4427. 'name' => array(
  4428. 'description' => t('TODO: please describe this field!'),
  4429. 'type' => 'varchar',
  4430. 'length' => '255',
  4431. 'not null' => FALSE,
  4432. ),
  4433. 'organism_id' => array(
  4434. 'description' => t('TODO: please describe this field!'),
  4435. 'type' => 'int',
  4436. 'not null' => FALSE,
  4437. ),
  4438. ),
  4439. );
  4440. $schema['analysis'] = array(
  4441. 'description' => t('TODO: please describe this table!'),
  4442. 'fields' => array(
  4443. 'analysis_id' => array(
  4444. 'description' => t('TODO: please describe this field!'),
  4445. 'type' => 'serial',
  4446. 'not null' => TRUE,
  4447. ),
  4448. 'name' => array(
  4449. 'description' => t('TODO: please describe this field!'),
  4450. 'type' => 'varchar',
  4451. 'length' => '255',
  4452. 'not null' => FALSE,
  4453. ),
  4454. 'description' => array(
  4455. 'description' => t('TODO: please describe this field!'),
  4456. 'type' => 'text',
  4457. 'not null' => FALSE,
  4458. ),
  4459. 'program' => array(
  4460. 'description' => t('TODO: please describe this field!'),
  4461. 'type' => 'varchar',
  4462. 'length' => '255',
  4463. 'not null' => TRUE,
  4464. ),
  4465. 'programversion' => array(
  4466. 'description' => t('TODO: please describe this field!'),
  4467. 'type' => 'varchar',
  4468. 'length' => '255',
  4469. 'not null' => TRUE,
  4470. ),
  4471. 'algorithm' => array(
  4472. 'description' => t('TODO: please describe this field!'),
  4473. 'type' => 'varchar',
  4474. 'length' => '255',
  4475. 'not null' => FALSE,
  4476. ),
  4477. 'sourcename' => array(
  4478. 'description' => t('TODO: please describe this field!'),
  4479. 'type' => 'varchar',
  4480. 'length' => '255',
  4481. 'not null' => FALSE,
  4482. ),
  4483. 'sourceversion' => array(
  4484. 'description' => t('TODO: please describe this field!'),
  4485. 'type' => 'varchar',
  4486. 'length' => '255',
  4487. 'not null' => FALSE,
  4488. ),
  4489. 'sourceuri' => array(
  4490. 'description' => t('TODO: please describe this field!'),
  4491. 'type' => 'text',
  4492. 'not null' => FALSE,
  4493. ),
  4494. 'timeexecuted' => array(
  4495. 'description' => t('TODO: please describe this field!'),
  4496. 'type' => 'datetime',
  4497. 'not null' => TRUE,
  4498. 'default' => 'ow(',
  4499. ),
  4500. ),
  4501. 'primary key' => array('analysis_id'),
  4502. 'unique keys' => array(
  4503. 'analysis_c1' => array('program', 'programversion', 'sourcename')
  4504. ),
  4505. );
  4506. $schema['analysisfeature'] = array(
  4507. 'description' => t('TODO: please describe this table!'),
  4508. 'fields' => array(
  4509. 'analysisfeature_id' => array(
  4510. 'description' => t('TODO: please describe this field!'),
  4511. 'type' => 'serial',
  4512. 'not null' => TRUE,
  4513. ),
  4514. 'feature_id' => array(
  4515. 'description' => t('TODO: please describe this field!'),
  4516. 'type' => 'int',
  4517. 'not null' => TRUE,
  4518. ),
  4519. 'analysis_id' => array(
  4520. 'description' => t('TODO: please describe this field!'),
  4521. 'type' => 'int',
  4522. 'not null' => TRUE,
  4523. ),
  4524. 'rawscore' => array(
  4525. 'description' => t('TODO: please describe this field!'),
  4526. 'type' => 'float',
  4527. 'size' => 'big',
  4528. 'not null' => FALSE,
  4529. ),
  4530. 'normscore' => array(
  4531. 'description' => t('TODO: please describe this field!'),
  4532. 'type' => 'float',
  4533. 'size' => 'big',
  4534. 'not null' => FALSE,
  4535. ),
  4536. 'significance' => array(
  4537. 'description' => t('TODO: please describe this field!'),
  4538. 'type' => 'float',
  4539. 'size' => 'big',
  4540. 'not null' => FALSE,
  4541. ),
  4542. 'identity' => array(
  4543. 'description' => t('TODO: please describe this field!'),
  4544. 'type' => 'float',
  4545. 'size' => 'big',
  4546. 'not null' => FALSE,
  4547. ),
  4548. ),
  4549. 'primary key' => array('analysisfeature_id'),
  4550. 'unique keys' => array(
  4551. 'analysisfeature_c1' => array('feature_id', 'analysis_id')
  4552. ),
  4553. 'indexes' => array(
  4554. 'analysisfeature_idx1' => array('feature_id'),
  4555. 'analysisfeature_idx2' => array('analysis_id'),
  4556. ),
  4557. );
  4558. $schema['analysisfeatureprop'] = array(
  4559. 'description' => t('TODO: please describe this table!'),
  4560. 'fields' => array(
  4561. 'analysisfeatureprop_id' => array(
  4562. 'description' => t('TODO: please describe this field!'),
  4563. 'type' => 'serial',
  4564. 'not null' => TRUE,
  4565. ),
  4566. 'analysisfeature_id' => array(
  4567. 'description' => t('TODO: please describe this field!'),
  4568. 'type' => 'int',
  4569. 'not null' => TRUE,
  4570. ),
  4571. 'type_id' => array(
  4572. 'description' => t('TODO: please describe this field!'),
  4573. 'type' => 'int',
  4574. 'not null' => TRUE,
  4575. ),
  4576. 'value' => array(
  4577. 'description' => t('TODO: please describe this field!'),
  4578. 'type' => 'text',
  4579. 'not null' => FALSE,
  4580. ),
  4581. 'rank' => array(
  4582. 'description' => t('TODO: please describe this field!'),
  4583. 'type' => 'int',
  4584. 'not null' => TRUE,
  4585. ),
  4586. ),
  4587. 'primary key' => array('analysisfeatureprop_id'),
  4588. 'unique keys' => array(
  4589. 'analysisfeature_id_type_id_rank' => array('analysisfeature_id', 'type_id', 'rank')
  4590. ),
  4591. );
  4592. $schema['assayprop'] = array(
  4593. 'description' => t('TODO: please describe this table!'),
  4594. 'fields' => array(
  4595. 'assayprop_id' => array(
  4596. 'description' => t('TODO: please describe this field!'),
  4597. 'type' => 'serial',
  4598. 'not null' => TRUE,
  4599. ),
  4600. 'assay_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. 'default' => 0,
  4620. ),
  4621. ),
  4622. 'primary key' => array('assayprop_id'),
  4623. 'unique keys' => array(
  4624. 'assayprop_c1' => array('assay_id', 'type_id', 'rank')
  4625. ),
  4626. 'indexes' => array(
  4627. 'assayprop_idx1' => array('assay_id'),
  4628. 'assayprop_idx2' => array('type_id'),
  4629. ),
  4630. );
  4631. $schema['biomaterial'] = array(
  4632. 'description' => t('TODO: please describe this table!'),
  4633. 'fields' => array(
  4634. 'biomaterial_id' => array(
  4635. 'description' => t('TODO: please describe this field!'),
  4636. 'type' => 'serial',
  4637. 'not null' => TRUE,
  4638. ),
  4639. 'taxon_id' => array(
  4640. 'description' => t('TODO: please describe this field!'),
  4641. 'type' => 'int',
  4642. 'not null' => FALSE,
  4643. ),
  4644. 'biosourceprovider_id' => array(
  4645. 'description' => t('TODO: please describe this field!'),
  4646. 'type' => 'int',
  4647. 'not null' => FALSE,
  4648. ),
  4649. 'dbxref_id' => array(
  4650. 'description' => t('TODO: please describe this field!'),
  4651. 'type' => 'int',
  4652. 'not null' => FALSE,
  4653. ),
  4654. 'name' => array(
  4655. 'description' => t('TODO: please describe this field!'),
  4656. 'type' => 'text',
  4657. 'not null' => FALSE,
  4658. ),
  4659. 'description' => array(
  4660. 'description' => t('TODO: please describe this field!'),
  4661. 'type' => 'text',
  4662. 'not null' => FALSE,
  4663. ),
  4664. ),
  4665. 'primary key' => array('biomaterial_id'),
  4666. 'unique keys' => array(
  4667. 'biomaterial_c1' => array('name')
  4668. ),
  4669. 'indexes' => array(
  4670. 'biomaterial_idx1' => array('taxon_id'),
  4671. 'biomaterial_idx2' => array('biosourceprovider_id'),
  4672. 'biomaterial_idx3' => array('dbxref_id'),
  4673. ),
  4674. );
  4675. $schema['biomaterial_dbxref'] = array(
  4676. 'description' => t('TODO: please describe this table!'),
  4677. 'fields' => array(
  4678. 'biomaterial_dbxref_id' => array(
  4679. 'description' => t('TODO: please describe this field!'),
  4680. 'type' => 'serial',
  4681. 'not null' => TRUE,
  4682. ),
  4683. 'biomaterial_id' => array(
  4684. 'description' => t('TODO: please describe this field!'),
  4685. 'type' => 'int',
  4686. 'not null' => TRUE,
  4687. ),
  4688. 'dbxref_id' => array(
  4689. 'description' => t('TODO: please describe this field!'),
  4690. 'type' => 'int',
  4691. 'not null' => TRUE,
  4692. ),
  4693. ),
  4694. 'primary key' => array('biomaterial_dbxref_id'),
  4695. 'unique keys' => array(
  4696. 'biomaterial_dbxref_c1' => array('biomaterial_id', 'dbxref_id')
  4697. ),
  4698. 'indexes' => array(
  4699. 'biomaterial_dbxref_idx1' => array('biomaterial_id'),
  4700. 'biomaterial_dbxref_idx2' => array('dbxref_id'),
  4701. ),
  4702. );
  4703. $schema['biomaterial_relationship'] = array(
  4704. 'description' => t('TODO: please describe this table!'),
  4705. 'fields' => array(
  4706. 'biomaterial_relationship_id' => array(
  4707. 'description' => t('TODO: please describe this field!'),
  4708. 'type' => 'serial',
  4709. 'not null' => TRUE,
  4710. ),
  4711. 'subject_id' => array(
  4712. 'description' => t('TODO: please describe this field!'),
  4713. 'type' => 'int',
  4714. 'not null' => TRUE,
  4715. ),
  4716. 'type_id' => array(
  4717. 'description' => t('TODO: please describe this field!'),
  4718. 'type' => 'int',
  4719. 'not null' => TRUE,
  4720. ),
  4721. 'object_id' => array(
  4722. 'description' => t('TODO: please describe this field!'),
  4723. 'type' => 'int',
  4724. 'not null' => TRUE,
  4725. ),
  4726. ),
  4727. 'primary key' => array('biomaterial_relationship_id'),
  4728. 'unique keys' => array(
  4729. 'biomaterial_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  4730. ),
  4731. 'indexes' => array(
  4732. 'biomaterial_relationship_idx1' => array('subject_id'),
  4733. 'biomaterial_relationship_idx2' => array('object_id'),
  4734. 'biomaterial_relationship_idx3' => array('type_id'),
  4735. ),
  4736. );
  4737. $schema['assay_project'] = array(
  4738. 'description' => t('TODO: please describe this table!'),
  4739. 'fields' => array(
  4740. 'assay_project_id' => array(
  4741. 'description' => t('TODO: please describe this field!'),
  4742. 'type' => 'serial',
  4743. 'not null' => TRUE,
  4744. ),
  4745. 'assay_id' => array(
  4746. 'description' => t('TODO: please describe this field!'),
  4747. 'type' => 'int',
  4748. 'not null' => TRUE,
  4749. ),
  4750. 'project_id' => array(
  4751. 'description' => t('TODO: please describe this field!'),
  4752. 'type' => 'int',
  4753. 'not null' => TRUE,
  4754. ),
  4755. ),
  4756. 'primary key' => array('assay_project_id'),
  4757. 'unique keys' => array(
  4758. 'assay_project_c1' => array('assay_id', 'project_id')
  4759. ),
  4760. 'indexes' => array(
  4761. 'assay_project_idx1' => array('assay_id'),
  4762. 'assay_project_idx2' => array('project_id'),
  4763. ),
  4764. );
  4765. $schema['assay_biomaterial'] = array(
  4766. 'description' => t('TODO: please describe this table!'),
  4767. 'fields' => array(
  4768. 'assay_biomaterial_id' => array(
  4769. 'description' => t('TODO: please describe this field!'),
  4770. 'type' => 'serial',
  4771. 'not null' => TRUE,
  4772. ),
  4773. 'assay_id' => array(
  4774. 'description' => t('TODO: please describe this field!'),
  4775. 'type' => 'int',
  4776. 'not null' => TRUE,
  4777. ),
  4778. 'biomaterial_id' => array(
  4779. 'description' => t('TODO: please describe this field!'),
  4780. 'type' => 'int',
  4781. 'not null' => TRUE,
  4782. ),
  4783. 'channel_id' => array(
  4784. 'description' => t('TODO: please describe this field!'),
  4785. 'type' => 'int',
  4786. 'not null' => FALSE,
  4787. ),
  4788. 'rank' => array(
  4789. 'description' => t('TODO: please describe this field!'),
  4790. 'type' => 'int',
  4791. 'not null' => TRUE,
  4792. 'default' => 0,
  4793. ),
  4794. ),
  4795. 'primary key' => array('assay_biomaterial_id'),
  4796. 'unique keys' => array(
  4797. 'assay_biomaterial_c1' => array('assay_id', 'biomaterial_id', 'channel_id', 'rank')
  4798. ),
  4799. 'indexes' => array(
  4800. 'assay_biomaterial_idx1' => array('assay_id'),
  4801. 'assay_biomaterial_idx2' => array('biomaterial_id'),
  4802. 'assay_biomaterial_idx3' => array('channel_id'),
  4803. ),
  4804. );
  4805. $schema['analysisprop'] = array(
  4806. 'description' => t('TODO: please describe this table!'),
  4807. 'fields' => array(
  4808. 'analysisprop_id' => array(
  4809. 'description' => t('TODO: please describe this field!'),
  4810. 'type' => 'serial',
  4811. 'not null' => TRUE,
  4812. ),
  4813. 'analysis_id' => array(
  4814. 'description' => t('TODO: please describe this field!'),
  4815. 'type' => 'int',
  4816. 'not null' => TRUE,
  4817. ),
  4818. 'type_id' => array(
  4819. 'description' => t('TODO: please describe this field!'),
  4820. 'type' => 'int',
  4821. 'not null' => TRUE,
  4822. ),
  4823. 'value' => array(
  4824. 'description' => t('TODO: please describe this field!'),
  4825. 'type' => 'text',
  4826. 'not null' => FALSE,
  4827. ),
  4828. 'rank' => array(
  4829. 'description' => t('TODO: please describe this field!'),
  4830. 'type' => 'int',
  4831. 'not null' => TRUE,
  4832. 'default' => 0,
  4833. ),
  4834. ),
  4835. 'primary key' => array('analysisprop_id'),
  4836. 'unique keys' => array(
  4837. 'analysisprop_c1' => array('analysis_id', 'type_id', 'rank')
  4838. ),
  4839. 'indexes' => array(
  4840. 'analysisprop_idx1' => array('analysis_id'),
  4841. 'analysisprop_idx2' => array('type_id'),
  4842. ),
  4843. );
  4844. $schema['arraydesign'] = array(
  4845. 'description' => t('TODO: please describe this table!'),
  4846. 'fields' => array(
  4847. 'arraydesign_id' => array(
  4848. 'description' => t('TODO: please describe this field!'),
  4849. 'type' => 'serial',
  4850. 'not null' => TRUE,
  4851. ),
  4852. 'manufacturer_id' => array(
  4853. 'description' => t('TODO: please describe this field!'),
  4854. 'type' => 'int',
  4855. 'not null' => TRUE,
  4856. ),
  4857. 'platformtype_id' => array(
  4858. 'description' => t('TODO: please describe this field!'),
  4859. 'type' => 'int',
  4860. 'not null' => TRUE,
  4861. ),
  4862. 'substratetype_id' => array(
  4863. 'description' => t('TODO: please describe this field!'),
  4864. 'type' => 'int',
  4865. 'not null' => FALSE,
  4866. ),
  4867. 'protocol_id' => array(
  4868. 'description' => t('TODO: please describe this field!'),
  4869. 'type' => 'int',
  4870. 'not null' => FALSE,
  4871. ),
  4872. 'dbxref_id' => array(
  4873. 'description' => t('TODO: please describe this field!'),
  4874. 'type' => 'int',
  4875. 'not null' => FALSE,
  4876. ),
  4877. 'name' => array(
  4878. 'description' => t('TODO: please describe this field!'),
  4879. 'type' => 'text',
  4880. 'not null' => TRUE,
  4881. ),
  4882. 'version' => array(
  4883. 'description' => t('TODO: please describe this field!'),
  4884. 'type' => 'text',
  4885. 'not null' => FALSE,
  4886. ),
  4887. 'description' => array(
  4888. 'description' => t('TODO: please describe this field!'),
  4889. 'type' => 'text',
  4890. 'not null' => FALSE,
  4891. ),
  4892. 'array_dimensions' => array(
  4893. 'description' => t('TODO: please describe this field!'),
  4894. 'type' => 'text',
  4895. 'not null' => FALSE,
  4896. ),
  4897. 'element_dimensions' => array(
  4898. 'description' => t('TODO: please describe this field!'),
  4899. 'type' => 'text',
  4900. 'not null' => FALSE,
  4901. ),
  4902. 'num_of_elements' => array(
  4903. 'description' => t('TODO: please describe this field!'),
  4904. 'type' => 'int',
  4905. 'not null' => FALSE,
  4906. ),
  4907. 'num_array_columns' => array(
  4908. 'description' => t('TODO: please describe this field!'),
  4909. 'type' => 'int',
  4910. 'not null' => FALSE,
  4911. ),
  4912. 'num_array_rows' => array(
  4913. 'description' => t('TODO: please describe this field!'),
  4914. 'type' => 'int',
  4915. 'not null' => FALSE,
  4916. ),
  4917. 'num_grid_columns' => array(
  4918. 'description' => t('TODO: please describe this field!'),
  4919. 'type' => 'int',
  4920. 'not null' => FALSE,
  4921. ),
  4922. 'num_grid_rows' => array(
  4923. 'description' => t('TODO: please describe this field!'),
  4924. 'type' => 'int',
  4925. 'not null' => FALSE,
  4926. ),
  4927. 'num_sub_columns' => array(
  4928. 'description' => t('TODO: please describe this field!'),
  4929. 'type' => 'int',
  4930. 'not null' => FALSE,
  4931. ),
  4932. 'num_sub_rows' => array(
  4933. 'description' => t('TODO: please describe this field!'),
  4934. 'type' => 'int',
  4935. 'not null' => FALSE,
  4936. ),
  4937. ),
  4938. 'primary key' => array('arraydesign_id'),
  4939. 'unique keys' => array(
  4940. 'arraydesign_c1' => array('name')
  4941. ),
  4942. 'indexes' => array(
  4943. 'arraydesign_idx1' => array('manufacturer_id'),
  4944. 'arraydesign_idx2' => array('platformtype_id'),
  4945. 'arraydesign_idx3' => array('substratetype_id'),
  4946. 'arraydesign_idx4' => array('protocol_id'),
  4947. 'arraydesign_idx5' => array('dbxref_id'),
  4948. ),
  4949. );
  4950. $schema['arraydesignprop'] = array(
  4951. 'description' => t('TODO: please describe this table!'),
  4952. 'fields' => array(
  4953. 'arraydesignprop_id' => array(
  4954. 'description' => t('TODO: please describe this field!'),
  4955. 'type' => 'serial',
  4956. 'not null' => TRUE,
  4957. ),
  4958. 'arraydesign_id' => array(
  4959. 'description' => t('TODO: please describe this field!'),
  4960. 'type' => 'int',
  4961. 'not null' => TRUE,
  4962. ),
  4963. 'type_id' => array(
  4964. 'description' => t('TODO: please describe this field!'),
  4965. 'type' => 'int',
  4966. 'not null' => TRUE,
  4967. ),
  4968. 'value' => array(
  4969. 'description' => t('TODO: please describe this field!'),
  4970. 'type' => 'text',
  4971. 'not null' => FALSE,
  4972. ),
  4973. 'rank' => array(
  4974. 'description' => t('TODO: please describe this field!'),
  4975. 'type' => 'int',
  4976. 'not null' => TRUE,
  4977. 'default' => 0,
  4978. ),
  4979. ),
  4980. 'primary key' => array('arraydesignprop_id'),
  4981. 'unique keys' => array(
  4982. 'arraydesignprop_c1' => array('arraydesign_id', 'type_id', 'rank')
  4983. ),
  4984. 'indexes' => array(
  4985. 'arraydesignprop_idx1' => array('arraydesign_id'),
  4986. 'arraydesignprop_idx2' => array('type_id'),
  4987. ),
  4988. );
  4989. $schema['assay'] = array(
  4990. 'description' => t('TODO: please describe this table!'),
  4991. 'fields' => array(
  4992. 'assay_id' => array(
  4993. 'description' => t('TODO: please describe this field!'),
  4994. 'type' => 'serial',
  4995. 'not null' => TRUE,
  4996. ),
  4997. 'arraydesign_id' => array(
  4998. 'description' => t('TODO: please describe this field!'),
  4999. 'type' => 'int',
  5000. 'not null' => TRUE,
  5001. ),
  5002. 'protocol_id' => array(
  5003. 'description' => t('TODO: please describe this field!'),
  5004. 'type' => 'int',
  5005. 'not null' => FALSE,
  5006. ),
  5007. 'assaydate' => array(
  5008. 'description' => t('TODO: please describe this field!'),
  5009. 'type' => 'datetime',
  5010. 'not null' => FALSE,
  5011. 'default' => 'ow(',
  5012. ),
  5013. 'arrayidentifier' => array(
  5014. 'description' => t('TODO: please describe this field!'),
  5015. 'type' => 'text',
  5016. 'not null' => FALSE,
  5017. ),
  5018. 'arraybatchidentifier' => array(
  5019. 'description' => t('TODO: please describe this field!'),
  5020. 'type' => 'text',
  5021. 'not null' => FALSE,
  5022. ),
  5023. 'operator_id' => array(
  5024. 'description' => t('TODO: please describe this field!'),
  5025. 'type' => 'int',
  5026. 'not null' => TRUE,
  5027. ),
  5028. 'dbxref_id' => array(
  5029. 'description' => t('TODO: please describe this field!'),
  5030. 'type' => 'int',
  5031. 'not null' => FALSE,
  5032. ),
  5033. 'name' => array(
  5034. 'description' => t('TODO: please describe this field!'),
  5035. 'type' => 'text',
  5036. 'not null' => FALSE,
  5037. ),
  5038. 'description' => array(
  5039. 'description' => t('TODO: please describe this field!'),
  5040. 'type' => 'text',
  5041. 'not null' => FALSE,
  5042. ),
  5043. ),
  5044. 'primary key' => array('assay_id'),
  5045. 'unique keys' => array(
  5046. 'assay_c1' => array('name')
  5047. ),
  5048. 'indexes' => array(
  5049. 'assay_idx1' => array('arraydesign_id'),
  5050. 'assay_idx2' => array('protocol_id'),
  5051. 'assay_idx3' => array('operator_id'),
  5052. 'assay_idx4' => array('dbxref_id'),
  5053. ),
  5054. );
  5055. $schema['cv_root'] = array(
  5056. 'description' => t('TODO: please describe this table!'),
  5057. 'fields' => array(
  5058. 'cv_id' => array(
  5059. 'description' => t('TODO: please describe this field!'),
  5060. 'type' => 'int',
  5061. 'not null' => FALSE,
  5062. ),
  5063. 'root_cvterm_id' => array(
  5064. 'description' => t('TODO: please describe this field!'),
  5065. 'type' => 'int',
  5066. 'not null' => FALSE,
  5067. ),
  5068. ),
  5069. );
  5070. $schema['cvterm'] = array(
  5071. 'description' => t('TODO: please describe this table!'),
  5072. 'fields' => array(
  5073. 'cvterm_id' => array(
  5074. 'description' => t('TODO: please describe this field!'),
  5075. 'type' => 'serial',
  5076. 'not null' => TRUE,
  5077. ),
  5078. 'cv_id' => array(
  5079. 'description' => t('TODO: please describe this field!'),
  5080. 'type' => 'int',
  5081. 'not null' => TRUE,
  5082. ),
  5083. 'name' => array(
  5084. 'description' => t('TODO: please describe this field!'),
  5085. 'type' => 'varchar',
  5086. 'length' => '1024',
  5087. 'not null' => TRUE,
  5088. ),
  5089. 'definition' => array(
  5090. 'description' => t('TODO: please describe this field!'),
  5091. 'type' => 'text',
  5092. 'not null' => FALSE,
  5093. ),
  5094. 'dbxref_id' => array(
  5095. 'description' => t('TODO: please describe this field!'),
  5096. 'type' => 'int',
  5097. 'not null' => TRUE,
  5098. ),
  5099. 'is_obsolete' => array(
  5100. 'description' => t('TODO: please describe this field!'),
  5101. 'type' => 'int',
  5102. 'not null' => TRUE,
  5103. 'default' => 0,
  5104. ),
  5105. 'is_relationshiptype' => array(
  5106. 'description' => t('TODO: please describe this field!'),
  5107. 'type' => 'int',
  5108. 'not null' => TRUE,
  5109. 'default' => 0,
  5110. ),
  5111. ),
  5112. 'primary key' => array('cvterm_id'),
  5113. 'unique keys' => array(
  5114. 'cvterm_c1' => array('name', 'cv_id', 'is_obsolete'),
  5115. 'cvterm_c2' => array('dbxref_id')
  5116. ),
  5117. 'indexes' => array(
  5118. 'cvterm_idx1' => array('cv_id'),
  5119. 'cvterm_idx2' => array('name'),
  5120. 'cvterm_idx3' => array('dbxref_id'),
  5121. ),
  5122. 'foreign keys' => array(
  5123. 'cv' => array(
  5124. 'table' => 'cv',
  5125. 'columns' => array('cv_id' => 'cv_id'),
  5126. ),
  5127. 'dbxref' => array(
  5128. 'table' => 'dbxref',
  5129. 'columns' => array('dbxref_id' => 'dbxref_id'),
  5130. ),
  5131. ),
  5132. );
  5133. $schema['feature_dbxref'] = array(
  5134. 'description' => t('TODO: please describe this table!'),
  5135. 'fields' => array(
  5136. 'feature_dbxref_id' => array(
  5137. 'description' => t('TODO: please describe this field!'),
  5138. 'type' => 'serial',
  5139. 'not null' => TRUE,
  5140. ),
  5141. 'feature_id' => array(
  5142. 'description' => t('TODO: please describe this field!'),
  5143. 'type' => 'int',
  5144. 'not null' => TRUE,
  5145. ),
  5146. 'dbxref_id' => array(
  5147. 'description' => t('TODO: please describe this field!'),
  5148. 'type' => 'int',
  5149. 'not null' => TRUE,
  5150. ),
  5151. 'is_current' => array(
  5152. 'description' => t('TODO: please describe this field!'),
  5153. 'type' => 'boolean',
  5154. 'not null' => TRUE,
  5155. 'default' => 'ru',
  5156. ),
  5157. ),
  5158. 'primary key' => array('feature_dbxref_id'),
  5159. 'unique keys' => array(
  5160. 'feature_dbxref_c1' => array('feature_id', 'dbxref_id')
  5161. ),
  5162. 'indexes' => array(
  5163. 'feature_dbxref_idx1' => array('feature_id'),
  5164. 'feature_dbxref_idx2' => array('dbxref_id'),
  5165. ),
  5166. );
  5167. $schema['feature_cvtermprop'] = array(
  5168. 'description' => t('TODO: please describe this table!'),
  5169. 'fields' => array(
  5170. 'feature_cvtermprop_id' => array(
  5171. 'description' => t('TODO: please describe this field!'),
  5172. 'type' => 'serial',
  5173. 'not null' => TRUE,
  5174. ),
  5175. 'feature_cvterm_id' => array(
  5176. 'description' => t('TODO: please describe this field!'),
  5177. 'type' => 'int',
  5178. 'not null' => TRUE,
  5179. ),
  5180. 'type_id' => array(
  5181. 'description' => t('TODO: please describe this field!'),
  5182. 'type' => 'int',
  5183. 'not null' => TRUE,
  5184. ),
  5185. 'value' => array(
  5186. 'description' => t('TODO: please describe this field!'),
  5187. 'type' => 'text',
  5188. 'not null' => FALSE,
  5189. ),
  5190. 'rank' => array(
  5191. 'description' => t('TODO: please describe this field!'),
  5192. 'type' => 'int',
  5193. 'not null' => TRUE,
  5194. 'default' => 0,
  5195. ),
  5196. ),
  5197. 'primary key' => array('feature_cvtermprop_id'),
  5198. 'unique keys' => array(
  5199. 'feature_cvtermprop_c1' => array('feature_cvterm_id', 'type_id', 'rank')
  5200. ),
  5201. 'indexes' => array(
  5202. 'feature_cvtermprop_idx1' => array('feature_cvterm_id'),
  5203. 'feature_cvtermprop_idx2' => array('type_id'),
  5204. ),
  5205. );
  5206. $schema['feature_difference'] = array(
  5207. 'description' => t('TODO: please describe this table!'),
  5208. 'fields' => array(
  5209. 'subject_id' => array(
  5210. 'description' => t('TODO: please describe this field!'),
  5211. 'type' => 'int',
  5212. 'not null' => FALSE,
  5213. ),
  5214. 'object_id' => array(
  5215. 'description' => t('TODO: please describe this field!'),
  5216. 'type' => 'int',
  5217. 'not null' => FALSE,
  5218. ),
  5219. 'srcfeature_id' => array(
  5220. 'description' => t('TODO: please describe this field!'),
  5221. 'type' => 'int',
  5222. 'size' => 'small',
  5223. 'not null' => FALSE,
  5224. ),
  5225. 'fmin' => array(
  5226. 'description' => t('TODO: please describe this field!'),
  5227. 'type' => 'int',
  5228. 'not null' => FALSE,
  5229. ),
  5230. 'fmax' => array(
  5231. 'description' => t('TODO: please describe this field!'),
  5232. 'type' => 'int',
  5233. 'not null' => FALSE,
  5234. ),
  5235. 'strand' => array(
  5236. 'description' => t('TODO: please describe this field!'),
  5237. 'type' => 'int',
  5238. 'not null' => FALSE,
  5239. ),
  5240. ),
  5241. );
  5242. $schema['feature_disjoint'] = array(
  5243. 'description' => t('TODO: please describe this table!'),
  5244. 'fields' => array(
  5245. 'subject_id' => array(
  5246. 'description' => t('TODO: please describe this field!'),
  5247. 'type' => 'int',
  5248. 'not null' => FALSE,
  5249. ),
  5250. 'object_id' => array(
  5251. 'description' => t('TODO: please describe this field!'),
  5252. 'type' => 'int',
  5253. 'not null' => FALSE,
  5254. ),
  5255. ),
  5256. );
  5257. $schema['feature_distance'] = array(
  5258. 'description' => t('TODO: please describe this table!'),
  5259. 'fields' => array(
  5260. 'subject_id' => array(
  5261. 'description' => t('TODO: please describe this field!'),
  5262. 'type' => 'int',
  5263. 'not null' => FALSE,
  5264. ),
  5265. 'object_id' => array(
  5266. 'description' => t('TODO: please describe this field!'),
  5267. 'type' => 'int',
  5268. 'not null' => FALSE,
  5269. ),
  5270. 'srcfeature_id' => array(
  5271. 'description' => t('TODO: please describe this field!'),
  5272. 'type' => 'int',
  5273. 'not null' => FALSE,
  5274. ),
  5275. 'subject_strand' => array(
  5276. 'description' => t('TODO: please describe this field!'),
  5277. 'type' => 'int',
  5278. 'size' => 'small',
  5279. 'not null' => FALSE,
  5280. ),
  5281. 'object_strand' => array(
  5282. 'description' => t('TODO: please describe this field!'),
  5283. 'type' => 'int',
  5284. 'size' => 'small',
  5285. 'not null' => FALSE,
  5286. ),
  5287. 'distance' => array(
  5288. 'description' => t('TODO: please describe this field!'),
  5289. 'type' => 'int',
  5290. 'not null' => FALSE,
  5291. ),
  5292. ),
  5293. );
  5294. $schema['feature_cvterm_pub'] = array(
  5295. 'description' => t('TODO: please describe this table!'),
  5296. 'fields' => array(
  5297. 'feature_cvterm_pub_id' => array(
  5298. 'description' => t('TODO: please describe this field!'),
  5299. 'type' => 'serial',
  5300. 'not null' => TRUE,
  5301. ),
  5302. 'feature_cvterm_id' => array(
  5303. 'description' => t('TODO: please describe this field!'),
  5304. 'type' => 'int',
  5305. 'not null' => TRUE,
  5306. ),
  5307. 'pub_id' => array(
  5308. 'description' => t('TODO: please describe this field!'),
  5309. 'type' => 'int',
  5310. 'not null' => TRUE,
  5311. ),
  5312. ),
  5313. 'primary key' => array('feature_cvterm_pub_id'),
  5314. 'unique keys' => array(
  5315. 'feature_cvterm_pub_c1' => array('feature_cvterm_id', 'pub_id')
  5316. ),
  5317. 'indexes' => array(
  5318. 'feature_cvterm_pub_idx1' => array('feature_cvterm_id'),
  5319. 'feature_cvterm_pub_idx2' => array('pub_id'),
  5320. ),
  5321. );
  5322. $schema['feature_cvterm_dbxref'] = array(
  5323. 'description' => t('TODO: please describe this table!'),
  5324. 'fields' => array(
  5325. 'feature_cvterm_dbxref_id' => array(
  5326. 'description' => t('TODO: please describe this field!'),
  5327. 'type' => 'serial',
  5328. 'not null' => TRUE,
  5329. ),
  5330. 'feature_cvterm_id' => array(
  5331. 'description' => t('TODO: please describe this field!'),
  5332. 'type' => 'int',
  5333. 'not null' => TRUE,
  5334. ),
  5335. 'dbxref_id' => array(
  5336. 'description' => t('TODO: please describe this field!'),
  5337. 'type' => 'int',
  5338. 'not null' => TRUE,
  5339. ),
  5340. ),
  5341. 'primary key' => array('feature_cvterm_dbxref_id'),
  5342. 'unique keys' => array(
  5343. 'feature_cvterm_dbxref_c1' => array('feature_cvterm_id', 'dbxref_id')
  5344. ),
  5345. 'indexes' => array(
  5346. 'feature_cvterm_dbxref_idx1' => array('feature_cvterm_id'),
  5347. 'feature_cvterm_dbxref_idx2' => array('dbxref_id'),
  5348. ),
  5349. );
  5350. $schema['f_type'] = array(
  5351. 'description' => t('TODO: please describe this table!'),
  5352. 'fields' => array(
  5353. 'feature_id' => array(
  5354. 'description' => t('TODO: please describe this field!'),
  5355. 'type' => 'int',
  5356. 'not null' => FALSE,
  5357. ),
  5358. 'name' => array(
  5359. 'description' => t('TODO: please describe this field!'),
  5360. 'type' => 'varchar',
  5361. 'length' => '255',
  5362. 'not null' => FALSE,
  5363. ),
  5364. 'dbxref_id' => array(
  5365. 'description' => t('TODO: please describe this field!'),
  5366. 'type' => 'int',
  5367. 'not null' => FALSE,
  5368. ),
  5369. 'type' => array(
  5370. 'description' => t('TODO: please describe this field!'),
  5371. 'type' => 'varchar',
  5372. 'length' => '1024',
  5373. 'not null' => FALSE,
  5374. ),
  5375. 'residues' => array(
  5376. 'description' => t('TODO: please describe this field!'),
  5377. 'type' => 'text',
  5378. 'not null' => FALSE,
  5379. ),
  5380. 'seqlen' => array(
  5381. 'description' => t('TODO: please describe this field!'),
  5382. 'type' => 'int',
  5383. 'not null' => FALSE,
  5384. ),
  5385. 'md5checksum' => array(
  5386. 'description' => t('TODO: please describe this field!'),
  5387. 'type' => 'char',
  5388. 'length' => '32',
  5389. 'not null' => FALSE,
  5390. ),
  5391. 'type_id' => array(
  5392. 'description' => t('TODO: please describe this field!'),
  5393. 'type' => 'int',
  5394. 'not null' => FALSE,
  5395. ),
  5396. 'timeaccessioned' => array(
  5397. 'description' => t('TODO: please describe this field!'),
  5398. 'type' => 'datetime',
  5399. 'not null' => FALSE,
  5400. ),
  5401. 'timelastmodified' => array(
  5402. 'description' => t('TODO: please describe this field!'),
  5403. 'type' => 'datetime',
  5404. 'not null' => FALSE,
  5405. ),
  5406. ),
  5407. );
  5408. $schema['feature'] = array(
  5409. 'description' => t('TODO: please describe this table!'),
  5410. 'fields' => array(
  5411. 'feature_id' => array(
  5412. 'description' => t('TODO: please describe this field!'),
  5413. 'type' => 'serial',
  5414. 'not null' => TRUE,
  5415. ),
  5416. 'dbxref_id' => array(
  5417. 'description' => t('TODO: please describe this field!'),
  5418. 'type' => 'int',
  5419. 'not null' => FALSE,
  5420. ),
  5421. 'organism_id' => array(
  5422. 'description' => t('TODO: please describe this field!'),
  5423. 'type' => 'int',
  5424. 'not null' => TRUE,
  5425. ),
  5426. 'name' => array(
  5427. 'description' => t('TODO: please describe this field!'),
  5428. 'type' => 'varchar',
  5429. 'length' => '255',
  5430. 'not null' => FALSE,
  5431. ),
  5432. 'uniquename' => array(
  5433. 'description' => t('TODO: please describe this field!'),
  5434. 'type' => 'text',
  5435. 'not null' => TRUE,
  5436. ),
  5437. 'residues' => array(
  5438. 'description' => t('TODO: please describe this field!'),
  5439. 'type' => 'text',
  5440. 'not null' => FALSE,
  5441. ),
  5442. 'seqlen' => array(
  5443. 'description' => t('TODO: please describe this field!'),
  5444. 'type' => 'int',
  5445. 'not null' => FALSE,
  5446. ),
  5447. 'md5checksum' => array(
  5448. 'description' => t('TODO: please describe this field!'),
  5449. 'type' => 'char',
  5450. 'length' => '32',
  5451. 'not null' => FALSE,
  5452. ),
  5453. 'type_id' => array(
  5454. 'description' => t('TODO: please describe this field!'),
  5455. 'type' => 'int',
  5456. 'not null' => TRUE,
  5457. ),
  5458. 'is_analysis' => array(
  5459. 'description' => t('TODO: please describe this field!'),
  5460. 'type' => 'boolean',
  5461. 'not null' => TRUE,
  5462. 'default' => 'als',
  5463. ),
  5464. 'is_obsolete' => array(
  5465. 'description' => t('TODO: please describe this field!'),
  5466. 'type' => 'boolean',
  5467. 'not null' => TRUE,
  5468. 'default' => 'als',
  5469. ),
  5470. 'timeaccessioned' => array(
  5471. 'description' => t('TODO: please describe this field!'),
  5472. 'type' => 'datetime',
  5473. 'not null' => TRUE,
  5474. 'default' => 'ow(',
  5475. ),
  5476. 'timelastmodified' => array(
  5477. 'description' => t('TODO: please describe this field!'),
  5478. 'type' => 'datetime',
  5479. 'not null' => TRUE,
  5480. 'default' => 'ow(',
  5481. ),
  5482. ),
  5483. 'primary key' => array('feature_id'),
  5484. 'unique keys' => array(
  5485. 'feature_c1' => array('organism_id', 'uniquename', 'type_id')
  5486. ),
  5487. 'indexes' => array(
  5488. 'feature_idx1' => array('dbxref_id'),
  5489. 'feature_idx2' => array('organism_id'),
  5490. 'feature_idx3' => array('type_id'),
  5491. 'feature_idx4' => array('uniquename'),
  5492. 'feature_name_ind1' => array('name'),
  5493. ),
  5494. 'foreign keys' => array(
  5495. 'organism' => array(
  5496. 'table' => 'organism',
  5497. 'columns' => array('organism_id' => 'organism_id'),
  5498. ),
  5499. 'dbxref' => array(
  5500. 'table' => 'dbxref',
  5501. 'columns' => array('dbxref_id' => 'dbxref_id'),
  5502. ),
  5503. 'cvterm' => array(
  5504. 'table' => 'cvterm',
  5505. 'columns' => array('type_id' => 'cvterm_id'),
  5506. ),
  5507. ),
  5508. );
  5509. $schema['feature_contains'] = array(
  5510. 'description' => t('TODO: please describe this table!'),
  5511. 'fields' => array(
  5512. 'subject_id' => array(
  5513. 'description' => t('TODO: please describe this field!'),
  5514. 'type' => 'int',
  5515. 'not null' => FALSE,
  5516. ),
  5517. 'object_id' => array(
  5518. 'description' => t('TODO: please describe this field!'),
  5519. 'type' => 'int',
  5520. 'not null' => FALSE,
  5521. ),
  5522. ),
  5523. );
  5524. $schema['feature_cvterm'] = array(
  5525. 'description' => t('TODO: please describe this table!'),
  5526. 'fields' => array(
  5527. 'feature_cvterm_id' => array(
  5528. 'description' => t('TODO: please describe this field!'),
  5529. 'type' => 'serial',
  5530. 'not null' => TRUE,
  5531. ),
  5532. 'feature_id' => array(
  5533. 'description' => t('TODO: please describe this field!'),
  5534. 'type' => 'int',
  5535. 'not null' => TRUE,
  5536. ),
  5537. 'cvterm_id' => array(
  5538. 'description' => t('TODO: please describe this field!'),
  5539. 'type' => 'int',
  5540. 'not null' => TRUE,
  5541. ),
  5542. 'pub_id' => array(
  5543. 'description' => t('TODO: please describe this field!'),
  5544. 'type' => 'int',
  5545. 'not null' => TRUE,
  5546. ),
  5547. 'is_not' => array(
  5548. 'description' => t('TODO: please describe this field!'),
  5549. 'type' => 'boolean',
  5550. 'not null' => TRUE,
  5551. 'default' => 'als',
  5552. ),
  5553. 'rank' => array(
  5554. 'description' => t('TODO: please describe this field!'),
  5555. 'type' => 'int',
  5556. 'not null' => TRUE,
  5557. 'default' => 0,
  5558. ),
  5559. ),
  5560. 'primary key' => array('feature_cvterm_id'),
  5561. 'unique keys' => array(
  5562. 'feature_cvterm_c1' => array('feature_id', 'cvterm_id', 'pub_id', 'rank')
  5563. ),
  5564. 'indexes' => array(
  5565. 'feature_cvterm_idx1' => array('feature_id'),
  5566. 'feature_cvterm_idx2' => array('cvterm_id'),
  5567. 'feature_cvterm_idx3' => array('pub_id'),
  5568. ),
  5569. );
  5570. $schema['feature_expression'] = array(
  5571. 'description' => t('TODO: please describe this table!'),
  5572. 'fields' => array(
  5573. 'feature_expression_id' => array(
  5574. 'description' => t('TODO: please describe this field!'),
  5575. 'type' => 'serial',
  5576. 'not null' => TRUE,
  5577. ),
  5578. 'expression_id' => array(
  5579. 'description' => t('TODO: please describe this field!'),
  5580. 'type' => 'int',
  5581. 'not null' => TRUE,
  5582. ),
  5583. 'feature_id' => array(
  5584. 'description' => t('TODO: please describe this field!'),
  5585. 'type' => 'int',
  5586. 'not null' => TRUE,
  5587. ),
  5588. 'pub_id' => array(
  5589. 'description' => t('TODO: please describe this field!'),
  5590. 'type' => 'int',
  5591. 'not null' => TRUE,
  5592. ),
  5593. ),
  5594. 'primary key' => array('feature_expression_id'),
  5595. 'unique keys' => array(
  5596. 'feature_expression_c1' => array('expression_id', 'feature_id', 'pub_id')
  5597. ),
  5598. 'indexes' => array(
  5599. 'feature_expression_idx1' => array('expression_id'),
  5600. 'feature_expression_idx2' => array('feature_id'),
  5601. 'feature_expression_idx3' => array('pub_id'),
  5602. ),
  5603. );
  5604. $schema['feature_expressionprop'] = array(
  5605. 'description' => t('TODO: please describe this table!'),
  5606. 'fields' => array(
  5607. 'feature_expressionprop_id' => array(
  5608. 'description' => t('TODO: please describe this field!'),
  5609. 'type' => 'serial',
  5610. 'not null' => TRUE,
  5611. ),
  5612. 'feature_expression_id' => array(
  5613. 'description' => t('TODO: please describe this field!'),
  5614. 'type' => 'int',
  5615. 'not null' => TRUE,
  5616. ),
  5617. 'type_id' => array(
  5618. 'description' => t('TODO: please describe this field!'),
  5619. 'type' => 'int',
  5620. 'not null' => TRUE,
  5621. ),
  5622. 'value' => array(
  5623. 'description' => t('TODO: please describe this field!'),
  5624. 'type' => 'text',
  5625. 'not null' => FALSE,
  5626. ),
  5627. 'rank' => array(
  5628. 'description' => t('TODO: please describe this field!'),
  5629. 'type' => 'int',
  5630. 'not null' => TRUE,
  5631. 'default' => 0,
  5632. ),
  5633. ),
  5634. 'primary key' => array('feature_expressionprop_id'),
  5635. 'unique keys' => array(
  5636. 'feature_expressionprop_c1' => array('feature_expression_id', 'type_id', 'rank')
  5637. ),
  5638. 'indexes' => array(
  5639. 'feature_expressionprop_idx1' => array('feature_expression_id'),
  5640. 'feature_expressionprop_idx2' => array('type_id'),
  5641. ),
  5642. );
  5643. $schema['feature_pubprop'] = array(
  5644. 'description' => t('TODO: please describe this table!'),
  5645. 'fields' => array(
  5646. 'feature_pubprop_id' => array(
  5647. 'description' => t('TODO: please describe this field!'),
  5648. 'type' => 'serial',
  5649. 'not null' => TRUE,
  5650. ),
  5651. 'feature_pub_id' => array(
  5652. 'description' => t('TODO: please describe this field!'),
  5653. 'type' => 'int',
  5654. 'not null' => TRUE,
  5655. ),
  5656. 'type_id' => array(
  5657. 'description' => t('TODO: please describe this field!'),
  5658. 'type' => 'int',
  5659. 'not null' => TRUE,
  5660. ),
  5661. 'value' => array(
  5662. 'description' => t('TODO: please describe this field!'),
  5663. 'type' => 'text',
  5664. 'not null' => FALSE,
  5665. ),
  5666. 'rank' => array(
  5667. 'description' => t('TODO: please describe this field!'),
  5668. 'type' => 'int',
  5669. 'not null' => TRUE,
  5670. 'default' => 0,
  5671. ),
  5672. ),
  5673. 'primary key' => array('feature_pubprop_id'),
  5674. 'unique keys' => array(
  5675. 'feature_pubprop_c1' => array('feature_pub_id', 'type_id', 'rank')
  5676. ),
  5677. 'indexes' => array(
  5678. 'feature_pubprop_idx1' => array('feature_pub_id'),
  5679. ),
  5680. );
  5681. $schema['feature_relationship'] = array(
  5682. 'description' => t('TODO: please describe this table!'),
  5683. 'fields' => array(
  5684. 'feature_relationship_id' => array(
  5685. 'description' => t('TODO: please describe this field!'),
  5686. 'type' => 'serial',
  5687. 'not null' => TRUE,
  5688. ),
  5689. 'subject_id' => array(
  5690. 'description' => t('TODO: please describe this field!'),
  5691. 'type' => 'int',
  5692. 'not null' => TRUE,
  5693. ),
  5694. 'object_id' => array(
  5695. 'description' => t('TODO: please describe this field!'),
  5696. 'type' => 'int',
  5697. 'not null' => TRUE,
  5698. ),
  5699. 'type_id' => array(
  5700. 'description' => t('TODO: please describe this field!'),
  5701. 'type' => 'int',
  5702. 'not null' => TRUE,
  5703. ),
  5704. 'value' => array(
  5705. 'description' => t('TODO: please describe this field!'),
  5706. 'type' => 'text',
  5707. 'not null' => FALSE,
  5708. ),
  5709. 'rank' => array(
  5710. 'description' => t('TODO: please describe this field!'),
  5711. 'type' => 'int',
  5712. 'not null' => TRUE,
  5713. 'default' => 0,
  5714. ),
  5715. ),
  5716. 'primary key' => array('feature_relationship_id'),
  5717. 'unique keys' => array(
  5718. 'feature_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  5719. ),
  5720. 'indexes' => array(
  5721. 'feature_relationship_idx1' => array('subject_id'),
  5722. 'feature_relationship_idx2' => array('object_id'),
  5723. 'feature_relationship_idx3' => array('type_id'),
  5724. ),
  5725. );
  5726. $schema['feature_relationship_pub'] = array(
  5727. 'description' => t('TODO: please describe this table!'),
  5728. 'fields' => array(
  5729. 'feature_relationship_pub_id' => array(
  5730. 'description' => t('TODO: please describe this field!'),
  5731. 'type' => 'serial',
  5732. 'not null' => TRUE,
  5733. ),
  5734. 'feature_relationship_id' => array(
  5735. 'description' => t('TODO: please describe this field!'),
  5736. 'type' => 'int',
  5737. 'not null' => TRUE,
  5738. ),
  5739. 'pub_id' => array(
  5740. 'description' => t('TODO: please describe this field!'),
  5741. 'type' => 'int',
  5742. 'not null' => TRUE,
  5743. ),
  5744. ),
  5745. 'primary key' => array('feature_relationship_pub_id'),
  5746. 'unique keys' => array(
  5747. 'feature_relationship_pub_c1' => array('feature_relationship_id', 'pub_id')
  5748. ),
  5749. 'indexes' => array(
  5750. 'feature_relationship_pub_idx1' => array('feature_relationship_id'),
  5751. 'feature_relationship_pub_idx2' => array('pub_id'),
  5752. ),
  5753. );
  5754. $schema['feature_relationshipprop'] = array(
  5755. 'description' => t('TODO: please describe this table!'),
  5756. 'fields' => array(
  5757. 'feature_relationshipprop_id' => array(
  5758. 'description' => t('TODO: please describe this field!'),
  5759. 'type' => 'serial',
  5760. 'not null' => TRUE,
  5761. ),
  5762. 'feature_relationship_id' => array(
  5763. 'description' => t('TODO: please describe this field!'),
  5764. 'type' => 'int',
  5765. 'not null' => TRUE,
  5766. ),
  5767. 'type_id' => array(
  5768. 'description' => t('TODO: please describe this field!'),
  5769. 'type' => 'int',
  5770. 'not null' => TRUE,
  5771. ),
  5772. 'value' => array(
  5773. 'description' => t('TODO: please describe this field!'),
  5774. 'type' => 'text',
  5775. 'not null' => FALSE,
  5776. ),
  5777. 'rank' => array(
  5778. 'description' => t('TODO: please describe this field!'),
  5779. 'type' => 'int',
  5780. 'not null' => TRUE,
  5781. 'default' => 0,
  5782. ),
  5783. ),
  5784. 'primary key' => array('feature_relationshipprop_id'),
  5785. 'unique keys' => array(
  5786. 'feature_relationshipprop_c1' => array('feature_relationship_id', 'type_id', 'rank')
  5787. ),
  5788. 'indexes' => array(
  5789. 'feature_relationshipprop_idx1' => array('feature_relationship_id'),
  5790. 'feature_relationshipprop_idx2' => array('type_id'),
  5791. ),
  5792. );
  5793. $schema['feature_pub'] = array(
  5794. 'description' => t('TODO: please describe this table!'),
  5795. 'fields' => array(
  5796. 'feature_pub_id' => array(
  5797. 'description' => t('TODO: please describe this field!'),
  5798. 'type' => 'serial',
  5799. 'not null' => TRUE,
  5800. ),
  5801. 'feature_id' => array(
  5802. 'description' => t('TODO: please describe this field!'),
  5803. 'type' => 'int',
  5804. 'not null' => TRUE,
  5805. ),
  5806. 'pub_id' => array(
  5807. 'description' => t('TODO: please describe this field!'),
  5808. 'type' => 'int',
  5809. 'not null' => TRUE,
  5810. ),
  5811. ),
  5812. 'primary key' => array('feature_pub_id'),
  5813. 'unique keys' => array(
  5814. 'feature_pub_c1' => array('feature_id', 'pub_id')
  5815. ),
  5816. 'indexes' => array(
  5817. 'feature_pub_idx1' => array('feature_id'),
  5818. 'feature_pub_idx2' => array('pub_id'),
  5819. ),
  5820. );
  5821. $schema['feature_phenotype'] = array(
  5822. 'description' => t('TODO: please describe this table!'),
  5823. 'fields' => array(
  5824. 'feature_phenotype_id' => array(
  5825. 'description' => t('TODO: please describe this field!'),
  5826. 'type' => 'serial',
  5827. 'not null' => TRUE,
  5828. ),
  5829. 'feature_id' => array(
  5830. 'description' => t('TODO: please describe this field!'),
  5831. 'type' => 'int',
  5832. 'not null' => TRUE,
  5833. ),
  5834. 'phenotype_id' => array(
  5835. 'description' => t('TODO: please describe this field!'),
  5836. 'type' => 'int',
  5837. 'not null' => TRUE,
  5838. ),
  5839. ),
  5840. 'primary key' => array('feature_phenotype_id'),
  5841. 'unique keys' => array(
  5842. 'feature_phenotype_c1' => array('feature_id', 'phenotype_id')
  5843. ),
  5844. 'indexes' => array(
  5845. 'feature_phenotype_idx1' => array('feature_id'),
  5846. 'feature_phenotype_idx2' => array('phenotype_id'),
  5847. ),
  5848. );
  5849. $schema['feature_genotype'] = array(
  5850. 'description' => t('TODO: please describe this table!'),
  5851. 'fields' => array(
  5852. 'feature_genotype_id' => array(
  5853. 'description' => t('TODO: please describe this field!'),
  5854. 'type' => 'serial',
  5855. 'not null' => TRUE,
  5856. ),
  5857. 'feature_id' => array(
  5858. 'description' => t('TODO: please describe this field!'),
  5859. 'type' => 'int',
  5860. 'not null' => TRUE,
  5861. ),
  5862. 'genotype_id' => array(
  5863. 'description' => t('TODO: please describe this field!'),
  5864. 'type' => 'int',
  5865. 'not null' => TRUE,
  5866. ),
  5867. 'chromosome_id' => array(
  5868. 'description' => t('TODO: please describe this field!'),
  5869. 'type' => 'int',
  5870. 'not null' => FALSE,
  5871. ),
  5872. 'rank' => array(
  5873. 'description' => t('TODO: please describe this field!'),
  5874. 'type' => 'int',
  5875. 'not null' => TRUE,
  5876. ),
  5877. 'cgroup' => array(
  5878. 'description' => t('TODO: please describe this field!'),
  5879. 'type' => 'int',
  5880. 'not null' => TRUE,
  5881. ),
  5882. 'cvterm_id' => array(
  5883. 'description' => t('TODO: please describe this field!'),
  5884. 'type' => 'int',
  5885. 'not null' => TRUE,
  5886. ),
  5887. ),
  5888. 'primary key' => array('feature_genotype_id'),
  5889. 'unique keys' => array(
  5890. 'feature_genotype_c1' => array('feature_id', 'genotype_id', 'cvterm_id', 'chromosome_id', 'rank', 'cgroup')
  5891. ),
  5892. 'indexes' => array(
  5893. 'feature_genotype_idx1' => array('feature_id'),
  5894. 'feature_genotype_idx2' => array('genotype_id'),
  5895. ),
  5896. );
  5897. $schema['feature_intersection'] = array(
  5898. 'description' => t('TODO: please describe this table!'),
  5899. 'fields' => array(
  5900. 'subject_id' => array(
  5901. 'description' => t('TODO: please describe this field!'),
  5902. 'type' => 'int',
  5903. 'not null' => FALSE,
  5904. ),
  5905. 'object_id' => array(
  5906. 'description' => t('TODO: please describe this field!'),
  5907. 'type' => 'int',
  5908. 'not null' => FALSE,
  5909. ),
  5910. 'srcfeature_id' => array(
  5911. 'description' => t('TODO: please describe this field!'),
  5912. 'type' => 'int',
  5913. 'not null' => FALSE,
  5914. ),
  5915. 'subject_strand' => array(
  5916. 'description' => t('TODO: please describe this field!'),
  5917. 'type' => 'int',
  5918. 'size' => 'small',
  5919. 'not null' => FALSE,
  5920. ),
  5921. 'object_strand' => array(
  5922. 'description' => t('TODO: please describe this field!'),
  5923. 'type' => 'int',
  5924. 'size' => 'small',
  5925. 'not null' => FALSE,
  5926. ),
  5927. 'fmin' => array(
  5928. 'description' => t('TODO: please describe this field!'),
  5929. 'type' => 'int',
  5930. 'not null' => FALSE,
  5931. ),
  5932. 'fmax' => array(
  5933. 'description' => t('TODO: please describe this field!'),
  5934. 'type' => 'int',
  5935. 'not null' => FALSE,
  5936. ),
  5937. ),
  5938. );
  5939. $schema['feature_meets'] = array(
  5940. 'description' => t('TODO: please describe this table!'),
  5941. 'fields' => array(
  5942. 'subject_id' => array(
  5943. 'description' => t('TODO: please describe this field!'),
  5944. 'type' => 'int',
  5945. 'not null' => FALSE,
  5946. ),
  5947. 'object_id' => array(
  5948. 'description' => t('TODO: please describe this field!'),
  5949. 'type' => 'int',
  5950. 'not null' => FALSE,
  5951. ),
  5952. ),
  5953. );
  5954. $schema['feature_meets_on_same_strand'] = array(
  5955. 'description' => t('TODO: please describe this table!'),
  5956. 'fields' => array(
  5957. 'subject_id' => array(
  5958. 'description' => t('TODO: please describe this field!'),
  5959. 'type' => 'int',
  5960. 'not null' => FALSE,
  5961. ),
  5962. 'object_id' => array(
  5963. 'description' => t('TODO: please describe this field!'),
  5964. 'type' => 'int',
  5965. 'not null' => FALSE,
  5966. ),
  5967. ),
  5968. );
  5969. $schema['f_loc'] = array(
  5970. 'description' => t('TODO: please describe this table!'),
  5971. 'fields' => array(
  5972. 'feature_id' => array(
  5973. 'description' => t('TODO: please describe this field!'),
  5974. 'type' => 'int',
  5975. 'not null' => FALSE,
  5976. ),
  5977. 'name' => array(
  5978. 'description' => t('TODO: please describe this field!'),
  5979. 'type' => 'varchar',
  5980. 'length' => '255',
  5981. 'not null' => FALSE,
  5982. ),
  5983. 'dbxref_id' => array(
  5984. 'description' => t('TODO: please describe this field!'),
  5985. 'type' => 'int',
  5986. 'not null' => FALSE,
  5987. ),
  5988. 'nbeg' => array(
  5989. 'description' => t('TODO: please describe this field!'),
  5990. 'type' => 'int',
  5991. 'not null' => FALSE,
  5992. ),
  5993. 'nend' => array(
  5994. 'description' => t('TODO: please describe this field!'),
  5995. 'type' => 'int',
  5996. 'not null' => FALSE,
  5997. ),
  5998. 'strand' => array(
  5999. 'description' => t('TODO: please describe this field!'),
  6000. 'type' => 'int',
  6001. 'size' => 'small',
  6002. 'not null' => FALSE,
  6003. ),
  6004. ),
  6005. );
  6006. $schema['expressionprop'] = array(
  6007. 'description' => t('TODO: please describe this table!'),
  6008. 'fields' => array(
  6009. 'expressionprop_id' => array(
  6010. 'description' => t('TODO: please describe this field!'),
  6011. 'type' => 'serial',
  6012. 'not null' => TRUE,
  6013. ),
  6014. 'expression_id' => array(
  6015. 'description' => t('TODO: please describe this field!'),
  6016. 'type' => 'int',
  6017. 'not null' => TRUE,
  6018. ),
  6019. 'type_id' => array(
  6020. 'description' => t('TODO: please describe this field!'),
  6021. 'type' => 'int',
  6022. 'not null' => TRUE,
  6023. ),
  6024. 'value' => array(
  6025. 'description' => t('TODO: please describe this field!'),
  6026. 'type' => 'text',
  6027. 'not null' => FALSE,
  6028. ),
  6029. 'rank' => array(
  6030. 'description' => t('TODO: please describe this field!'),
  6031. 'type' => 'int',
  6032. 'not null' => TRUE,
  6033. 'default' => 0,
  6034. ),
  6035. ),
  6036. 'primary key' => array('expressionprop_id'),
  6037. 'unique keys' => array(
  6038. 'expressionprop_c1' => array('expression_id', 'type_id', 'rank')
  6039. ),
  6040. 'indexes' => array(
  6041. 'expressionprop_idx1' => array('expression_id'),
  6042. 'expressionprop_idx2' => array('type_id'),
  6043. ),
  6044. );
  6045. $schema['db_dbxref_count'] = array(
  6046. 'description' => t('TODO: please describe this table!'),
  6047. 'fields' => array(
  6048. 'name' => array(
  6049. 'description' => t('TODO: please describe this field!'),
  6050. 'type' => 'varchar',
  6051. 'length' => '255',
  6052. 'not null' => FALSE,
  6053. ),
  6054. 'num_dbxrefs' => array(
  6055. 'description' => t('TODO: please describe this field!'),
  6056. 'type' => 'int',
  6057. 'size' => 'big',
  6058. 'not null' => FALSE,
  6059. ),
  6060. ),
  6061. );
  6062. $schema['dbxref'] = array(
  6063. 'description' => t('TODO: please describe this table!'),
  6064. 'fields' => array(
  6065. 'dbxref_id' => array(
  6066. 'description' => t('TODO: please describe this field!'),
  6067. 'type' => 'serial',
  6068. 'not null' => TRUE,
  6069. ),
  6070. 'db_id' => array(
  6071. 'description' => t('TODO: please describe this field!'),
  6072. 'type' => 'int',
  6073. 'not null' => TRUE,
  6074. ),
  6075. 'accession' => array(
  6076. 'description' => t('TODO: please describe this field!'),
  6077. 'type' => 'varchar',
  6078. 'length' => '255',
  6079. 'not null' => TRUE,
  6080. ),
  6081. 'version' => array(
  6082. 'description' => t('TODO: please describe this field!'),
  6083. 'type' => 'varchar',
  6084. 'length' => '255',
  6085. 'not null' => TRUE,
  6086. 'default' => '',
  6087. ),
  6088. 'description' => array(
  6089. 'description' => t('TODO: please describe this field!'),
  6090. 'type' => 'text',
  6091. 'not null' => FALSE,
  6092. ),
  6093. ),
  6094. 'primary key' => array('dbxref_id'),
  6095. 'unique keys' => array(
  6096. 'dbxref_c1' => array('db_id', 'accession', 'version')
  6097. ),
  6098. 'indexes' => array(
  6099. 'dbxref_idx1' => array('db_id'),
  6100. 'dbxref_idx2' => array('accession'),
  6101. 'dbxref_idx3' => array('version'),
  6102. ),
  6103. );
  6104. $schema['dbxrefprop'] = array(
  6105. 'description' => t('TODO: please describe this table!'),
  6106. 'fields' => array(
  6107. 'dbxrefprop_id' => array(
  6108. 'description' => t('TODO: please describe this field!'),
  6109. 'type' => 'serial',
  6110. 'not null' => TRUE,
  6111. ),
  6112. 'dbxref_id' => array(
  6113. 'description' => t('TODO: please describe this field!'),
  6114. 'type' => 'int',
  6115. 'not null' => TRUE,
  6116. ),
  6117. 'type_id' => array(
  6118. 'description' => t('TODO: please describe this field!'),
  6119. 'type' => 'int',
  6120. 'not null' => TRUE,
  6121. ),
  6122. 'value' => array(
  6123. 'description' => t('TODO: please describe this field!'),
  6124. 'type' => 'text',
  6125. 'not null' => TRUE,
  6126. 'default' => '',
  6127. ),
  6128. 'rank' => array(
  6129. 'description' => t('TODO: please describe this field!'),
  6130. 'type' => 'int',
  6131. 'not null' => TRUE,
  6132. 'default' => 0,
  6133. ),
  6134. ),
  6135. 'primary key' => array('dbxrefprop_id'),
  6136. 'unique keys' => array(
  6137. 'dbxrefprop_c1' => array('dbxref_id', 'type_id', 'rank')
  6138. ),
  6139. 'indexes' => array(
  6140. 'dbxrefprop_idx1' => array('dbxref_id'),
  6141. 'dbxrefprop_idx2' => array('type_id'),
  6142. ),
  6143. );
  6144. $schema['dfeatureloc'] = array(
  6145. 'description' => t('TODO: please describe this table!'),
  6146. 'fields' => array(
  6147. 'featureloc_id' => array(
  6148. 'description' => t('TODO: please describe this field!'),
  6149. 'type' => 'int',
  6150. 'not null' => FALSE,
  6151. ),
  6152. 'feature_id' => array(
  6153. 'description' => t('TODO: please describe this field!'),
  6154. 'type' => 'int',
  6155. 'not null' => FALSE,
  6156. ),
  6157. 'srcfeature_id' => array(
  6158. 'description' => t('TODO: please describe this field!'),
  6159. 'type' => 'int',
  6160. 'not null' => FALSE,
  6161. ),
  6162. 'nbeg' => array(
  6163. 'description' => t('TODO: please describe this field!'),
  6164. 'type' => 'int',
  6165. 'not null' => FALSE,
  6166. ),
  6167. 'is_nbeg_partial' => array(
  6168. 'description' => t('TODO: please describe this field!'),
  6169. 'type' => 'boolean',
  6170. 'not null' => FALSE,
  6171. ),
  6172. 'nend' => array(
  6173. 'description' => t('TODO: please describe this field!'),
  6174. 'type' => 'int',
  6175. 'not null' => FALSE,
  6176. ),
  6177. 'is_nend_partial' => array(
  6178. 'description' => t('TODO: please describe this field!'),
  6179. 'type' => 'boolean',
  6180. 'not null' => FALSE,
  6181. ),
  6182. 'strand' => array(
  6183. 'description' => t('TODO: please describe this field!'),
  6184. 'type' => 'int',
  6185. 'size' => 'small',
  6186. 'not null' => FALSE,
  6187. ),
  6188. 'phase' => array(
  6189. 'description' => t('TODO: please describe this field!'),
  6190. 'type' => 'int',
  6191. 'not null' => FALSE,
  6192. ),
  6193. 'residue_info' => array(
  6194. 'description' => t('TODO: please describe this field!'),
  6195. 'type' => 'text',
  6196. 'not null' => FALSE,
  6197. ),
  6198. 'locgroup' => array(
  6199. 'description' => t('TODO: please describe this field!'),
  6200. 'type' => 'int',
  6201. 'not null' => FALSE,
  6202. ),
  6203. 'rank' => array(
  6204. 'description' => t('TODO: please describe this field!'),
  6205. 'type' => 'int',
  6206. 'not null' => FALSE,
  6207. ),
  6208. ),
  6209. );
  6210. $schema['db'] = array(
  6211. 'description' => t('TODO: please describe this table!'),
  6212. 'fields' => array(
  6213. 'db_id' => array(
  6214. 'description' => t('TODO: please describe this field!'),
  6215. 'type' => 'serial',
  6216. 'not null' => TRUE,
  6217. ),
  6218. 'name' => array(
  6219. 'description' => t('TODO: please describe this field!'),
  6220. 'type' => 'varchar',
  6221. 'length' => '255',
  6222. 'not null' => TRUE,
  6223. ),
  6224. 'description' => array(
  6225. 'description' => t('TODO: please describe this field!'),
  6226. 'type' => 'varchar',
  6227. 'length' => '255',
  6228. 'not null' => FALSE,
  6229. ),
  6230. 'urlprefix' => array(
  6231. 'description' => t('TODO: please describe this field!'),
  6232. 'type' => 'varchar',
  6233. 'length' => '255',
  6234. 'not null' => FALSE,
  6235. ),
  6236. 'url' => array(
  6237. 'description' => t('TODO: please describe this field!'),
  6238. 'type' => 'varchar',
  6239. 'length' => '255',
  6240. 'not null' => FALSE,
  6241. ),
  6242. ),
  6243. 'primary key' => array('db_id'),
  6244. 'unique keys' => array(
  6245. 'db_c1' => array('name')
  6246. ),
  6247. );
  6248. $schema['cvtermsynonym'] = array(
  6249. 'description' => t('TODO: please describe this table!'),
  6250. 'fields' => array(
  6251. 'cvtermsynonym_id' => array(
  6252. 'description' => t('TODO: please describe this field!'),
  6253. 'type' => 'serial',
  6254. 'not null' => TRUE,
  6255. ),
  6256. 'cvterm_id' => array(
  6257. 'description' => t('TODO: please describe this field!'),
  6258. 'type' => 'int',
  6259. 'not null' => TRUE,
  6260. ),
  6261. 'synonym' => array(
  6262. 'description' => t('TODO: please describe this field!'),
  6263. 'type' => 'varchar',
  6264. 'length' => '1024',
  6265. 'not null' => TRUE,
  6266. ),
  6267. 'type_id' => array(
  6268. 'description' => t('TODO: please describe this field!'),
  6269. 'type' => 'int',
  6270. 'not null' => FALSE,
  6271. ),
  6272. ),
  6273. 'primary key' => array('cvtermsynonym_id'),
  6274. 'unique keys' => array(
  6275. 'cvtermsynonym_c1' => array('cvterm_id', 'synonym')
  6276. ),
  6277. 'indexes' => array(
  6278. 'cvtermsynonym_idx1' => array('cvterm_id'),
  6279. ),
  6280. );
  6281. $schema['cvterm_dbxref'] = array(
  6282. 'description' => t('TODO: please describe this table!'),
  6283. 'fields' => array(
  6284. 'cvterm_dbxref_id' => array(
  6285. 'description' => t('TODO: please describe this field!'),
  6286. 'type' => 'serial',
  6287. 'not null' => TRUE,
  6288. ),
  6289. 'cvterm_id' => array(
  6290. 'description' => t('TODO: please describe this field!'),
  6291. 'type' => 'int',
  6292. 'not null' => TRUE,
  6293. ),
  6294. 'dbxref_id' => array(
  6295. 'description' => t('TODO: please describe this field!'),
  6296. 'type' => 'int',
  6297. 'not null' => TRUE,
  6298. ),
  6299. 'is_for_definition' => array(
  6300. 'description' => t('TODO: please describe this field!'),
  6301. 'type' => 'int',
  6302. 'not null' => TRUE,
  6303. 'default' => 0,
  6304. ),
  6305. ),
  6306. 'primary key' => array('cvterm_dbxref_id'),
  6307. 'unique keys' => array(
  6308. 'cvterm_dbxref_c1' => array('cvterm_id', 'dbxref_id')
  6309. ),
  6310. 'indexes' => array(
  6311. 'cvterm_dbxref_idx1' => array('cvterm_id'),
  6312. 'cvterm_dbxref_idx2' => array('dbxref_id'),
  6313. ),
  6314. );
  6315. $schema['cvterm_relationship'] = array(
  6316. 'description' => t('TODO: please describe this table!'),
  6317. 'fields' => array(
  6318. 'cvterm_relationship_id' => array(
  6319. 'description' => t('TODO: please describe this field!'),
  6320. 'type' => 'serial',
  6321. 'not null' => TRUE,
  6322. ),
  6323. 'type_id' => array(
  6324. 'description' => t('TODO: please describe this field!'),
  6325. 'type' => 'int',
  6326. 'not null' => TRUE,
  6327. ),
  6328. 'subject_id' => array(
  6329. 'description' => t('TODO: please describe this field!'),
  6330. 'type' => 'int',
  6331. 'not null' => TRUE,
  6332. ),
  6333. 'object_id' => array(
  6334. 'description' => t('TODO: please describe this field!'),
  6335. 'type' => 'int',
  6336. 'not null' => TRUE,
  6337. ),
  6338. ),
  6339. 'primary key' => array('cvterm_relationship_id'),
  6340. 'unique keys' => array(
  6341. 'cvterm_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  6342. ),
  6343. 'indexes' => array(
  6344. 'cvterm_relationship_idx1' => array('type_id'),
  6345. 'cvterm_relationship_idx2' => array('subject_id'),
  6346. 'cvterm_relationship_idx3' => array('object_id'),
  6347. ),
  6348. );
  6349. $schema['cvtermpath'] = array(
  6350. 'description' => t('TODO: please describe this table!'),
  6351. 'fields' => array(
  6352. 'cvtermpath_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' => FALSE,
  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. 'cv_id' => array(
  6373. 'description' => t('TODO: please describe this field!'),
  6374. 'type' => 'int',
  6375. 'not null' => TRUE,
  6376. ),
  6377. 'pathdistance' => array(
  6378. 'description' => t('TODO: please describe this field!'),
  6379. 'type' => 'int',
  6380. 'not null' => FALSE,
  6381. ),
  6382. ),
  6383. 'primary key' => array('cvtermpath_id'),
  6384. 'unique keys' => array(
  6385. 'cvtermpath_c1' => array('subject_id', 'object_id', 'type_id', 'pathdistance')
  6386. ),
  6387. 'indexes' => array(
  6388. 'cvtermpath_idx1' => array('type_id'),
  6389. 'cvtermpath_idx2' => array('subject_id'),
  6390. 'cvtermpath_idx3' => array('object_id'),
  6391. 'cvtermpath_idx4' => array('cv_id'),
  6392. ),
  6393. );
  6394. $schema['cvtermprop'] = array(
  6395. 'description' => t('TODO: please describe this table!'),
  6396. 'fields' => array(
  6397. 'cvtermprop_id' => array(
  6398. 'description' => t('TODO: please describe this field!'),
  6399. 'type' => 'serial',
  6400. 'not null' => TRUE,
  6401. ),
  6402. 'cvterm_id' => array(
  6403. 'description' => t('TODO: please describe this field!'),
  6404. 'type' => 'int',
  6405. 'not null' => TRUE,
  6406. ),
  6407. 'type_id' => array(
  6408. 'description' => t('TODO: please describe this field!'),
  6409. 'type' => 'int',
  6410. 'not null' => TRUE,
  6411. ),
  6412. 'value' => array(
  6413. 'description' => t('TODO: please describe this field!'),
  6414. 'type' => 'text',
  6415. 'not null' => TRUE,
  6416. 'default' => '',
  6417. ),
  6418. 'rank' => array(
  6419. 'description' => t('TODO: please describe this field!'),
  6420. 'type' => 'int',
  6421. 'not null' => TRUE,
  6422. 'default' => 0,
  6423. ),
  6424. ),
  6425. 'primary key' => array('cvtermprop_id'),
  6426. 'unique keys' => array(
  6427. 'cvterm_id' => array('cvterm_id', 'type_id', 'value', 'rank')
  6428. ),
  6429. 'indexes' => array(
  6430. 'cvtermprop_idx1' => array('cvterm_id'),
  6431. 'cvtermprop_idx2' => array('type_id'),
  6432. ),
  6433. );
  6434. $schema['eimage'] = array(
  6435. 'description' => t('TODO: please describe this table!'),
  6436. 'fields' => array(
  6437. 'eimage_id' => array(
  6438. 'description' => t('TODO: please describe this field!'),
  6439. 'type' => 'serial',
  6440. 'not null' => TRUE,
  6441. ),
  6442. 'eimage_data' => array(
  6443. 'description' => t('TODO: please describe this field!'),
  6444. 'type' => 'text',
  6445. 'not null' => FALSE,
  6446. ),
  6447. 'eimage_type' => array(
  6448. 'description' => t('TODO: please describe this field!'),
  6449. 'type' => 'varchar',
  6450. 'length' => '255',
  6451. 'not null' => TRUE,
  6452. ),
  6453. 'image_uri' => array(
  6454. 'description' => t('TODO: please describe this field!'),
  6455. 'type' => 'varchar',
  6456. 'length' => '255',
  6457. 'not null' => FALSE,
  6458. ),
  6459. ),
  6460. 'primary key' => array('eimage_id'),
  6461. );
  6462. $schema['element'] = array(
  6463. 'description' => t('TODO: please describe this table!'),
  6464. 'fields' => array(
  6465. 'element_id' => array(
  6466. 'description' => t('TODO: please describe this field!'),
  6467. 'type' => 'serial',
  6468. 'not null' => TRUE,
  6469. ),
  6470. 'feature_id' => array(
  6471. 'description' => t('TODO: please describe this field!'),
  6472. 'type' => 'int',
  6473. 'not null' => FALSE,
  6474. ),
  6475. 'arraydesign_id' => array(
  6476. 'description' => t('TODO: please describe this field!'),
  6477. 'type' => 'int',
  6478. 'not null' => TRUE,
  6479. ),
  6480. 'type_id' => array(
  6481. 'description' => t('TODO: please describe this field!'),
  6482. 'type' => 'int',
  6483. 'not null' => FALSE,
  6484. ),
  6485. 'dbxref_id' => array(
  6486. 'description' => t('TODO: please describe this field!'),
  6487. 'type' => 'int',
  6488. 'not null' => FALSE,
  6489. ),
  6490. ),
  6491. 'primary key' => array('element_id'),
  6492. 'unique keys' => array(
  6493. 'element_c1' => array('feature_id', 'arraydesign_id')
  6494. ),
  6495. 'indexes' => array(
  6496. 'element_idx1' => array('feature_id'),
  6497. 'element_idx2' => array('arraydesign_id'),
  6498. 'element_idx3' => array('type_id'),
  6499. 'element_idx4' => array('dbxref_id'),
  6500. ),
  6501. );
  6502. $schema['expression_cvterm'] = array(
  6503. 'description' => t('TODO: please describe this table!'),
  6504. 'fields' => array(
  6505. 'expression_cvterm_id' => array(
  6506. 'description' => t('TODO: please describe this field!'),
  6507. 'type' => 'serial',
  6508. 'not null' => TRUE,
  6509. ),
  6510. 'expression_id' => array(
  6511. 'description' => t('TODO: please describe this field!'),
  6512. 'type' => 'int',
  6513. 'not null' => TRUE,
  6514. ),
  6515. 'cvterm_id' => array(
  6516. 'description' => t('TODO: please describe this field!'),
  6517. 'type' => 'int',
  6518. 'not null' => TRUE,
  6519. ),
  6520. 'rank' => array(
  6521. 'description' => t('TODO: please describe this field!'),
  6522. 'type' => 'int',
  6523. 'not null' => TRUE,
  6524. 'default' => 0,
  6525. ),
  6526. 'cvterm_type_id' => array(
  6527. 'description' => t('TODO: please describe this field!'),
  6528. 'type' => 'int',
  6529. 'not null' => TRUE,
  6530. ),
  6531. ),
  6532. 'primary key' => array('expression_cvterm_id'),
  6533. 'unique keys' => array(
  6534. 'expression_cvterm_c1' => array('expression_id', 'cvterm_id', 'cvterm_type_id')
  6535. ),
  6536. 'indexes' => array(
  6537. 'expression_cvterm_idx1' => array('expression_id'),
  6538. 'expression_cvterm_idx2' => array('cvterm_id'),
  6539. 'expression_cvterm_idx3' => array('cvterm_type_id'),
  6540. ),
  6541. );
  6542. $schema['expression_cvtermprop'] = array(
  6543. 'description' => t('TODO: please describe this table!'),
  6544. 'fields' => array(
  6545. 'expression_cvtermprop_id' => array(
  6546. 'description' => t('TODO: please describe this field!'),
  6547. 'type' => 'serial',
  6548. 'not null' => TRUE,
  6549. ),
  6550. 'expression_cvterm_id' => array(
  6551. 'description' => t('TODO: please describe this field!'),
  6552. 'type' => 'int',
  6553. 'not null' => TRUE,
  6554. ),
  6555. 'type_id' => array(
  6556. 'description' => t('TODO: please describe this field!'),
  6557. 'type' => 'int',
  6558. 'not null' => TRUE,
  6559. ),
  6560. 'value' => array(
  6561. 'description' => t('TODO: please describe this field!'),
  6562. 'type' => 'text',
  6563. 'not null' => FALSE,
  6564. ),
  6565. 'rank' => array(
  6566. 'description' => t('TODO: please describe this field!'),
  6567. 'type' => 'int',
  6568. 'not null' => TRUE,
  6569. 'default' => 0,
  6570. ),
  6571. ),
  6572. 'primary key' => array('expression_cvtermprop_id'),
  6573. 'unique keys' => array(
  6574. 'expression_cvtermprop_c1' => array('expression_cvterm_id', 'type_id', 'rank')
  6575. ),
  6576. 'indexes' => array(
  6577. 'expression_cvtermprop_idx1' => array('expression_cvterm_id'),
  6578. 'expression_cvtermprop_idx2' => array('type_id'),
  6579. ),
  6580. );
  6581. $schema['expression_image'] = array(
  6582. 'description' => t('TODO: please describe this table!'),
  6583. 'fields' => array(
  6584. 'expression_image_id' => array(
  6585. 'description' => t('TODO: please describe this field!'),
  6586. 'type' => 'serial',
  6587. 'not null' => TRUE,
  6588. ),
  6589. 'expression_id' => array(
  6590. 'description' => t('TODO: please describe this field!'),
  6591. 'type' => 'int',
  6592. 'not null' => TRUE,
  6593. ),
  6594. 'eimage_id' => array(
  6595. 'description' => t('TODO: please describe this field!'),
  6596. 'type' => 'int',
  6597. 'not null' => TRUE,
  6598. ),
  6599. ),
  6600. 'primary key' => array('expression_image_id'),
  6601. 'unique keys' => array(
  6602. 'expression_image_c1' => array('expression_id', 'eimage_id')
  6603. ),
  6604. 'indexes' => array(
  6605. 'expression_image_idx1' => array('expression_id'),
  6606. 'expression_image_idx2' => array('eimage_id'),
  6607. ),
  6608. );
  6609. $schema['expression_pub'] = array(
  6610. 'description' => t('TODO: please describe this table!'),
  6611. 'fields' => array(
  6612. 'expression_pub_id' => array(
  6613. 'description' => t('TODO: please describe this field!'),
  6614. 'type' => 'serial',
  6615. 'not null' => TRUE,
  6616. ),
  6617. 'expression_id' => array(
  6618. 'description' => t('TODO: please describe this field!'),
  6619. 'type' => 'int',
  6620. 'not null' => TRUE,
  6621. ),
  6622. 'pub_id' => array(
  6623. 'description' => t('TODO: please describe this field!'),
  6624. 'type' => 'int',
  6625. 'not null' => TRUE,
  6626. ),
  6627. ),
  6628. 'primary key' => array('expression_pub_id'),
  6629. 'unique keys' => array(
  6630. 'expression_pub_c1' => array('expression_id', 'pub_id')
  6631. ),
  6632. 'indexes' => array(
  6633. 'expression_pub_idx1' => array('expression_id'),
  6634. 'expression_pub_idx2' => array('pub_id'),
  6635. ),
  6636. );
  6637. $schema['expression'] = array(
  6638. 'description' => t('TODO: please describe this table!'),
  6639. 'fields' => array(
  6640. 'expression_id' => array(
  6641. 'description' => t('TODO: please describe this field!'),
  6642. 'type' => 'serial',
  6643. 'not null' => TRUE,
  6644. ),
  6645. 'uniquename' => array(
  6646. 'description' => t('TODO: please describe this field!'),
  6647. 'type' => 'text',
  6648. 'not null' => TRUE,
  6649. ),
  6650. 'md5checksum' => array(
  6651. 'description' => t('TODO: please describe this field!'),
  6652. 'type' => 'char',
  6653. 'length' => '32',
  6654. 'not null' => FALSE,
  6655. ),
  6656. 'description' => array(
  6657. 'description' => t('TODO: please describe this field!'),
  6658. 'type' => 'text',
  6659. 'not null' => FALSE,
  6660. ),
  6661. ),
  6662. 'primary key' => array('expression_id'),
  6663. 'unique keys' => array(
  6664. 'expression_c1' => array('uniquename')
  6665. ),
  6666. );
  6667. $schema['environment_cvterm'] = array(
  6668. 'description' => t('TODO: please describe this table!'),
  6669. 'fields' => array(
  6670. 'environment_cvterm_id' => array(
  6671. 'description' => t('TODO: please describe this field!'),
  6672. 'type' => 'serial',
  6673. 'not null' => TRUE,
  6674. ),
  6675. 'environment_id' => array(
  6676. 'description' => t('TODO: please describe this field!'),
  6677. 'type' => 'int',
  6678. 'not null' => TRUE,
  6679. ),
  6680. 'cvterm_id' => array(
  6681. 'description' => t('TODO: please describe this field!'),
  6682. 'type' => 'int',
  6683. 'not null' => TRUE,
  6684. ),
  6685. ),
  6686. 'primary key' => array('environment_cvterm_id'),
  6687. 'unique keys' => array(
  6688. 'environment_cvterm_c1' => array('environment_id', 'cvterm_id')
  6689. ),
  6690. 'indexes' => array(
  6691. 'environment_cvterm_idx1' => array('environment_id'),
  6692. 'environment_cvterm_idx2' => array('cvterm_id'),
  6693. ),
  6694. );
  6695. $schema['element_relationship'] = array(
  6696. 'description' => t('TODO: please describe this table!'),
  6697. 'fields' => array(
  6698. 'element_relationship_id' => array(
  6699. 'description' => t('TODO: please describe this field!'),
  6700. 'type' => 'serial',
  6701. 'not null' => TRUE,
  6702. ),
  6703. 'subject_id' => array(
  6704. 'description' => t('TODO: please describe this field!'),
  6705. 'type' => 'int',
  6706. 'not null' => TRUE,
  6707. ),
  6708. 'type_id' => array(
  6709. 'description' => t('TODO: please describe this field!'),
  6710. 'type' => 'int',
  6711. 'not null' => TRUE,
  6712. ),
  6713. 'object_id' => array(
  6714. 'description' => t('TODO: please describe this field!'),
  6715. 'type' => 'int',
  6716. 'not null' => TRUE,
  6717. ),
  6718. 'value' => array(
  6719. 'description' => t('TODO: please describe this field!'),
  6720. 'type' => 'text',
  6721. 'not null' => FALSE,
  6722. ),
  6723. 'rank' => array(
  6724. 'description' => t('TODO: please describe this field!'),
  6725. 'type' => 'int',
  6726. 'not null' => TRUE,
  6727. 'default' => 0,
  6728. ),
  6729. ),
  6730. 'primary key' => array('element_relationship_id'),
  6731. 'unique keys' => array(
  6732. 'element_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  6733. ),
  6734. 'indexes' => array(
  6735. 'element_relationship_idx1' => array('subject_id'),
  6736. 'element_relationship_idx2' => array('type_id'),
  6737. 'element_relationship_idx3' => array('object_id'),
  6738. 'element_relationship_idx4' => array('value'),
  6739. ),
  6740. );
  6741. $schema['elementresult'] = array(
  6742. 'description' => t('TODO: please describe this table!'),
  6743. 'fields' => array(
  6744. 'elementresult_id' => array(
  6745. 'description' => t('TODO: please describe this field!'),
  6746. 'type' => 'serial',
  6747. 'not null' => TRUE,
  6748. ),
  6749. 'element_id' => array(
  6750. 'description' => t('TODO: please describe this field!'),
  6751. 'type' => 'int',
  6752. 'not null' => TRUE,
  6753. ),
  6754. 'quantification_id' => array(
  6755. 'description' => t('TODO: please describe this field!'),
  6756. 'type' => 'int',
  6757. 'not null' => TRUE,
  6758. ),
  6759. 'signal' => array(
  6760. 'description' => t('TODO: please describe this field!'),
  6761. 'type' => 'float',
  6762. 'size' => 'big',
  6763. 'not null' => TRUE,
  6764. ),
  6765. ),
  6766. 'primary key' => array('elementresult_id'),
  6767. 'unique keys' => array(
  6768. 'elementresult_c1' => array('element_id', 'quantification_id')
  6769. ),
  6770. 'indexes' => array(
  6771. 'elementresult_idx1' => array('element_id'),
  6772. 'elementresult_idx2' => array('quantification_id'),
  6773. 'elementresult_idx3' => array('signal'),
  6774. ),
  6775. );
  6776. $schema['elementresult_relationship'] = array(
  6777. 'description' => t('TODO: please describe this table!'),
  6778. 'fields' => array(
  6779. 'elementresult_relationship_id' => array(
  6780. 'description' => t('TODO: please describe this field!'),
  6781. 'type' => 'serial',
  6782. 'not null' => TRUE,
  6783. ),
  6784. 'subject_id' => array(
  6785. 'description' => t('TODO: please describe this field!'),
  6786. 'type' => 'int',
  6787. 'not null' => TRUE,
  6788. ),
  6789. 'type_id' => array(
  6790. 'description' => t('TODO: please describe this field!'),
  6791. 'type' => 'int',
  6792. 'not null' => TRUE,
  6793. ),
  6794. 'object_id' => array(
  6795. 'description' => t('TODO: please describe this field!'),
  6796. 'type' => 'int',
  6797. 'not null' => TRUE,
  6798. ),
  6799. 'value' => array(
  6800. 'description' => t('TODO: please describe this field!'),
  6801. 'type' => 'text',
  6802. 'not null' => FALSE,
  6803. ),
  6804. 'rank' => array(
  6805. 'description' => t('TODO: please describe this field!'),
  6806. 'type' => 'int',
  6807. 'not null' => TRUE,
  6808. 'default' => 0,
  6809. ),
  6810. ),
  6811. 'primary key' => array('elementresult_relationship_id'),
  6812. 'unique keys' => array(
  6813. 'elementresult_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  6814. ),
  6815. 'indexes' => array(
  6816. 'elementresult_relationship_idx1' => array('subject_id'),
  6817. 'elementresult_relationship_idx2' => array('type_id'),
  6818. 'elementresult_relationship_idx3' => array('object_id'),
  6819. 'elementresult_relationship_idx4' => array('value'),
  6820. ),
  6821. );
  6822. $schema['environment'] = array(
  6823. 'description' => t('TODO: please describe this table!'),
  6824. 'fields' => array(
  6825. 'environment_id' => array(
  6826. 'description' => t('TODO: please describe this field!'),
  6827. 'type' => 'serial',
  6828. 'not null' => TRUE,
  6829. ),
  6830. 'uniquename' => array(
  6831. 'description' => t('TODO: please describe this field!'),
  6832. 'type' => 'text',
  6833. 'not null' => TRUE,
  6834. ),
  6835. 'description' => array(
  6836. 'description' => t('TODO: please describe this field!'),
  6837. 'type' => 'text',
  6838. 'not null' => FALSE,
  6839. ),
  6840. ),
  6841. 'primary key' => array('environment_id'),
  6842. 'unique keys' => array(
  6843. 'environment_c1' => array('uniquename')
  6844. ),
  6845. 'indexes' => array(
  6846. 'environment_idx1' => array('uniquename'),
  6847. ),
  6848. );
  6849. return $schema;
  6850. }