tripal_core.schema_v1.2.api.inc 366 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995
  1. <?php
  2. /* @file: This file contains default schema definitions for all chado v1.2 tables
  3. * to be used by other function. Specifically these functions are used
  4. * by the tripal_core select/insert/update API functions and by
  5. * the Tripal Views module.
  6. *
  7. * These schema definitions can be augmented by another modules
  8. * (specifically to add missing definitions) by implementing
  9. * hook_chado_schema_v1_2_<table name>().
  10. *
  11. * @defgroup tripal_schema_api Core Module Schema API
  12. * @{
  13. * Provides an application programming interface (API) for describing Chado tables.
  14. * This API consists of a set of functions, one for each table in Chado. Each
  15. * function simply returns a Drupal style array that defines the table.
  16. *
  17. * Because Drupal 6 does not handle foreign key (FK) relationships, however FK
  18. * relationships are needed to for Tripal Views. Therefore, FK relationships
  19. * have been added to the schema defintitions below.
  20. *
  21. * The functions provided in this documentation should not be called as is, but if you need
  22. * the Drupal-style array definition for any table, use the following function
  23. * call:
  24. *
  25. * $table_desc = tripal_core_get_chado_table_schema($table)
  26. *
  27. * where the variable $table contains the name of the table you want to
  28. * retireve. The tripal_core_get_chado_table_schema function determines the appropriate version of
  29. * Chado and uses the Drupal hook infrastructure to call the appropriate
  30. * hook function to retrieve the table schema.
  31. *
  32. * @}
  33. * @ingroup tripal_api
  34. */
  35. /**
  36. * Implements hook_chado_schema_v1_2_acquisition()
  37. * Purpose: To describe the structure of 'acquisition' to tripal
  38. * @see tripal_core_chado_insert()
  39. * @see tripal_core_chado_update()
  40. * @see tripal_core_chado_select()
  41. *
  42. * @return
  43. * An array describing the 'acquisition' table
  44. *
  45. * @ingroup tripal_chado_v1.2_schema_api
  46. *
  47. */
  48. function tripal_core_chado_schema_v1_2_acquisition() {
  49. $description = array(
  50. 'description' => 'TODO: please describe this table!',
  51. 'fields' => array(
  52. 'acquisition_id' => array(
  53. 'description' => 'TODO: please describe this field!',
  54. 'type' => 'serial',
  55. 'not null' => TRUE,
  56. ),
  57. 'assay_id' => array(
  58. 'description' => 'TODO: please describe this field!',
  59. 'type' => 'int',
  60. 'not null' => TRUE,
  61. ),
  62. 'protocol_id' => array(
  63. 'description' => 'TODO: please describe this field!',
  64. 'type' => 'int',
  65. 'not null' => FALSE,
  66. ),
  67. 'channel_id' => array(
  68. 'description' => 'TODO: please describe this field!',
  69. 'type' => 'int',
  70. 'not null' => FALSE,
  71. ),
  72. 'acquisitiondate' => array(
  73. 'description' => 'TODO: please describe this field!',
  74. 'type' => 'datetime',
  75. 'not null' => FALSE,
  76. 'default' => 'ow(',
  77. ),
  78. 'name' => array(
  79. 'description' => 'TODO: please describe this field!',
  80. 'type' => 'text',
  81. 'not null' => FALSE,
  82. ),
  83. 'uri' => array(
  84. 'description' => 'TODO: please describe this field!',
  85. 'type' => 'text',
  86. 'not null' => FALSE,
  87. ),
  88. ),
  89. 'primary key' => array(
  90. 0 => 'acquisition_id',
  91. ),
  92. 'unique keys' => array(
  93. 'acquisition_c1' => array(
  94. 0 => 'name',
  95. ),
  96. ),
  97. 'indexes' => array(
  98. 'acquisition_idx1' => array(
  99. 0 => 'assay_id',
  100. ),
  101. 'acquisition_idx2' => array(
  102. 0 => 'protocol_id',
  103. ),
  104. 'acquisition_idx3' => array(
  105. 0 => 'channel_id',
  106. ),
  107. ),
  108. 'foreign keys' => array(
  109. 'protocol' => array(
  110. 'table' => 'protocol',
  111. 'columns' => array(
  112. 'protocol_id' => 'protocol_id',
  113. ),
  114. ),
  115. 'assay' => array(
  116. 'table' => 'assay',
  117. 'columns' => array(
  118. 'assay_id' => 'assay_id',
  119. ),
  120. ),
  121. 'channel' => array(
  122. 'table' => 'channel',
  123. 'columns' => array(
  124. 'channel_id' => 'channel_id',
  125. ),
  126. ),
  127. ),
  128. 'table' => 'acquisition',
  129. 'referring_tables' => array(
  130. 0 => 'acquisition_relationship',
  131. 2 => 'acquisitionprop',
  132. 3 => 'quantification',
  133. ),
  134. );
  135. return $description;
  136. }
  137. /**
  138. * Implements hook_chado_schema_v1_2_acquisition_relationship()
  139. * Purpose: To describe the structure of 'acquisition_relationship' to tripal
  140. * @see tripal_core_chado_insert()
  141. * @see tripal_core_chado_update()
  142. * @see tripal_core_chado_select()
  143. *
  144. * @return
  145. * An array describing the 'acquisition_relationship' table
  146. *
  147. * @ingroup tripal_chado_v1.2_schema_api
  148. *
  149. */
  150. function tripal_core_chado_schema_v1_2_acquisition_relationship() {
  151. $description = array(
  152. 'description' => 'TODO: please describe this table!',
  153. 'fields' => array(
  154. 'acquisition_relationship_id' => array(
  155. 'description' => 'TODO: please describe this field!',
  156. 'type' => 'serial',
  157. 'not null' => TRUE,
  158. ),
  159. 'subject_id' => array(
  160. 'description' => 'TODO: please describe this field!',
  161. 'type' => 'int',
  162. 'not null' => TRUE,
  163. ),
  164. 'type_id' => array(
  165. 'description' => 'TODO: please describe this field!',
  166. 'type' => 'int',
  167. 'not null' => TRUE,
  168. ),
  169. 'object_id' => array(
  170. 'description' => 'TODO: please describe this field!',
  171. 'type' => 'int',
  172. 'not null' => TRUE,
  173. ),
  174. 'value' => array(
  175. 'description' => 'TODO: please describe this field!',
  176. 'type' => 'text',
  177. 'not null' => FALSE,
  178. ),
  179. 'rank' => array(
  180. 'description' => 'TODO: please describe this field!',
  181. 'type' => 'int',
  182. 'not null' => TRUE,
  183. 'default' => 0,
  184. ),
  185. ),
  186. 'primary key' => array(
  187. 0 => 'acquisition_relationship_id',
  188. ),
  189. 'unique keys' => array(
  190. 'acquisition_relationship_c1' => array(
  191. 0 => 'subject_id',
  192. 1 => 'object_id',
  193. 2 => 'type_id',
  194. 3 => 'rank',
  195. ),
  196. ),
  197. 'indexes' => array(
  198. 'acquisition_relationship_idx1' => array(
  199. 0 => 'subject_id',
  200. ),
  201. 'acquisition_relationship_idx2' => array(
  202. 0 => 'type_id',
  203. ),
  204. 'acquisition_relationship_idx3' => array(
  205. 0 => 'object_id',
  206. ),
  207. ),
  208. 'foreign keys' => array(
  209. 'cvterm' => array(
  210. 'table' => 'cvterm',
  211. 'columns' => array(
  212. 'type_id' => 'cvterm_id',
  213. ),
  214. ),
  215. 'acquisition' => array(
  216. 'table' => 'acquisition',
  217. 'columns' => array(
  218. 'subject_id' => 'acquisition_id',
  219. 'object_id' => 'acquisition_id',
  220. ),
  221. ),
  222. ),
  223. 'table' => 'acquisition_relationship',
  224. 'referring_tables' => NULL,
  225. );
  226. return $description;
  227. }
  228. /**
  229. * Implements hook_chado_schema_v1_2_acquisitionprop()
  230. * Purpose: To describe the structure of 'acquisitionprop' to tripal
  231. * @see tripal_core_chado_insert()
  232. * @see tripal_core_chado_update()
  233. * @see tripal_core_chado_select()
  234. *
  235. * @return
  236. * An array describing the 'acquisitionprop' table
  237. *
  238. * @ingroup tripal_chado_v1.2_schema_api
  239. *
  240. */
  241. function tripal_core_chado_schema_v1_2_acquisitionprop() {
  242. $description = array(
  243. 'description' => 'TODO: please describe this table!',
  244. 'fields' => array(
  245. 'acquisitionprop_id' => array(
  246. 'description' => 'TODO: please describe this field!',
  247. 'type' => 'serial',
  248. 'not null' => TRUE,
  249. ),
  250. 'acquisition_id' => array(
  251. 'description' => 'TODO: please describe this field!',
  252. 'type' => 'int',
  253. 'not null' => TRUE,
  254. ),
  255. 'type_id' => array(
  256. 'description' => 'TODO: please describe this field!',
  257. 'type' => 'int',
  258. 'not null' => TRUE,
  259. ),
  260. 'value' => array(
  261. 'description' => 'TODO: please describe this field!',
  262. 'type' => 'text',
  263. 'not null' => FALSE,
  264. ),
  265. 'rank' => array(
  266. 'description' => 'TODO: please describe this field!',
  267. 'type' => 'int',
  268. 'not null' => TRUE,
  269. 'default' => 0,
  270. ),
  271. ),
  272. 'primary key' => array(
  273. 0 => 'acquisitionprop_id',
  274. ),
  275. 'unique keys' => array(
  276. 'acquisitionprop_c1' => array(
  277. 0 => 'acquisition_id',
  278. 1 => 'type_id',
  279. 2 => 'rank',
  280. ),
  281. ),
  282. 'indexes' => array(
  283. 'acquisitionprop_idx1' => array(
  284. 0 => 'acquisition_id',
  285. ),
  286. 'acquisitionprop_idx2' => array(
  287. 0 => 'type_id',
  288. ),
  289. ),
  290. 'foreign keys' => array(
  291. 'cvterm' => array(
  292. 'table' => 'cvterm',
  293. 'columns' => array(
  294. 'type_id' => 'cvterm_id',
  295. ),
  296. ),
  297. 'acquisition' => array(
  298. 'table' => 'acquisition',
  299. 'columns' => array(
  300. 'acquisition_id' => 'acquisition_id',
  301. ),
  302. ),
  303. ),
  304. 'table' => 'acquisitionprop',
  305. 'referring_tables' => NULL,
  306. );
  307. return $description;
  308. }
  309. /**
  310. * Implements hook_chado_schema_v1_2_analysis()
  311. * Purpose: To describe the structure of 'analysis' to tripal
  312. * @see tripal_core_chado_insert()
  313. * @see tripal_core_chado_update()
  314. * @see tripal_core_chado_select()
  315. *
  316. * @return
  317. * An array describing the 'analysis' table
  318. *
  319. * @ingroup tripal_chado_v1.2_schema_api
  320. *
  321. */
  322. function tripal_core_chado_schema_v1_2_analysis() {
  323. $description = array(
  324. 'referring_tables' => array(
  325. 0 => 'analysisfeature',
  326. 1 => 'analysisprop',
  327. 2 => 'phylotree',
  328. 3 => 'quantification',
  329. ),
  330. 'description' => 'TODO: please describe this table!',
  331. 'fields' => array(
  332. 'analysis_id' => array(
  333. 'description' => 'TODO: please describe this field!',
  334. 'type' => 'serial',
  335. 'not null' => TRUE,
  336. ),
  337. 'name' => array(
  338. 'description' => 'TODO: please describe this field!',
  339. 'type' => 'varchar',
  340. 'length' => '255',
  341. 'not null' => FALSE,
  342. ),
  343. 'description' => array(
  344. 'description' => 'TODO: please describe this field!',
  345. 'type' => 'text',
  346. 'not null' => FALSE,
  347. ),
  348. 'program' => array(
  349. 'description' => 'TODO: please describe this field!',
  350. 'type' => 'varchar',
  351. 'length' => '255',
  352. 'not null' => TRUE,
  353. ),
  354. 'programversion' => array(
  355. 'description' => 'TODO: please describe this field!',
  356. 'type' => 'varchar',
  357. 'length' => '255',
  358. 'not null' => TRUE,
  359. ),
  360. 'algorithm' => array(
  361. 'description' => 'TODO: please describe this field!',
  362. 'type' => 'varchar',
  363. 'length' => '255',
  364. 'not null' => FALSE,
  365. ),
  366. 'sourcename' => array(
  367. 'description' => 'TODO: please describe this field!',
  368. 'type' => 'varchar',
  369. 'length' => '255',
  370. 'not null' => FALSE,
  371. ),
  372. 'sourceversion' => array(
  373. 'description' => 'TODO: please describe this field!',
  374. 'type' => 'varchar',
  375. 'length' => '255',
  376. 'not null' => FALSE,
  377. ),
  378. 'sourceuri' => array(
  379. 'description' => 'TODO: please describe this field!',
  380. 'type' => 'text',
  381. 'not null' => FALSE,
  382. ),
  383. 'timeexecuted' => array(
  384. 'description' => 'TODO: please describe this field!',
  385. 'type' => 'datetime',
  386. 'not null' => TRUE,
  387. 'default' => 'ow(',
  388. ),
  389. ),
  390. 'primary key' => array(
  391. 0 => 'analysis_id',
  392. ),
  393. 'unique keys' => array(
  394. 'analysis_c1' => array(
  395. 0 => 'program',
  396. 1 => 'programversion',
  397. 2 => 'sourcename',
  398. ),
  399. ),
  400. 'foreign keys' => array(
  401. ),
  402. 'table' => 'analysis',
  403. );
  404. return $description;
  405. }
  406. /**
  407. * Implements hook_chado_schema_v1_2_analysisfeature()
  408. * Purpose: To describe the structure of 'analysisfeature' to tripal
  409. * @see tripal_core_chado_insert()
  410. * @see tripal_core_chado_update()
  411. * @see tripal_core_chado_select()
  412. *
  413. * @return
  414. * An array describing the 'analysisfeature' table
  415. *
  416. * @ingroup tripal_chado_v1.2_schema_api
  417. *
  418. */
  419. function tripal_core_chado_schema_v1_2_analysisfeature() {
  420. $description = array(
  421. 'description' => 'TODO: please describe this table!',
  422. 'fields' => array(
  423. 'analysisfeature_id' => array(
  424. 'description' => 'TODO: please describe this field!',
  425. 'type' => 'serial',
  426. 'not null' => TRUE,
  427. ),
  428. 'feature_id' => array(
  429. 'description' => 'TODO: please describe this field!',
  430. 'type' => 'int',
  431. 'not null' => TRUE,
  432. ),
  433. 'analysis_id' => array(
  434. 'description' => 'TODO: please describe this field!',
  435. 'type' => 'int',
  436. 'not null' => TRUE,
  437. ),
  438. 'rawscore' => array(
  439. 'description' => 'TODO: please describe this field!',
  440. 'type' => 'float',
  441. 'size' => 'big',
  442. 'not null' => FALSE,
  443. ),
  444. 'normscore' => array(
  445. 'description' => 'TODO: please describe this field!',
  446. 'type' => 'float',
  447. 'size' => 'big',
  448. 'not null' => FALSE,
  449. ),
  450. 'significance' => array(
  451. 'description' => 'TODO: please describe this field!',
  452. 'type' => 'float',
  453. 'size' => 'big',
  454. 'not null' => FALSE,
  455. ),
  456. 'identity' => array(
  457. 'description' => 'TODO: please describe this field!',
  458. 'type' => 'float',
  459. 'size' => 'big',
  460. 'not null' => FALSE,
  461. ),
  462. ),
  463. 'primary key' => array(
  464. 0 => 'analysisfeature_id',
  465. ),
  466. 'unique keys' => array(
  467. 'analysisfeature_c1' => array(
  468. 0 => 'feature_id',
  469. 1 => 'analysis_id',
  470. ),
  471. ),
  472. 'indexes' => array(
  473. 'analysisfeature_idx1' => array(
  474. 0 => 'feature_id',
  475. ),
  476. 'analysisfeature_idx2' => array(
  477. 0 => 'analysis_id',
  478. ),
  479. ),
  480. 'foreign keys' => array(
  481. 'analysis' => array(
  482. 'table' => 'analysis',
  483. 'columns' => array(
  484. 'analysis_id' => 'analysis_id',
  485. ),
  486. ),
  487. 'feature' => array(
  488. 'table' => 'feature',
  489. 'columns' => array(
  490. 'feature_id' => 'feature_id',
  491. ),
  492. ),
  493. ),
  494. 'table' => 'analysisfeature',
  495. 'referring_tables' => array(
  496. 0 => 'analysisfeatureprop',
  497. ),
  498. );
  499. return $description;
  500. }
  501. /**
  502. * Implements hook_chado_schema_v1_2_analysisfeatureprop()
  503. * Purpose: To describe the structure of 'analysisfeatureprop' to tripal
  504. * @see tripal_core_chado_insert()
  505. * @see tripal_core_chado_update()
  506. * @see tripal_core_chado_select()
  507. *
  508. * @return
  509. * An array describing the 'analysisfeatureprop' table
  510. *
  511. * @ingroup tripal_chado_v1.2_schema_api
  512. *
  513. */
  514. function tripal_core_chado_schema_v1_2_analysisfeatureprop() {
  515. $description = array(
  516. 'description' => 'TODO: please describe this table!',
  517. 'fields' => array(
  518. 'analysisfeatureprop_id' => array(
  519. 'description' => 'TODO: please describe this field!',
  520. 'type' => 'serial',
  521. 'not null' => TRUE,
  522. ),
  523. 'analysisfeature_id' => array(
  524. 'description' => 'TODO: please describe this field!',
  525. 'type' => 'int',
  526. 'not null' => TRUE,
  527. ),
  528. 'type_id' => array(
  529. 'description' => 'TODO: please describe this field!',
  530. 'type' => 'int',
  531. 'not null' => TRUE,
  532. ),
  533. 'value' => array(
  534. 'description' => 'TODO: please describe this field!',
  535. 'type' => 'text',
  536. 'not null' => FALSE,
  537. ),
  538. 'rank' => array(
  539. 'description' => 'TODO: please describe this field!',
  540. 'type' => 'int',
  541. 'not null' => TRUE,
  542. ),
  543. ),
  544. 'primary key' => array(
  545. 0 => 'analysisfeatureprop_id',
  546. ),
  547. 'unique keys' => array(
  548. 'analysisfeature_id_type_id_rank' => array(
  549. 0 => 'analysisfeature_id',
  550. 1 => 'type_id',
  551. 2 => 'rank',
  552. ),
  553. ),
  554. 'foreign keys' => array(
  555. 'cvterm' => array(
  556. 'table' => 'cvterm',
  557. 'columns' => array(
  558. 'type_id' => 'cvterm_id',
  559. ),
  560. ),
  561. 'analysisfeature' => array(
  562. 'table' => 'analysisfeature',
  563. 'columns' => array(
  564. 'analysisfeature_id' => 'analysisfeature_id',
  565. ),
  566. ),
  567. ),
  568. 'table' => 'analysisfeatureprop',
  569. 'referring_tables' => NULL,
  570. );
  571. return $description;
  572. }
  573. /**
  574. * Implements hook_chado_schema_v1_2_analysisprop()
  575. * Purpose: To describe the structure of 'analysisprop' to tripal
  576. * @see tripal_core_chado_insert()
  577. * @see tripal_core_chado_update()
  578. * @see tripal_core_chado_select()
  579. *
  580. * @return
  581. * An array describing the 'analysisprop' table
  582. *
  583. * @ingroup tripal_chado_v1.2_schema_api
  584. *
  585. */
  586. function tripal_core_chado_schema_v1_2_analysisprop() {
  587. $description = array(
  588. 'description' => 'TODO: please describe this table!',
  589. 'fields' => array(
  590. 'analysisprop_id' => array(
  591. 'description' => 'TODO: please describe this field!',
  592. 'type' => 'serial',
  593. 'not null' => TRUE,
  594. ),
  595. 'analysis_id' => array(
  596. 'description' => 'TODO: please describe this field!',
  597. 'type' => 'int',
  598. 'not null' => TRUE,
  599. ),
  600. 'type_id' => array(
  601. 'description' => 'TODO: please describe this field!',
  602. 'type' => 'int',
  603. 'not null' => TRUE,
  604. ),
  605. 'value' => array(
  606. 'description' => 'TODO: please describe this field!',
  607. 'type' => 'text',
  608. 'not null' => FALSE,
  609. ),
  610. 'rank' => array(
  611. 'description' => 'TODO: please describe this field!',
  612. 'type' => 'int',
  613. 'not null' => TRUE,
  614. 'default' => 0,
  615. ),
  616. ),
  617. 'primary key' => array(
  618. 0 => 'analysisprop_id',
  619. ),
  620. 'unique keys' => array(
  621. 'analysisprop_c1' => array(
  622. 0 => 'analysis_id',
  623. 1 => 'type_id',
  624. 2 => 'rank',
  625. ),
  626. ),
  627. 'indexes' => array(
  628. 'analysisprop_idx1' => array(
  629. 0 => 'analysis_id',
  630. ),
  631. 'analysisprop_idx2' => array(
  632. 0 => 'type_id',
  633. ),
  634. ),
  635. 'foreign keys' => array(
  636. 'cvterm' => array(
  637. 'table' => 'cvterm',
  638. 'columns' => array(
  639. 'type_id' => 'cvterm_id',
  640. ),
  641. ),
  642. 'analysis' => array(
  643. 'table' => 'analysis',
  644. 'columns' => array(
  645. 'analysis_id' => 'analysis_id',
  646. ),
  647. ),
  648. ),
  649. 'table' => 'analysisprop',
  650. 'referring_tables' => NULL,
  651. );
  652. return $description;
  653. }
  654. /**
  655. * Implements hook_chado_schema_v1_2_arraydesign()
  656. * Purpose: To describe the structure of 'arraydesign' to tripal
  657. * @see tripal_core_chado_insert()
  658. * @see tripal_core_chado_update()
  659. * @see tripal_core_chado_select()
  660. *
  661. * @return
  662. * An array describing the 'arraydesign' table
  663. *
  664. * @ingroup tripal_chado_v1.2_schema_api
  665. *
  666. */
  667. function tripal_core_chado_schema_v1_2_arraydesign() {
  668. $description = array(
  669. 'description' => 'TODO: please describe this table!',
  670. 'fields' => array(
  671. 'arraydesign_id' => array(
  672. 'description' => 'TODO: please describe this field!',
  673. 'type' => 'serial',
  674. 'not null' => TRUE,
  675. ),
  676. 'manufacturer_id' => array(
  677. 'description' => 'TODO: please describe this field!',
  678. 'type' => 'int',
  679. 'not null' => TRUE,
  680. ),
  681. 'platformtype_id' => array(
  682. 'description' => 'TODO: please describe this field!',
  683. 'type' => 'int',
  684. 'not null' => TRUE,
  685. ),
  686. 'substratetype_id' => array(
  687. 'description' => 'TODO: please describe this field!',
  688. 'type' => 'int',
  689. 'not null' => FALSE,
  690. ),
  691. 'protocol_id' => array(
  692. 'description' => 'TODO: please describe this field!',
  693. 'type' => 'int',
  694. 'not null' => FALSE,
  695. ),
  696. 'dbxref_id' => array(
  697. 'description' => 'TODO: please describe this field!',
  698. 'type' => 'int',
  699. 'not null' => FALSE,
  700. ),
  701. 'name' => array(
  702. 'description' => 'TODO: please describe this field!',
  703. 'type' => 'text',
  704. 'not null' => TRUE,
  705. ),
  706. 'version' => array(
  707. 'description' => 'TODO: please describe this field!',
  708. 'type' => 'text',
  709. 'not null' => FALSE,
  710. ),
  711. 'description' => array(
  712. 'description' => 'TODO: please describe this field!',
  713. 'type' => 'text',
  714. 'not null' => FALSE,
  715. ),
  716. 'array_dimensions' => array(
  717. 'description' => 'TODO: please describe this field!',
  718. 'type' => 'text',
  719. 'not null' => FALSE,
  720. ),
  721. 'element_dimensions' => array(
  722. 'description' => 'TODO: please describe this field!',
  723. 'type' => 'text',
  724. 'not null' => FALSE,
  725. ),
  726. 'num_of_elements' => array(
  727. 'description' => 'TODO: please describe this field!',
  728. 'type' => 'int',
  729. 'not null' => FALSE,
  730. ),
  731. 'num_array_columns' => array(
  732. 'description' => 'TODO: please describe this field!',
  733. 'type' => 'int',
  734. 'not null' => FALSE,
  735. ),
  736. 'num_array_rows' => array(
  737. 'description' => 'TODO: please describe this field!',
  738. 'type' => 'int',
  739. 'not null' => FALSE,
  740. ),
  741. 'num_grid_columns' => array(
  742. 'description' => 'TODO: please describe this field!',
  743. 'type' => 'int',
  744. 'not null' => FALSE,
  745. ),
  746. 'num_grid_rows' => array(
  747. 'description' => 'TODO: please describe this field!',
  748. 'type' => 'int',
  749. 'not null' => FALSE,
  750. ),
  751. 'num_sub_columns' => array(
  752. 'description' => 'TODO: please describe this field!',
  753. 'type' => 'int',
  754. 'not null' => FALSE,
  755. ),
  756. 'num_sub_rows' => array(
  757. 'description' => 'TODO: please describe this field!',
  758. 'type' => 'int',
  759. 'not null' => FALSE,
  760. ),
  761. ),
  762. 'primary key' => array(
  763. 0 => 'arraydesign_id',
  764. ),
  765. 'unique keys' => array(
  766. 'arraydesign_c1' => array(
  767. 0 => 'name',
  768. ),
  769. ),
  770. 'indexes' => array(
  771. 'arraydesign_idx1' => array(
  772. 0 => 'manufacturer_id',
  773. ),
  774. 'arraydesign_idx2' => array(
  775. 0 => 'platformtype_id',
  776. ),
  777. 'arraydesign_idx3' => array(
  778. 0 => 'substratetype_id',
  779. ),
  780. 'arraydesign_idx4' => array(
  781. 0 => 'protocol_id',
  782. ),
  783. 'arraydesign_idx5' => array(
  784. 0 => 'dbxref_id',
  785. ),
  786. ),
  787. 'foreign keys' => array(
  788. 'cvterm' => array(
  789. 'table' => 'cvterm',
  790. 'columns' => array(
  791. 'platformtype_id' => 'cvterm_id',
  792. 'substratetype_id' => 'cvterm_id',
  793. ),
  794. ),
  795. 'dbxref' => array(
  796. 'table' => 'dbxref',
  797. 'columns' => array(
  798. 'dbxref_id' => 'dbxref_id',
  799. ),
  800. ),
  801. 'contact' => array(
  802. 'table' => 'contact',
  803. 'columns' => array(
  804. 'manufacturer_id' => 'contact_id',
  805. ),
  806. ),
  807. 'protocol' => array(
  808. 'table' => 'protocol',
  809. 'columns' => array(
  810. 'protocol_id' => 'protocol_id',
  811. ),
  812. ),
  813. ),
  814. 'table' => 'arraydesign',
  815. 'referring_tables' => array(
  816. 0 => 'arraydesignprop',
  817. 1 => 'assay',
  818. 2 => 'element',
  819. ),
  820. );
  821. return $description;
  822. }
  823. /**
  824. * Implements hook_chado_schema_v1_2_arraydesignprop()
  825. * Purpose: To describe the structure of 'arraydesignprop' to tripal
  826. * @see tripal_core_chado_insert()
  827. * @see tripal_core_chado_update()
  828. * @see tripal_core_chado_select()
  829. *
  830. * @return
  831. * An array describing the 'arraydesignprop' table
  832. *
  833. * @ingroup tripal_chado_v1.2_schema_api
  834. *
  835. */
  836. function tripal_core_chado_schema_v1_2_arraydesignprop() {
  837. $description = array(
  838. 'description' => 'TODO: please describe this table!',
  839. 'fields' => array(
  840. 'arraydesignprop_id' => array(
  841. 'description' => 'TODO: please describe this field!',
  842. 'type' => 'serial',
  843. 'not null' => TRUE,
  844. ),
  845. 'arraydesign_id' => array(
  846. 'description' => 'TODO: please describe this field!',
  847. 'type' => 'int',
  848. 'not null' => TRUE,
  849. ),
  850. 'type_id' => array(
  851. 'description' => 'TODO: please describe this field!',
  852. 'type' => 'int',
  853. 'not null' => TRUE,
  854. ),
  855. 'value' => array(
  856. 'description' => 'TODO: please describe this field!',
  857. 'type' => 'text',
  858. 'not null' => FALSE,
  859. ),
  860. 'rank' => array(
  861. 'description' => 'TODO: please describe this field!',
  862. 'type' => 'int',
  863. 'not null' => TRUE,
  864. 'default' => 0,
  865. ),
  866. ),
  867. 'primary key' => array(
  868. 0 => 'arraydesignprop_id',
  869. ),
  870. 'unique keys' => array(
  871. 'arraydesignprop_c1' => array(
  872. 0 => 'arraydesign_id',
  873. 1 => 'type_id',
  874. 2 => 'rank',
  875. ),
  876. ),
  877. 'indexes' => array(
  878. 'arraydesignprop_idx1' => array(
  879. 0 => 'arraydesign_id',
  880. ),
  881. 'arraydesignprop_idx2' => array(
  882. 0 => 'type_id',
  883. ),
  884. ),
  885. 'foreign keys' => array(
  886. 'cvterm' => array(
  887. 'table' => 'cvterm',
  888. 'columns' => array(
  889. 'type_id' => 'cvterm_id',
  890. ),
  891. ),
  892. 'arraydesign' => array(
  893. 'table' => 'arraydesign',
  894. 'columns' => array(
  895. 'arraydesign_id' => 'arraydesign_id',
  896. ),
  897. ),
  898. ),
  899. 'table' => 'arraydesignprop',
  900. 'referring_tables' => NULL,
  901. );
  902. return $description;
  903. }
  904. /**
  905. * Implements hook_chado_schema_v1_2_assay()
  906. * Purpose: To describe the structure of 'assay' to tripal
  907. * @see tripal_core_chado_insert()
  908. * @see tripal_core_chado_update()
  909. * @see tripal_core_chado_select()
  910. *
  911. * @return
  912. * An array describing the 'assay' table
  913. *
  914. * @ingroup tripal_chado_v1.2_schema_api
  915. *
  916. */
  917. function tripal_core_chado_schema_v1_2_assay() {
  918. $description = array(
  919. 'description' => 'TODO: please describe this table!',
  920. 'fields' => array(
  921. 'assay_id' => array(
  922. 'description' => 'TODO: please describe this field!',
  923. 'type' => 'serial',
  924. 'not null' => TRUE,
  925. ),
  926. 'arraydesign_id' => array(
  927. 'description' => 'TODO: please describe this field!',
  928. 'type' => 'int',
  929. 'not null' => TRUE,
  930. ),
  931. 'protocol_id' => array(
  932. 'description' => 'TODO: please describe this field!',
  933. 'type' => 'int',
  934. 'not null' => FALSE,
  935. ),
  936. 'assaydate' => array(
  937. 'description' => 'TODO: please describe this field!',
  938. 'type' => 'datetime',
  939. 'not null' => FALSE,
  940. 'default' => 'ow(',
  941. ),
  942. 'arrayidentifier' => array(
  943. 'description' => 'TODO: please describe this field!',
  944. 'type' => 'text',
  945. 'not null' => FALSE,
  946. ),
  947. 'arraybatchidentifier' => array(
  948. 'description' => 'TODO: please describe this field!',
  949. 'type' => 'text',
  950. 'not null' => FALSE,
  951. ),
  952. 'operator_id' => array(
  953. 'description' => 'TODO: please describe this field!',
  954. 'type' => 'int',
  955. 'not null' => TRUE,
  956. ),
  957. 'dbxref_id' => array(
  958. 'description' => 'TODO: please describe this field!',
  959. 'type' => 'int',
  960. 'not null' => FALSE,
  961. ),
  962. 'name' => array(
  963. 'description' => 'TODO: please describe this field!',
  964. 'type' => 'text',
  965. 'not null' => FALSE,
  966. ),
  967. 'description' => array(
  968. 'description' => 'TODO: please describe this field!',
  969. 'type' => 'text',
  970. 'not null' => FALSE,
  971. ),
  972. ),
  973. 'primary key' => array(
  974. 0 => 'assay_id',
  975. ),
  976. 'unique keys' => array(
  977. 'assay_c1' => array(
  978. 0 => 'name',
  979. ),
  980. ),
  981. 'indexes' => array(
  982. 'assay_idx1' => array(
  983. 0 => 'arraydesign_id',
  984. ),
  985. 'assay_idx2' => array(
  986. 0 => 'protocol_id',
  987. ),
  988. 'assay_idx3' => array(
  989. 0 => 'operator_id',
  990. ),
  991. 'assay_idx4' => array(
  992. 0 => 'dbxref_id',
  993. ),
  994. ),
  995. 'foreign keys' => array(
  996. 'dbxref' => array(
  997. 'table' => 'dbxref',
  998. 'columns' => array(
  999. 'dbxref_id' => 'dbxref_id',
  1000. ),
  1001. ),
  1002. 'contact' => array(
  1003. 'table' => 'contact',
  1004. 'columns' => array(
  1005. 'operator_id' => 'contact_id',
  1006. ),
  1007. ),
  1008. 'arraydesign' => array(
  1009. 'table' => 'arraydesign',
  1010. 'columns' => array(
  1011. 'arraydesign_id' => 'arraydesign_id',
  1012. ),
  1013. ),
  1014. 'protocol' => array(
  1015. 'table' => 'protocol',
  1016. 'columns' => array(
  1017. 'protocol_id' => 'protocol_id',
  1018. ),
  1019. ),
  1020. ),
  1021. 'table' => 'assay',
  1022. 'referring_tables' => array(
  1023. 0 => 'acquisition',
  1024. 1 => 'assay_biomaterial',
  1025. 2 => 'assay_project',
  1026. 3 => 'assayprop',
  1027. 4 => 'control',
  1028. 5 => 'study_assay',
  1029. 6 => 'studyfactorvalue',
  1030. ),
  1031. );
  1032. return $description;
  1033. }
  1034. /**
  1035. * Implements hook_chado_schema_v1_2_assay_biomaterial()
  1036. * Purpose: To describe the structure of 'assay_biomaterial' to tripal
  1037. * @see tripal_core_chado_insert()
  1038. * @see tripal_core_chado_update()
  1039. * @see tripal_core_chado_select()
  1040. *
  1041. * @return
  1042. * An array describing the 'assay_biomaterial' table
  1043. *
  1044. * @ingroup tripal_chado_v1.2_schema_api
  1045. *
  1046. */
  1047. function tripal_core_chado_schema_v1_2_assay_biomaterial() {
  1048. $description = array(
  1049. 'description' => 'TODO: please describe this table!',
  1050. 'fields' => array(
  1051. 'assay_biomaterial_id' => array(
  1052. 'description' => 'TODO: please describe this field!',
  1053. 'type' => 'serial',
  1054. 'not null' => TRUE,
  1055. ),
  1056. 'assay_id' => array(
  1057. 'description' => 'TODO: please describe this field!',
  1058. 'type' => 'int',
  1059. 'not null' => TRUE,
  1060. ),
  1061. 'biomaterial_id' => array(
  1062. 'description' => 'TODO: please describe this field!',
  1063. 'type' => 'int',
  1064. 'not null' => TRUE,
  1065. ),
  1066. 'channel_id' => array(
  1067. 'description' => 'TODO: please describe this field!',
  1068. 'type' => 'int',
  1069. 'not null' => FALSE,
  1070. ),
  1071. 'rank' => array(
  1072. 'description' => 'TODO: please describe this field!',
  1073. 'type' => 'int',
  1074. 'not null' => TRUE,
  1075. 'default' => 0,
  1076. ),
  1077. ),
  1078. 'primary key' => array(
  1079. 0 => 'assay_biomaterial_id',
  1080. ),
  1081. 'unique keys' => array(
  1082. 'assay_biomaterial_c1' => array(
  1083. 0 => 'assay_id',
  1084. 1 => 'biomaterial_id',
  1085. 2 => 'channel_id',
  1086. 3 => 'rank',
  1087. ),
  1088. ),
  1089. 'indexes' => array(
  1090. 'assay_biomaterial_idx1' => array(
  1091. 0 => 'assay_id',
  1092. ),
  1093. 'assay_biomaterial_idx2' => array(
  1094. 0 => 'biomaterial_id',
  1095. ),
  1096. 'assay_biomaterial_idx3' => array(
  1097. 0 => 'channel_id',
  1098. ),
  1099. ),
  1100. 'foreign keys' => array(
  1101. 'assay' => array(
  1102. 'table' => 'assay',
  1103. 'columns' => array(
  1104. 'assay_id' => 'assay_id',
  1105. ),
  1106. ),
  1107. 'biomaterial' => array(
  1108. 'table' => 'biomaterial',
  1109. 'columns' => array(
  1110. 'biomaterial_id' => 'biomaterial_id',
  1111. ),
  1112. ),
  1113. 'channel' => array(
  1114. 'table' => 'channel',
  1115. 'columns' => array(
  1116. 'channel_id' => 'channel_id',
  1117. ),
  1118. ),
  1119. ),
  1120. 'table' => 'assay_biomaterial',
  1121. 'referring_tables' => NULL,
  1122. );
  1123. return $description;
  1124. }
  1125. /**
  1126. * Implements hook_chado_schema_v1_2_assay_project()
  1127. * Purpose: To describe the structure of 'assay_project' to tripal
  1128. * @see tripal_core_chado_insert()
  1129. * @see tripal_core_chado_update()
  1130. * @see tripal_core_chado_select()
  1131. *
  1132. * @return
  1133. * An array describing the 'assay_project' table
  1134. *
  1135. * @ingroup tripal_chado_v1.2_schema_api
  1136. *
  1137. */
  1138. function tripal_core_chado_schema_v1_2_assay_project() {
  1139. $description = array(
  1140. 'description' => 'TODO: please describe this table!',
  1141. 'fields' => array(
  1142. 'assay_project_id' => array(
  1143. 'description' => 'TODO: please describe this field!',
  1144. 'type' => 'serial',
  1145. 'not null' => TRUE,
  1146. ),
  1147. 'assay_id' => array(
  1148. 'description' => 'TODO: please describe this field!',
  1149. 'type' => 'int',
  1150. 'not null' => TRUE,
  1151. ),
  1152. 'project_id' => array(
  1153. 'description' => 'TODO: please describe this field!',
  1154. 'type' => 'int',
  1155. 'not null' => TRUE,
  1156. ),
  1157. ),
  1158. 'primary key' => array(
  1159. 0 => 'assay_project_id',
  1160. ),
  1161. 'unique keys' => array(
  1162. 'assay_project_c1' => array(
  1163. 0 => 'assay_id',
  1164. 1 => 'project_id',
  1165. ),
  1166. ),
  1167. 'indexes' => array(
  1168. 'assay_project_idx1' => array(
  1169. 0 => 'assay_id',
  1170. ),
  1171. 'assay_project_idx2' => array(
  1172. 0 => 'project_id',
  1173. ),
  1174. ),
  1175. 'foreign keys' => array(
  1176. 'project' => array(
  1177. 'table' => 'project',
  1178. 'columns' => array(
  1179. 'project_id' => 'project_id',
  1180. ),
  1181. ),
  1182. 'assay' => array(
  1183. 'table' => 'assay',
  1184. 'columns' => array(
  1185. 'assay_id' => 'assay_id',
  1186. ),
  1187. ),
  1188. ),
  1189. 'table' => 'assay_project',
  1190. 'referring_tables' => NULL,
  1191. );
  1192. return $description;
  1193. }
  1194. /**
  1195. * Implements hook_chado_schema_v1_2_assayprop()
  1196. * Purpose: To describe the structure of 'assayprop' to tripal
  1197. * @see tripal_core_chado_insert()
  1198. * @see tripal_core_chado_update()
  1199. * @see tripal_core_chado_select()
  1200. *
  1201. * @return
  1202. * An array describing the 'assayprop' table
  1203. *
  1204. * @ingroup tripal_chado_v1.2_schema_api
  1205. *
  1206. */
  1207. function tripal_core_chado_schema_v1_2_assayprop() {
  1208. $description = array(
  1209. 'description' => 'TODO: please describe this table!',
  1210. 'fields' => array(
  1211. 'assayprop_id' => array(
  1212. 'description' => 'TODO: please describe this field!',
  1213. 'type' => 'serial',
  1214. 'not null' => TRUE,
  1215. ),
  1216. 'assay_id' => array(
  1217. 'description' => 'TODO: please describe this field!',
  1218. 'type' => 'int',
  1219. 'not null' => TRUE,
  1220. ),
  1221. 'type_id' => array(
  1222. 'description' => 'TODO: please describe this field!',
  1223. 'type' => 'int',
  1224. 'not null' => TRUE,
  1225. ),
  1226. 'value' => array(
  1227. 'description' => 'TODO: please describe this field!',
  1228. 'type' => 'text',
  1229. 'not null' => FALSE,
  1230. ),
  1231. 'rank' => array(
  1232. 'description' => 'TODO: please describe this field!',
  1233. 'type' => 'int',
  1234. 'not null' => TRUE,
  1235. 'default' => 0,
  1236. ),
  1237. ),
  1238. 'primary key' => array(
  1239. 0 => 'assayprop_id',
  1240. ),
  1241. 'unique keys' => array(
  1242. 'assayprop_c1' => array(
  1243. 0 => 'assay_id',
  1244. 1 => 'type_id',
  1245. 2 => 'rank',
  1246. ),
  1247. ),
  1248. 'indexes' => array(
  1249. 'assayprop_idx1' => array(
  1250. 0 => 'assay_id',
  1251. ),
  1252. 'assayprop_idx2' => array(
  1253. 0 => 'type_id',
  1254. ),
  1255. ),
  1256. 'foreign keys' => array(
  1257. 'cvterm' => array(
  1258. 'table' => 'cvterm',
  1259. 'columns' => array(
  1260. 'type_id' => 'cvterm_id',
  1261. ),
  1262. ),
  1263. 'assay' => array(
  1264. 'table' => 'assay',
  1265. 'columns' => array(
  1266. 'assay_id' => 'assay_id',
  1267. ),
  1268. ),
  1269. ),
  1270. 'table' => 'assayprop',
  1271. 'referring_tables' => NULL,
  1272. );
  1273. return $description;
  1274. }
  1275. /**
  1276. * Implements hook_chado_schema_v1_2_biomaterial()
  1277. * Purpose: To describe the structure of 'biomaterial' to tripal
  1278. * @see tripal_core_chado_insert()
  1279. * @see tripal_core_chado_update()
  1280. * @see tripal_core_chado_select()
  1281. *
  1282. * @return
  1283. * An array describing the 'biomaterial' table
  1284. *
  1285. * @ingroup tripal_chado_v1.2_schema_api
  1286. *
  1287. */
  1288. function tripal_core_chado_schema_v1_2_biomaterial() {
  1289. $description = array(
  1290. 'description' => 'TODO: please describe this table!',
  1291. 'fields' => array(
  1292. 'biomaterial_id' => array(
  1293. 'description' => 'TODO: please describe this field!',
  1294. 'type' => 'serial',
  1295. 'not null' => TRUE,
  1296. ),
  1297. 'taxon_id' => array(
  1298. 'description' => 'TODO: please describe this field!',
  1299. 'type' => 'int',
  1300. 'not null' => FALSE,
  1301. ),
  1302. 'biosourceprovider_id' => array(
  1303. 'description' => 'TODO: please describe this field!',
  1304. 'type' => 'int',
  1305. 'not null' => FALSE,
  1306. ),
  1307. 'dbxref_id' => array(
  1308. 'description' => 'TODO: please describe this field!',
  1309. 'type' => 'int',
  1310. 'not null' => FALSE,
  1311. ),
  1312. 'name' => array(
  1313. 'description' => 'TODO: please describe this field!',
  1314. 'type' => 'text',
  1315. 'not null' => FALSE,
  1316. ),
  1317. 'description' => array(
  1318. 'description' => 'TODO: please describe this field!',
  1319. 'type' => 'text',
  1320. 'not null' => FALSE,
  1321. ),
  1322. ),
  1323. 'primary key' => array(
  1324. 0 => 'biomaterial_id',
  1325. ),
  1326. 'unique keys' => array(
  1327. 'biomaterial_c1' => array(
  1328. 0 => 'name',
  1329. ),
  1330. ),
  1331. 'indexes' => array(
  1332. 'biomaterial_idx1' => array(
  1333. 0 => 'taxon_id',
  1334. ),
  1335. 'biomaterial_idx2' => array(
  1336. 0 => 'biosourceprovider_id',
  1337. ),
  1338. 'biomaterial_idx3' => array(
  1339. 0 => 'dbxref_id',
  1340. ),
  1341. ),
  1342. 'foreign keys' => array(
  1343. 'organism' => array(
  1344. 'table' => 'organism',
  1345. 'columns' => array(
  1346. 'taxon_id' => 'organism_id',
  1347. ),
  1348. ),
  1349. 'dbxref' => array(
  1350. 'table' => 'dbxref',
  1351. 'columns' => array(
  1352. 'dbxref_id' => 'dbxref_id',
  1353. ),
  1354. ),
  1355. 'contact' => array(
  1356. 'table' => 'contact',
  1357. 'columns' => array(
  1358. 'biosourceprovider_id' => 'contact_id',
  1359. ),
  1360. ),
  1361. ),
  1362. 'table' => 'biomaterial',
  1363. 'referring_tables' => array(
  1364. 0 => 'assay_biomaterial',
  1365. 1 => 'biomaterial_dbxref',
  1366. 2 => 'biomaterial_relationship',
  1367. 4 => 'biomaterial_treatment',
  1368. 5 => 'biomaterialprop',
  1369. 6 => 'treatment',
  1370. ),
  1371. );
  1372. return $description;
  1373. }
  1374. /**
  1375. * Implements hook_chado_schema_v1_2_biomaterial_dbxref()
  1376. * Purpose: To describe the structure of 'biomaterial_dbxref' to tripal
  1377. * @see tripal_core_chado_insert()
  1378. * @see tripal_core_chado_update()
  1379. * @see tripal_core_chado_select()
  1380. *
  1381. * @return
  1382. * An array describing the 'biomaterial_dbxref' table
  1383. *
  1384. * @ingroup tripal_chado_v1.2_schema_api
  1385. *
  1386. */
  1387. function tripal_core_chado_schema_v1_2_biomaterial_dbxref() {
  1388. $description = array(
  1389. 'description' => 'TODO: please describe this table!',
  1390. 'fields' => array(
  1391. 'biomaterial_dbxref_id' => array(
  1392. 'description' => 'TODO: please describe this field!',
  1393. 'type' => 'serial',
  1394. 'not null' => TRUE,
  1395. ),
  1396. 'biomaterial_id' => array(
  1397. 'description' => 'TODO: please describe this field!',
  1398. 'type' => 'int',
  1399. 'not null' => TRUE,
  1400. ),
  1401. 'dbxref_id' => array(
  1402. 'description' => 'TODO: please describe this field!',
  1403. 'type' => 'int',
  1404. 'not null' => TRUE,
  1405. ),
  1406. ),
  1407. 'primary key' => array(
  1408. 0 => 'biomaterial_dbxref_id',
  1409. ),
  1410. 'unique keys' => array(
  1411. 'biomaterial_dbxref_c1' => array(
  1412. 0 => 'biomaterial_id',
  1413. 1 => 'dbxref_id',
  1414. ),
  1415. ),
  1416. 'indexes' => array(
  1417. 'biomaterial_dbxref_idx1' => array(
  1418. 0 => 'biomaterial_id',
  1419. ),
  1420. 'biomaterial_dbxref_idx2' => array(
  1421. 0 => 'dbxref_id',
  1422. ),
  1423. ),
  1424. 'foreign keys' => array(
  1425. 'dbxref' => array(
  1426. 'table' => 'dbxref',
  1427. 'columns' => array(
  1428. 'dbxref_id' => 'dbxref_id',
  1429. ),
  1430. ),
  1431. 'biomaterial' => array(
  1432. 'table' => 'biomaterial',
  1433. 'columns' => array(
  1434. 'biomaterial_id' => 'biomaterial_id',
  1435. ),
  1436. ),
  1437. ),
  1438. 'table' => 'biomaterial_dbxref',
  1439. 'referring_tables' => NULL,
  1440. );
  1441. return $description;
  1442. }
  1443. /**
  1444. * Implements hook_chado_schema_v1_2_biomaterial_relationship()
  1445. * Purpose: To describe the structure of 'biomaterial_relationship' to tripal
  1446. * @see tripal_core_chado_insert()
  1447. * @see tripal_core_chado_update()
  1448. * @see tripal_core_chado_select()
  1449. *
  1450. * @return
  1451. * An array describing the 'biomaterial_relationship' table
  1452. *
  1453. * @ingroup tripal_chado_v1.2_schema_api
  1454. *
  1455. */
  1456. function tripal_core_chado_schema_v1_2_biomaterial_relationship() {
  1457. $description = array(
  1458. 'description' => 'TODO: please describe this table!',
  1459. 'fields' => array(
  1460. 'biomaterial_relationship_id' => array(
  1461. 'description' => 'TODO: please describe this field!',
  1462. 'type' => 'serial',
  1463. 'not null' => TRUE,
  1464. ),
  1465. 'subject_id' => array(
  1466. 'description' => 'TODO: please describe this field!',
  1467. 'type' => 'int',
  1468. 'not null' => TRUE,
  1469. ),
  1470. 'type_id' => array(
  1471. 'description' => 'TODO: please describe this field!',
  1472. 'type' => 'int',
  1473. 'not null' => TRUE,
  1474. ),
  1475. 'object_id' => array(
  1476. 'description' => 'TODO: please describe this field!',
  1477. 'type' => 'int',
  1478. 'not null' => TRUE,
  1479. ),
  1480. ),
  1481. 'primary key' => array(
  1482. 0 => 'biomaterial_relationship_id',
  1483. ),
  1484. 'unique keys' => array(
  1485. 'biomaterial_relationship_c1' => array(
  1486. 0 => 'subject_id',
  1487. 1 => 'object_id',
  1488. 2 => 'type_id',
  1489. ),
  1490. ),
  1491. 'indexes' => array(
  1492. 'biomaterial_relationship_idx1' => array(
  1493. 0 => 'subject_id',
  1494. ),
  1495. 'biomaterial_relationship_idx2' => array(
  1496. 0 => 'object_id',
  1497. ),
  1498. 'biomaterial_relationship_idx3' => array(
  1499. 0 => 'type_id',
  1500. ),
  1501. ),
  1502. 'foreign keys' => array(
  1503. 'cvterm' => array(
  1504. 'table' => 'cvterm',
  1505. 'columns' => array(
  1506. 'type_id' => 'cvterm_id',
  1507. ),
  1508. ),
  1509. 'biomaterial' => array(
  1510. 'table' => 'biomaterial',
  1511. 'columns' => array(
  1512. 'subject_id' => 'biomaterial_id',
  1513. 'object_id' => 'biomaterial_id',
  1514. ),
  1515. ),
  1516. ),
  1517. 'table' => 'biomaterial_relationship',
  1518. 'referring_tables' => NULL,
  1519. );
  1520. return $description;
  1521. }
  1522. /**
  1523. * Implements hook_chado_schema_v1_2_biomaterial_treatment()
  1524. * Purpose: To describe the structure of 'biomaterial_treatment' to tripal
  1525. * @see tripal_core_chado_insert()
  1526. * @see tripal_core_chado_update()
  1527. * @see tripal_core_chado_select()
  1528. *
  1529. * @return
  1530. * An array describing the 'biomaterial_treatment' table
  1531. *
  1532. * @ingroup tripal_chado_v1.2_schema_api
  1533. *
  1534. */
  1535. function tripal_core_chado_schema_v1_2_biomaterial_treatment() {
  1536. $description = array(
  1537. 'description' => 'TODO: please describe this table!',
  1538. 'fields' => array(
  1539. 'biomaterial_treatment_id' => array(
  1540. 'description' => 'TODO: please describe this field!',
  1541. 'type' => 'serial',
  1542. 'not null' => TRUE,
  1543. ),
  1544. 'biomaterial_id' => array(
  1545. 'description' => 'TODO: please describe this field!',
  1546. 'type' => 'int',
  1547. 'not null' => TRUE,
  1548. ),
  1549. 'treatment_id' => array(
  1550. 'description' => 'TODO: please describe this field!',
  1551. 'type' => 'int',
  1552. 'not null' => TRUE,
  1553. ),
  1554. 'unittype_id' => array(
  1555. 'description' => 'TODO: please describe this field!',
  1556. 'type' => 'int',
  1557. 'not null' => FALSE,
  1558. ),
  1559. 'value' => array(
  1560. 'description' => 'TODO: please describe this field!',
  1561. 'type' => 'float',
  1562. 'not null' => FALSE,
  1563. ),
  1564. 'rank' => array(
  1565. 'description' => 'TODO: please describe this field!',
  1566. 'type' => 'int',
  1567. 'not null' => TRUE,
  1568. 'default' => 0,
  1569. ),
  1570. ),
  1571. 'primary key' => array(
  1572. 0 => 'biomaterial_treatment_id',
  1573. ),
  1574. 'unique keys' => array(
  1575. 'biomaterial_treatment_c1' => array(
  1576. 0 => 'biomaterial_id',
  1577. 1 => 'treatment_id',
  1578. ),
  1579. ),
  1580. 'indexes' => array(
  1581. 'biomaterial_treatment_idx1' => array(
  1582. 0 => 'biomaterial_id',
  1583. ),
  1584. 'biomaterial_treatment_idx2' => array(
  1585. 0 => 'treatment_id',
  1586. ),
  1587. 'biomaterial_treatment_idx3' => array(
  1588. 0 => 'unittype_id',
  1589. ),
  1590. ),
  1591. 'foreign keys' => array(
  1592. 'cvterm' => array(
  1593. 'table' => 'cvterm',
  1594. 'columns' => array(
  1595. 'unittype_id' => 'cvterm_id',
  1596. ),
  1597. ),
  1598. 'biomaterial' => array(
  1599. 'table' => 'biomaterial',
  1600. 'columns' => array(
  1601. 'biomaterial_id' => 'biomaterial_id',
  1602. ),
  1603. ),
  1604. 'treatment' => array(
  1605. 'table' => 'treatment',
  1606. 'columns' => array(
  1607. 'treatment_id' => 'treatment_id',
  1608. ),
  1609. ),
  1610. ),
  1611. 'table' => 'biomaterial_treatment',
  1612. 'referring_tables' => NULL,
  1613. );
  1614. return $description;
  1615. }
  1616. /**
  1617. * Implements hook_chado_schema_v1_2_biomaterialprop()
  1618. * Purpose: To describe the structure of 'biomaterialprop' to tripal
  1619. * @see tripal_core_chado_insert()
  1620. * @see tripal_core_chado_update()
  1621. * @see tripal_core_chado_select()
  1622. *
  1623. * @return
  1624. * An array describing the 'biomaterialprop' table
  1625. *
  1626. * @ingroup tripal_chado_v1.2_schema_api
  1627. *
  1628. */
  1629. function tripal_core_chado_schema_v1_2_biomaterialprop() {
  1630. $description = array(
  1631. 'description' => 'TODO: please describe this table!',
  1632. 'fields' => array(
  1633. 'biomaterialprop_id' => array(
  1634. 'description' => 'TODO: please describe this field!',
  1635. 'type' => 'serial',
  1636. 'not null' => TRUE,
  1637. ),
  1638. 'biomaterial_id' => array(
  1639. 'description' => 'TODO: please describe this field!',
  1640. 'type' => 'int',
  1641. 'not null' => TRUE,
  1642. ),
  1643. 'type_id' => array(
  1644. 'description' => 'TODO: please describe this field!',
  1645. 'type' => 'int',
  1646. 'not null' => TRUE,
  1647. ),
  1648. 'value' => array(
  1649. 'description' => 'TODO: please describe this field!',
  1650. 'type' => 'text',
  1651. 'not null' => FALSE,
  1652. ),
  1653. 'rank' => array(
  1654. 'description' => 'TODO: please describe this field!',
  1655. 'type' => 'int',
  1656. 'not null' => TRUE,
  1657. 'default' => 0,
  1658. ),
  1659. ),
  1660. 'primary key' => array(
  1661. 0 => 'biomaterialprop_id',
  1662. ),
  1663. 'unique keys' => array(
  1664. 'biomaterialprop_c1' => array(
  1665. 0 => 'biomaterial_id',
  1666. 1 => 'type_id',
  1667. 2 => 'rank',
  1668. ),
  1669. ),
  1670. 'indexes' => array(
  1671. 'biomaterialprop_idx1' => array(
  1672. 0 => 'biomaterial_id',
  1673. ),
  1674. 'biomaterialprop_idx2' => array(
  1675. 0 => 'type_id',
  1676. ),
  1677. ),
  1678. 'foreign keys' => array(
  1679. 'cvterm' => array(
  1680. 'table' => 'cvterm',
  1681. 'columns' => array(
  1682. 'type_id' => 'cvterm_id',
  1683. ),
  1684. ),
  1685. 'biomaterial' => array(
  1686. 'table' => 'biomaterial',
  1687. 'columns' => array(
  1688. 'biomaterial_id' => 'biomaterial_id',
  1689. ),
  1690. ),
  1691. ),
  1692. 'table' => 'biomaterialprop',
  1693. 'referring_tables' => NULL,
  1694. );
  1695. return $description;
  1696. }
  1697. /**
  1698. * Implements hook_chado_schema_v1_2_cell_line()
  1699. * Purpose: To describe the structure of 'cell_line' to tripal
  1700. * @see tripal_core_chado_insert()
  1701. * @see tripal_core_chado_update()
  1702. * @see tripal_core_chado_select()
  1703. *
  1704. * @return
  1705. * An array describing the 'cell_line' table
  1706. *
  1707. * @ingroup tripal_chado_v1.2_schema_api
  1708. *
  1709. */
  1710. function tripal_core_chado_schema_v1_2_cell_line() {
  1711. $description = array(
  1712. 'description' => 'TODO: please describe this table!',
  1713. 'fields' => array(
  1714. 'cell_line_id' => array(
  1715. 'description' => 'TODO: please describe this field!',
  1716. 'type' => 'serial',
  1717. 'not null' => TRUE,
  1718. ),
  1719. 'name' => array(
  1720. 'description' => 'TODO: please describe this field!',
  1721. 'type' => 'varchar',
  1722. 'length' => '255',
  1723. 'not null' => FALSE,
  1724. ),
  1725. 'uniquename' => array(
  1726. 'description' => 'TODO: please describe this field!',
  1727. 'type' => 'varchar',
  1728. 'length' => '255',
  1729. 'not null' => TRUE,
  1730. ),
  1731. 'organism_id' => array(
  1732. 'description' => 'TODO: please describe this field!',
  1733. 'type' => 'int',
  1734. 'not null' => TRUE,
  1735. ),
  1736. 'timeaccessioned' => array(
  1737. 'description' => 'TODO: please describe this field!',
  1738. 'type' => 'datetime',
  1739. 'not null' => TRUE,
  1740. 'default' => 'ow(',
  1741. ),
  1742. 'timelastmodified' => array(
  1743. 'description' => 'TODO: please describe this field!',
  1744. 'type' => 'datetime',
  1745. 'not null' => TRUE,
  1746. 'default' => 'ow(',
  1747. ),
  1748. ),
  1749. 'primary key' => array(
  1750. 0 => 'cell_line_id',
  1751. ),
  1752. 'unique keys' => array(
  1753. 'cell_line_c1' => array(
  1754. 0 => 'uniquename',
  1755. 1 => 'organism_id',
  1756. ),
  1757. ),
  1758. 'foreign keys' => array(
  1759. 'organism' => array(
  1760. 'table' => 'organism',
  1761. 'columns' => array(
  1762. 'organism_id' => 'organism_id',
  1763. ),
  1764. ),
  1765. ),
  1766. 'table' => 'cell_line',
  1767. 'referring_tables' => array(
  1768. 0 => 'cell_line_cvterm',
  1769. 1 => 'cell_line_dbxref',
  1770. 2 => 'cell_line_feature',
  1771. 3 => 'cell_line_library',
  1772. 4 => 'cell_line_pub',
  1773. 5 => 'cell_line_relationship',
  1774. 7 => 'cell_line_synonym',
  1775. 8 => 'cell_lineprop',
  1776. ),
  1777. );
  1778. return $description;
  1779. }
  1780. /**
  1781. * Implements hook_chado_schema_v1_2_cell_line_cvterm()
  1782. * Purpose: To describe the structure of 'cell_line_cvterm' to tripal
  1783. * @see tripal_core_chado_insert()
  1784. * @see tripal_core_chado_update()
  1785. * @see tripal_core_chado_select()
  1786. *
  1787. * @return
  1788. * An array describing the 'cell_line_cvterm' table
  1789. *
  1790. * @ingroup tripal_chado_v1.2_schema_api
  1791. *
  1792. */
  1793. function tripal_core_chado_schema_v1_2_cell_line_cvterm() {
  1794. $description = array(
  1795. 'description' => 'TODO: please describe this table!',
  1796. 'fields' => array(
  1797. 'cell_line_cvterm_id' => array(
  1798. 'description' => 'TODO: please describe this field!',
  1799. 'type' => 'serial',
  1800. 'not null' => TRUE,
  1801. ),
  1802. 'cell_line_id' => array(
  1803. 'description' => 'TODO: please describe this field!',
  1804. 'type' => 'int',
  1805. 'not null' => TRUE,
  1806. ),
  1807. 'cvterm_id' => array(
  1808. 'description' => 'TODO: please describe this field!',
  1809. 'type' => 'int',
  1810. 'not null' => TRUE,
  1811. ),
  1812. 'pub_id' => array(
  1813. 'description' => 'TODO: please describe this field!',
  1814. 'type' => 'int',
  1815. 'not null' => TRUE,
  1816. ),
  1817. 'rank' => array(
  1818. 'description' => 'TODO: please describe this field!',
  1819. 'type' => 'int',
  1820. 'not null' => TRUE,
  1821. 'default' => 0,
  1822. ),
  1823. ),
  1824. 'primary key' => array(
  1825. 0 => 'cell_line_cvterm_id',
  1826. ),
  1827. 'unique keys' => array(
  1828. 'cell_line_cvterm_c1' => array(
  1829. 0 => 'cell_line_id',
  1830. 1 => 'cvterm_id',
  1831. 2 => 'pub_id',
  1832. 3 => 'rank',
  1833. ),
  1834. ),
  1835. 'foreign keys' => array(
  1836. 'cvterm' => array(
  1837. 'table' => 'cvterm',
  1838. 'columns' => array(
  1839. 'cvterm_id' => 'cvterm_id',
  1840. ),
  1841. ),
  1842. 'pub' => array(
  1843. 'table' => 'pub',
  1844. 'columns' => array(
  1845. 'pub_id' => 'pub_id',
  1846. ),
  1847. ),
  1848. 'cell_line' => array(
  1849. 'table' => 'cell_line',
  1850. 'columns' => array(
  1851. 'cell_line_id' => 'cell_line_id',
  1852. ),
  1853. ),
  1854. ),
  1855. 'table' => 'cell_line_cvterm',
  1856. 'referring_tables' => array(
  1857. 0 => 'cell_line_cvtermprop',
  1858. ),
  1859. );
  1860. return $description;
  1861. }
  1862. /**
  1863. * Implements hook_chado_schema_v1_2_cell_line_cvtermprop()
  1864. * Purpose: To describe the structure of 'cell_line_cvtermprop' to tripal
  1865. * @see tripal_core_chado_insert()
  1866. * @see tripal_core_chado_update()
  1867. * @see tripal_core_chado_select()
  1868. *
  1869. * @return
  1870. * An array describing the 'cell_line_cvtermprop' table
  1871. *
  1872. * @ingroup tripal_chado_v1.2_schema_api
  1873. *
  1874. */
  1875. function tripal_core_chado_schema_v1_2_cell_line_cvtermprop() {
  1876. $description = array(
  1877. 'description' => 'TODO: please describe this table!',
  1878. 'fields' => array(
  1879. 'cell_line_cvtermprop_id' => array(
  1880. 'description' => 'TODO: please describe this field!',
  1881. 'type' => 'serial',
  1882. 'not null' => TRUE,
  1883. ),
  1884. 'cell_line_cvterm_id' => array(
  1885. 'description' => 'TODO: please describe this field!',
  1886. 'type' => 'int',
  1887. 'not null' => TRUE,
  1888. ),
  1889. 'type_id' => array(
  1890. 'description' => 'TODO: please describe this field!',
  1891. 'type' => 'int',
  1892. 'not null' => TRUE,
  1893. ),
  1894. 'value' => array(
  1895. 'description' => 'TODO: please describe this field!',
  1896. 'type' => 'text',
  1897. 'not null' => FALSE,
  1898. ),
  1899. 'rank' => array(
  1900. 'description' => 'TODO: please describe this field!',
  1901. 'type' => 'int',
  1902. 'not null' => TRUE,
  1903. 'default' => 0,
  1904. ),
  1905. ),
  1906. 'primary key' => array(
  1907. 0 => 'cell_line_cvtermprop_id',
  1908. ),
  1909. 'unique keys' => array(
  1910. 'cell_line_cvtermprop_c1' => array(
  1911. 0 => 'cell_line_cvterm_id',
  1912. 1 => 'type_id',
  1913. 2 => 'rank',
  1914. ),
  1915. ),
  1916. 'foreign keys' => array(
  1917. 'cvterm' => array(
  1918. 'table' => 'cvterm',
  1919. 'columns' => array(
  1920. 'type_id' => 'cvterm_id',
  1921. ),
  1922. ),
  1923. 'cell_line_cvterm' => array(
  1924. 'table' => 'cell_line_cvterm',
  1925. 'columns' => array(
  1926. 'cell_line_cvterm_id' => 'cell_line_cvterm_id',
  1927. ),
  1928. ),
  1929. ),
  1930. 'table' => 'cell_line_cvtermprop',
  1931. 'referring_tables' => NULL,
  1932. );
  1933. return $description;
  1934. }
  1935. /**
  1936. * Implements hook_chado_schema_v1_2_cell_line_dbxref()
  1937. * Purpose: To describe the structure of 'cell_line_dbxref' to tripal
  1938. * @see tripal_core_chado_insert()
  1939. * @see tripal_core_chado_update()
  1940. * @see tripal_core_chado_select()
  1941. *
  1942. * @return
  1943. * An array describing the 'cell_line_dbxref' table
  1944. *
  1945. * @ingroup tripal_chado_v1.2_schema_api
  1946. *
  1947. */
  1948. function tripal_core_chado_schema_v1_2_cell_line_dbxref() {
  1949. $description = array(
  1950. 'description' => 'TODO: please describe this table!',
  1951. 'fields' => array(
  1952. 'cell_line_dbxref_id' => array(
  1953. 'description' => 'TODO: please describe this field!',
  1954. 'type' => 'serial',
  1955. 'not null' => TRUE,
  1956. ),
  1957. 'cell_line_id' => array(
  1958. 'description' => 'TODO: please describe this field!',
  1959. 'type' => 'int',
  1960. 'not null' => TRUE,
  1961. ),
  1962. 'dbxref_id' => array(
  1963. 'description' => 'TODO: please describe this field!',
  1964. 'type' => 'int',
  1965. 'not null' => TRUE,
  1966. ),
  1967. 'is_current' => array(
  1968. 'description' => 'TODO: please describe this field!',
  1969. 'type' => 'boolean',
  1970. 'not null' => TRUE,
  1971. 'default' => 'ru',
  1972. ),
  1973. ),
  1974. 'primary key' => array(
  1975. 0 => 'cell_line_dbxref_id',
  1976. ),
  1977. 'unique keys' => array(
  1978. 'cell_line_dbxref_c1' => array(
  1979. 0 => 'cell_line_id',
  1980. 1 => 'dbxref_id',
  1981. ),
  1982. ),
  1983. 'foreign keys' => array(
  1984. 'dbxref' => array(
  1985. 'table' => 'dbxref',
  1986. 'columns' => array(
  1987. 'dbxref_id' => 'dbxref_id',
  1988. ),
  1989. ),
  1990. 'cell_line' => array(
  1991. 'table' => 'cell_line',
  1992. 'columns' => array(
  1993. 'cell_line_id' => 'cell_line_id',
  1994. ),
  1995. ),
  1996. ),
  1997. 'table' => 'cell_line_dbxref',
  1998. 'referring_tables' => NULL,
  1999. );
  2000. return $description;
  2001. }
  2002. /**
  2003. * Implements hook_chado_schema_v1_2_cell_line_feature()
  2004. * Purpose: To describe the structure of 'cell_line_feature' to tripal
  2005. * @see tripal_core_chado_insert()
  2006. * @see tripal_core_chado_update()
  2007. * @see tripal_core_chado_select()
  2008. *
  2009. * @return
  2010. * An array describing the 'cell_line_feature' table
  2011. *
  2012. * @ingroup tripal_chado_v1.2_schema_api
  2013. *
  2014. */
  2015. function tripal_core_chado_schema_v1_2_cell_line_feature() {
  2016. $description = array(
  2017. 'description' => 'TODO: please describe this table!',
  2018. 'fields' => array(
  2019. 'cell_line_feature_id' => array(
  2020. 'description' => 'TODO: please describe this field!',
  2021. 'type' => 'serial',
  2022. 'not null' => TRUE,
  2023. ),
  2024. 'cell_line_id' => array(
  2025. 'description' => 'TODO: please describe this field!',
  2026. 'type' => 'int',
  2027. 'not null' => TRUE,
  2028. ),
  2029. 'feature_id' => array(
  2030. 'description' => 'TODO: please describe this field!',
  2031. 'type' => 'int',
  2032. 'not null' => TRUE,
  2033. ),
  2034. 'pub_id' => array(
  2035. 'description' => 'TODO: please describe this field!',
  2036. 'type' => 'int',
  2037. 'not null' => TRUE,
  2038. ),
  2039. ),
  2040. 'primary key' => array(
  2041. 0 => 'cell_line_feature_id',
  2042. ),
  2043. 'unique keys' => array(
  2044. 'cell_line_feature_c1' => array(
  2045. 0 => 'cell_line_id',
  2046. 1 => 'feature_id',
  2047. 2 => 'pub_id',
  2048. ),
  2049. ),
  2050. 'foreign keys' => array(
  2051. 'pub' => array(
  2052. 'table' => 'pub',
  2053. 'columns' => array(
  2054. 'pub_id' => 'pub_id',
  2055. ),
  2056. ),
  2057. 'feature' => array(
  2058. 'table' => 'feature',
  2059. 'columns' => array(
  2060. 'feature_id' => 'feature_id',
  2061. ),
  2062. ),
  2063. 'cell_line' => array(
  2064. 'table' => 'cell_line',
  2065. 'columns' => array(
  2066. 'cell_line_id' => 'cell_line_id',
  2067. ),
  2068. ),
  2069. ),
  2070. 'table' => 'cell_line_feature',
  2071. 'referring_tables' => NULL,
  2072. );
  2073. return $description;
  2074. }
  2075. /**
  2076. * Implements hook_chado_schema_v1_2_cell_line_library()
  2077. * Purpose: To describe the structure of 'cell_line_library' to tripal
  2078. * @see tripal_core_chado_insert()
  2079. * @see tripal_core_chado_update()
  2080. * @see tripal_core_chado_select()
  2081. *
  2082. * @return
  2083. * An array describing the 'cell_line_library' table
  2084. *
  2085. * @ingroup tripal_chado_v1.2_schema_api
  2086. *
  2087. */
  2088. function tripal_core_chado_schema_v1_2_cell_line_library() {
  2089. $description = array(
  2090. 'description' => 'TODO: please describe this table!',
  2091. 'fields' => array(
  2092. 'cell_line_library_id' => array(
  2093. 'description' => 'TODO: please describe this field!',
  2094. 'type' => 'serial',
  2095. 'not null' => TRUE,
  2096. ),
  2097. 'cell_line_id' => array(
  2098. 'description' => 'TODO: please describe this field!',
  2099. 'type' => 'int',
  2100. 'not null' => TRUE,
  2101. ),
  2102. 'library_id' => array(
  2103. 'description' => 'TODO: please describe this field!',
  2104. 'type' => 'int',
  2105. 'not null' => TRUE,
  2106. ),
  2107. 'pub_id' => array(
  2108. 'description' => 'TODO: please describe this field!',
  2109. 'type' => 'int',
  2110. 'not null' => TRUE,
  2111. ),
  2112. ),
  2113. 'primary key' => array(
  2114. 0 => 'cell_line_library_id',
  2115. ),
  2116. 'unique keys' => array(
  2117. 'cell_line_library_c1' => array(
  2118. 0 => 'cell_line_id',
  2119. 1 => 'library_id',
  2120. 2 => 'pub_id',
  2121. ),
  2122. ),
  2123. 'foreign keys' => array(
  2124. 'pub' => array(
  2125. 'table' => 'pub',
  2126. 'columns' => array(
  2127. 'pub_id' => 'pub_id',
  2128. ),
  2129. ),
  2130. 'library' => array(
  2131. 'table' => 'library',
  2132. 'columns' => array(
  2133. 'library_id' => 'library_id',
  2134. ),
  2135. ),
  2136. 'cell_line' => array(
  2137. 'table' => 'cell_line',
  2138. 'columns' => array(
  2139. 'cell_line_id' => 'cell_line_id',
  2140. ),
  2141. ),
  2142. ),
  2143. 'table' => 'cell_line_library',
  2144. 'referring_tables' => NULL,
  2145. );
  2146. return $description;
  2147. }
  2148. /**
  2149. * Implements hook_chado_schema_v1_2_cell_line_pub()
  2150. * Purpose: To describe the structure of 'cell_line_pub' to tripal
  2151. * @see tripal_core_chado_insert()
  2152. * @see tripal_core_chado_update()
  2153. * @see tripal_core_chado_select()
  2154. *
  2155. * @return
  2156. * An array describing the 'cell_line_pub' table
  2157. *
  2158. * @ingroup tripal_chado_v1.2_schema_api
  2159. *
  2160. */
  2161. function tripal_core_chado_schema_v1_2_cell_line_pub() {
  2162. $description = array(
  2163. 'description' => 'TODO: please describe this table!',
  2164. 'fields' => array(
  2165. 'cell_line_pub_id' => array(
  2166. 'description' => 'TODO: please describe this field!',
  2167. 'type' => 'serial',
  2168. 'not null' => TRUE,
  2169. ),
  2170. 'cell_line_id' => array(
  2171. 'description' => 'TODO: please describe this field!',
  2172. 'type' => 'int',
  2173. 'not null' => TRUE,
  2174. ),
  2175. 'pub_id' => array(
  2176. 'description' => 'TODO: please describe this field!',
  2177. 'type' => 'int',
  2178. 'not null' => TRUE,
  2179. ),
  2180. ),
  2181. 'primary key' => array(
  2182. 0 => 'cell_line_pub_id',
  2183. ),
  2184. 'unique keys' => array(
  2185. 'cell_line_pub_c1' => array(
  2186. 0 => 'cell_line_id',
  2187. 1 => 'pub_id',
  2188. ),
  2189. ),
  2190. 'foreign keys' => array(
  2191. 'pub' => array(
  2192. 'table' => 'pub',
  2193. 'columns' => array(
  2194. 'pub_id' => 'pub_id',
  2195. ),
  2196. ),
  2197. 'cell_line' => array(
  2198. 'table' => 'cell_line',
  2199. 'columns' => array(
  2200. 'cell_line_id' => 'cell_line_id',
  2201. ),
  2202. ),
  2203. ),
  2204. 'table' => 'cell_line_pub',
  2205. 'referring_tables' => NULL,
  2206. );
  2207. return $description;
  2208. }
  2209. /**
  2210. * Implements hook_chado_schema_v1_2_cell_line_relationship()
  2211. * Purpose: To describe the structure of 'cell_line_relationship' to tripal
  2212. * @see tripal_core_chado_insert()
  2213. * @see tripal_core_chado_update()
  2214. * @see tripal_core_chado_select()
  2215. *
  2216. * @return
  2217. * An array describing the 'cell_line_relationship' table
  2218. *
  2219. * @ingroup tripal_chado_v1.2_schema_api
  2220. *
  2221. */
  2222. function tripal_core_chado_schema_v1_2_cell_line_relationship() {
  2223. $description = array(
  2224. 'description' => 'TODO: please describe this table!',
  2225. 'fields' => array(
  2226. 'cell_line_relationship_id' => array(
  2227. 'description' => 'TODO: please describe this field!',
  2228. 'type' => 'serial',
  2229. 'not null' => TRUE,
  2230. ),
  2231. 'subject_id' => array(
  2232. 'description' => 'TODO: please describe this field!',
  2233. 'type' => 'int',
  2234. 'not null' => TRUE,
  2235. ),
  2236. 'object_id' => array(
  2237. 'description' => 'TODO: please describe this field!',
  2238. 'type' => 'int',
  2239. 'not null' => TRUE,
  2240. ),
  2241. 'type_id' => array(
  2242. 'description' => 'TODO: please describe this field!',
  2243. 'type' => 'int',
  2244. 'not null' => TRUE,
  2245. ),
  2246. ),
  2247. 'primary key' => array(
  2248. 0 => 'cell_line_relationship_id',
  2249. ),
  2250. 'unique keys' => array(
  2251. 'cell_line_relationship_c1' => array(
  2252. 0 => 'subject_id',
  2253. 1 => 'object_id',
  2254. 2 => 'type_id',
  2255. ),
  2256. ),
  2257. 'foreign keys' => array(
  2258. 'cvterm' => array(
  2259. 'table' => 'cvterm',
  2260. 'columns' => array(
  2261. 'type_id' => 'cvterm_id',
  2262. ),
  2263. ),
  2264. 'cell_line' => array(
  2265. 'table' => 'cell_line',
  2266. 'columns' => array(
  2267. 'subject_id' => 'cell_line_id',
  2268. 'object_id' => 'cell_line_id',
  2269. ),
  2270. ),
  2271. ),
  2272. 'table' => 'cell_line_relationship',
  2273. 'referring_tables' => NULL,
  2274. );
  2275. return $description;
  2276. }
  2277. /**
  2278. * Implements hook_chado_schema_v1_2_cell_line_synonym()
  2279. * Purpose: To describe the structure of 'cell_line_synonym' to tripal
  2280. * @see tripal_core_chado_insert()
  2281. * @see tripal_core_chado_update()
  2282. * @see tripal_core_chado_select()
  2283. *
  2284. * @return
  2285. * An array describing the 'cell_line_synonym' table
  2286. *
  2287. * @ingroup tripal_chado_v1.2_schema_api
  2288. *
  2289. */
  2290. function tripal_core_chado_schema_v1_2_cell_line_synonym() {
  2291. $description = array(
  2292. 'description' => 'TODO: please describe this table!',
  2293. 'fields' => array(
  2294. 'cell_line_synonym_id' => array(
  2295. 'description' => 'TODO: please describe this field!',
  2296. 'type' => 'serial',
  2297. 'not null' => TRUE,
  2298. ),
  2299. 'cell_line_id' => array(
  2300. 'description' => 'TODO: please describe this field!',
  2301. 'type' => 'int',
  2302. 'not null' => TRUE,
  2303. ),
  2304. 'synonym_id' => array(
  2305. 'description' => 'TODO: please describe this field!',
  2306. 'type' => 'int',
  2307. 'not null' => TRUE,
  2308. ),
  2309. 'pub_id' => array(
  2310. 'description' => 'TODO: please describe this field!',
  2311. 'type' => 'int',
  2312. 'not null' => TRUE,
  2313. ),
  2314. 'is_current' => array(
  2315. 'description' => 'TODO: please describe this field!',
  2316. 'type' => 'boolean',
  2317. 'not null' => TRUE,
  2318. 'default' => 'als',
  2319. ),
  2320. 'is_internal' => array(
  2321. 'description' => 'TODO: please describe this field!',
  2322. 'type' => 'boolean',
  2323. 'not null' => TRUE,
  2324. 'default' => 'als',
  2325. ),
  2326. ),
  2327. 'primary key' => array(
  2328. 0 => 'cell_line_synonym_id',
  2329. ),
  2330. 'unique keys' => array(
  2331. 'cell_line_synonym_c1' => array(
  2332. 0 => 'synonym_id',
  2333. 1 => 'cell_line_id',
  2334. 2 => 'pub_id',
  2335. ),
  2336. ),
  2337. 'foreign keys' => array(
  2338. 'pub' => array(
  2339. 'table' => 'pub',
  2340. 'columns' => array(
  2341. 'pub_id' => 'pub_id',
  2342. ),
  2343. ),
  2344. 'synonym' => array(
  2345. 'table' => 'synonym',
  2346. 'columns' => array(
  2347. 'synonym_id' => 'synonym_id',
  2348. ),
  2349. ),
  2350. 'cell_line' => array(
  2351. 'table' => 'cell_line',
  2352. 'columns' => array(
  2353. 'cell_line_id' => 'cell_line_id',
  2354. ),
  2355. ),
  2356. ),
  2357. 'table' => 'cell_line_synonym',
  2358. 'referring_tables' => NULL,
  2359. );
  2360. return $description;
  2361. }
  2362. /**
  2363. * Implements hook_chado_schema_v1_2_cell_lineprop()
  2364. * Purpose: To describe the structure of 'cell_lineprop' to tripal
  2365. * @see tripal_core_chado_insert()
  2366. * @see tripal_core_chado_update()
  2367. * @see tripal_core_chado_select()
  2368. *
  2369. * @return
  2370. * An array describing the 'cell_lineprop' table
  2371. *
  2372. * @ingroup tripal_chado_v1.2_schema_api
  2373. *
  2374. */
  2375. function tripal_core_chado_schema_v1_2_cell_lineprop() {
  2376. $description = array(
  2377. 'description' => 'TODO: please describe this table!',
  2378. 'fields' => array(
  2379. 'cell_lineprop_id' => array(
  2380. 'description' => 'TODO: please describe this field!',
  2381. 'type' => 'serial',
  2382. 'not null' => TRUE,
  2383. ),
  2384. 'cell_line_id' => array(
  2385. 'description' => 'TODO: please describe this field!',
  2386. 'type' => 'int',
  2387. 'not null' => TRUE,
  2388. ),
  2389. 'type_id' => array(
  2390. 'description' => 'TODO: please describe this field!',
  2391. 'type' => 'int',
  2392. 'not null' => TRUE,
  2393. ),
  2394. 'value' => array(
  2395. 'description' => 'TODO: please describe this field!',
  2396. 'type' => 'text',
  2397. 'not null' => FALSE,
  2398. ),
  2399. 'rank' => array(
  2400. 'description' => 'TODO: please describe this field!',
  2401. 'type' => 'int',
  2402. 'not null' => TRUE,
  2403. 'default' => 0,
  2404. ),
  2405. ),
  2406. 'primary key' => array(
  2407. 0 => 'cell_lineprop_id',
  2408. ),
  2409. 'unique keys' => array(
  2410. 'cell_lineprop_c1' => array(
  2411. 0 => 'cell_line_id',
  2412. 1 => 'type_id',
  2413. 2 => 'rank',
  2414. ),
  2415. ),
  2416. 'foreign keys' => array(
  2417. 'cvterm' => array(
  2418. 'table' => 'cvterm',
  2419. 'columns' => array(
  2420. 'type_id' => 'cvterm_id',
  2421. ),
  2422. ),
  2423. 'cell_line' => array(
  2424. 'table' => 'cell_line',
  2425. 'columns' => array(
  2426. 'cell_line_id' => 'cell_line_id',
  2427. ),
  2428. ),
  2429. ),
  2430. 'table' => 'cell_lineprop',
  2431. 'referring_tables' => array(
  2432. 0 => 'cell_lineprop_pub',
  2433. ),
  2434. );
  2435. return $description;
  2436. }
  2437. /**
  2438. * Implements hook_chado_schema_v1_2_cell_lineprop_pub()
  2439. * Purpose: To describe the structure of 'cell_lineprop_pub' to tripal
  2440. * @see tripal_core_chado_insert()
  2441. * @see tripal_core_chado_update()
  2442. * @see tripal_core_chado_select()
  2443. *
  2444. * @return
  2445. * An array describing the 'cell_lineprop_pub' table
  2446. *
  2447. * @ingroup tripal_chado_v1.2_schema_api
  2448. *
  2449. */
  2450. function tripal_core_chado_schema_v1_2_cell_lineprop_pub() {
  2451. $description = array(
  2452. 'description' => 'TODO: please describe this table!',
  2453. 'fields' => array(
  2454. 'cell_lineprop_pub_id' => array(
  2455. 'description' => 'TODO: please describe this field!',
  2456. 'type' => 'serial',
  2457. 'not null' => TRUE,
  2458. ),
  2459. 'cell_lineprop_id' => array(
  2460. 'description' => 'TODO: please describe this field!',
  2461. 'type' => 'int',
  2462. 'not null' => TRUE,
  2463. ),
  2464. 'pub_id' => array(
  2465. 'description' => 'TODO: please describe this field!',
  2466. 'type' => 'int',
  2467. 'not null' => TRUE,
  2468. ),
  2469. ),
  2470. 'primary key' => array(
  2471. 0 => 'cell_lineprop_pub_id',
  2472. ),
  2473. 'unique keys' => array(
  2474. 'cell_lineprop_pub_c1' => array(
  2475. 0 => 'cell_lineprop_id',
  2476. 1 => 'pub_id',
  2477. ),
  2478. ),
  2479. 'foreign keys' => array(
  2480. 'pub' => array(
  2481. 'table' => 'pub',
  2482. 'columns' => array(
  2483. 'pub_id' => 'pub_id',
  2484. ),
  2485. ),
  2486. 'cell_lineprop' => array(
  2487. 'table' => 'cell_lineprop',
  2488. 'columns' => array(
  2489. 'cell_lineprop_id' => 'cell_lineprop_id',
  2490. ),
  2491. ),
  2492. ),
  2493. 'table' => 'cell_lineprop_pub',
  2494. 'referring_tables' => NULL,
  2495. );
  2496. return $description;
  2497. }
  2498. /**
  2499. * Implements hook_chado_schema_v1_2_chadoprop()
  2500. * Purpose: To describe the structure of 'chadoprop' to tripal
  2501. * @see tripal_core_chado_insert()
  2502. * @see tripal_core_chado_update()
  2503. * @see tripal_core_chado_select()
  2504. *
  2505. * @return
  2506. * An array describing the 'chadoprop' table
  2507. *
  2508. * @ingroup tripal_chado_v1.2_schema_api
  2509. *
  2510. */
  2511. function tripal_core_chado_schema_v1_2_chadoprop() {
  2512. $description = array(
  2513. 'description' => 'TODO: please describe this table!',
  2514. 'fields' => array(
  2515. 'chadoprop_id' => array(
  2516. 'description' => 'TODO: please describe this field!',
  2517. 'type' => 'serial',
  2518. 'not null' => TRUE,
  2519. ),
  2520. 'type_id' => array(
  2521. 'description' => 'TODO: please describe this field!',
  2522. 'type' => 'int',
  2523. 'not null' => TRUE,
  2524. ),
  2525. 'value' => array(
  2526. 'description' => 'TODO: please describe this field!',
  2527. 'type' => 'text',
  2528. 'not null' => FALSE,
  2529. ),
  2530. 'rank' => array(
  2531. 'description' => 'TODO: please describe this field!',
  2532. 'type' => 'int',
  2533. 'not null' => TRUE,
  2534. 'default' => 0,
  2535. ),
  2536. ),
  2537. 'primary key' => array(
  2538. 0 => 'chadoprop_id',
  2539. ),
  2540. 'unique keys' => array(
  2541. 'chadoprop_c1' => array(
  2542. 0 => 'type_id',
  2543. 1 => 'rank',
  2544. ),
  2545. ),
  2546. 'foreign keys' => array(
  2547. 'cvterm' => array(
  2548. 'table' => 'cvterm',
  2549. 'columns' => array(
  2550. 'type_id' => 'cvterm_id',
  2551. ),
  2552. ),
  2553. ),
  2554. 'table' => 'chadoprop',
  2555. 'referring_tables' => NULL,
  2556. );
  2557. return $description;
  2558. }
  2559. /**
  2560. * Implements hook_chado_schema_v1_2_channel()
  2561. * Purpose: To describe the structure of 'channel' to tripal
  2562. * @see tripal_core_chado_insert()
  2563. * @see tripal_core_chado_update()
  2564. * @see tripal_core_chado_select()
  2565. *
  2566. * @return
  2567. * An array describing the 'channel' table
  2568. *
  2569. * @ingroup tripal_chado_v1.2_schema_api
  2570. *
  2571. */
  2572. function tripal_core_chado_schema_v1_2_channel() {
  2573. $description = array(
  2574. 'description' => 'TODO: please describe this table!',
  2575. 'fields' => array(
  2576. 'channel_id' => array(
  2577. 'description' => 'TODO: please describe this field!',
  2578. 'type' => 'serial',
  2579. 'not null' => TRUE,
  2580. ),
  2581. 'name' => array(
  2582. 'description' => 'TODO: please describe this field!',
  2583. 'type' => 'text',
  2584. 'not null' => TRUE,
  2585. ),
  2586. 'definition' => array(
  2587. 'description' => 'TODO: please describe this field!',
  2588. 'type' => 'text',
  2589. 'not null' => TRUE,
  2590. ),
  2591. ),
  2592. 'primary key' => array(
  2593. 0 => 'channel_id',
  2594. ),
  2595. 'unique keys' => array(
  2596. 'channel_c1' => array(
  2597. 0 => 'name',
  2598. ),
  2599. ),
  2600. 'foreign keys' => array(
  2601. ),
  2602. 'table' => 'channel',
  2603. 'referring_tables' => array(
  2604. 0 => 'acquisition',
  2605. 1 => 'assay_biomaterial',
  2606. ),
  2607. );
  2608. return $description;
  2609. }
  2610. /**
  2611. * Implements hook_chado_schema_v1_2_contact()
  2612. * Purpose: To describe the structure of 'contact' to tripal
  2613. * @see tripal_core_chado_insert()
  2614. * @see tripal_core_chado_update()
  2615. * @see tripal_core_chado_select()
  2616. *
  2617. * @return
  2618. * An array describing the 'contact' table
  2619. *
  2620. * @ingroup tripal_chado_v1.2_schema_api
  2621. *
  2622. */
  2623. function tripal_core_chado_schema_v1_2_contact() {
  2624. $description = array(
  2625. 'description' => 'TODO: please describe this table!',
  2626. 'fields' => array(
  2627. 'contact_id' => array(
  2628. 'description' => 'TODO: please describe this field!',
  2629. 'type' => 'serial',
  2630. 'not null' => TRUE,
  2631. ),
  2632. 'type_id' => array(
  2633. 'description' => 'TODO: please describe this field!',
  2634. 'type' => 'int',
  2635. 'not null' => FALSE,
  2636. ),
  2637. 'name' => array(
  2638. 'description' => 'TODO: please describe this field!',
  2639. 'type' => 'varchar',
  2640. 'length' => '255',
  2641. 'not null' => TRUE,
  2642. ),
  2643. 'description' => array(
  2644. 'description' => 'TODO: please describe this field!',
  2645. 'type' => 'varchar',
  2646. 'length' => '255',
  2647. 'not null' => FALSE,
  2648. ),
  2649. ),
  2650. 'primary key' => array(
  2651. 0 => 'contact_id',
  2652. ),
  2653. 'unique keys' => array(
  2654. 'contact_c1' => array(
  2655. 0 => 'name',
  2656. ),
  2657. ),
  2658. 'foreign keys' => array(
  2659. 'cvterm' => array(
  2660. 'table' => 'cvterm',
  2661. 'columns' => array(
  2662. 'type_id' => 'cvterm_id',
  2663. ),
  2664. ),
  2665. ),
  2666. 'table' => 'contact',
  2667. 'referring_tables' => array(
  2668. 0 => 'arraydesign',
  2669. 1 => 'assay',
  2670. 2 => 'biomaterial',
  2671. 3 => 'contact_relationship',
  2672. 5 => 'nd_experiment_contact',
  2673. 6 => 'project_contact',
  2674. 14 => 'quantification',
  2675. 15 => 'stockcollection',
  2676. 16 => 'study',
  2677. ),
  2678. );
  2679. return $description;
  2680. }
  2681. /**
  2682. * Implements hook_chado_schema_v1_2_contact_relationship()
  2683. * Purpose: To describe the structure of 'contact_relationship' to tripal
  2684. * @see tripal_core_chado_insert()
  2685. * @see tripal_core_chado_update()
  2686. * @see tripal_core_chado_select()
  2687. *
  2688. * @return
  2689. * An array describing the 'contact_relationship' table
  2690. *
  2691. * @ingroup tripal_chado_v1.2_schema_api
  2692. *
  2693. */
  2694. function tripal_core_chado_schema_v1_2_contact_relationship() {
  2695. $description = array(
  2696. 'description' => 'TODO: please describe this table!',
  2697. 'fields' => array(
  2698. 'contact_relationship_id' => array(
  2699. 'description' => 'TODO: please describe this field!',
  2700. 'type' => 'serial',
  2701. 'not null' => TRUE,
  2702. ),
  2703. 'type_id' => array(
  2704. 'description' => 'TODO: please describe this field!',
  2705. 'type' => 'int',
  2706. 'not null' => TRUE,
  2707. ),
  2708. 'subject_id' => array(
  2709. 'description' => 'TODO: please describe this field!',
  2710. 'type' => 'int',
  2711. 'not null' => TRUE,
  2712. ),
  2713. 'object_id' => array(
  2714. 'description' => 'TODO: please describe this field!',
  2715. 'type' => 'int',
  2716. 'not null' => TRUE,
  2717. ),
  2718. ),
  2719. 'primary key' => array(
  2720. 0 => 'contact_relationship_id',
  2721. ),
  2722. 'unique keys' => array(
  2723. 'contact_relationship_c1' => array(
  2724. 0 => 'subject_id',
  2725. 1 => 'object_id',
  2726. 2 => 'type_id',
  2727. ),
  2728. ),
  2729. 'indexes' => array(
  2730. 'contact_relationship_idx1' => array(
  2731. 0 => 'type_id',
  2732. ),
  2733. 'contact_relationship_idx2' => array(
  2734. 0 => 'subject_id',
  2735. ),
  2736. 'contact_relationship_idx3' => array(
  2737. 0 => 'object_id',
  2738. ),
  2739. ),
  2740. 'foreign keys' => array(
  2741. 'cvterm' => array(
  2742. 'table' => 'cvterm',
  2743. 'columns' => array(
  2744. 'type_id' => 'cvterm_id',
  2745. ),
  2746. ),
  2747. 'contact' => array(
  2748. 'table' => 'contact',
  2749. 'columns' => array(
  2750. 'subject_id' => 'contact_id',
  2751. 'object_id' => 'contact_id',
  2752. ),
  2753. ),
  2754. ),
  2755. 'table' => 'contact_relationship',
  2756. 'referring_tables' => NULL,
  2757. );
  2758. return $description;
  2759. }
  2760. /**
  2761. * Implements hook_chado_schema_v1_2_control()
  2762. * Purpose: To describe the structure of 'control' to tripal
  2763. * @see tripal_core_chado_insert()
  2764. * @see tripal_core_chado_update()
  2765. * @see tripal_core_chado_select()
  2766. *
  2767. * @return
  2768. * An array describing the 'control' table
  2769. *
  2770. * @ingroup tripal_chado_v1.2_schema_api
  2771. *
  2772. */
  2773. function tripal_core_chado_schema_v1_2_control() {
  2774. $description = array(
  2775. 'description' => 'TODO: please describe this table!',
  2776. 'fields' => array(
  2777. 'control_id' => array(
  2778. 'description' => 'TODO: please describe this field!',
  2779. 'type' => 'serial',
  2780. 'not null' => TRUE,
  2781. ),
  2782. 'type_id' => array(
  2783. 'description' => 'TODO: please describe this field!',
  2784. 'type' => 'int',
  2785. 'not null' => TRUE,
  2786. ),
  2787. 'assay_id' => array(
  2788. 'description' => 'TODO: please describe this field!',
  2789. 'type' => 'int',
  2790. 'not null' => TRUE,
  2791. ),
  2792. 'tableinfo_id' => array(
  2793. 'description' => 'TODO: please describe this field!',
  2794. 'type' => 'int',
  2795. 'not null' => TRUE,
  2796. ),
  2797. 'row_id' => array(
  2798. 'description' => 'TODO: please describe this field!',
  2799. 'type' => 'int',
  2800. 'not null' => TRUE,
  2801. ),
  2802. 'name' => array(
  2803. 'description' => 'TODO: please describe this field!',
  2804. 'type' => 'text',
  2805. 'not null' => FALSE,
  2806. ),
  2807. 'value' => array(
  2808. 'description' => 'TODO: please describe this field!',
  2809. 'type' => 'text',
  2810. 'not null' => FALSE,
  2811. ),
  2812. 'rank' => array(
  2813. 'description' => 'TODO: please describe this field!',
  2814. 'type' => 'int',
  2815. 'not null' => TRUE,
  2816. 'default' => 0,
  2817. ),
  2818. ),
  2819. 'primary key' => array(
  2820. 0 => 'control_id',
  2821. ),
  2822. 'indexes' => array(
  2823. 'control_idx1' => array(
  2824. 0 => 'type_id',
  2825. ),
  2826. 'control_idx2' => array(
  2827. 0 => 'assay_id',
  2828. ),
  2829. 'control_idx3' => array(
  2830. 0 => 'tableinfo_id',
  2831. ),
  2832. 'control_idx4' => array(
  2833. 0 => 'row_id',
  2834. ),
  2835. ),
  2836. 'foreign keys' => array(
  2837. 'cvterm' => array(
  2838. 'table' => 'cvterm',
  2839. 'columns' => array(
  2840. 'type_id' => 'cvterm_id',
  2841. ),
  2842. ),
  2843. 'tableinfo' => array(
  2844. 'table' => 'tableinfo',
  2845. 'columns' => array(
  2846. 'tableinfo_id' => 'tableinfo_id',
  2847. ),
  2848. ),
  2849. 'assay' => array(
  2850. 'table' => 'assay',
  2851. 'columns' => array(
  2852. 'assay_id' => 'assay_id',
  2853. ),
  2854. ),
  2855. ),
  2856. 'table' => 'control',
  2857. 'referring_tables' => NULL,
  2858. );
  2859. return $description;
  2860. }
  2861. /**
  2862. * Implements hook_chado_schema_v1_2_cv()
  2863. * Purpose: To describe the structure of 'cv' to tripal
  2864. * @see tripal_core_chado_insert()
  2865. * @see tripal_core_chado_update()
  2866. * @see tripal_core_chado_select()
  2867. *
  2868. * @return
  2869. * An array describing the 'cv' table
  2870. *
  2871. * @ingroup tripal_chado_v1.2_schema_api
  2872. *
  2873. */
  2874. function tripal_core_chado_schema_v1_2_cv() {
  2875. $description = array(
  2876. 'description' => 'TODO: please describe this table!',
  2877. 'fields' => array(
  2878. 'cv_id' => array(
  2879. 'description' => 'TODO: please describe this field!',
  2880. 'type' => 'serial',
  2881. 'not null' => TRUE,
  2882. ),
  2883. 'name' => array(
  2884. 'description' => 'TODO: please describe this field!',
  2885. 'type' => 'varchar',
  2886. 'length' => '255',
  2887. 'not null' => TRUE,
  2888. ),
  2889. 'definition' => array(
  2890. 'description' => 'TODO: please describe this field!',
  2891. 'type' => 'text',
  2892. 'not null' => FALSE,
  2893. ),
  2894. ),
  2895. 'primary key' => array(
  2896. 0 => 'cv_id',
  2897. ),
  2898. 'unique keys' => array(
  2899. 'cv_c1' => array(
  2900. 0 => 'name',
  2901. ),
  2902. ),
  2903. 'foreign keys' => array(
  2904. ),
  2905. 'table' => 'cv',
  2906. 'referring_tables' => array(
  2907. 0 => 'cvprop',
  2908. 1 => 'cvterm',
  2909. 2 => 'cvtermpath',
  2910. ),
  2911. );
  2912. return $description;
  2913. }
  2914. /**
  2915. * Implements hook_chado_schema_v1_2_cvprop()
  2916. * Purpose: To describe the structure of 'cvprop' to tripal
  2917. * @see tripal_core_chado_insert()
  2918. * @see tripal_core_chado_update()
  2919. * @see tripal_core_chado_select()
  2920. *
  2921. * @return
  2922. * An array describing the 'cvprop' table
  2923. *
  2924. * @ingroup tripal_chado_v1.2_schema_api
  2925. *
  2926. */
  2927. function tripal_core_chado_schema_v1_2_cvprop() {
  2928. $description = array(
  2929. 'description' => 'TODO: please describe this table!',
  2930. 'fields' => array(
  2931. 'cvprop_id' => array(
  2932. 'description' => 'TODO: please describe this field!',
  2933. 'type' => 'serial',
  2934. 'not null' => TRUE,
  2935. ),
  2936. 'cv_id' => array(
  2937. 'description' => 'TODO: please describe this field!',
  2938. 'type' => 'int',
  2939. 'not null' => TRUE,
  2940. ),
  2941. 'type_id' => array(
  2942. 'description' => 'TODO: please describe this field!',
  2943. 'type' => 'int',
  2944. 'not null' => TRUE,
  2945. ),
  2946. 'value' => array(
  2947. 'description' => 'TODO: please describe this field!',
  2948. 'type' => 'text',
  2949. 'not null' => FALSE,
  2950. ),
  2951. 'rank' => array(
  2952. 'description' => 'TODO: please describe this field!',
  2953. 'type' => 'int',
  2954. 'not null' => TRUE,
  2955. 'default' => 0,
  2956. ),
  2957. ),
  2958. 'primary key' => array(
  2959. 0 => 'cvprop_id',
  2960. ),
  2961. 'unique keys' => array(
  2962. 'cvprop_c1' => array(
  2963. 0 => 'cv_id',
  2964. 1 => 'type_id',
  2965. 2 => 'rank',
  2966. ),
  2967. ),
  2968. 'foreign keys' => array(
  2969. 'cvterm' => array(
  2970. 'table' => 'cvterm',
  2971. 'columns' => array(
  2972. 'type_id' => 'cvterm_id',
  2973. ),
  2974. ),
  2975. 'cv' => array(
  2976. 'table' => 'cv',
  2977. 'columns' => array(
  2978. 'cv_id' => 'cv_id',
  2979. ),
  2980. ),
  2981. ),
  2982. 'table' => 'cvprop',
  2983. 'referring_tables' => NULL,
  2984. );
  2985. return $description;
  2986. }
  2987. /**
  2988. * Implements hook_chado_schema_v1_2_cvterm()
  2989. * Purpose: To describe the structure of 'cvterm' to tripal
  2990. * @see tripal_core_chado_insert()
  2991. * @see tripal_core_chado_update()
  2992. * @see tripal_core_chado_select()
  2993. *
  2994. * @return
  2995. * An array describing the 'cvterm' table
  2996. *
  2997. * @ingroup tripal_chado_v1.2_schema_api
  2998. *
  2999. */
  3000. function tripal_core_chado_schema_v1_2_cvterm() {
  3001. $description = array(
  3002. 'description' => 'TODO: please describe this table!',
  3003. 'fields' => array(
  3004. 'cvterm_id' => array(
  3005. 'description' => 'TODO: please describe this field!',
  3006. 'type' => 'serial',
  3007. 'not null' => TRUE,
  3008. ),
  3009. 'cv_id' => array(
  3010. 'description' => 'TODO: please describe this field!',
  3011. 'type' => 'int',
  3012. 'not null' => TRUE,
  3013. ),
  3014. 'name' => array(
  3015. 'description' => 'TODO: please describe this field!',
  3016. 'type' => 'varchar',
  3017. 'length' => '1024',
  3018. 'not null' => TRUE,
  3019. ),
  3020. 'definition' => array(
  3021. 'description' => 'TODO: please describe this field!',
  3022. 'type' => 'text',
  3023. 'not null' => FALSE,
  3024. ),
  3025. 'dbxref_id' => array(
  3026. 'description' => 'TODO: please describe this field!',
  3027. 'type' => 'int',
  3028. 'not null' => TRUE,
  3029. ),
  3030. 'is_obsolete' => array(
  3031. 'description' => 'TODO: please describe this field!',
  3032. 'type' => 'int',
  3033. 'not null' => TRUE,
  3034. 'default' => 0,
  3035. ),
  3036. 'is_relationshiptype' => array(
  3037. 'description' => 'TODO: please describe this field!',
  3038. 'type' => 'int',
  3039. 'not null' => TRUE,
  3040. 'default' => 0,
  3041. ),
  3042. ),
  3043. 'primary key' => array(
  3044. 0 => 'cvterm_id',
  3045. ),
  3046. 'unique keys' => array(
  3047. 'cvterm_c1' => array(
  3048. 0 => 'name',
  3049. 1 => 'cv_id',
  3050. 2 => 'is_obsolete',
  3051. ),
  3052. 'cvterm_c2' => array(
  3053. 0 => 'dbxref_id',
  3054. ),
  3055. ),
  3056. 'indexes' => array(
  3057. 'cvterm_idx1' => array(
  3058. 0 => 'cv_id',
  3059. ),
  3060. 'cvterm_idx2' => array(
  3061. 0 => 'name',
  3062. ),
  3063. 'cvterm_idx3' => array(
  3064. 0 => 'dbxref_id',
  3065. ),
  3066. ),
  3067. 'foreign keys' => array(
  3068. 'cv' => array(
  3069. 'table' => 'cv',
  3070. 'columns' => array(
  3071. 'cv_id' => 'cv_id',
  3072. ),
  3073. ),
  3074. 'dbxref' => array(
  3075. 'table' => 'dbxref',
  3076. 'columns' => array(
  3077. 'dbxref_id' => 'dbxref_id',
  3078. ),
  3079. ),
  3080. ),
  3081. 'table' => 'cvterm',
  3082. 'referring_tables' => array(
  3083. 0 => 'acquisition_relationship',
  3084. 1 => 'acquisitionprop',
  3085. 2 => 'analysisfeatureprop',
  3086. 3 => 'analysisprop',
  3087. 4 => 'arraydesign',
  3088. 6 => 'arraydesignprop',
  3089. 7 => 'assayprop',
  3090. 8 => 'biomaterial_relationship',
  3091. 9 => 'biomaterial_treatment',
  3092. 10 => 'biomaterialprop',
  3093. 11 => 'cell_line_cvterm',
  3094. 12 => 'cell_line_cvtermprop',
  3095. 13 => 'cell_line_relationship',
  3096. 14 => 'cell_lineprop',
  3097. 15 => 'chadoprop',
  3098. 23 => 'contact',
  3099. 24 => 'contact_relationship',
  3100. 25 => 'control',
  3101. 26 => 'cvprop',
  3102. 27 => 'cvterm_dbxref',
  3103. 28 => 'cvterm_relationship',
  3104. 31 => 'cvtermpath',
  3105. 34 => 'cvtermprop',
  3106. 36 => 'cvtermsynonym',
  3107. 38 => 'dbxrefprop',
  3108. 39 => 'element',
  3109. 40 => 'element_relationship',
  3110. 41 => 'elementresult_relationship',
  3111. 42 => 'environment_cvterm',
  3112. 43 => 'expression_cvterm',
  3113. 45 => 'expression_cvtermprop',
  3114. 46 => 'expressionprop',
  3115. 47 => 'feature',
  3116. 48 => 'feature_cvterm',
  3117. 49 => 'feature_cvtermprop',
  3118. 50 => 'feature_expressionprop',
  3119. 51 => 'feature_genotype',
  3120. 52 => 'feature_pubprop',
  3121. 53 => 'feature_relationship',
  3122. 54 => 'feature_relationshipprop',
  3123. 55 => 'featuremap',
  3124. 56 => 'featureprop',
  3125. 57 => 'genotype',
  3126. 58 => 'genotypeprop',
  3127. 66 => 'library',
  3128. 67 => 'library_cvterm',
  3129. 68 => 'libraryprop',
  3130. 69 => 'nd_experiment',
  3131. 70 => 'nd_experiment_stock',
  3132. 71 => 'nd_experiment_stockprop',
  3133. 72 => 'nd_experimentprop',
  3134. 73 => 'nd_geolocationprop',
  3135. 74 => 'nd_protocol',
  3136. 75 => 'nd_protocol_reagent',
  3137. 76 => 'nd_protocolprop',
  3138. 77 => 'nd_reagent',
  3139. 78 => 'nd_reagent_relationship',
  3140. 79 => 'nd_reagentprop',
  3141. 80 => 'organismprop',
  3142. 81 => 'phendesc',
  3143. 82 => 'phenotype',
  3144. 86 => 'phenotype_comparison_cvterm',
  3145. 87 => 'phenotype_cvterm',
  3146. 88 => 'phenstatement',
  3147. 89 => 'phylonode',
  3148. 90 => 'phylonode_relationship',
  3149. 91 => 'phylonodeprop',
  3150. 92 => 'phylotree',
  3151. 93 => 'project_relationship',
  3152. 101 => 'projectprop',
  3153. 109 => 'protocol',
  3154. 110 => 'protocolparam',
  3155. 112 => 'pub',
  3156. 113 => 'pub_relationship',
  3157. 114 => 'pubprop',
  3158. 115 => 'quantification_relationship',
  3159. 116 => 'quantificationprop',
  3160. 117 => 'stock',
  3161. 118 => 'stock_cvterm',
  3162. 119 => 'stock_cvtermprop',
  3163. 127 => 'stock_dbxrefprop',
  3164. 135 => 'stock_relationship',
  3165. 136 => 'stock_relationship_cvterm',
  3166. 144 => 'stockcollection',
  3167. 145 => 'stockcollectionprop',
  3168. 146 => 'stockprop',
  3169. 147 => 'studydesignprop',
  3170. 148 => 'studyfactor',
  3171. 149 => 'studyprop',
  3172. 150 => 'studyprop_feature',
  3173. 151 => 'synonym',
  3174. 152 => 'treatment',
  3175. ),
  3176. );
  3177. return $description;
  3178. }
  3179. /**
  3180. * Implements hook_chado_schema_v1_2_cvterm_dbxref()
  3181. * Purpose: To describe the structure of 'cvterm_dbxref' to tripal
  3182. * @see tripal_core_chado_insert()
  3183. * @see tripal_core_chado_update()
  3184. * @see tripal_core_chado_select()
  3185. *
  3186. * @return
  3187. * An array describing the 'cvterm_dbxref' table
  3188. *
  3189. * @ingroup tripal_chado_v1.2_schema_api
  3190. *
  3191. */
  3192. function tripal_core_chado_schema_v1_2_cvterm_dbxref() {
  3193. $description = array(
  3194. 'description' => 'TODO: please describe this table!',
  3195. 'fields' => array(
  3196. 'cvterm_dbxref_id' => array(
  3197. 'description' => 'TODO: please describe this field!',
  3198. 'type' => 'serial',
  3199. 'not null' => TRUE,
  3200. ),
  3201. 'cvterm_id' => array(
  3202. 'description' => 'TODO: please describe this field!',
  3203. 'type' => 'int',
  3204. 'not null' => TRUE,
  3205. ),
  3206. 'dbxref_id' => array(
  3207. 'description' => 'TODO: please describe this field!',
  3208. 'type' => 'int',
  3209. 'not null' => TRUE,
  3210. ),
  3211. 'is_for_definition' => array(
  3212. 'description' => 'TODO: please describe this field!',
  3213. 'type' => 'int',
  3214. 'not null' => TRUE,
  3215. 'default' => 0,
  3216. ),
  3217. ),
  3218. 'primary key' => array(
  3219. 0 => 'cvterm_dbxref_id',
  3220. ),
  3221. 'unique keys' => array(
  3222. 'cvterm_dbxref_c1' => array(
  3223. 0 => 'cvterm_id',
  3224. 1 => 'dbxref_id',
  3225. ),
  3226. ),
  3227. 'indexes' => array(
  3228. 'cvterm_dbxref_idx1' => array(
  3229. 0 => 'cvterm_id',
  3230. ),
  3231. 'cvterm_dbxref_idx2' => array(
  3232. 0 => 'dbxref_id',
  3233. ),
  3234. ),
  3235. 'foreign keys' => array(
  3236. 'cvterm' => array(
  3237. 'table' => 'cvterm',
  3238. 'columns' => array(
  3239. 'cvterm_id' => 'cvterm_id',
  3240. ),
  3241. ),
  3242. 'dbxref' => array(
  3243. 'table' => 'dbxref',
  3244. 'columns' => array(
  3245. 'dbxref_id' => 'dbxref_id',
  3246. ),
  3247. ),
  3248. ),
  3249. 'table' => 'cvterm_dbxref',
  3250. 'referring_tables' => NULL,
  3251. );
  3252. return $description;
  3253. }
  3254. /**
  3255. * Implements hook_chado_schema_v1_2_cvterm_relationship()
  3256. * Purpose: To describe the structure of 'cvterm_relationship' to tripal
  3257. * @see tripal_core_chado_insert()
  3258. * @see tripal_core_chado_update()
  3259. * @see tripal_core_chado_select()
  3260. *
  3261. * @return
  3262. * An array describing the 'cvterm_relationship' table
  3263. *
  3264. * @ingroup tripal_chado_v1.2_schema_api
  3265. *
  3266. */
  3267. function tripal_core_chado_schema_v1_2_cvterm_relationship() {
  3268. $description = array(
  3269. 'description' => 'TODO: please describe this table!',
  3270. 'fields' => array(
  3271. 'cvterm_relationship_id' => array(
  3272. 'description' => 'TODO: please describe this field!',
  3273. 'type' => 'serial',
  3274. 'not null' => TRUE,
  3275. ),
  3276. 'type_id' => array(
  3277. 'description' => 'TODO: please describe this field!',
  3278. 'type' => 'int',
  3279. 'not null' => TRUE,
  3280. ),
  3281. 'subject_id' => array(
  3282. 'description' => 'TODO: please describe this field!',
  3283. 'type' => 'int',
  3284. 'not null' => TRUE,
  3285. ),
  3286. 'object_id' => array(
  3287. 'description' => 'TODO: please describe this field!',
  3288. 'type' => 'int',
  3289. 'not null' => TRUE,
  3290. ),
  3291. ),
  3292. 'primary key' => array(
  3293. 0 => 'cvterm_relationship_id',
  3294. ),
  3295. 'unique keys' => array(
  3296. 'cvterm_relationship_c1' => array(
  3297. 0 => 'subject_id',
  3298. 1 => 'object_id',
  3299. 2 => 'type_id',
  3300. ),
  3301. ),
  3302. 'indexes' => array(
  3303. 'cvterm_relationship_idx1' => array(
  3304. 0 => 'type_id',
  3305. ),
  3306. 'cvterm_relationship_idx2' => array(
  3307. 0 => 'subject_id',
  3308. ),
  3309. 'cvterm_relationship_idx3' => array(
  3310. 0 => 'object_id',
  3311. ),
  3312. ),
  3313. 'foreign keys' => array(
  3314. 'cvterm' => array(
  3315. 'table' => 'cvterm',
  3316. 'columns' => array(
  3317. 'type_id' => 'cvterm_id',
  3318. 'subject_id' => 'cvterm_id',
  3319. 'object_id' => 'cvterm_id',
  3320. ),
  3321. ),
  3322. ),
  3323. 'table' => 'cvterm_relationship',
  3324. 'referring_tables' => NULL,
  3325. );
  3326. return $description;
  3327. }
  3328. /**
  3329. * Implements hook_chado_schema_v1_2_cvtermpath()
  3330. * Purpose: To describe the structure of 'cvtermpath' to tripal
  3331. * @see tripal_core_chado_insert()
  3332. * @see tripal_core_chado_update()
  3333. * @see tripal_core_chado_select()
  3334. *
  3335. * @return
  3336. * An array describing the 'cvtermpath' table
  3337. *
  3338. * @ingroup tripal_chado_v1.2_schema_api
  3339. *
  3340. */
  3341. function tripal_core_chado_schema_v1_2_cvtermpath() {
  3342. $description = array(
  3343. 'description' => 'TODO: please describe this table!',
  3344. 'fields' => array(
  3345. 'cvtermpath_id' => array(
  3346. 'description' => 'TODO: please describe this field!',
  3347. 'type' => 'serial',
  3348. 'not null' => TRUE,
  3349. ),
  3350. 'type_id' => array(
  3351. 'description' => 'TODO: please describe this field!',
  3352. 'type' => 'int',
  3353. 'not null' => FALSE,
  3354. ),
  3355. 'subject_id' => array(
  3356. 'description' => 'TODO: please describe this field!',
  3357. 'type' => 'int',
  3358. 'not null' => TRUE,
  3359. ),
  3360. 'object_id' => array(
  3361. 'description' => 'TODO: please describe this field!',
  3362. 'type' => 'int',
  3363. 'not null' => TRUE,
  3364. ),
  3365. 'cv_id' => array(
  3366. 'description' => 'TODO: please describe this field!',
  3367. 'type' => 'int',
  3368. 'not null' => TRUE,
  3369. ),
  3370. 'pathdistance' => array(
  3371. 'description' => 'TODO: please describe this field!',
  3372. 'type' => 'int',
  3373. 'not null' => FALSE,
  3374. ),
  3375. ),
  3376. 'primary key' => array(
  3377. 0 => 'cvtermpath_id',
  3378. ),
  3379. 'unique keys' => array(
  3380. 'cvtermpath_c1' => array(
  3381. 0 => 'subject_id',
  3382. 1 => 'object_id',
  3383. 2 => 'type_id',
  3384. 3 => 'pathdistance',
  3385. ),
  3386. ),
  3387. 'indexes' => array(
  3388. 'cvtermpath_idx1' => array(
  3389. 0 => 'type_id',
  3390. ),
  3391. 'cvtermpath_idx2' => array(
  3392. 0 => 'subject_id',
  3393. ),
  3394. 'cvtermpath_idx3' => array(
  3395. 0 => 'object_id',
  3396. ),
  3397. 'cvtermpath_idx4' => array(
  3398. 0 => 'cv_id',
  3399. ),
  3400. ),
  3401. 'foreign keys' => array(
  3402. 'cvterm' => array(
  3403. 'table' => 'cvterm',
  3404. 'columns' => array(
  3405. 'type_id' => 'cvterm_id',
  3406. 'subject_id' => 'cvterm_id',
  3407. 'object_id' => 'cvterm_id',
  3408. ),
  3409. ),
  3410. 'cv' => array(
  3411. 'table' => 'cv',
  3412. 'columns' => array(
  3413. 'cv_id' => 'cv_id',
  3414. ),
  3415. ),
  3416. ),
  3417. 'table' => 'cvtermpath',
  3418. 'referring_tables' => NULL,
  3419. );
  3420. return $description;
  3421. }
  3422. /**
  3423. * Implements hook_chado_schema_v1_2_cvtermprop()
  3424. * Purpose: To describe the structure of 'cvtermprop' to tripal
  3425. * @see tripal_core_chado_insert()
  3426. * @see tripal_core_chado_update()
  3427. * @see tripal_core_chado_select()
  3428. *
  3429. * @return
  3430. * An array describing the 'cvtermprop' table
  3431. *
  3432. * @ingroup tripal_chado_v1.2_schema_api
  3433. *
  3434. */
  3435. function tripal_core_chado_schema_v1_2_cvtermprop() {
  3436. $description = array(
  3437. 'description' => 'TODO: please describe this table!',
  3438. 'fields' => array(
  3439. 'cvtermprop_id' => array(
  3440. 'description' => 'TODO: please describe this field!',
  3441. 'type' => 'serial',
  3442. 'not null' => TRUE,
  3443. ),
  3444. 'cvterm_id' => array(
  3445. 'description' => 'TODO: please describe this field!',
  3446. 'type' => 'int',
  3447. 'not null' => TRUE,
  3448. ),
  3449. 'type_id' => array(
  3450. 'description' => 'TODO: please describe this field!',
  3451. 'type' => 'int',
  3452. 'not null' => TRUE,
  3453. ),
  3454. 'value' => array(
  3455. 'description' => 'TODO: please describe this field!',
  3456. 'type' => 'text',
  3457. 'not null' => TRUE,
  3458. 'default' => '',
  3459. ),
  3460. 'rank' => array(
  3461. 'description' => 'TODO: please describe this field!',
  3462. 'type' => 'int',
  3463. 'not null' => TRUE,
  3464. 'default' => 0,
  3465. ),
  3466. ),
  3467. 'primary key' => array(
  3468. 0 => 'cvtermprop_id',
  3469. ),
  3470. 'unique keys' => array(
  3471. 'cvterm_id' => array(
  3472. 0 => 'cvterm_id',
  3473. 1 => 'type_id',
  3474. 2 => 'value',
  3475. 3 => 'rank',
  3476. ),
  3477. ),
  3478. 'indexes' => array(
  3479. 'cvtermprop_idx1' => array(
  3480. 0 => 'cvterm_id',
  3481. ),
  3482. 'cvtermprop_idx2' => array(
  3483. 0 => 'type_id',
  3484. ),
  3485. ),
  3486. 'foreign keys' => array(
  3487. 'cvterm' => array(
  3488. 'table' => 'cvterm',
  3489. 'columns' => array(
  3490. 'cvterm_id' => 'cvterm_id',
  3491. 'type_id' => 'cvterm_id',
  3492. ),
  3493. ),
  3494. ),
  3495. 'table' => 'cvtermprop',
  3496. 'referring_tables' => NULL,
  3497. );
  3498. return $description;
  3499. }
  3500. /**
  3501. * Implements hook_chado_schema_v1_2_cvtermsynonym()
  3502. * Purpose: To describe the structure of 'cvtermsynonym' to tripal
  3503. * @see tripal_core_chado_insert()
  3504. * @see tripal_core_chado_update()
  3505. * @see tripal_core_chado_select()
  3506. *
  3507. * @return
  3508. * An array describing the 'cvtermsynonym' table
  3509. *
  3510. * @ingroup tripal_chado_v1.2_schema_api
  3511. *
  3512. */
  3513. function tripal_core_chado_schema_v1_2_cvtermsynonym() {
  3514. $description = array(
  3515. 'description' => 'TODO: please describe this table!',
  3516. 'fields' => array(
  3517. 'cvtermsynonym_id' => array(
  3518. 'description' => 'TODO: please describe this field!',
  3519. 'type' => 'serial',
  3520. 'not null' => TRUE,
  3521. ),
  3522. 'cvterm_id' => array(
  3523. 'description' => 'TODO: please describe this field!',
  3524. 'type' => 'int',
  3525. 'not null' => TRUE,
  3526. ),
  3527. 'synonym' => array(
  3528. 'description' => 'TODO: please describe this field!',
  3529. 'type' => 'varchar',
  3530. 'length' => '1024',
  3531. 'not null' => TRUE,
  3532. ),
  3533. 'type_id' => array(
  3534. 'description' => 'TODO: please describe this field!',
  3535. 'type' => 'int',
  3536. 'not null' => FALSE,
  3537. ),
  3538. ),
  3539. 'primary key' => array(
  3540. 0 => 'cvtermsynonym_id',
  3541. ),
  3542. 'unique keys' => array(
  3543. 'cvtermsynonym_c1' => array(
  3544. 0 => 'cvterm_id',
  3545. 1 => 'synonym',
  3546. ),
  3547. ),
  3548. 'indexes' => array(
  3549. 'cvtermsynonym_idx1' => array(
  3550. 0 => 'cvterm_id',
  3551. ),
  3552. ),
  3553. 'foreign keys' => array(
  3554. 'cvterm' => array(
  3555. 'table' => 'cvterm',
  3556. 'columns' => array(
  3557. 'cvterm_id' => 'cvterm_id',
  3558. 'type_id' => 'cvterm_id',
  3559. ),
  3560. ),
  3561. ),
  3562. 'table' => 'cvtermsynonym',
  3563. 'referring_tables' => NULL,
  3564. );
  3565. return $description;
  3566. }
  3567. /**
  3568. * Implements hook_chado_schema_v1_2_db()
  3569. * Purpose: To describe the structure of 'db' to tripal
  3570. * @see tripal_core_chado_insert()
  3571. * @see tripal_core_chado_update()
  3572. * @see tripal_core_chado_select()
  3573. *
  3574. * @return
  3575. * An array describing the 'db' table
  3576. *
  3577. * @ingroup tripal_chado_v1.2_schema_api
  3578. *
  3579. */
  3580. function tripal_core_chado_schema_v1_2_db() {
  3581. $description = array(
  3582. 'description' => 'TODO: please describe this table!',
  3583. 'fields' => array(
  3584. 'db_id' => array(
  3585. 'description' => 'TODO: please describe this field!',
  3586. 'type' => 'serial',
  3587. 'not null' => TRUE,
  3588. ),
  3589. 'name' => array(
  3590. 'description' => 'TODO: please describe this field!',
  3591. 'type' => 'varchar',
  3592. 'length' => '255',
  3593. 'not null' => TRUE,
  3594. ),
  3595. 'description' => array(
  3596. 'description' => 'TODO: please describe this field!',
  3597. 'type' => 'varchar',
  3598. 'length' => '255',
  3599. 'not null' => FALSE,
  3600. ),
  3601. 'urlprefix' => array(
  3602. 'description' => 'TODO: please describe this field!',
  3603. 'type' => 'varchar',
  3604. 'length' => '255',
  3605. 'not null' => FALSE,
  3606. ),
  3607. 'url' => array(
  3608. 'description' => 'TODO: please describe this field!',
  3609. 'type' => 'varchar',
  3610. 'length' => '255',
  3611. 'not null' => FALSE,
  3612. ),
  3613. ),
  3614. 'primary key' => array(
  3615. 0 => 'db_id',
  3616. ),
  3617. 'unique keys' => array(
  3618. 'db_c1' => array(
  3619. 0 => 'name',
  3620. ),
  3621. ),
  3622. 'foreign keys' => array(
  3623. ),
  3624. 'table' => 'db',
  3625. 'referring_tables' => array(
  3626. 0 => 'dbxref',
  3627. ),
  3628. );
  3629. return $description;
  3630. }
  3631. /**
  3632. * Implements hook_chado_schema_v1_2_dbxref()
  3633. * Purpose: To describe the structure of 'dbxref' to tripal
  3634. * @see tripal_core_chado_insert()
  3635. * @see tripal_core_chado_update()
  3636. * @see tripal_core_chado_select()
  3637. *
  3638. * @return
  3639. * An array describing the 'dbxref' table
  3640. *
  3641. * @ingroup tripal_chado_v1.2_schema_api
  3642. *
  3643. */
  3644. function tripal_core_chado_schema_v1_2_dbxref() {
  3645. $description = array(
  3646. 'description' => 'TODO: please describe this table!',
  3647. 'fields' => array(
  3648. 'dbxref_id' => array(
  3649. 'description' => 'TODO: please describe this field!',
  3650. 'type' => 'serial',
  3651. 'not null' => TRUE,
  3652. ),
  3653. 'db_id' => array(
  3654. 'description' => 'TODO: please describe this field!',
  3655. 'type' => 'int',
  3656. 'not null' => TRUE,
  3657. ),
  3658. 'accession' => array(
  3659. 'description' => 'TODO: please describe this field!',
  3660. 'type' => 'varchar',
  3661. 'length' => '255',
  3662. 'not null' => TRUE,
  3663. ),
  3664. 'version' => array(
  3665. 'description' => 'TODO: please describe this field!',
  3666. 'type' => 'varchar',
  3667. 'length' => '255',
  3668. 'not null' => TRUE,
  3669. 'default' => '',
  3670. ),
  3671. 'description' => array(
  3672. 'description' => 'TODO: please describe this field!',
  3673. 'type' => 'text',
  3674. 'not null' => FALSE,
  3675. ),
  3676. ),
  3677. 'primary key' => array(
  3678. 0 => 'dbxref_id',
  3679. ),
  3680. 'unique keys' => array(
  3681. 'dbxref_c1' => array(
  3682. 0 => 'db_id',
  3683. 1 => 'accession',
  3684. 2 => 'version',
  3685. ),
  3686. ),
  3687. 'indexes' => array(
  3688. 'dbxref_idx1' => array(
  3689. 0 => 'db_id',
  3690. ),
  3691. 'dbxref_idx2' => array(
  3692. 0 => 'accession',
  3693. ),
  3694. 'dbxref_idx3' => array(
  3695. 0 => 'version',
  3696. ),
  3697. ),
  3698. 'foreign keys' => array(
  3699. 'db' => array(
  3700. 'table' => 'db',
  3701. 'columns' => array(
  3702. 'db_id' => 'db_id',
  3703. ),
  3704. ),
  3705. ),
  3706. 'table' => 'dbxref',
  3707. 'referring_tables' => array(
  3708. 0 => 'arraydesign',
  3709. 1 => 'assay',
  3710. 2 => 'biomaterial',
  3711. 3 => 'biomaterial_dbxref',
  3712. 4 => 'cell_line_dbxref',
  3713. 5 => 'cvterm',
  3714. 6 => 'cvterm_dbxref',
  3715. 7 => 'dbxrefprop',
  3716. 8 => 'element',
  3717. 9 => 'feature',
  3718. 10 => 'feature_cvterm_dbxref',
  3719. 11 => 'feature_dbxref',
  3720. 12 => 'library_dbxref',
  3721. 13 => 'nd_experiment_dbxref',
  3722. 14 => 'nd_experiment_stock_dbxref',
  3723. 15 => 'organism_dbxref',
  3724. 16 => 'phylonode_dbxref',
  3725. 17 => 'phylotree',
  3726. 18 => 'protocol',
  3727. 19 => 'pub_dbxref',
  3728. 20 => 'stock',
  3729. 21 => 'stock_dbxref',
  3730. 22 => 'study',
  3731. ),
  3732. );
  3733. return $description;
  3734. }
  3735. /**
  3736. * Implements hook_chado_schema_v1_2_dbxrefprop()
  3737. * Purpose: To describe the structure of 'dbxrefprop' to tripal
  3738. * @see tripal_core_chado_insert()
  3739. * @see tripal_core_chado_update()
  3740. * @see tripal_core_chado_select()
  3741. *
  3742. * @return
  3743. * An array describing the 'dbxrefprop' table
  3744. *
  3745. * @ingroup tripal_chado_v1.2_schema_api
  3746. *
  3747. */
  3748. function tripal_core_chado_schema_v1_2_dbxrefprop() {
  3749. $description = array(
  3750. 'description' => 'TODO: please describe this table!',
  3751. 'fields' => array(
  3752. 'dbxrefprop_id' => array(
  3753. 'description' => 'TODO: please describe this field!',
  3754. 'type' => 'serial',
  3755. 'not null' => TRUE,
  3756. ),
  3757. 'dbxref_id' => array(
  3758. 'description' => 'TODO: please describe this field!',
  3759. 'type' => 'int',
  3760. 'not null' => TRUE,
  3761. ),
  3762. 'type_id' => array(
  3763. 'description' => 'TODO: please describe this field!',
  3764. 'type' => 'int',
  3765. 'not null' => TRUE,
  3766. ),
  3767. 'value' => array(
  3768. 'description' => 'TODO: please describe this field!',
  3769. 'type' => 'text',
  3770. 'not null' => TRUE,
  3771. 'default' => '',
  3772. ),
  3773. 'rank' => array(
  3774. 'description' => 'TODO: please describe this field!',
  3775. 'type' => 'int',
  3776. 'not null' => TRUE,
  3777. 'default' => 0,
  3778. ),
  3779. ),
  3780. 'primary key' => array(
  3781. 0 => 'dbxrefprop_id',
  3782. ),
  3783. 'unique keys' => array(
  3784. 'dbxrefprop_c1' => array(
  3785. 0 => 'dbxref_id',
  3786. 1 => 'type_id',
  3787. 2 => 'rank',
  3788. ),
  3789. ),
  3790. 'indexes' => array(
  3791. 'dbxrefprop_idx1' => array(
  3792. 0 => 'dbxref_id',
  3793. ),
  3794. 'dbxrefprop_idx2' => array(
  3795. 0 => 'type_id',
  3796. ),
  3797. ),
  3798. 'foreign keys' => array(
  3799. 'cvterm' => array(
  3800. 'table' => 'cvterm',
  3801. 'columns' => array(
  3802. 'type_id' => 'cvterm_id',
  3803. ),
  3804. ),
  3805. 'dbxref' => array(
  3806. 'table' => 'dbxref',
  3807. 'columns' => array(
  3808. 'dbxref_id' => 'dbxref_id',
  3809. ),
  3810. ),
  3811. ),
  3812. 'table' => 'dbxrefprop',
  3813. 'referring_tables' => NULL,
  3814. );
  3815. return $description;
  3816. }
  3817. /**
  3818. * Implements hook_chado_schema_v1_2_eimage()
  3819. * Purpose: To describe the structure of 'eimage' to tripal
  3820. * @see tripal_core_chado_insert()
  3821. * @see tripal_core_chado_update()
  3822. * @see tripal_core_chado_select()
  3823. *
  3824. * @return
  3825. * An array describing the 'eimage' table
  3826. *
  3827. * @ingroup tripal_chado_v1.2_schema_api
  3828. *
  3829. */
  3830. function tripal_core_chado_schema_v1_2_eimage() {
  3831. $description = array(
  3832. 'description' => 'TODO: please describe this table!',
  3833. 'fields' => array(
  3834. 'eimage_id' => array(
  3835. 'description' => 'TODO: please describe this field!',
  3836. 'type' => 'serial',
  3837. 'not null' => TRUE,
  3838. ),
  3839. 'eimage_data' => array(
  3840. 'description' => 'TODO: please describe this field!',
  3841. 'type' => 'text',
  3842. 'not null' => FALSE,
  3843. ),
  3844. 'eimage_type' => array(
  3845. 'description' => 'TODO: please describe this field!',
  3846. 'type' => 'varchar',
  3847. 'length' => '255',
  3848. 'not null' => TRUE,
  3849. ),
  3850. 'image_uri' => array(
  3851. 'description' => 'TODO: please describe this field!',
  3852. 'type' => 'varchar',
  3853. 'length' => '255',
  3854. 'not null' => FALSE,
  3855. ),
  3856. ),
  3857. 'primary key' => array(
  3858. 0 => 'eimage_id',
  3859. ),
  3860. 'foreign keys' => array(
  3861. ),
  3862. 'table' => 'eimage',
  3863. 'referring_tables' => array(
  3864. 0 => 'expression_image',
  3865. ),
  3866. );
  3867. return $description;
  3868. }
  3869. /**
  3870. * Implements hook_chado_schema_v1_2_element()
  3871. * Purpose: To describe the structure of 'element' to tripal
  3872. * @see tripal_core_chado_insert()
  3873. * @see tripal_core_chado_update()
  3874. * @see tripal_core_chado_select()
  3875. *
  3876. * @return
  3877. * An array describing the 'element' table
  3878. *
  3879. * @ingroup tripal_chado_v1.2_schema_api
  3880. *
  3881. */
  3882. function tripal_core_chado_schema_v1_2_element() {
  3883. $description = array(
  3884. 'description' => 'TODO: please describe this table!',
  3885. 'fields' => array(
  3886. 'element_id' => array(
  3887. 'description' => 'TODO: please describe this field!',
  3888. 'type' => 'serial',
  3889. 'not null' => TRUE,
  3890. ),
  3891. 'feature_id' => array(
  3892. 'description' => 'TODO: please describe this field!',
  3893. 'type' => 'int',
  3894. 'not null' => FALSE,
  3895. ),
  3896. 'arraydesign_id' => array(
  3897. 'description' => 'TODO: please describe this field!',
  3898. 'type' => 'int',
  3899. 'not null' => TRUE,
  3900. ),
  3901. 'type_id' => array(
  3902. 'description' => 'TODO: please describe this field!',
  3903. 'type' => 'int',
  3904. 'not null' => FALSE,
  3905. ),
  3906. 'dbxref_id' => array(
  3907. 'description' => 'TODO: please describe this field!',
  3908. 'type' => 'int',
  3909. 'not null' => FALSE,
  3910. ),
  3911. ),
  3912. 'primary key' => array(
  3913. 0 => 'element_id',
  3914. ),
  3915. 'unique keys' => array(
  3916. 'element_c1' => array(
  3917. 0 => 'feature_id',
  3918. 1 => 'arraydesign_id',
  3919. ),
  3920. ),
  3921. 'indexes' => array(
  3922. 'element_idx1' => array(
  3923. 0 => 'feature_id',
  3924. ),
  3925. 'element_idx2' => array(
  3926. 0 => 'arraydesign_id',
  3927. ),
  3928. 'element_idx3' => array(
  3929. 0 => 'type_id',
  3930. ),
  3931. 'element_idx4' => array(
  3932. 0 => 'dbxref_id',
  3933. ),
  3934. ),
  3935. 'foreign keys' => array(
  3936. 'cvterm' => array(
  3937. 'table' => 'cvterm',
  3938. 'columns' => array(
  3939. 'type_id' => 'cvterm_id',
  3940. ),
  3941. ),
  3942. 'dbxref' => array(
  3943. 'table' => 'dbxref',
  3944. 'columns' => array(
  3945. 'dbxref_id' => 'dbxref_id',
  3946. ),
  3947. ),
  3948. 'feature' => array(
  3949. 'table' => 'feature',
  3950. 'columns' => array(
  3951. 'feature_id' => 'feature_id',
  3952. ),
  3953. ),
  3954. 'arraydesign' => array(
  3955. 'table' => 'arraydesign',
  3956. 'columns' => array(
  3957. 'arraydesign_id' => 'arraydesign_id',
  3958. ),
  3959. ),
  3960. ),
  3961. 'table' => 'element',
  3962. 'referring_tables' => array(
  3963. 0 => 'element_relationship',
  3964. 2 => 'elementresult',
  3965. ),
  3966. );
  3967. return $description;
  3968. }
  3969. /**
  3970. * Implements hook_chado_schema_v1_2_element_relationship()
  3971. * Purpose: To describe the structure of 'element_relationship' to tripal
  3972. * @see tripal_core_chado_insert()
  3973. * @see tripal_core_chado_update()
  3974. * @see tripal_core_chado_select()
  3975. *
  3976. * @return
  3977. * An array describing the 'element_relationship' table
  3978. *
  3979. * @ingroup tripal_chado_v1.2_schema_api
  3980. *
  3981. */
  3982. function tripal_core_chado_schema_v1_2_element_relationship() {
  3983. $description = array(
  3984. 'description' => 'TODO: please describe this table!',
  3985. 'fields' => array(
  3986. 'element_relationship_id' => array(
  3987. 'description' => 'TODO: please describe this field!',
  3988. 'type' => 'serial',
  3989. 'not null' => TRUE,
  3990. ),
  3991. 'subject_id' => array(
  3992. 'description' => 'TODO: please describe this field!',
  3993. 'type' => 'int',
  3994. 'not null' => TRUE,
  3995. ),
  3996. 'type_id' => array(
  3997. 'description' => 'TODO: please describe this field!',
  3998. 'type' => 'int',
  3999. 'not null' => TRUE,
  4000. ),
  4001. 'object_id' => array(
  4002. 'description' => 'TODO: please describe this field!',
  4003. 'type' => 'int',
  4004. 'not null' => TRUE,
  4005. ),
  4006. 'value' => array(
  4007. 'description' => 'TODO: please describe this field!',
  4008. 'type' => 'text',
  4009. 'not null' => FALSE,
  4010. ),
  4011. 'rank' => array(
  4012. 'description' => 'TODO: please describe this field!',
  4013. 'type' => 'int',
  4014. 'not null' => TRUE,
  4015. 'default' => 0,
  4016. ),
  4017. ),
  4018. 'primary key' => array(
  4019. 0 => 'element_relationship_id',
  4020. ),
  4021. 'unique keys' => array(
  4022. 'element_relationship_c1' => array(
  4023. 0 => 'subject_id',
  4024. 1 => 'object_id',
  4025. 2 => 'type_id',
  4026. 3 => 'rank',
  4027. ),
  4028. ),
  4029. 'indexes' => array(
  4030. 'element_relationship_idx1' => array(
  4031. 0 => 'subject_id',
  4032. ),
  4033. 'element_relationship_idx2' => array(
  4034. 0 => 'type_id',
  4035. ),
  4036. 'element_relationship_idx3' => array(
  4037. 0 => 'object_id',
  4038. ),
  4039. 'element_relationship_idx4' => array(
  4040. 0 => 'value',
  4041. ),
  4042. ),
  4043. 'foreign keys' => array(
  4044. 'cvterm' => array(
  4045. 'table' => 'cvterm',
  4046. 'columns' => array(
  4047. 'type_id' => 'cvterm_id',
  4048. ),
  4049. ),
  4050. 'element' => array(
  4051. 'table' => 'element',
  4052. 'columns' => array(
  4053. 'subject_id' => 'element_id',
  4054. 'object_id' => 'element_id',
  4055. ),
  4056. ),
  4057. ),
  4058. 'table' => 'element_relationship',
  4059. 'referring_tables' => NULL,
  4060. );
  4061. return $description;
  4062. }
  4063. /**
  4064. * Implements hook_chado_schema_v1_2_elementresult()
  4065. * Purpose: To describe the structure of 'elementresult' to tripal
  4066. * @see tripal_core_chado_insert()
  4067. * @see tripal_core_chado_update()
  4068. * @see tripal_core_chado_select()
  4069. *
  4070. * @return
  4071. * An array describing the 'elementresult' table
  4072. *
  4073. * @ingroup tripal_chado_v1.2_schema_api
  4074. *
  4075. */
  4076. function tripal_core_chado_schema_v1_2_elementresult() {
  4077. $description = array(
  4078. 'description' => 'TODO: please describe this table!',
  4079. 'fields' => array(
  4080. 'elementresult_id' => array(
  4081. 'description' => 'TODO: please describe this field!',
  4082. 'type' => 'serial',
  4083. 'not null' => TRUE,
  4084. ),
  4085. 'element_id' => array(
  4086. 'description' => 'TODO: please describe this field!',
  4087. 'type' => 'int',
  4088. 'not null' => TRUE,
  4089. ),
  4090. 'quantification_id' => array(
  4091. 'description' => 'TODO: please describe this field!',
  4092. 'type' => 'int',
  4093. 'not null' => TRUE,
  4094. ),
  4095. 'signal' => array(
  4096. 'description' => 'TODO: please describe this field!',
  4097. 'type' => 'float',
  4098. 'size' => 'big',
  4099. 'not null' => TRUE,
  4100. ),
  4101. ),
  4102. 'primary key' => array(
  4103. 0 => 'elementresult_id',
  4104. ),
  4105. 'unique keys' => array(
  4106. 'elementresult_c1' => array(
  4107. 0 => 'element_id',
  4108. 1 => 'quantification_id',
  4109. ),
  4110. ),
  4111. 'indexes' => array(
  4112. 'elementresult_idx1' => array(
  4113. 0 => 'element_id',
  4114. ),
  4115. 'elementresult_idx2' => array(
  4116. 0 => 'quantification_id',
  4117. ),
  4118. 'elementresult_idx3' => array(
  4119. 0 => 'signal',
  4120. ),
  4121. ),
  4122. 'foreign keys' => array(
  4123. 'quantification' => array(
  4124. 'table' => 'quantification',
  4125. 'columns' => array(
  4126. 'quantification_id' => 'quantification_id',
  4127. ),
  4128. ),
  4129. 'element' => array(
  4130. 'table' => 'element',
  4131. 'columns' => array(
  4132. 'element_id' => 'element_id',
  4133. ),
  4134. ),
  4135. ),
  4136. 'table' => 'elementresult',
  4137. 'referring_tables' => array(
  4138. 0 => 'elementresult_relationship',
  4139. ),
  4140. );
  4141. return $description;
  4142. }
  4143. /**
  4144. * Implements hook_chado_schema_v1_2_elementresult_relationship()
  4145. * Purpose: To describe the structure of 'elementresult_relationship' to tripal
  4146. * @see tripal_core_chado_insert()
  4147. * @see tripal_core_chado_update()
  4148. * @see tripal_core_chado_select()
  4149. *
  4150. * @return
  4151. * An array describing the 'elementresult_relationship' table
  4152. *
  4153. * @ingroup tripal_chado_v1.2_schema_api
  4154. *
  4155. */
  4156. function tripal_core_chado_schema_v1_2_elementresult_relationship() {
  4157. $description = array(
  4158. 'description' => 'TODO: please describe this table!',
  4159. 'fields' => array(
  4160. 'elementresult_relationship_id' => array(
  4161. 'description' => 'TODO: please describe this field!',
  4162. 'type' => 'serial',
  4163. 'not null' => TRUE,
  4164. ),
  4165. 'subject_id' => array(
  4166. 'description' => 'TODO: please describe this field!',
  4167. 'type' => 'int',
  4168. 'not null' => TRUE,
  4169. ),
  4170. 'type_id' => array(
  4171. 'description' => 'TODO: please describe this field!',
  4172. 'type' => 'int',
  4173. 'not null' => TRUE,
  4174. ),
  4175. 'object_id' => array(
  4176. 'description' => 'TODO: please describe this field!',
  4177. 'type' => 'int',
  4178. 'not null' => TRUE,
  4179. ),
  4180. 'value' => array(
  4181. 'description' => 'TODO: please describe this field!',
  4182. 'type' => 'text',
  4183. 'not null' => FALSE,
  4184. ),
  4185. 'rank' => array(
  4186. 'description' => 'TODO: please describe this field!',
  4187. 'type' => 'int',
  4188. 'not null' => TRUE,
  4189. 'default' => 0,
  4190. ),
  4191. ),
  4192. 'primary key' => array(
  4193. 0 => 'elementresult_relationship_id',
  4194. ),
  4195. 'unique keys' => array(
  4196. 'elementresult_relationship_c1' => array(
  4197. 0 => 'subject_id',
  4198. 1 => 'object_id',
  4199. 2 => 'type_id',
  4200. 3 => 'rank',
  4201. ),
  4202. ),
  4203. 'indexes' => array(
  4204. 'elementresult_relationship_idx1' => array(
  4205. 0 => 'subject_id',
  4206. ),
  4207. 'elementresult_relationship_idx2' => array(
  4208. 0 => 'type_id',
  4209. ),
  4210. 'elementresult_relationship_idx3' => array(
  4211. 0 => 'object_id',
  4212. ),
  4213. 'elementresult_relationship_idx4' => array(
  4214. 0 => 'value',
  4215. ),
  4216. ),
  4217. 'foreign keys' => array(
  4218. 'cvterm' => array(
  4219. 'table' => 'cvterm',
  4220. 'columns' => array(
  4221. 'type_id' => 'cvterm_id',
  4222. ),
  4223. ),
  4224. 'elementresult' => array(
  4225. 'table' => 'elementresult',
  4226. 'columns' => array(
  4227. 'subject_id' => 'elementresult_id',
  4228. 'object_id' => 'elementresult_id',
  4229. ),
  4230. ),
  4231. ),
  4232. 'table' => 'elementresult_relationship',
  4233. 'referring_tables' => NULL,
  4234. );
  4235. return $description;
  4236. }
  4237. /**
  4238. * Implements hook_chado_schema_v1_2_environment()
  4239. * Purpose: To describe the structure of 'environment' to tripal
  4240. * @see tripal_core_chado_insert()
  4241. * @see tripal_core_chado_update()
  4242. * @see tripal_core_chado_select()
  4243. *
  4244. * @return
  4245. * An array describing the 'environment' table
  4246. *
  4247. * @ingroup tripal_chado_v1.2_schema_api
  4248. *
  4249. */
  4250. function tripal_core_chado_schema_v1_2_environment() {
  4251. $description = array(
  4252. 'description' => 'TODO: please describe this table!',
  4253. 'fields' => array(
  4254. 'environment_id' => array(
  4255. 'description' => 'TODO: please describe this field!',
  4256. 'type' => 'serial',
  4257. 'not null' => TRUE,
  4258. ),
  4259. 'uniquename' => array(
  4260. 'description' => 'TODO: please describe this field!',
  4261. 'type' => 'text',
  4262. 'not null' => TRUE,
  4263. ),
  4264. 'description' => array(
  4265. 'description' => 'TODO: please describe this field!',
  4266. 'type' => 'text',
  4267. 'not null' => FALSE,
  4268. ),
  4269. ),
  4270. 'primary key' => array(
  4271. 0 => 'environment_id',
  4272. ),
  4273. 'unique keys' => array(
  4274. 'environment_c1' => array(
  4275. 0 => 'uniquename',
  4276. ),
  4277. ),
  4278. 'indexes' => array(
  4279. 'environment_idx1' => array(
  4280. 0 => 'uniquename',
  4281. ),
  4282. ),
  4283. 'foreign keys' => array(
  4284. ),
  4285. 'table' => 'environment',
  4286. 'referring_tables' => array(
  4287. 0 => 'environment_cvterm',
  4288. 1 => 'phendesc',
  4289. 2 => 'phenotype_comparison',
  4290. 4 => 'phenstatement',
  4291. ),
  4292. );
  4293. return $description;
  4294. }
  4295. /**
  4296. * Implements hook_chado_schema_v1_2_environment_cvterm()
  4297. * Purpose: To describe the structure of 'environment_cvterm' to tripal
  4298. * @see tripal_core_chado_insert()
  4299. * @see tripal_core_chado_update()
  4300. * @see tripal_core_chado_select()
  4301. *
  4302. * @return
  4303. * An array describing the 'environment_cvterm' table
  4304. *
  4305. * @ingroup tripal_chado_v1.2_schema_api
  4306. *
  4307. */
  4308. function tripal_core_chado_schema_v1_2_environment_cvterm() {
  4309. $description = array(
  4310. 'description' => 'TODO: please describe this table!',
  4311. 'fields' => array(
  4312. 'environment_cvterm_id' => array(
  4313. 'description' => 'TODO: please describe this field!',
  4314. 'type' => 'serial',
  4315. 'not null' => TRUE,
  4316. ),
  4317. 'environment_id' => array(
  4318. 'description' => 'TODO: please describe this field!',
  4319. 'type' => 'int',
  4320. 'not null' => TRUE,
  4321. ),
  4322. 'cvterm_id' => array(
  4323. 'description' => 'TODO: please describe this field!',
  4324. 'type' => 'int',
  4325. 'not null' => TRUE,
  4326. ),
  4327. ),
  4328. 'primary key' => array(
  4329. 0 => 'environment_cvterm_id',
  4330. ),
  4331. 'unique keys' => array(
  4332. 'environment_cvterm_c1' => array(
  4333. 0 => 'environment_id',
  4334. 1 => 'cvterm_id',
  4335. ),
  4336. ),
  4337. 'indexes' => array(
  4338. 'environment_cvterm_idx1' => array(
  4339. 0 => 'environment_id',
  4340. ),
  4341. 'environment_cvterm_idx2' => array(
  4342. 0 => 'cvterm_id',
  4343. ),
  4344. ),
  4345. 'foreign keys' => array(
  4346. 'cvterm' => array(
  4347. 'table' => 'cvterm',
  4348. 'columns' => array(
  4349. 'cvterm_id' => 'cvterm_id',
  4350. ),
  4351. ),
  4352. 'environment' => array(
  4353. 'table' => 'environment',
  4354. 'columns' => array(
  4355. 'environment_id' => 'environment_id',
  4356. ),
  4357. ),
  4358. ),
  4359. 'table' => 'environment_cvterm',
  4360. 'referring_tables' => NULL,
  4361. );
  4362. return $description;
  4363. }
  4364. /**
  4365. * Implements hook_chado_schema_v1_2_expression()
  4366. * Purpose: To describe the structure of 'expression' to tripal
  4367. * @see tripal_core_chado_insert()
  4368. * @see tripal_core_chado_update()
  4369. * @see tripal_core_chado_select()
  4370. *
  4371. * @return
  4372. * An array describing the 'expression' table
  4373. *
  4374. * @ingroup tripal_chado_v1.2_schema_api
  4375. *
  4376. */
  4377. function tripal_core_chado_schema_v1_2_expression() {
  4378. $description = array(
  4379. 'description' => 'TODO: please describe this table!',
  4380. 'fields' => array(
  4381. 'expression_id' => array(
  4382. 'description' => 'TODO: please describe this field!',
  4383. 'type' => 'serial',
  4384. 'not null' => TRUE,
  4385. ),
  4386. 'uniquename' => array(
  4387. 'description' => 'TODO: please describe this field!',
  4388. 'type' => 'text',
  4389. 'not null' => TRUE,
  4390. ),
  4391. 'md5checksum' => array(
  4392. 'description' => 'TODO: please describe this field!',
  4393. 'type' => 'char',
  4394. 'length' => '32',
  4395. 'not null' => FALSE,
  4396. ),
  4397. 'description' => array(
  4398. 'description' => 'TODO: please describe this field!',
  4399. 'type' => 'text',
  4400. 'not null' => FALSE,
  4401. ),
  4402. ),
  4403. 'primary key' => array(
  4404. 0 => 'expression_id',
  4405. ),
  4406. 'unique keys' => array(
  4407. 'expression_c1' => array(
  4408. 0 => 'uniquename',
  4409. ),
  4410. ),
  4411. 'foreign keys' => array(
  4412. ),
  4413. 'table' => 'expression',
  4414. 'referring_tables' => array(
  4415. 0 => 'expression_cvterm',
  4416. 1 => 'expression_image',
  4417. 2 => 'expression_pub',
  4418. 3 => 'expressionprop',
  4419. 4 => 'feature_expression',
  4420. ),
  4421. );
  4422. return $description;
  4423. }
  4424. /**
  4425. * Implements hook_chado_schema_v1_2_expression_cvterm()
  4426. * Purpose: To describe the structure of 'expression_cvterm' to tripal
  4427. * @see tripal_core_chado_insert()
  4428. * @see tripal_core_chado_update()
  4429. * @see tripal_core_chado_select()
  4430. *
  4431. * @return
  4432. * An array describing the 'expression_cvterm' table
  4433. *
  4434. * @ingroup tripal_chado_v1.2_schema_api
  4435. *
  4436. */
  4437. function tripal_core_chado_schema_v1_2_expression_cvterm() {
  4438. $description = array(
  4439. 'description' => 'TODO: please describe this table!',
  4440. 'fields' => array(
  4441. 'expression_cvterm_id' => array(
  4442. 'description' => 'TODO: please describe this field!',
  4443. 'type' => 'serial',
  4444. 'not null' => TRUE,
  4445. ),
  4446. 'expression_id' => array(
  4447. 'description' => 'TODO: please describe this field!',
  4448. 'type' => 'int',
  4449. 'not null' => TRUE,
  4450. ),
  4451. 'cvterm_id' => array(
  4452. 'description' => 'TODO: please describe this field!',
  4453. 'type' => 'int',
  4454. 'not null' => TRUE,
  4455. ),
  4456. 'rank' => array(
  4457. 'description' => 'TODO: please describe this field!',
  4458. 'type' => 'int',
  4459. 'not null' => TRUE,
  4460. 'default' => 0,
  4461. ),
  4462. 'cvterm_type_id' => array(
  4463. 'description' => 'TODO: please describe this field!',
  4464. 'type' => 'int',
  4465. 'not null' => TRUE,
  4466. ),
  4467. ),
  4468. 'primary key' => array(
  4469. 0 => 'expression_cvterm_id',
  4470. ),
  4471. 'unique keys' => array(
  4472. 'expression_cvterm_c1' => array(
  4473. 0 => 'expression_id',
  4474. 1 => 'cvterm_id',
  4475. 2 => 'cvterm_type_id',
  4476. ),
  4477. ),
  4478. 'indexes' => array(
  4479. 'expression_cvterm_idx1' => array(
  4480. 0 => 'expression_id',
  4481. ),
  4482. 'expression_cvterm_idx2' => array(
  4483. 0 => 'cvterm_id',
  4484. ),
  4485. 'expression_cvterm_idx3' => array(
  4486. 0 => 'cvterm_type_id',
  4487. ),
  4488. ),
  4489. 'foreign keys' => array(
  4490. 'cvterm' => array(
  4491. 'table' => 'cvterm',
  4492. 'columns' => array(
  4493. 'cvterm_id' => 'cvterm_id',
  4494. 'cvterm_type_id' => 'cvterm_id',
  4495. ),
  4496. ),
  4497. 'expression' => array(
  4498. 'table' => 'expression',
  4499. 'columns' => array(
  4500. 'expression_id' => 'expression_id',
  4501. ),
  4502. ),
  4503. ),
  4504. 'table' => 'expression_cvterm',
  4505. 'referring_tables' => array(
  4506. 0 => 'expression_cvtermprop',
  4507. ),
  4508. );
  4509. return $description;
  4510. }
  4511. /**
  4512. * Implements hook_chado_schema_v1_2_expression_cvtermprop()
  4513. * Purpose: To describe the structure of 'expression_cvtermprop' to tripal
  4514. * @see tripal_core_chado_insert()
  4515. * @see tripal_core_chado_update()
  4516. * @see tripal_core_chado_select()
  4517. *
  4518. * @return
  4519. * An array describing the 'expression_cvtermprop' table
  4520. *
  4521. * @ingroup tripal_chado_v1.2_schema_api
  4522. *
  4523. */
  4524. function tripal_core_chado_schema_v1_2_expression_cvtermprop() {
  4525. $description = array(
  4526. 'description' => 'TODO: please describe this table!',
  4527. 'fields' => array(
  4528. 'expression_cvtermprop_id' => array(
  4529. 'description' => 'TODO: please describe this field!',
  4530. 'type' => 'serial',
  4531. 'not null' => TRUE,
  4532. ),
  4533. 'expression_cvterm_id' => array(
  4534. 'description' => 'TODO: please describe this field!',
  4535. 'type' => 'int',
  4536. 'not null' => TRUE,
  4537. ),
  4538. 'type_id' => array(
  4539. 'description' => 'TODO: please describe this field!',
  4540. 'type' => 'int',
  4541. 'not null' => TRUE,
  4542. ),
  4543. 'value' => array(
  4544. 'description' => 'TODO: please describe this field!',
  4545. 'type' => 'text',
  4546. 'not null' => FALSE,
  4547. ),
  4548. 'rank' => array(
  4549. 'description' => 'TODO: please describe this field!',
  4550. 'type' => 'int',
  4551. 'not null' => TRUE,
  4552. 'default' => 0,
  4553. ),
  4554. ),
  4555. 'primary key' => array(
  4556. 0 => 'expression_cvtermprop_id',
  4557. ),
  4558. 'unique keys' => array(
  4559. 'expression_cvtermprop_c1' => array(
  4560. 0 => 'expression_cvterm_id',
  4561. 1 => 'type_id',
  4562. 2 => 'rank',
  4563. ),
  4564. ),
  4565. 'indexes' => array(
  4566. 'expression_cvtermprop_idx1' => array(
  4567. 0 => 'expression_cvterm_id',
  4568. ),
  4569. 'expression_cvtermprop_idx2' => array(
  4570. 0 => 'type_id',
  4571. ),
  4572. ),
  4573. 'foreign keys' => array(
  4574. 'cvterm' => array(
  4575. 'table' => 'cvterm',
  4576. 'columns' => array(
  4577. 'type_id' => 'cvterm_id',
  4578. ),
  4579. ),
  4580. 'expression_cvterm' => array(
  4581. 'table' => 'expression_cvterm',
  4582. 'columns' => array(
  4583. 'expression_cvterm_id' => 'expression_cvterm_id',
  4584. ),
  4585. ),
  4586. ),
  4587. 'table' => 'expression_cvtermprop',
  4588. 'referring_tables' => NULL,
  4589. );
  4590. return $description;
  4591. }
  4592. /**
  4593. * Implements hook_chado_schema_v1_2_expression_image()
  4594. * Purpose: To describe the structure of 'expression_image' to tripal
  4595. * @see tripal_core_chado_insert()
  4596. * @see tripal_core_chado_update()
  4597. * @see tripal_core_chado_select()
  4598. *
  4599. * @return
  4600. * An array describing the 'expression_image' table
  4601. *
  4602. * @ingroup tripal_chado_v1.2_schema_api
  4603. *
  4604. */
  4605. function tripal_core_chado_schema_v1_2_expression_image() {
  4606. $description = array(
  4607. 'description' => 'TODO: please describe this table!',
  4608. 'fields' => array(
  4609. 'expression_image_id' => array(
  4610. 'description' => 'TODO: please describe this field!',
  4611. 'type' => 'serial',
  4612. 'not null' => TRUE,
  4613. ),
  4614. 'expression_id' => array(
  4615. 'description' => 'TODO: please describe this field!',
  4616. 'type' => 'int',
  4617. 'not null' => TRUE,
  4618. ),
  4619. 'eimage_id' => array(
  4620. 'description' => 'TODO: please describe this field!',
  4621. 'type' => 'int',
  4622. 'not null' => TRUE,
  4623. ),
  4624. ),
  4625. 'primary key' => array(
  4626. 0 => 'expression_image_id',
  4627. ),
  4628. 'unique keys' => array(
  4629. 'expression_image_c1' => array(
  4630. 0 => 'expression_id',
  4631. 1 => 'eimage_id',
  4632. ),
  4633. ),
  4634. 'indexes' => array(
  4635. 'expression_image_idx1' => array(
  4636. 0 => 'expression_id',
  4637. ),
  4638. 'expression_image_idx2' => array(
  4639. 0 => 'eimage_id',
  4640. ),
  4641. ),
  4642. 'foreign keys' => array(
  4643. 'expression' => array(
  4644. 'table' => 'expression',
  4645. 'columns' => array(
  4646. 'expression_id' => 'expression_id',
  4647. ),
  4648. ),
  4649. 'eimage' => array(
  4650. 'table' => 'eimage',
  4651. 'columns' => array(
  4652. 'eimage_id' => 'eimage_id',
  4653. ),
  4654. ),
  4655. ),
  4656. 'table' => 'expression_image',
  4657. 'referring_tables' => NULL,
  4658. );
  4659. return $description;
  4660. }
  4661. /**
  4662. * Implements hook_chado_schema_v1_2_expression_pub()
  4663. * Purpose: To describe the structure of 'expression_pub' to tripal
  4664. * @see tripal_core_chado_insert()
  4665. * @see tripal_core_chado_update()
  4666. * @see tripal_core_chado_select()
  4667. *
  4668. * @return
  4669. * An array describing the 'expression_pub' table
  4670. *
  4671. * @ingroup tripal_chado_v1.2_schema_api
  4672. *
  4673. */
  4674. function tripal_core_chado_schema_v1_2_expression_pub() {
  4675. $description = array(
  4676. 'description' => 'TODO: please describe this table!',
  4677. 'fields' => array(
  4678. 'expression_pub_id' => array(
  4679. 'description' => 'TODO: please describe this field!',
  4680. 'type' => 'serial',
  4681. 'not null' => TRUE,
  4682. ),
  4683. 'expression_id' => array(
  4684. 'description' => 'TODO: please describe this field!',
  4685. 'type' => 'int',
  4686. 'not null' => TRUE,
  4687. ),
  4688. 'pub_id' => array(
  4689. 'description' => 'TODO: please describe this field!',
  4690. 'type' => 'int',
  4691. 'not null' => TRUE,
  4692. ),
  4693. ),
  4694. 'primary key' => array(
  4695. 0 => 'expression_pub_id',
  4696. ),
  4697. 'unique keys' => array(
  4698. 'expression_pub_c1' => array(
  4699. 0 => 'expression_id',
  4700. 1 => 'pub_id',
  4701. ),
  4702. ),
  4703. 'indexes' => array(
  4704. 'expression_pub_idx1' => array(
  4705. 0 => 'expression_id',
  4706. ),
  4707. 'expression_pub_idx2' => array(
  4708. 0 => 'pub_id',
  4709. ),
  4710. ),
  4711. 'foreign keys' => array(
  4712. 'pub' => array(
  4713. 'table' => 'pub',
  4714. 'columns' => array(
  4715. 'pub_id' => 'pub_id',
  4716. ),
  4717. ),
  4718. 'expression' => array(
  4719. 'table' => 'expression',
  4720. 'columns' => array(
  4721. 'expression_id' => 'expression_id',
  4722. ),
  4723. ),
  4724. ),
  4725. 'table' => 'expression_pub',
  4726. 'referring_tables' => NULL,
  4727. );
  4728. return $description;
  4729. }
  4730. /**
  4731. * Implements hook_chado_schema_v1_2_expressionprop()
  4732. * Purpose: To describe the structure of 'expressionprop' to tripal
  4733. * @see tripal_core_chado_insert()
  4734. * @see tripal_core_chado_update()
  4735. * @see tripal_core_chado_select()
  4736. *
  4737. * @return
  4738. * An array describing the 'expressionprop' table
  4739. *
  4740. * @ingroup tripal_chado_v1.2_schema_api
  4741. *
  4742. */
  4743. function tripal_core_chado_schema_v1_2_expressionprop() {
  4744. $description = array(
  4745. 'description' => 'TODO: please describe this table!',
  4746. 'fields' => array(
  4747. 'expressionprop_id' => array(
  4748. 'description' => 'TODO: please describe this field!',
  4749. 'type' => 'serial',
  4750. 'not null' => TRUE,
  4751. ),
  4752. 'expression_id' => array(
  4753. 'description' => 'TODO: please describe this field!',
  4754. 'type' => 'int',
  4755. 'not null' => TRUE,
  4756. ),
  4757. 'type_id' => array(
  4758. 'description' => 'TODO: please describe this field!',
  4759. 'type' => 'int',
  4760. 'not null' => TRUE,
  4761. ),
  4762. 'value' => array(
  4763. 'description' => 'TODO: please describe this field!',
  4764. 'type' => 'text',
  4765. 'not null' => FALSE,
  4766. ),
  4767. 'rank' => array(
  4768. 'description' => 'TODO: please describe this field!',
  4769. 'type' => 'int',
  4770. 'not null' => TRUE,
  4771. 'default' => 0,
  4772. ),
  4773. ),
  4774. 'primary key' => array(
  4775. 0 => 'expressionprop_id',
  4776. ),
  4777. 'unique keys' => array(
  4778. 'expressionprop_c1' => array(
  4779. 0 => 'expression_id',
  4780. 1 => 'type_id',
  4781. 2 => 'rank',
  4782. ),
  4783. ),
  4784. 'indexes' => array(
  4785. 'expressionprop_idx1' => array(
  4786. 0 => 'expression_id',
  4787. ),
  4788. 'expressionprop_idx2' => array(
  4789. 0 => 'type_id',
  4790. ),
  4791. ),
  4792. 'foreign keys' => array(
  4793. 'cvterm' => array(
  4794. 'table' => 'cvterm',
  4795. 'columns' => array(
  4796. 'type_id' => 'cvterm_id',
  4797. ),
  4798. ),
  4799. 'expression' => array(
  4800. 'table' => 'expression',
  4801. 'columns' => array(
  4802. 'expression_id' => 'expression_id',
  4803. ),
  4804. ),
  4805. ),
  4806. 'table' => 'expressionprop',
  4807. 'referring_tables' => NULL,
  4808. );
  4809. return $description;
  4810. }
  4811. /**
  4812. * Implements hook_chado_schema_v1_2_feature()
  4813. * Purpose: To describe the structure of 'feature' to tripal
  4814. * @see tripal_core_chado_insert()
  4815. * @see tripal_core_chado_update()
  4816. * @see tripal_core_chado_select()
  4817. *
  4818. * @return
  4819. * An array describing the 'feature' table
  4820. *
  4821. * @ingroup tripal_chado_v1.2_schema_api
  4822. *
  4823. */
  4824. function tripal_core_chado_schema_v1_2_feature() {
  4825. $description = array(
  4826. 'description' => 'TODO: please describe this table!',
  4827. 'fields' => array(
  4828. 'feature_id' => array(
  4829. 'description' => 'TODO: please describe this field!',
  4830. 'type' => 'serial',
  4831. 'not null' => TRUE,
  4832. ),
  4833. 'dbxref_id' => array(
  4834. 'description' => 'TODO: please describe this field!',
  4835. 'type' => 'int',
  4836. 'not null' => FALSE,
  4837. ),
  4838. 'organism_id' => array(
  4839. 'description' => 'TODO: please describe this field!',
  4840. 'type' => 'int',
  4841. 'not null' => TRUE,
  4842. ),
  4843. 'name' => array(
  4844. 'description' => 'TODO: please describe this field!',
  4845. 'type' => 'varchar',
  4846. 'length' => '255',
  4847. 'not null' => FALSE,
  4848. ),
  4849. 'uniquename' => array(
  4850. 'description' => 'TODO: please describe this field!',
  4851. 'type' => 'text',
  4852. 'not null' => TRUE,
  4853. ),
  4854. 'residues' => array(
  4855. 'description' => 'TODO: please describe this field!',
  4856. 'type' => 'text',
  4857. 'not null' => FALSE,
  4858. ),
  4859. 'seqlen' => array(
  4860. 'description' => 'TODO: please describe this field!',
  4861. 'type' => 'int',
  4862. 'not null' => FALSE,
  4863. ),
  4864. 'md5checksum' => array(
  4865. 'description' => 'TODO: please describe this field!',
  4866. 'type' => 'char',
  4867. 'length' => '32',
  4868. 'not null' => FALSE,
  4869. ),
  4870. 'type_id' => array(
  4871. 'description' => 'TODO: please describe this field!',
  4872. 'type' => 'int',
  4873. 'not null' => TRUE,
  4874. ),
  4875. 'is_analysis' => array(
  4876. 'description' => 'TODO: please describe this field!',
  4877. 'type' => 'boolean',
  4878. 'not null' => TRUE,
  4879. 'default' => 'als',
  4880. ),
  4881. 'is_obsolete' => array(
  4882. 'description' => 'TODO: please describe this field!',
  4883. 'type' => 'boolean',
  4884. 'not null' => TRUE,
  4885. 'default' => 'als',
  4886. ),
  4887. 'timeaccessioned' => array(
  4888. 'description' => 'TODO: please describe this field!',
  4889. 'type' => 'datetime',
  4890. 'not null' => TRUE,
  4891. 'default' => 'ow(',
  4892. ),
  4893. 'timelastmodified' => array(
  4894. 'description' => 'TODO: please describe this field!',
  4895. 'type' => 'datetime',
  4896. 'not null' => TRUE,
  4897. 'default' => 'ow(',
  4898. ),
  4899. ),
  4900. 'primary key' => array(
  4901. 0 => 'feature_id',
  4902. ),
  4903. 'unique keys' => array(
  4904. 'feature_c1' => array(
  4905. 0 => 'organism_id',
  4906. 1 => 'uniquename',
  4907. 2 => 'type_id',
  4908. ),
  4909. ),
  4910. 'indexes' => array(
  4911. 'feature_idx1' => array(
  4912. 0 => 'dbxref_id',
  4913. ),
  4914. 'feature_idx2' => array(
  4915. 0 => 'organism_id',
  4916. ),
  4917. 'feature_idx3' => array(
  4918. 0 => 'type_id',
  4919. ),
  4920. 'feature_idx4' => array(
  4921. 0 => 'uniquename',
  4922. ),
  4923. 'feature_name_ind1' => array(
  4924. 0 => 'name',
  4925. ),
  4926. ),
  4927. 'foreign keys' => array(
  4928. 'organism' => array(
  4929. 'table' => 'organism',
  4930. 'columns' => array(
  4931. 'organism_id' => 'organism_id',
  4932. ),
  4933. ),
  4934. 'cvterm' => array(
  4935. 'table' => 'cvterm',
  4936. 'columns' => array(
  4937. 'type_id' => 'cvterm_id',
  4938. ),
  4939. ),
  4940. 'dbxref' => array(
  4941. 'table' => 'dbxref',
  4942. 'columns' => array(
  4943. 'dbxref_id' => 'dbxref_id',
  4944. ),
  4945. ),
  4946. ),
  4947. 'table' => 'feature',
  4948. 'referring_tables' => array(
  4949. 0 => 'analysisfeature',
  4950. 1 => 'cell_line_feature',
  4951. 2 => 'element',
  4952. 3 => 'feature_cvterm',
  4953. 4 => 'feature_dbxref',
  4954. 5 => 'feature_expression',
  4955. 6 => 'feature_genotype',
  4956. 8 => 'feature_phenotype',
  4957. 9 => 'feature_pub',
  4958. 10 => 'feature_relationship',
  4959. 12 => 'feature_synonym',
  4960. 13 => 'featureloc',
  4961. 15 => 'featurepos',
  4962. 17 => 'featureprop',
  4963. 18 => 'featurerange',
  4964. 23 => 'library_feature',
  4965. 24 => 'phylonode',
  4966. 25 => 'studyprop_feature',
  4967. ),
  4968. );
  4969. return $description;
  4970. }
  4971. /**
  4972. * Implements hook_chado_schema_v1_2_feature_cvterm()
  4973. * Purpose: To describe the structure of 'feature_cvterm' to tripal
  4974. * @see tripal_core_chado_insert()
  4975. * @see tripal_core_chado_update()
  4976. * @see tripal_core_chado_select()
  4977. *
  4978. * @return
  4979. * An array describing the 'feature_cvterm' table
  4980. *
  4981. * @ingroup tripal_chado_v1.2_schema_api
  4982. *
  4983. */
  4984. function tripal_core_chado_schema_v1_2_feature_cvterm() {
  4985. $description = array(
  4986. 'description' => 'TODO: please describe this table!',
  4987. 'fields' => array(
  4988. 'feature_cvterm_id' => array(
  4989. 'description' => 'TODO: please describe this field!',
  4990. 'type' => 'serial',
  4991. 'not null' => TRUE,
  4992. ),
  4993. 'feature_id' => array(
  4994. 'description' => 'TODO: please describe this field!',
  4995. 'type' => 'int',
  4996. 'not null' => TRUE,
  4997. ),
  4998. 'cvterm_id' => array(
  4999. 'description' => 'TODO: please describe this field!',
  5000. 'type' => 'int',
  5001. 'not null' => TRUE,
  5002. ),
  5003. 'pub_id' => array(
  5004. 'description' => 'TODO: please describe this field!',
  5005. 'type' => 'int',
  5006. 'not null' => TRUE,
  5007. ),
  5008. 'is_not' => array(
  5009. 'description' => 'TODO: please describe this field!',
  5010. 'type' => 'boolean',
  5011. 'not null' => TRUE,
  5012. 'default' => 'als',
  5013. ),
  5014. 'rank' => array(
  5015. 'description' => 'TODO: please describe this field!',
  5016. 'type' => 'int',
  5017. 'not null' => TRUE,
  5018. 'default' => 0,
  5019. ),
  5020. ),
  5021. 'primary key' => array(
  5022. 0 => 'feature_cvterm_id',
  5023. ),
  5024. 'unique keys' => array(
  5025. 'feature_cvterm_c1' => array(
  5026. 0 => 'feature_id',
  5027. 1 => 'cvterm_id',
  5028. 2 => 'pub_id',
  5029. 3 => 'rank',
  5030. ),
  5031. ),
  5032. 'indexes' => array(
  5033. 'feature_cvterm_idx1' => array(
  5034. 0 => 'feature_id',
  5035. ),
  5036. 'feature_cvterm_idx2' => array(
  5037. 0 => 'cvterm_id',
  5038. ),
  5039. 'feature_cvterm_idx3' => array(
  5040. 0 => 'pub_id',
  5041. ),
  5042. ),
  5043. 'foreign keys' => array(
  5044. 'cvterm' => array(
  5045. 'table' => 'cvterm',
  5046. 'columns' => array(
  5047. 'cvterm_id' => 'cvterm_id',
  5048. ),
  5049. ),
  5050. 'pub' => array(
  5051. 'table' => 'pub',
  5052. 'columns' => array(
  5053. 'pub_id' => 'pub_id',
  5054. ),
  5055. ),
  5056. 'feature' => array(
  5057. 'table' => 'feature',
  5058. 'columns' => array(
  5059. 'feature_id' => 'feature_id',
  5060. ),
  5061. ),
  5062. ),
  5063. 'table' => 'feature_cvterm',
  5064. 'referring_tables' => array(
  5065. 0 => 'feature_cvterm_dbxref',
  5066. 1 => 'feature_cvterm_pub',
  5067. 2 => 'feature_cvtermprop',
  5068. ),
  5069. );
  5070. return $description;
  5071. }
  5072. /**
  5073. * Implements hook_chado_schema_v1_2_feature_cvterm_dbxref()
  5074. * Purpose: To describe the structure of 'feature_cvterm_dbxref' to tripal
  5075. * @see tripal_core_chado_insert()
  5076. * @see tripal_core_chado_update()
  5077. * @see tripal_core_chado_select()
  5078. *
  5079. * @return
  5080. * An array describing the 'feature_cvterm_dbxref' table
  5081. *
  5082. * @ingroup tripal_chado_v1.2_schema_api
  5083. *
  5084. */
  5085. function tripal_core_chado_schema_v1_2_feature_cvterm_dbxref() {
  5086. $description = array(
  5087. 'description' => 'TODO: please describe this table!',
  5088. 'fields' => array(
  5089. 'feature_cvterm_dbxref_id' => array(
  5090. 'description' => 'TODO: please describe this field!',
  5091. 'type' => 'serial',
  5092. 'not null' => TRUE,
  5093. ),
  5094. 'feature_cvterm_id' => array(
  5095. 'description' => 'TODO: please describe this field!',
  5096. 'type' => 'int',
  5097. 'not null' => TRUE,
  5098. ),
  5099. 'dbxref_id' => array(
  5100. 'description' => 'TODO: please describe this field!',
  5101. 'type' => 'int',
  5102. 'not null' => TRUE,
  5103. ),
  5104. ),
  5105. 'primary key' => array(
  5106. 0 => 'feature_cvterm_dbxref_id',
  5107. ),
  5108. 'unique keys' => array(
  5109. 'feature_cvterm_dbxref_c1' => array(
  5110. 0 => 'feature_cvterm_id',
  5111. 1 => 'dbxref_id',
  5112. ),
  5113. ),
  5114. 'indexes' => array(
  5115. 'feature_cvterm_dbxref_idx1' => array(
  5116. 0 => 'feature_cvterm_id',
  5117. ),
  5118. 'feature_cvterm_dbxref_idx2' => array(
  5119. 0 => 'dbxref_id',
  5120. ),
  5121. ),
  5122. 'foreign keys' => array(
  5123. 'feature_cvterm' => array(
  5124. 'table' => 'feature_cvterm',
  5125. 'columns' => array(
  5126. 'feature_cvterm_id' => 'feature_cvterm_id',
  5127. ),
  5128. ),
  5129. 'dbxref' => array(
  5130. 'table' => 'dbxref',
  5131. 'columns' => array(
  5132. 'dbxref_id' => 'dbxref_id',
  5133. ),
  5134. ),
  5135. ),
  5136. 'table' => 'feature_cvterm_dbxref',
  5137. 'referring_tables' => NULL,
  5138. );
  5139. return $description;
  5140. }
  5141. /**
  5142. * Implements hook_chado_schema_v1_2_feature_cvterm_pub()
  5143. * Purpose: To describe the structure of 'feature_cvterm_pub' to tripal
  5144. * @see tripal_core_chado_insert()
  5145. * @see tripal_core_chado_update()
  5146. * @see tripal_core_chado_select()
  5147. *
  5148. * @return
  5149. * An array describing the 'feature_cvterm_pub' table
  5150. *
  5151. * @ingroup tripal_chado_v1.2_schema_api
  5152. *
  5153. */
  5154. function tripal_core_chado_schema_v1_2_feature_cvterm_pub() {
  5155. $description = array(
  5156. 'description' => 'TODO: please describe this table!',
  5157. 'fields' => array(
  5158. 'feature_cvterm_pub_id' => array(
  5159. 'description' => 'TODO: please describe this field!',
  5160. 'type' => 'serial',
  5161. 'not null' => TRUE,
  5162. ),
  5163. 'feature_cvterm_id' => array(
  5164. 'description' => 'TODO: please describe this field!',
  5165. 'type' => 'int',
  5166. 'not null' => TRUE,
  5167. ),
  5168. 'pub_id' => array(
  5169. 'description' => 'TODO: please describe this field!',
  5170. 'type' => 'int',
  5171. 'not null' => TRUE,
  5172. ),
  5173. ),
  5174. 'primary key' => array(
  5175. 0 => 'feature_cvterm_pub_id',
  5176. ),
  5177. 'unique keys' => array(
  5178. 'feature_cvterm_pub_c1' => array(
  5179. 0 => 'feature_cvterm_id',
  5180. 1 => 'pub_id',
  5181. ),
  5182. ),
  5183. 'indexes' => array(
  5184. 'feature_cvterm_pub_idx1' => array(
  5185. 0 => 'feature_cvterm_id',
  5186. ),
  5187. 'feature_cvterm_pub_idx2' => array(
  5188. 0 => 'pub_id',
  5189. ),
  5190. ),
  5191. 'foreign keys' => array(
  5192. 'feature_cvterm' => array(
  5193. 'table' => 'feature_cvterm',
  5194. 'columns' => array(
  5195. 'feature_cvterm_id' => 'feature_cvterm_id',
  5196. ),
  5197. ),
  5198. 'pub' => array(
  5199. 'table' => 'pub',
  5200. 'columns' => array(
  5201. 'pub_id' => 'pub_id',
  5202. ),
  5203. ),
  5204. ),
  5205. 'table' => 'feature_cvterm_pub',
  5206. 'referring_tables' => NULL,
  5207. );
  5208. return $description;
  5209. }
  5210. /**
  5211. * Implements hook_chado_schema_v1_2_feature_cvtermprop()
  5212. * Purpose: To describe the structure of 'feature_cvtermprop' to tripal
  5213. * @see tripal_core_chado_insert()
  5214. * @see tripal_core_chado_update()
  5215. * @see tripal_core_chado_select()
  5216. *
  5217. * @return
  5218. * An array describing the 'feature_cvtermprop' table
  5219. *
  5220. * @ingroup tripal_chado_v1.2_schema_api
  5221. *
  5222. */
  5223. function tripal_core_chado_schema_v1_2_feature_cvtermprop() {
  5224. $description = array(
  5225. 'description' => 'TODO: please describe this table!',
  5226. 'fields' => array(
  5227. 'feature_cvtermprop_id' => array(
  5228. 'description' => 'TODO: please describe this field!',
  5229. 'type' => 'serial',
  5230. 'not null' => TRUE,
  5231. ),
  5232. 'feature_cvterm_id' => array(
  5233. 'description' => 'TODO: please describe this field!',
  5234. 'type' => 'int',
  5235. 'not null' => TRUE,
  5236. ),
  5237. 'type_id' => array(
  5238. 'description' => 'TODO: please describe this field!',
  5239. 'type' => 'int',
  5240. 'not null' => TRUE,
  5241. ),
  5242. 'value' => array(
  5243. 'description' => 'TODO: please describe this field!',
  5244. 'type' => 'text',
  5245. 'not null' => FALSE,
  5246. ),
  5247. 'rank' => array(
  5248. 'description' => 'TODO: please describe this field!',
  5249. 'type' => 'int',
  5250. 'not null' => TRUE,
  5251. 'default' => 0,
  5252. ),
  5253. ),
  5254. 'primary key' => array(
  5255. 0 => 'feature_cvtermprop_id',
  5256. ),
  5257. 'unique keys' => array(
  5258. 'feature_cvtermprop_c1' => array(
  5259. 0 => 'feature_cvterm_id',
  5260. 1 => 'type_id',
  5261. 2 => 'rank',
  5262. ),
  5263. ),
  5264. 'indexes' => array(
  5265. 'feature_cvtermprop_idx1' => array(
  5266. 0 => 'feature_cvterm_id',
  5267. ),
  5268. 'feature_cvtermprop_idx2' => array(
  5269. 0 => 'type_id',
  5270. ),
  5271. ),
  5272. 'foreign keys' => array(
  5273. 'cvterm' => array(
  5274. 'table' => 'cvterm',
  5275. 'columns' => array(
  5276. 'type_id' => 'cvterm_id',
  5277. ),
  5278. ),
  5279. 'feature_cvterm' => array(
  5280. 'table' => 'feature_cvterm',
  5281. 'columns' => array(
  5282. 'feature_cvterm_id' => 'feature_cvterm_id',
  5283. ),
  5284. ),
  5285. ),
  5286. 'table' => 'feature_cvtermprop',
  5287. 'referring_tables' => NULL,
  5288. );
  5289. return $description;
  5290. }
  5291. /**
  5292. * Implements hook_chado_schema_v1_2_feature_dbxref()
  5293. * Purpose: To describe the structure of 'feature_dbxref' to tripal
  5294. * @see tripal_core_chado_insert()
  5295. * @see tripal_core_chado_update()
  5296. * @see tripal_core_chado_select()
  5297. *
  5298. * @return
  5299. * An array describing the 'feature_dbxref' table
  5300. *
  5301. * @ingroup tripal_chado_v1.2_schema_api
  5302. *
  5303. */
  5304. function tripal_core_chado_schema_v1_2_feature_dbxref() {
  5305. $description = array(
  5306. 'description' => 'TODO: please describe this table!',
  5307. 'fields' => array(
  5308. 'feature_dbxref_id' => array(
  5309. 'description' => 'TODO: please describe this field!',
  5310. 'type' => 'serial',
  5311. 'not null' => TRUE,
  5312. ),
  5313. 'feature_id' => array(
  5314. 'description' => 'TODO: please describe this field!',
  5315. 'type' => 'int',
  5316. 'not null' => TRUE,
  5317. ),
  5318. 'dbxref_id' => array(
  5319. 'description' => 'TODO: please describe this field!',
  5320. 'type' => 'int',
  5321. 'not null' => TRUE,
  5322. ),
  5323. 'is_current' => array(
  5324. 'description' => 'TODO: please describe this field!',
  5325. 'type' => 'boolean',
  5326. 'not null' => TRUE,
  5327. 'default' => 'ru',
  5328. ),
  5329. ),
  5330. 'primary key' => array(
  5331. 0 => 'feature_dbxref_id',
  5332. ),
  5333. 'unique keys' => array(
  5334. 'feature_dbxref_c1' => array(
  5335. 0 => 'feature_id',
  5336. 1 => 'dbxref_id',
  5337. ),
  5338. ),
  5339. 'indexes' => array(
  5340. 'feature_dbxref_idx1' => array(
  5341. 0 => 'feature_id',
  5342. ),
  5343. 'feature_dbxref_idx2' => array(
  5344. 0 => 'dbxref_id',
  5345. ),
  5346. ),
  5347. 'foreign keys' => array(
  5348. 'dbxref' => array(
  5349. 'table' => 'dbxref',
  5350. 'columns' => array(
  5351. 'dbxref_id' => 'dbxref_id',
  5352. ),
  5353. ),
  5354. 'feature' => array(
  5355. 'table' => 'feature',
  5356. 'columns' => array(
  5357. 'feature_id' => 'feature_id',
  5358. ),
  5359. ),
  5360. ),
  5361. 'table' => 'feature_dbxref',
  5362. 'referring_tables' => NULL,
  5363. );
  5364. return $description;
  5365. }
  5366. /**
  5367. * Implements hook_chado_schema_v1_2_feature_expression()
  5368. * Purpose: To describe the structure of 'feature_expression' to tripal
  5369. * @see tripal_core_chado_insert()
  5370. * @see tripal_core_chado_update()
  5371. * @see tripal_core_chado_select()
  5372. *
  5373. * @return
  5374. * An array describing the 'feature_expression' table
  5375. *
  5376. * @ingroup tripal_chado_v1.2_schema_api
  5377. *
  5378. */
  5379. function tripal_core_chado_schema_v1_2_feature_expression() {
  5380. $description = array(
  5381. 'description' => 'TODO: please describe this table!',
  5382. 'fields' => array(
  5383. 'feature_expression_id' => array(
  5384. 'description' => 'TODO: please describe this field!',
  5385. 'type' => 'serial',
  5386. 'not null' => TRUE,
  5387. ),
  5388. 'expression_id' => array(
  5389. 'description' => 'TODO: please describe this field!',
  5390. 'type' => 'int',
  5391. 'not null' => TRUE,
  5392. ),
  5393. 'feature_id' => array(
  5394. 'description' => 'TODO: please describe this field!',
  5395. 'type' => 'int',
  5396. 'not null' => TRUE,
  5397. ),
  5398. 'pub_id' => array(
  5399. 'description' => 'TODO: please describe this field!',
  5400. 'type' => 'int',
  5401. 'not null' => TRUE,
  5402. ),
  5403. ),
  5404. 'primary key' => array(
  5405. 0 => 'feature_expression_id',
  5406. ),
  5407. 'unique keys' => array(
  5408. 'feature_expression_c1' => array(
  5409. 0 => 'expression_id',
  5410. 1 => 'feature_id',
  5411. 2 => 'pub_id',
  5412. ),
  5413. ),
  5414. 'indexes' => array(
  5415. 'feature_expression_idx1' => array(
  5416. 0 => 'expression_id',
  5417. ),
  5418. 'feature_expression_idx2' => array(
  5419. 0 => 'feature_id',
  5420. ),
  5421. 'feature_expression_idx3' => array(
  5422. 0 => 'pub_id',
  5423. ),
  5424. ),
  5425. 'foreign keys' => array(
  5426. 'pub' => array(
  5427. 'table' => 'pub',
  5428. 'columns' => array(
  5429. 'pub_id' => 'pub_id',
  5430. ),
  5431. ),
  5432. 'feature' => array(
  5433. 'table' => 'feature',
  5434. 'columns' => array(
  5435. 'feature_id' => 'feature_id',
  5436. ),
  5437. ),
  5438. 'expression' => array(
  5439. 'table' => 'expression',
  5440. 'columns' => array(
  5441. 'expression_id' => 'expression_id',
  5442. ),
  5443. ),
  5444. ),
  5445. 'table' => 'feature_expression',
  5446. 'referring_tables' => array(
  5447. 0 => 'feature_expressionprop',
  5448. ),
  5449. );
  5450. return $description;
  5451. }
  5452. /**
  5453. * Implements hook_chado_schema_v1_2_feature_expressionprop()
  5454. * Purpose: To describe the structure of 'feature_expressionprop' to tripal
  5455. * @see tripal_core_chado_insert()
  5456. * @see tripal_core_chado_update()
  5457. * @see tripal_core_chado_select()
  5458. *
  5459. * @return
  5460. * An array describing the 'feature_expressionprop' table
  5461. *
  5462. * @ingroup tripal_chado_v1.2_schema_api
  5463. *
  5464. */
  5465. function tripal_core_chado_schema_v1_2_feature_expressionprop() {
  5466. $description = array(
  5467. 'description' => 'TODO: please describe this table!',
  5468. 'fields' => array(
  5469. 'feature_expressionprop_id' => array(
  5470. 'description' => 'TODO: please describe this field!',
  5471. 'type' => 'serial',
  5472. 'not null' => TRUE,
  5473. ),
  5474. 'feature_expression_id' => array(
  5475. 'description' => 'TODO: please describe this field!',
  5476. 'type' => 'int',
  5477. 'not null' => TRUE,
  5478. ),
  5479. 'type_id' => array(
  5480. 'description' => 'TODO: please describe this field!',
  5481. 'type' => 'int',
  5482. 'not null' => TRUE,
  5483. ),
  5484. 'value' => array(
  5485. 'description' => 'TODO: please describe this field!',
  5486. 'type' => 'text',
  5487. 'not null' => FALSE,
  5488. ),
  5489. 'rank' => array(
  5490. 'description' => 'TODO: please describe this field!',
  5491. 'type' => 'int',
  5492. 'not null' => TRUE,
  5493. 'default' => 0,
  5494. ),
  5495. ),
  5496. 'primary key' => array(
  5497. 0 => 'feature_expressionprop_id',
  5498. ),
  5499. 'unique keys' => array(
  5500. 'feature_expressionprop_c1' => array(
  5501. 0 => 'feature_expression_id',
  5502. 1 => 'type_id',
  5503. 2 => 'rank',
  5504. ),
  5505. ),
  5506. 'indexes' => array(
  5507. 'feature_expressionprop_idx1' => array(
  5508. 0 => 'feature_expression_id',
  5509. ),
  5510. 'feature_expressionprop_idx2' => array(
  5511. 0 => 'type_id',
  5512. ),
  5513. ),
  5514. 'foreign keys' => array(
  5515. 'cvterm' => array(
  5516. 'table' => 'cvterm',
  5517. 'columns' => array(
  5518. 'type_id' => 'cvterm_id',
  5519. ),
  5520. ),
  5521. 'feature_expression' => array(
  5522. 'table' => 'feature_expression',
  5523. 'columns' => array(
  5524. 'feature_expression_id' => 'feature_expression_id',
  5525. ),
  5526. ),
  5527. ),
  5528. 'table' => 'feature_expressionprop',
  5529. 'referring_tables' => NULL,
  5530. );
  5531. return $description;
  5532. }
  5533. /**
  5534. * Implements hook_chado_schema_v1_2_feature_genotype()
  5535. * Purpose: To describe the structure of 'feature_genotype' to tripal
  5536. * @see tripal_core_chado_insert()
  5537. * @see tripal_core_chado_update()
  5538. * @see tripal_core_chado_select()
  5539. *
  5540. * @return
  5541. * An array describing the 'feature_genotype' table
  5542. *
  5543. * @ingroup tripal_chado_v1.2_schema_api
  5544. *
  5545. */
  5546. function tripal_core_chado_schema_v1_2_feature_genotype() {
  5547. $description = array(
  5548. 'description' => 'TODO: please describe this table!',
  5549. 'fields' => array(
  5550. 'feature_genotype_id' => array(
  5551. 'description' => 'TODO: please describe this field!',
  5552. 'type' => 'serial',
  5553. 'not null' => TRUE,
  5554. ),
  5555. 'feature_id' => array(
  5556. 'description' => 'TODO: please describe this field!',
  5557. 'type' => 'int',
  5558. 'not null' => TRUE,
  5559. ),
  5560. 'genotype_id' => array(
  5561. 'description' => 'TODO: please describe this field!',
  5562. 'type' => 'int',
  5563. 'not null' => TRUE,
  5564. ),
  5565. 'chromosome_id' => array(
  5566. 'description' => 'TODO: please describe this field!',
  5567. 'type' => 'int',
  5568. 'not null' => FALSE,
  5569. ),
  5570. 'rank' => array(
  5571. 'description' => 'TODO: please describe this field!',
  5572. 'type' => 'int',
  5573. 'not null' => TRUE,
  5574. ),
  5575. 'cgroup' => array(
  5576. 'description' => 'TODO: please describe this field!',
  5577. 'type' => 'int',
  5578. 'not null' => TRUE,
  5579. ),
  5580. 'cvterm_id' => array(
  5581. 'description' => 'TODO: please describe this field!',
  5582. 'type' => 'int',
  5583. 'not null' => TRUE,
  5584. ),
  5585. ),
  5586. 'primary key' => array(
  5587. 0 => 'feature_genotype_id',
  5588. ),
  5589. 'unique keys' => array(
  5590. 'feature_genotype_c1' => array(
  5591. 0 => 'feature_id',
  5592. 1 => 'genotype_id',
  5593. 2 => 'cvterm_id',
  5594. 3 => 'chromosome_id',
  5595. 4 => 'rank',
  5596. 5 => 'cgroup',
  5597. ),
  5598. ),
  5599. 'indexes' => array(
  5600. 'feature_genotype_idx1' => array(
  5601. 0 => 'feature_id',
  5602. ),
  5603. 'feature_genotype_idx2' => array(
  5604. 0 => 'genotype_id',
  5605. ),
  5606. ),
  5607. 'foreign keys' => array(
  5608. 'cvterm' => array(
  5609. 'table' => 'cvterm',
  5610. 'columns' => array(
  5611. 'cvterm_id' => 'cvterm_id',
  5612. ),
  5613. ),
  5614. 'feature' => array(
  5615. 'table' => 'feature',
  5616. 'columns' => array(
  5617. 'feature_id' => 'feature_id',
  5618. 'chromosome_id' => 'feature_id',
  5619. ),
  5620. ),
  5621. 'genotype' => array(
  5622. 'table' => 'genotype',
  5623. 'columns' => array(
  5624. 'genotype_id' => 'genotype_id',
  5625. ),
  5626. ),
  5627. ),
  5628. 'table' => 'feature_genotype',
  5629. 'referring_tables' => NULL,
  5630. );
  5631. return $description;
  5632. }
  5633. /**
  5634. * Implements hook_chado_schema_v1_2_feature_phenotype()
  5635. * Purpose: To describe the structure of 'feature_phenotype' to tripal
  5636. * @see tripal_core_chado_insert()
  5637. * @see tripal_core_chado_update()
  5638. * @see tripal_core_chado_select()
  5639. *
  5640. * @return
  5641. * An array describing the 'feature_phenotype' table
  5642. *
  5643. * @ingroup tripal_chado_v1.2_schema_api
  5644. *
  5645. */
  5646. function tripal_core_chado_schema_v1_2_feature_phenotype() {
  5647. $description = array(
  5648. 'description' => 'TODO: please describe this table!',
  5649. 'fields' => array(
  5650. 'feature_phenotype_id' => array(
  5651. 'description' => 'TODO: please describe this field!',
  5652. 'type' => 'serial',
  5653. 'not null' => TRUE,
  5654. ),
  5655. 'feature_id' => array(
  5656. 'description' => 'TODO: please describe this field!',
  5657. 'type' => 'int',
  5658. 'not null' => TRUE,
  5659. ),
  5660. 'phenotype_id' => array(
  5661. 'description' => 'TODO: please describe this field!',
  5662. 'type' => 'int',
  5663. 'not null' => TRUE,
  5664. ),
  5665. ),
  5666. 'primary key' => array(
  5667. 0 => 'feature_phenotype_id',
  5668. ),
  5669. 'unique keys' => array(
  5670. 'feature_phenotype_c1' => array(
  5671. 0 => 'feature_id',
  5672. 1 => 'phenotype_id',
  5673. ),
  5674. ),
  5675. 'indexes' => array(
  5676. 'feature_phenotype_idx1' => array(
  5677. 0 => 'feature_id',
  5678. ),
  5679. 'feature_phenotype_idx2' => array(
  5680. 0 => 'phenotype_id',
  5681. ),
  5682. ),
  5683. 'foreign keys' => array(
  5684. 'feature' => array(
  5685. 'table' => 'feature',
  5686. 'columns' => array(
  5687. 'feature_id' => 'feature_id',
  5688. ),
  5689. ),
  5690. 'phenotype' => array(
  5691. 'table' => 'phenotype',
  5692. 'columns' => array(
  5693. 'phenotype_id' => 'phenotype_id',
  5694. ),
  5695. ),
  5696. ),
  5697. 'table' => 'feature_phenotype',
  5698. 'referring_tables' => NULL,
  5699. );
  5700. return $description;
  5701. }
  5702. /**
  5703. * Implements hook_chado_schema_v1_2_feature_pub()
  5704. * Purpose: To describe the structure of 'feature_pub' to tripal
  5705. * @see tripal_core_chado_insert()
  5706. * @see tripal_core_chado_update()
  5707. * @see tripal_core_chado_select()
  5708. *
  5709. * @return
  5710. * An array describing the 'feature_pub' table
  5711. *
  5712. * @ingroup tripal_chado_v1.2_schema_api
  5713. *
  5714. */
  5715. function tripal_core_chado_schema_v1_2_feature_pub() {
  5716. $description = array(
  5717. 'description' => 'TODO: please describe this table!',
  5718. 'fields' => array(
  5719. 'feature_pub_id' => array(
  5720. 'description' => 'TODO: please describe this field!',
  5721. 'type' => 'serial',
  5722. 'not null' => TRUE,
  5723. ),
  5724. 'feature_id' => array(
  5725. 'description' => 'TODO: please describe this field!',
  5726. 'type' => 'int',
  5727. 'not null' => TRUE,
  5728. ),
  5729. 'pub_id' => array(
  5730. 'description' => 'TODO: please describe this field!',
  5731. 'type' => 'int',
  5732. 'not null' => TRUE,
  5733. ),
  5734. ),
  5735. 'primary key' => array(
  5736. 0 => 'feature_pub_id',
  5737. ),
  5738. 'unique keys' => array(
  5739. 'feature_pub_c1' => array(
  5740. 0 => 'feature_id',
  5741. 1 => 'pub_id',
  5742. ),
  5743. ),
  5744. 'indexes' => array(
  5745. 'feature_pub_idx1' => array(
  5746. 0 => 'feature_id',
  5747. ),
  5748. 'feature_pub_idx2' => array(
  5749. 0 => 'pub_id',
  5750. ),
  5751. ),
  5752. 'foreign keys' => array(
  5753. 'pub' => array(
  5754. 'table' => 'pub',
  5755. 'columns' => array(
  5756. 'pub_id' => 'pub_id',
  5757. ),
  5758. ),
  5759. 'feature' => array(
  5760. 'table' => 'feature',
  5761. 'columns' => array(
  5762. 'feature_id' => 'feature_id',
  5763. ),
  5764. ),
  5765. ),
  5766. 'table' => 'feature_pub',
  5767. 'referring_tables' => array(
  5768. 0 => 'feature_pubprop',
  5769. ),
  5770. );
  5771. return $description;
  5772. }
  5773. /**
  5774. * Implements hook_chado_schema_v1_2_feature_pubprop()
  5775. * Purpose: To describe the structure of 'feature_pubprop' to tripal
  5776. * @see tripal_core_chado_insert()
  5777. * @see tripal_core_chado_update()
  5778. * @see tripal_core_chado_select()
  5779. *
  5780. * @return
  5781. * An array describing the 'feature_pubprop' table
  5782. *
  5783. * @ingroup tripal_chado_v1.2_schema_api
  5784. *
  5785. */
  5786. function tripal_core_chado_schema_v1_2_feature_pubprop() {
  5787. $description = array(
  5788. 'description' => 'TODO: please describe this table!',
  5789. 'fields' => array(
  5790. 'feature_pubprop_id' => array(
  5791. 'description' => 'TODO: please describe this field!',
  5792. 'type' => 'serial',
  5793. 'not null' => TRUE,
  5794. ),
  5795. 'feature_pub_id' => array(
  5796. 'description' => 'TODO: please describe this field!',
  5797. 'type' => 'int',
  5798. 'not null' => TRUE,
  5799. ),
  5800. 'type_id' => array(
  5801. 'description' => 'TODO: please describe this field!',
  5802. 'type' => 'int',
  5803. 'not null' => TRUE,
  5804. ),
  5805. 'value' => array(
  5806. 'description' => 'TODO: please describe this field!',
  5807. 'type' => 'text',
  5808. 'not null' => FALSE,
  5809. ),
  5810. 'rank' => array(
  5811. 'description' => 'TODO: please describe this field!',
  5812. 'type' => 'int',
  5813. 'not null' => TRUE,
  5814. 'default' => 0,
  5815. ),
  5816. ),
  5817. 'primary key' => array(
  5818. 0 => 'feature_pubprop_id',
  5819. ),
  5820. 'unique keys' => array(
  5821. 'feature_pubprop_c1' => array(
  5822. 0 => 'feature_pub_id',
  5823. 1 => 'type_id',
  5824. 2 => 'rank',
  5825. ),
  5826. ),
  5827. 'indexes' => array(
  5828. 'feature_pubprop_idx1' => array(
  5829. 0 => 'feature_pub_id',
  5830. ),
  5831. ),
  5832. 'foreign keys' => array(
  5833. 'cvterm' => array(
  5834. 'table' => 'cvterm',
  5835. 'columns' => array(
  5836. 'type_id' => 'cvterm_id',
  5837. ),
  5838. ),
  5839. 'feature_pub' => array(
  5840. 'table' => 'feature_pub',
  5841. 'columns' => array(
  5842. 'feature_pub_id' => 'feature_pub_id',
  5843. ),
  5844. ),
  5845. ),
  5846. 'table' => 'feature_pubprop',
  5847. 'referring_tables' => NULL,
  5848. );
  5849. return $description;
  5850. }
  5851. /**
  5852. * Implements hook_chado_schema_v1_2_feature_relationship()
  5853. * Purpose: To describe the structure of 'feature_relationship' to tripal
  5854. * @see tripal_core_chado_insert()
  5855. * @see tripal_core_chado_update()
  5856. * @see tripal_core_chado_select()
  5857. *
  5858. * @return
  5859. * An array describing the 'feature_relationship' table
  5860. *
  5861. * @ingroup tripal_chado_v1.2_schema_api
  5862. *
  5863. */
  5864. function tripal_core_chado_schema_v1_2_feature_relationship() {
  5865. $description = array(
  5866. 'description' => 'TODO: please describe this table!',
  5867. 'fields' => array(
  5868. 'feature_relationship_id' => array(
  5869. 'description' => 'TODO: please describe this field!',
  5870. 'type' => 'serial',
  5871. 'not null' => TRUE,
  5872. ),
  5873. 'subject_id' => array(
  5874. 'description' => 'TODO: please describe this field!',
  5875. 'type' => 'int',
  5876. 'not null' => TRUE,
  5877. ),
  5878. 'object_id' => array(
  5879. 'description' => 'TODO: please describe this field!',
  5880. 'type' => 'int',
  5881. 'not null' => TRUE,
  5882. ),
  5883. 'type_id' => array(
  5884. 'description' => 'TODO: please describe this field!',
  5885. 'type' => 'int',
  5886. 'not null' => TRUE,
  5887. ),
  5888. 'value' => array(
  5889. 'description' => 'TODO: please describe this field!',
  5890. 'type' => 'text',
  5891. 'not null' => FALSE,
  5892. ),
  5893. 'rank' => array(
  5894. 'description' => 'TODO: please describe this field!',
  5895. 'type' => 'int',
  5896. 'not null' => TRUE,
  5897. 'default' => 0,
  5898. ),
  5899. ),
  5900. 'primary key' => array(
  5901. 0 => 'feature_relationship_id',
  5902. ),
  5903. 'unique keys' => array(
  5904. 'feature_relationship_c1' => array(
  5905. 0 => 'subject_id',
  5906. 1 => 'object_id',
  5907. 2 => 'type_id',
  5908. 3 => 'rank',
  5909. ),
  5910. ),
  5911. 'indexes' => array(
  5912. 'feature_relationship_idx1' => array(
  5913. 0 => 'subject_id',
  5914. ),
  5915. 'feature_relationship_idx2' => array(
  5916. 0 => 'object_id',
  5917. ),
  5918. 'feature_relationship_idx3' => array(
  5919. 0 => 'type_id',
  5920. ),
  5921. ),
  5922. 'foreign keys' => array(
  5923. 'cvterm' => array(
  5924. 'table' => 'cvterm',
  5925. 'columns' => array(
  5926. 'type_id' => 'cvterm_id',
  5927. ),
  5928. ),
  5929. 'feature' => array(
  5930. 'table' => 'feature',
  5931. 'columns' => array(
  5932. 'subject_id' => 'feature_id',
  5933. 'object_id' => 'feature_id',
  5934. ),
  5935. ),
  5936. ),
  5937. 'table' => 'feature_relationship',
  5938. 'referring_tables' => array(
  5939. 0 => 'feature_relationship_pub',
  5940. 1 => 'feature_relationshipprop',
  5941. ),
  5942. );
  5943. return $description;
  5944. }
  5945. /**
  5946. * Implements hook_chado_schema_v1_2_feature_relationship_pub()
  5947. * Purpose: To describe the structure of 'feature_relationship_pub' to tripal
  5948. * @see tripal_core_chado_insert()
  5949. * @see tripal_core_chado_update()
  5950. * @see tripal_core_chado_select()
  5951. *
  5952. * @return
  5953. * An array describing the 'feature_relationship_pub' table
  5954. *
  5955. * @ingroup tripal_chado_v1.2_schema_api
  5956. *
  5957. */
  5958. function tripal_core_chado_schema_v1_2_feature_relationship_pub() {
  5959. $description = array(
  5960. 'description' => 'TODO: please describe this table!',
  5961. 'fields' => array(
  5962. 'feature_relationship_pub_id' => array(
  5963. 'description' => 'TODO: please describe this field!',
  5964. 'type' => 'serial',
  5965. 'not null' => TRUE,
  5966. ),
  5967. 'feature_relationship_id' => array(
  5968. 'description' => 'TODO: please describe this field!',
  5969. 'type' => 'int',
  5970. 'not null' => TRUE,
  5971. ),
  5972. 'pub_id' => array(
  5973. 'description' => 'TODO: please describe this field!',
  5974. 'type' => 'int',
  5975. 'not null' => TRUE,
  5976. ),
  5977. ),
  5978. 'primary key' => array(
  5979. 0 => 'feature_relationship_pub_id',
  5980. ),
  5981. 'unique keys' => array(
  5982. 'feature_relationship_pub_c1' => array(
  5983. 0 => 'feature_relationship_id',
  5984. 1 => 'pub_id',
  5985. ),
  5986. ),
  5987. 'indexes' => array(
  5988. 'feature_relationship_pub_idx1' => array(
  5989. 0 => 'feature_relationship_id',
  5990. ),
  5991. 'feature_relationship_pub_idx2' => array(
  5992. 0 => 'pub_id',
  5993. ),
  5994. ),
  5995. 'foreign keys' => array(
  5996. 'feature_relationship' => array(
  5997. 'table' => 'feature_relationship',
  5998. 'columns' => array(
  5999. 'feature_relationship_id' => 'feature_relationship_id',
  6000. ),
  6001. ),
  6002. 'pub' => array(
  6003. 'table' => 'pub',
  6004. 'columns' => array(
  6005. 'pub_id' => 'pub_id',
  6006. ),
  6007. ),
  6008. ),
  6009. 'table' => 'feature_relationship_pub',
  6010. 'referring_tables' => NULL,
  6011. );
  6012. return $description;
  6013. }
  6014. /**
  6015. * Implements hook_chado_schema_v1_2_feature_relationshipprop()
  6016. * Purpose: To describe the structure of 'feature_relationshipprop' to tripal
  6017. * @see tripal_core_chado_insert()
  6018. * @see tripal_core_chado_update()
  6019. * @see tripal_core_chado_select()
  6020. *
  6021. * @return
  6022. * An array describing the 'feature_relationshipprop' table
  6023. *
  6024. * @ingroup tripal_chado_v1.2_schema_api
  6025. *
  6026. */
  6027. function tripal_core_chado_schema_v1_2_feature_relationshipprop() {
  6028. $description = array(
  6029. 'description' => 'TODO: please describe this table!',
  6030. 'fields' => array(
  6031. 'feature_relationshipprop_id' => array(
  6032. 'description' => 'TODO: please describe this field!',
  6033. 'type' => 'serial',
  6034. 'not null' => TRUE,
  6035. ),
  6036. 'feature_relationship_id' => array(
  6037. 'description' => 'TODO: please describe this field!',
  6038. 'type' => 'int',
  6039. 'not null' => TRUE,
  6040. ),
  6041. 'type_id' => array(
  6042. 'description' => 'TODO: please describe this field!',
  6043. 'type' => 'int',
  6044. 'not null' => TRUE,
  6045. ),
  6046. 'value' => array(
  6047. 'description' => 'TODO: please describe this field!',
  6048. 'type' => 'text',
  6049. 'not null' => FALSE,
  6050. ),
  6051. 'rank' => array(
  6052. 'description' => 'TODO: please describe this field!',
  6053. 'type' => 'int',
  6054. 'not null' => TRUE,
  6055. 'default' => 0,
  6056. ),
  6057. ),
  6058. 'primary key' => array(
  6059. 0 => 'feature_relationshipprop_id',
  6060. ),
  6061. 'unique keys' => array(
  6062. 'feature_relationshipprop_c1' => array(
  6063. 0 => 'feature_relationship_id',
  6064. 1 => 'type_id',
  6065. 2 => 'rank',
  6066. ),
  6067. ),
  6068. 'indexes' => array(
  6069. 'feature_relationshipprop_idx1' => array(
  6070. 0 => 'feature_relationship_id',
  6071. ),
  6072. 'feature_relationshipprop_idx2' => array(
  6073. 0 => 'type_id',
  6074. ),
  6075. ),
  6076. 'foreign keys' => array(
  6077. 'cvterm' => array(
  6078. 'table' => 'cvterm',
  6079. 'columns' => array(
  6080. 'type_id' => 'cvterm_id',
  6081. ),
  6082. ),
  6083. 'feature_relationship' => array(
  6084. 'table' => 'feature_relationship',
  6085. 'columns' => array(
  6086. 'feature_relationship_id' => 'feature_relationship_id',
  6087. ),
  6088. ),
  6089. ),
  6090. 'table' => 'feature_relationshipprop',
  6091. 'referring_tables' => array(
  6092. 0 => 'feature_relationshipprop_pub',
  6093. ),
  6094. );
  6095. return $description;
  6096. }
  6097. /**
  6098. * Implements hook_chado_schema_v1_2_feature_relationshipprop_pub()
  6099. * Purpose: To describe the structure of 'feature_relationshipprop_pub' to tripal
  6100. * @see tripal_core_chado_insert()
  6101. * @see tripal_core_chado_update()
  6102. * @see tripal_core_chado_select()
  6103. *
  6104. * @return
  6105. * An array describing the 'feature_relationshipprop_pub' table
  6106. *
  6107. * @ingroup tripal_chado_v1.2_schema_api
  6108. *
  6109. */
  6110. function tripal_core_chado_schema_v1_2_feature_relationshipprop_pub() {
  6111. $description = array(
  6112. 'description' => 'TODO: please describe this table!',
  6113. 'fields' => array(
  6114. 'feature_relationshipprop_pub_id' => array(
  6115. 'description' => 'TODO: please describe this field!',
  6116. 'type' => 'serial',
  6117. 'not null' => TRUE,
  6118. ),
  6119. 'feature_relationshipprop_id' => array(
  6120. 'description' => 'TODO: please describe this field!',
  6121. 'type' => 'int',
  6122. 'not null' => TRUE,
  6123. ),
  6124. 'pub_id' => array(
  6125. 'description' => 'TODO: please describe this field!',
  6126. 'type' => 'int',
  6127. 'not null' => TRUE,
  6128. ),
  6129. ),
  6130. 'primary key' => array(
  6131. 0 => 'feature_relationshipprop_pub_id',
  6132. ),
  6133. 'unique keys' => array(
  6134. 'feature_relationshipprop_pub_c1' => array(
  6135. 0 => 'feature_relationshipprop_id',
  6136. 1 => 'pub_id',
  6137. ),
  6138. ),
  6139. 'indexes' => array(
  6140. 'feature_relationshipprop_pub_idx1' => array(
  6141. 0 => 'feature_relationshipprop_id',
  6142. ),
  6143. 'feature_relationshipprop_pub_idx2' => array(
  6144. 0 => 'pub_id',
  6145. ),
  6146. ),
  6147. 'foreign keys' => array(
  6148. 'feature_relationshipprop' => array(
  6149. 'table' => 'feature_relationshipprop',
  6150. 'columns' => array(
  6151. 'feature_relationshipprop_id' => 'feature_relationshipprop_id',
  6152. ),
  6153. ),
  6154. 'pub' => array(
  6155. 'table' => 'pub',
  6156. 'columns' => array(
  6157. 'pub_id' => 'pub_id',
  6158. ),
  6159. ),
  6160. ),
  6161. 'table' => 'feature_relationshipprop_pub',
  6162. 'referring_tables' => NULL,
  6163. );
  6164. return $description;
  6165. }
  6166. /**
  6167. * Implements hook_chado_schema_v1_2_feature_synonym()
  6168. * Purpose: To describe the structure of 'feature_synonym' to tripal
  6169. * @see tripal_core_chado_insert()
  6170. * @see tripal_core_chado_update()
  6171. * @see tripal_core_chado_select()
  6172. *
  6173. * @return
  6174. * An array describing the 'feature_synonym' table
  6175. *
  6176. * @ingroup tripal_chado_v1.2_schema_api
  6177. *
  6178. */
  6179. function tripal_core_chado_schema_v1_2_feature_synonym() {
  6180. $description = array(
  6181. 'description' => 'TODO: please describe this table!',
  6182. 'fields' => array(
  6183. 'feature_synonym_id' => array(
  6184. 'description' => 'TODO: please describe this field!',
  6185. 'type' => 'serial',
  6186. 'not null' => TRUE,
  6187. ),
  6188. 'synonym_id' => array(
  6189. 'description' => 'TODO: please describe this field!',
  6190. 'type' => 'int',
  6191. 'not null' => TRUE,
  6192. ),
  6193. 'feature_id' => array(
  6194. 'description' => 'TODO: please describe this field!',
  6195. 'type' => 'int',
  6196. 'not null' => TRUE,
  6197. ),
  6198. 'pub_id' => array(
  6199. 'description' => 'TODO: please describe this field!',
  6200. 'type' => 'int',
  6201. 'not null' => TRUE,
  6202. ),
  6203. 'is_current' => array(
  6204. 'description' => 'TODO: please describe this field!',
  6205. 'type' => 'boolean',
  6206. 'not null' => TRUE,
  6207. 'default' => 'als',
  6208. ),
  6209. 'is_internal' => array(
  6210. 'description' => 'TODO: please describe this field!',
  6211. 'type' => 'boolean',
  6212. 'not null' => TRUE,
  6213. 'default' => 'als',
  6214. ),
  6215. ),
  6216. 'primary key' => array(
  6217. 0 => 'feature_synonym_id',
  6218. ),
  6219. 'unique keys' => array(
  6220. 'feature_synonym_c1' => array(
  6221. 0 => 'synonym_id',
  6222. 1 => 'feature_id',
  6223. 2 => 'pub_id',
  6224. ),
  6225. ),
  6226. 'indexes' => array(
  6227. 'feature_synonym_idx1' => array(
  6228. 0 => 'synonym_id',
  6229. ),
  6230. 'feature_synonym_idx2' => array(
  6231. 0 => 'feature_id',
  6232. ),
  6233. 'feature_synonym_idx3' => array(
  6234. 0 => 'pub_id',
  6235. ),
  6236. ),
  6237. 'foreign keys' => array(
  6238. 'pub' => array(
  6239. 'table' => 'pub',
  6240. 'columns' => array(
  6241. 'pub_id' => 'pub_id',
  6242. ),
  6243. ),
  6244. 'feature' => array(
  6245. 'table' => 'feature',
  6246. 'columns' => array(
  6247. 'feature_id' => 'feature_id',
  6248. ),
  6249. ),
  6250. 'synonym' => array(
  6251. 'table' => 'synonym',
  6252. 'columns' => array(
  6253. 'synonym_id' => 'synonym_id',
  6254. ),
  6255. ),
  6256. ),
  6257. 'table' => 'feature_synonym',
  6258. 'referring_tables' => NULL,
  6259. );
  6260. return $description;
  6261. }
  6262. /**
  6263. * Implements hook_chado_schema_v1_2_featureloc()
  6264. * Purpose: To describe the structure of 'featureloc' to tripal
  6265. * @see tripal_core_chado_insert()
  6266. * @see tripal_core_chado_update()
  6267. * @see tripal_core_chado_select()
  6268. *
  6269. * @return
  6270. * An array describing the 'featureloc' table
  6271. *
  6272. * @ingroup tripal_chado_v1.2_schema_api
  6273. *
  6274. */
  6275. function tripal_core_chado_schema_v1_2_featureloc() {
  6276. $description = array(
  6277. 'description' => 'TODO: please describe this table!',
  6278. 'fields' => array(
  6279. 'featureloc_id' => array(
  6280. 'description' => 'TODO: please describe this field!',
  6281. 'type' => 'serial',
  6282. 'not null' => TRUE,
  6283. ),
  6284. 'feature_id' => array(
  6285. 'description' => 'TODO: please describe this field!',
  6286. 'type' => 'int',
  6287. 'not null' => TRUE,
  6288. ),
  6289. 'srcfeature_id' => array(
  6290. 'description' => 'TODO: please describe this field!',
  6291. 'type' => 'int',
  6292. 'not null' => FALSE,
  6293. ),
  6294. 'fmin' => array(
  6295. 'description' => 'TODO: please describe this field!',
  6296. 'type' => 'int',
  6297. 'not null' => FALSE,
  6298. ),
  6299. 'is_fmin_partial' => array(
  6300. 'description' => 'TODO: please describe this field!',
  6301. 'type' => 'boolean',
  6302. 'not null' => TRUE,
  6303. 'default' => 'als',
  6304. ),
  6305. 'fmax' => array(
  6306. 'description' => 'TODO: please describe this field!',
  6307. 'type' => 'int',
  6308. 'not null' => FALSE,
  6309. ),
  6310. 'is_fmax_partial' => array(
  6311. 'description' => 'TODO: please describe this field!',
  6312. 'type' => 'boolean',
  6313. 'not null' => TRUE,
  6314. 'default' => 'als',
  6315. ),
  6316. 'strand' => array(
  6317. 'description' => 'TODO: please describe this field!',
  6318. 'type' => 'int',
  6319. 'size' => 'small',
  6320. 'not null' => FALSE,
  6321. ),
  6322. 'phase' => array(
  6323. 'description' => 'TODO: please describe this field!',
  6324. 'type' => 'int',
  6325. 'not null' => FALSE,
  6326. ),
  6327. 'residue_info' => array(
  6328. 'description' => 'TODO: please describe this field!',
  6329. 'type' => 'text',
  6330. 'not null' => FALSE,
  6331. ),
  6332. 'locgroup' => array(
  6333. 'description' => 'TODO: please describe this field!',
  6334. 'type' => 'int',
  6335. 'not null' => TRUE,
  6336. 'default' => 0,
  6337. ),
  6338. 'rank' => array(
  6339. 'description' => 'TODO: please describe this field!',
  6340. 'type' => 'int',
  6341. 'not null' => TRUE,
  6342. 'default' => 0,
  6343. ),
  6344. ),
  6345. 'primary key' => array(
  6346. 0 => 'featureloc_id',
  6347. ),
  6348. 'unique keys' => array(
  6349. 'featureloc_c1' => array(
  6350. 0 => 'feature_id',
  6351. 1 => 'locgroup',
  6352. 2 => 'rank',
  6353. ),
  6354. ),
  6355. 'indexes' => array(
  6356. 'binloc_boxrange' => array(
  6357. 0 => 'fmin',
  6358. ),
  6359. 'binloc_boxrange_src' => array(
  6360. 0 => 'srcfeature_id',
  6361. 1 => 'fmin',
  6362. ),
  6363. 'featureloc_idx1' => array(
  6364. 0 => 'feature_id',
  6365. ),
  6366. 'featureloc_idx2' => array(
  6367. 0 => 'srcfeature_id',
  6368. ),
  6369. 'featureloc_idx3' => array(
  6370. 0 => 'srcfeature_id',
  6371. 1 => 'fmin',
  6372. 2 => 'fmax',
  6373. ),
  6374. ),
  6375. 'foreign keys' => array(
  6376. 'feature' => array(
  6377. 'table' => 'feature',
  6378. 'columns' => array(
  6379. 'feature_id' => 'feature_id',
  6380. 'srcfeature_id' => 'feature_id',
  6381. ),
  6382. ),
  6383. ),
  6384. 'referring_tables' => array(
  6385. 0 => 'featureloc_pub',
  6386. ),
  6387. 'table' => 'featureloc',
  6388. );
  6389. return $description;
  6390. }
  6391. /**
  6392. * Implements hook_chado_schema_v1_2_featureloc_pub()
  6393. * Purpose: To describe the structure of 'featureloc_pub' to tripal
  6394. * @see tripal_core_chado_insert()
  6395. * @see tripal_core_chado_update()
  6396. * @see tripal_core_chado_select()
  6397. *
  6398. * @return
  6399. * An array describing the 'featureloc_pub' table
  6400. *
  6401. * @ingroup tripal_chado_v1.2_schema_api
  6402. *
  6403. */
  6404. function tripal_core_chado_schema_v1_2_featureloc_pub() {
  6405. $description = array(
  6406. 'description' => 'TODO: please describe this table!',
  6407. 'fields' => array(
  6408. 'featureloc_pub_id' => array(
  6409. 'description' => 'TODO: please describe this field!',
  6410. 'type' => 'serial',
  6411. 'not null' => TRUE,
  6412. ),
  6413. 'featureloc_id' => array(
  6414. 'description' => 'TODO: please describe this field!',
  6415. 'type' => 'int',
  6416. 'not null' => TRUE,
  6417. ),
  6418. 'pub_id' => array(
  6419. 'description' => 'TODO: please describe this field!',
  6420. 'type' => 'int',
  6421. 'not null' => TRUE,
  6422. ),
  6423. ),
  6424. 'primary key' => array(
  6425. 0 => 'featureloc_pub_id',
  6426. ),
  6427. 'unique keys' => array(
  6428. 'featureloc_pub_c1' => array(
  6429. 0 => 'featureloc_id',
  6430. 1 => 'pub_id',
  6431. ),
  6432. ),
  6433. 'indexes' => array(
  6434. 'featureloc_pub_idx1' => array(
  6435. 0 => 'featureloc_id',
  6436. ),
  6437. 'featureloc_pub_idx2' => array(
  6438. 0 => 'pub_id',
  6439. ),
  6440. ),
  6441. 'foreign keys' => array(
  6442. 'featureloc' => array(
  6443. 'table' => 'featureloc',
  6444. 'columns' => array(
  6445. 'featureloc_id' => 'featureloc_id',
  6446. ),
  6447. ),
  6448. 'pub' => array(
  6449. 'table' => 'pub',
  6450. 'columns' => array(
  6451. 'pub_id' => 'pub_id',
  6452. ),
  6453. ),
  6454. ),
  6455. 'table' => 'featureloc_pub',
  6456. 'referring_tables' => NULL,
  6457. );
  6458. return $description;
  6459. }
  6460. /**
  6461. * Implements hook_chado_schema_v1_2_featuremap()
  6462. * Purpose: To describe the structure of 'featuremap' to tripal
  6463. * @see tripal_core_chado_insert()
  6464. * @see tripal_core_chado_update()
  6465. * @see tripal_core_chado_select()
  6466. *
  6467. * @return
  6468. * An array describing the 'featuremap' table
  6469. *
  6470. * @ingroup tripal_chado_v1.2_schema_api
  6471. *
  6472. */
  6473. function tripal_core_chado_schema_v1_2_featuremap() {
  6474. $description = array(
  6475. 'description' => 'TODO: please describe this table!',
  6476. 'fields' => array(
  6477. 'featuremap_id' => array(
  6478. 'description' => 'TODO: please describe this field!',
  6479. 'type' => 'serial',
  6480. 'not null' => TRUE,
  6481. ),
  6482. 'name' => array(
  6483. 'description' => 'TODO: please describe this field!',
  6484. 'type' => 'varchar',
  6485. 'length' => '255',
  6486. 'not null' => FALSE,
  6487. ),
  6488. 'description' => array(
  6489. 'description' => 'TODO: please describe this field!',
  6490. 'type' => 'text',
  6491. 'not null' => FALSE,
  6492. ),
  6493. 'unittype_id' => array(
  6494. 'description' => 'TODO: please describe this field!',
  6495. 'type' => 'int',
  6496. 'not null' => FALSE,
  6497. ),
  6498. ),
  6499. 'primary key' => array(
  6500. 0 => 'featuremap_id',
  6501. ),
  6502. 'unique keys' => array(
  6503. 'featuremap_c1' => array(
  6504. 0 => 'name',
  6505. ),
  6506. ),
  6507. 'foreign keys' => array(
  6508. 'cvterm' => array(
  6509. 'table' => 'cvterm',
  6510. 'columns' => array(
  6511. 'unittype_id' => 'cvterm_id',
  6512. ),
  6513. ),
  6514. ),
  6515. 'table' => 'featuremap',
  6516. 'referring_tables' => array(
  6517. 0 => 'featuremap_pub',
  6518. 1 => 'featurepos',
  6519. 2 => 'featurerange',
  6520. ),
  6521. );
  6522. return $description;
  6523. }
  6524. /**
  6525. * Implements hook_chado_schema_v1_2_featuremap_pub()
  6526. * Purpose: To describe the structure of 'featuremap_pub' to tripal
  6527. * @see tripal_core_chado_insert()
  6528. * @see tripal_core_chado_update()
  6529. * @see tripal_core_chado_select()
  6530. *
  6531. * @return
  6532. * An array describing the 'featuremap_pub' table
  6533. *
  6534. * @ingroup tripal_chado_v1.2_schema_api
  6535. *
  6536. */
  6537. function tripal_core_chado_schema_v1_2_featuremap_pub() {
  6538. $description = array(
  6539. 'description' => 'TODO: please describe this table!',
  6540. 'fields' => array(
  6541. 'featuremap_pub_id' => array(
  6542. 'description' => 'TODO: please describe this field!',
  6543. 'type' => 'serial',
  6544. 'not null' => TRUE,
  6545. ),
  6546. 'featuremap_id' => array(
  6547. 'description' => 'TODO: please describe this field!',
  6548. 'type' => 'int',
  6549. 'not null' => TRUE,
  6550. ),
  6551. 'pub_id' => array(
  6552. 'description' => 'TODO: please describe this field!',
  6553. 'type' => 'int',
  6554. 'not null' => TRUE,
  6555. ),
  6556. ),
  6557. 'primary key' => array(
  6558. 0 => 'featuremap_pub_id',
  6559. ),
  6560. 'indexes' => array(
  6561. 'featuremap_pub_idx1' => array(
  6562. 0 => 'featuremap_id',
  6563. ),
  6564. 'featuremap_pub_idx2' => array(
  6565. 0 => 'pub_id',
  6566. ),
  6567. ),
  6568. 'foreign keys' => array(
  6569. 'pub' => array(
  6570. 'table' => 'pub',
  6571. 'columns' => array(
  6572. 'pub_id' => 'pub_id',
  6573. ),
  6574. ),
  6575. 'featuremap' => array(
  6576. 'table' => 'featuremap',
  6577. 'columns' => array(
  6578. 'featuremap_id' => 'featuremap_id',
  6579. ),
  6580. ),
  6581. ),
  6582. 'table' => 'featuremap_pub',
  6583. 'referring_tables' => NULL,
  6584. );
  6585. return $description;
  6586. }
  6587. /**
  6588. * Implements hook_chado_schema_v1_2_featurepos()
  6589. * Purpose: To describe the structure of 'featurepos' to tripal
  6590. * @see tripal_core_chado_insert()
  6591. * @see tripal_core_chado_update()
  6592. * @see tripal_core_chado_select()
  6593. *
  6594. * @return
  6595. * An array describing the 'featurepos' table
  6596. *
  6597. * @ingroup tripal_chado_v1.2_schema_api
  6598. *
  6599. */
  6600. function tripal_core_chado_schema_v1_2_featurepos() {
  6601. $description = array(
  6602. 'description' => 'TODO: please describe this table!',
  6603. 'fields' => array(
  6604. 'featurepos_id' => array(
  6605. 'description' => 'TODO: please describe this field!',
  6606. 'type' => 'serial',
  6607. 'not null' => TRUE,
  6608. ),
  6609. 'featuremap_id' => array(
  6610. 'description' => 'TODO: please describe this field!',
  6611. 'type' => 'serial',
  6612. 'not null' => TRUE,
  6613. ),
  6614. 'feature_id' => array(
  6615. 'description' => 'TODO: please describe this field!',
  6616. 'type' => 'int',
  6617. 'not null' => TRUE,
  6618. ),
  6619. 'map_feature_id' => array(
  6620. 'description' => 'TODO: please describe this field!',
  6621. 'type' => 'int',
  6622. 'not null' => TRUE,
  6623. ),
  6624. 'mappos' => array(
  6625. 'description' => 'TODO: please describe this field!',
  6626. 'type' => 'float',
  6627. 'size' => 'big',
  6628. 'not null' => TRUE,
  6629. ),
  6630. ),
  6631. 'primary key' => array(
  6632. 0 => 'featurepos_id',
  6633. ),
  6634. 'indexes' => array(
  6635. 'featurepos_idx1' => array(
  6636. 0 => 'featuremap_id',
  6637. ),
  6638. 'featurepos_idx2' => array(
  6639. 0 => 'feature_id',
  6640. ),
  6641. 'featurepos_idx3' => array(
  6642. 0 => 'map_feature_id',
  6643. ),
  6644. ),
  6645. 'foreign keys' => array(
  6646. 'feature' => array(
  6647. 'table' => 'feature',
  6648. 'columns' => array(
  6649. 'feature_id' => 'feature_id',
  6650. 'map_feature_id' => 'feature_id',
  6651. ),
  6652. ),
  6653. 'featuremap' => array(
  6654. 'table' => 'featuremap',
  6655. 'columns' => array(
  6656. 'featuremap_id' => 'featuremap_id',
  6657. ),
  6658. ),
  6659. ),
  6660. 'table' => 'featurepos',
  6661. 'referring_tables' => NULL,
  6662. );
  6663. return $description;
  6664. }
  6665. /**
  6666. * Implements hook_chado_schema_v1_2_featureprop()
  6667. * Purpose: To describe the structure of 'featureprop' to tripal
  6668. * @see tripal_core_chado_insert()
  6669. * @see tripal_core_chado_update()
  6670. * @see tripal_core_chado_select()
  6671. *
  6672. * @return
  6673. * An array describing the 'featureprop' table
  6674. *
  6675. * @ingroup tripal_chado_v1.2_schema_api
  6676. *
  6677. */
  6678. function tripal_core_chado_schema_v1_2_featureprop() {
  6679. $description = array(
  6680. 'description' => 'TODO: please describe this table!',
  6681. 'fields' => array(
  6682. 'featureprop_id' => array(
  6683. 'description' => 'TODO: please describe this field!',
  6684. 'type' => 'serial',
  6685. 'not null' => TRUE,
  6686. ),
  6687. 'feature_id' => array(
  6688. 'description' => 'TODO: please describe this field!',
  6689. 'type' => 'int',
  6690. 'not null' => TRUE,
  6691. ),
  6692. 'type_id' => array(
  6693. 'description' => 'TODO: please describe this field!',
  6694. 'type' => 'int',
  6695. 'not null' => TRUE,
  6696. ),
  6697. 'value' => array(
  6698. 'description' => 'TODO: please describe this field!',
  6699. 'type' => 'text',
  6700. 'not null' => FALSE,
  6701. ),
  6702. 'rank' => array(
  6703. 'description' => 'TODO: please describe this field!',
  6704. 'type' => 'int',
  6705. 'not null' => TRUE,
  6706. 'default' => 0,
  6707. ),
  6708. ),
  6709. 'primary key' => array(
  6710. 0 => 'featureprop_id',
  6711. ),
  6712. 'unique keys' => array(
  6713. 'featureprop_c1' => array(
  6714. 0 => 'feature_id',
  6715. 1 => 'type_id',
  6716. 2 => 'rank',
  6717. ),
  6718. ),
  6719. 'indexes' => array(
  6720. 'featureprop_idx1' => array(
  6721. 0 => 'feature_id',
  6722. ),
  6723. 'featureprop_idx2' => array(
  6724. 0 => 'type_id',
  6725. ),
  6726. ),
  6727. 'foreign keys' => array(
  6728. 'cvterm' => array(
  6729. 'table' => 'cvterm',
  6730. 'columns' => array(
  6731. 'type_id' => 'cvterm_id',
  6732. ),
  6733. ),
  6734. 'feature' => array(
  6735. 'table' => 'feature',
  6736. 'columns' => array(
  6737. 'feature_id' => 'feature_id',
  6738. ),
  6739. ),
  6740. ),
  6741. 'table' => 'featureprop',
  6742. 'referring_tables' => array(
  6743. 0 => 'featureprop_pub',
  6744. ),
  6745. );
  6746. return $description;
  6747. }
  6748. /**
  6749. * Implements hook_chado_schema_v1_2_featureprop_pub()
  6750. * Purpose: To describe the structure of 'featureprop_pub' to tripal
  6751. * @see tripal_core_chado_insert()
  6752. * @see tripal_core_chado_update()
  6753. * @see tripal_core_chado_select()
  6754. *
  6755. * @return
  6756. * An array describing the 'featureprop_pub' table
  6757. *
  6758. * @ingroup tripal_chado_v1.2_schema_api
  6759. *
  6760. */
  6761. function tripal_core_chado_schema_v1_2_featureprop_pub() {
  6762. $description = array(
  6763. 'description' => 'TODO: please describe this table!',
  6764. 'fields' => array(
  6765. 'featureprop_pub_id' => array(
  6766. 'description' => 'TODO: please describe this field!',
  6767. 'type' => 'serial',
  6768. 'not null' => TRUE,
  6769. ),
  6770. 'featureprop_id' => array(
  6771. 'description' => 'TODO: please describe this field!',
  6772. 'type' => 'int',
  6773. 'not null' => TRUE,
  6774. ),
  6775. 'pub_id' => array(
  6776. 'description' => 'TODO: please describe this field!',
  6777. 'type' => 'int',
  6778. 'not null' => TRUE,
  6779. ),
  6780. ),
  6781. 'primary key' => array(
  6782. 0 => 'featureprop_pub_id',
  6783. ),
  6784. 'unique keys' => array(
  6785. 'featureprop_pub_c1' => array(
  6786. 0 => 'featureprop_id',
  6787. 1 => 'pub_id',
  6788. ),
  6789. ),
  6790. 'indexes' => array(
  6791. 'featureprop_pub_idx1' => array(
  6792. 0 => 'featureprop_id',
  6793. ),
  6794. 'featureprop_pub_idx2' => array(
  6795. 0 => 'pub_id',
  6796. ),
  6797. ),
  6798. 'foreign keys' => array(
  6799. 'featureprop' => array(
  6800. 'table' => 'featureprop',
  6801. 'columns' => array(
  6802. 'featureprop_id' => 'featureprop_id',
  6803. ),
  6804. ),
  6805. 'pub' => array(
  6806. 'table' => 'pub',
  6807. 'columns' => array(
  6808. 'pub_id' => 'pub_id',
  6809. ),
  6810. ),
  6811. ),
  6812. 'table' => 'featureprop_pub',
  6813. 'referring_tables' => NULL,
  6814. );
  6815. return $description;
  6816. }
  6817. /**
  6818. * Implements hook_chado_schema_v1_2_featurerange()
  6819. * Purpose: To describe the structure of 'featurerange' to tripal
  6820. * @see tripal_core_chado_insert()
  6821. * @see tripal_core_chado_update()
  6822. * @see tripal_core_chado_select()
  6823. *
  6824. * @return
  6825. * An array describing the 'featurerange' table
  6826. *
  6827. * @ingroup tripal_chado_v1.2_schema_api
  6828. *
  6829. */
  6830. function tripal_core_chado_schema_v1_2_featurerange() {
  6831. $description = array(
  6832. 'description' => 'TODO: please describe this table!',
  6833. 'fields' => array(
  6834. 'featurerange_id' => array(
  6835. 'description' => 'TODO: please describe this field!',
  6836. 'type' => 'serial',
  6837. 'not null' => TRUE,
  6838. ),
  6839. 'featuremap_id' => array(
  6840. 'description' => 'TODO: please describe this field!',
  6841. 'type' => 'int',
  6842. 'not null' => TRUE,
  6843. ),
  6844. 'feature_id' => array(
  6845. 'description' => 'TODO: please describe this field!',
  6846. 'type' => 'int',
  6847. 'not null' => TRUE,
  6848. ),
  6849. 'leftstartf_id' => array(
  6850. 'description' => 'TODO: please describe this field!',
  6851. 'type' => 'int',
  6852. 'not null' => TRUE,
  6853. ),
  6854. 'leftendf_id' => array(
  6855. 'description' => 'TODO: please describe this field!',
  6856. 'type' => 'int',
  6857. 'not null' => FALSE,
  6858. ),
  6859. 'rightstartf_id' => array(
  6860. 'description' => 'TODO: please describe this field!',
  6861. 'type' => 'int',
  6862. 'not null' => FALSE,
  6863. ),
  6864. 'rightendf_id' => array(
  6865. 'description' => 'TODO: please describe this field!',
  6866. 'type' => 'int',
  6867. 'not null' => TRUE,
  6868. ),
  6869. 'rangestr' => array(
  6870. 'description' => 'TODO: please describe this field!',
  6871. 'type' => 'varchar',
  6872. 'length' => '255',
  6873. 'not null' => FALSE,
  6874. ),
  6875. ),
  6876. 'primary key' => array(
  6877. 0 => 'featurerange_id',
  6878. ),
  6879. 'indexes' => array(
  6880. 'featurerange_idx1' => array(
  6881. 0 => 'featuremap_id',
  6882. ),
  6883. 'featurerange_idx2' => array(
  6884. 0 => 'feature_id',
  6885. ),
  6886. 'featurerange_idx3' => array(
  6887. 0 => 'leftstartf_id',
  6888. ),
  6889. 'featurerange_idx4' => array(
  6890. 0 => 'leftendf_id',
  6891. ),
  6892. 'featurerange_idx5' => array(
  6893. 0 => 'rightstartf_id',
  6894. ),
  6895. 'featurerange_idx6' => array(
  6896. 0 => 'rightendf_id',
  6897. ),
  6898. ),
  6899. 'foreign keys' => array(
  6900. 'feature' => array(
  6901. 'table' => 'feature',
  6902. 'columns' => array(
  6903. 'feature_id' => 'feature_id',
  6904. 'leftstartf_id' => 'feature_id',
  6905. 'leftendf_id' => 'feature_id',
  6906. 'rightstartf_id' => 'feature_id',
  6907. 'rightendf_id' => 'feature_id',
  6908. ),
  6909. ),
  6910. 'featuremap' => array(
  6911. 'table' => 'featuremap',
  6912. 'columns' => array(
  6913. 'featuremap_id' => 'featuremap_id',
  6914. ),
  6915. ),
  6916. ),
  6917. 'table' => 'featurerange',
  6918. 'referring_tables' => NULL,
  6919. );
  6920. return $description;
  6921. }
  6922. /**
  6923. * Implements hook_chado_schema_v1_2_genotype()
  6924. * Purpose: To describe the structure of 'genotype' to tripal
  6925. * @see tripal_core_chado_insert()
  6926. * @see tripal_core_chado_update()
  6927. * @see tripal_core_chado_select()
  6928. *
  6929. * @return
  6930. * An array describing the 'genotype' table
  6931. *
  6932. * @ingroup tripal_chado_v1.2_schema_api
  6933. *
  6934. */
  6935. function tripal_core_chado_schema_v1_2_genotype() {
  6936. $description = array(
  6937. 'description' => 'TODO: please describe this table!',
  6938. 'fields' => array(
  6939. 'genotype_id' => array(
  6940. 'description' => 'TODO: please describe this field!',
  6941. 'type' => 'serial',
  6942. 'not null' => TRUE,
  6943. ),
  6944. 'name' => array(
  6945. 'description' => 'TODO: please describe this field!',
  6946. 'type' => 'text',
  6947. 'not null' => FALSE,
  6948. ),
  6949. 'uniquename' => array(
  6950. 'description' => 'TODO: please describe this field!',
  6951. 'type' => 'text',
  6952. 'not null' => TRUE,
  6953. ),
  6954. 'description' => array(
  6955. 'description' => 'TODO: please describe this field!',
  6956. 'type' => 'varchar',
  6957. 'length' => '255',
  6958. 'not null' => FALSE,
  6959. ),
  6960. 'type_id' => array(
  6961. 'description' => 'TODO: please describe this field!',
  6962. 'type' => 'int',
  6963. 'not null' => TRUE,
  6964. ),
  6965. ),
  6966. 'primary key' => array(
  6967. 0 => 'genotype_id',
  6968. ),
  6969. 'unique keys' => array(
  6970. 'genotype_c1' => array(
  6971. 0 => 'uniquename',
  6972. ),
  6973. ),
  6974. 'indexes' => array(
  6975. 'genotype_idx1' => array(
  6976. 0 => 'uniquename',
  6977. ),
  6978. 'genotype_idx2' => array(
  6979. 0 => 'name',
  6980. ),
  6981. ),
  6982. 'foreign keys' => array(
  6983. 'cvterm' => array(
  6984. 'table' => 'cvterm',
  6985. 'columns' => array(
  6986. 'type_id' => 'cvterm_id',
  6987. ),
  6988. ),
  6989. ),
  6990. 'table' => 'genotype',
  6991. 'referring_tables' => array(
  6992. 0 => 'feature_genotype',
  6993. 1 => 'genotypeprop',
  6994. 9 => 'nd_experiment_genotype',
  6995. 10 => 'phendesc',
  6996. 11 => 'phenotype_comparison',
  6997. 13 => 'phenstatement',
  6998. 14 => 'stock_genotype',
  6999. ),
  7000. );
  7001. return $description;
  7002. }
  7003. /**
  7004. * Implements hook_chado_schema_v1_2_genotypeprop()
  7005. * Purpose: To describe the structure of 'genotypeprop' to tripal
  7006. * @see tripal_core_chado_insert()
  7007. * @see tripal_core_chado_update()
  7008. * @see tripal_core_chado_select()
  7009. *
  7010. * @return
  7011. * An array describing the 'genotypeprop' table
  7012. *
  7013. * @ingroup tripal_chado_v1.2_schema_api
  7014. *
  7015. */
  7016. function tripal_core_chado_schema_v1_2_genotypeprop() {
  7017. $description = array(
  7018. 'description' => 'TODO: please describe this table!',
  7019. 'fields' => array(
  7020. 'genotypeprop_id' => array(
  7021. 'description' => 'TODO: please describe this field!',
  7022. 'type' => 'serial',
  7023. 'not null' => TRUE,
  7024. ),
  7025. 'genotype_id' => array(
  7026. 'description' => 'TODO: please describe this field!',
  7027. 'type' => 'int',
  7028. 'not null' => TRUE,
  7029. ),
  7030. 'type_id' => array(
  7031. 'description' => 'TODO: please describe this field!',
  7032. 'type' => 'int',
  7033. 'not null' => TRUE,
  7034. ),
  7035. 'value' => array(
  7036. 'description' => 'TODO: please describe this field!',
  7037. 'type' => 'text',
  7038. 'not null' => FALSE,
  7039. ),
  7040. 'rank' => array(
  7041. 'description' => 'TODO: please describe this field!',
  7042. 'type' => 'int',
  7043. 'not null' => TRUE,
  7044. 'default' => 0,
  7045. ),
  7046. ),
  7047. 'primary key' => array(
  7048. 0 => 'genotypeprop_id',
  7049. ),
  7050. 'unique keys' => array(
  7051. 'genotypeprop_c1' => array(
  7052. 0 => 'genotype_id',
  7053. 1 => 'type_id',
  7054. 2 => 'rank',
  7055. ),
  7056. ),
  7057. 'indexes' => array(
  7058. 'genotypeprop_idx1' => array(
  7059. 0 => 'genotype_id',
  7060. ),
  7061. 'genotypeprop_idx2' => array(
  7062. 0 => 'type_id',
  7063. ),
  7064. ),
  7065. 'foreign keys' => array(
  7066. 'cvterm' => array(
  7067. 'table' => 'cvterm',
  7068. 'columns' => array(
  7069. 'type_id' => 'cvterm_id',
  7070. ),
  7071. ),
  7072. 'genotype' => array(
  7073. 'table' => 'genotype',
  7074. 'columns' => array(
  7075. 'genotype_id' => 'genotype_id',
  7076. ),
  7077. ),
  7078. ),
  7079. 'table' => 'genotypeprop',
  7080. 'referring_tables' => NULL,
  7081. );
  7082. return $description;
  7083. }
  7084. /**
  7085. * Implements hook_chado_schema_v1_2_library()
  7086. * Purpose: To describe the structure of 'library' to tripal
  7087. * @see tripal_core_chado_insert()
  7088. * @see tripal_core_chado_update()
  7089. * @see tripal_core_chado_select()
  7090. *
  7091. * @return
  7092. * An array describing the 'library' table
  7093. *
  7094. * @ingroup tripal_chado_v1.2_schema_api
  7095. *
  7096. */
  7097. function tripal_core_chado_schema_v1_2_library() {
  7098. $description = array(
  7099. 'description' => 'TODO: please describe this table!',
  7100. 'fields' => array(
  7101. 'library_id' => array(
  7102. 'description' => 'TODO: please describe this field!',
  7103. 'type' => 'serial',
  7104. 'not null' => TRUE,
  7105. ),
  7106. 'organism_id' => array(
  7107. 'description' => 'TODO: please describe this field!',
  7108. 'type' => 'int',
  7109. 'not null' => TRUE,
  7110. ),
  7111. 'name' => array(
  7112. 'description' => 'TODO: please describe this field!',
  7113. 'type' => 'varchar',
  7114. 'length' => '255',
  7115. 'not null' => FALSE,
  7116. ),
  7117. 'uniquename' => array(
  7118. 'description' => 'TODO: please describe this field!',
  7119. 'type' => 'text',
  7120. 'not null' => TRUE,
  7121. ),
  7122. 'type_id' => array(
  7123. 'description' => 'TODO: please describe this field!',
  7124. 'type' => 'int',
  7125. 'not null' => TRUE,
  7126. ),
  7127. 'is_obsolete' => array(
  7128. 'description' => 'TODO: please describe this field!',
  7129. 'type' => 'int',
  7130. 'not null' => TRUE,
  7131. 'default' => 0,
  7132. ),
  7133. 'timeaccessioned' => array(
  7134. 'description' => 'TODO: please describe this field!',
  7135. 'type' => 'datetime',
  7136. 'not null' => TRUE,
  7137. 'default' => 'ow(',
  7138. ),
  7139. 'timelastmodified' => array(
  7140. 'description' => 'TODO: please describe this field!',
  7141. 'type' => 'datetime',
  7142. 'not null' => TRUE,
  7143. 'default' => 'ow(',
  7144. ),
  7145. ),
  7146. 'primary key' => array(
  7147. 0 => 'library_id',
  7148. ),
  7149. 'unique keys' => array(
  7150. 'library_c1' => array(
  7151. 0 => 'organism_id',
  7152. 1 => 'uniquename',
  7153. 2 => 'type_id',
  7154. ),
  7155. ),
  7156. 'indexes' => array(
  7157. 'library_idx1' => array(
  7158. 0 => 'organism_id',
  7159. ),
  7160. 'library_idx2' => array(
  7161. 0 => 'type_id',
  7162. ),
  7163. 'library_idx3' => array(
  7164. 0 => 'uniquename',
  7165. ),
  7166. 'library_name_ind1' => array(
  7167. 0 => 'name',
  7168. ),
  7169. ),
  7170. 'foreign keys' => array(
  7171. 'organism' => array(
  7172. 'table' => 'organism',
  7173. 'columns' => array(
  7174. 'organism_id' => 'organism_id',
  7175. ),
  7176. ),
  7177. 'cvterm' => array(
  7178. 'table' => 'cvterm',
  7179. 'columns' => array(
  7180. 'type_id' => 'cvterm_id',
  7181. ),
  7182. ),
  7183. ),
  7184. 'referring_tables' => array(
  7185. 0 => 'cell_line_library',
  7186. 1 => 'library_cvterm',
  7187. 2 => 'library_dbxref',
  7188. 3 => 'library_feature',
  7189. 4 => 'library_pub',
  7190. 5 => 'library_synonym',
  7191. 6 => 'libraryprop',
  7192. ),
  7193. 'table' => 'library',
  7194. );
  7195. return $description;
  7196. }
  7197. /**
  7198. * Implements hook_chado_schema_v1_2_library_cvterm()
  7199. * Purpose: To describe the structure of 'library_cvterm' to tripal
  7200. * @see tripal_core_chado_insert()
  7201. * @see tripal_core_chado_update()
  7202. * @see tripal_core_chado_select()
  7203. *
  7204. * @return
  7205. * An array describing the 'library_cvterm' table
  7206. *
  7207. * @ingroup tripal_chado_v1.2_schema_api
  7208. *
  7209. */
  7210. function tripal_core_chado_schema_v1_2_library_cvterm() {
  7211. $description = array(
  7212. 'description' => 'TODO: please describe this table!',
  7213. 'fields' => array(
  7214. 'library_cvterm_id' => array(
  7215. 'description' => 'TODO: please describe this field!',
  7216. 'type' => 'serial',
  7217. 'not null' => TRUE,
  7218. ),
  7219. 'library_id' => array(
  7220. 'description' => 'TODO: please describe this field!',
  7221. 'type' => 'int',
  7222. 'not null' => TRUE,
  7223. ),
  7224. 'cvterm_id' => array(
  7225. 'description' => 'TODO: please describe this field!',
  7226. 'type' => 'int',
  7227. 'not null' => TRUE,
  7228. ),
  7229. 'pub_id' => array(
  7230. 'description' => 'TODO: please describe this field!',
  7231. 'type' => 'int',
  7232. 'not null' => TRUE,
  7233. ),
  7234. ),
  7235. 'primary key' => array(
  7236. 0 => 'library_cvterm_id',
  7237. ),
  7238. 'unique keys' => array(
  7239. 'library_cvterm_c1' => array(
  7240. 0 => 'library_id',
  7241. 1 => 'cvterm_id',
  7242. 2 => 'pub_id',
  7243. ),
  7244. ),
  7245. 'indexes' => array(
  7246. 'library_cvterm_idx1' => array(
  7247. 0 => 'library_id',
  7248. ),
  7249. 'library_cvterm_idx2' => array(
  7250. 0 => 'cvterm_id',
  7251. ),
  7252. 'library_cvterm_idx3' => array(
  7253. 0 => 'pub_id',
  7254. ),
  7255. ),
  7256. 'foreign keys' => array(
  7257. 'cvterm' => array(
  7258. 'table' => 'cvterm',
  7259. 'columns' => array(
  7260. 'cvterm_id' => 'cvterm_id',
  7261. ),
  7262. ),
  7263. 'pub' => array(
  7264. 'table' => 'pub',
  7265. 'columns' => array(
  7266. 'pub_id' => 'pub_id',
  7267. ),
  7268. ),
  7269. 'library' => array(
  7270. 'table' => 'library',
  7271. 'columns' => array(
  7272. 'library_id' => 'library_id',
  7273. ),
  7274. ),
  7275. ),
  7276. 'table' => 'library_cvterm',
  7277. 'referring_tables' => NULL,
  7278. );
  7279. return $description;
  7280. }
  7281. /**
  7282. * Implements hook_chado_schema_v1_2_library_dbxref()
  7283. * Purpose: To describe the structure of 'library_dbxref' to tripal
  7284. * @see tripal_core_chado_insert()
  7285. * @see tripal_core_chado_update()
  7286. * @see tripal_core_chado_select()
  7287. *
  7288. * @return
  7289. * An array describing the 'library_dbxref' table
  7290. *
  7291. * @ingroup tripal_chado_v1.2_schema_api
  7292. *
  7293. */
  7294. function tripal_core_chado_schema_v1_2_library_dbxref() {
  7295. $description = array(
  7296. 'description' => 'TODO: please describe this table!',
  7297. 'fields' => array(
  7298. 'library_dbxref_id' => array(
  7299. 'description' => 'TODO: please describe this field!',
  7300. 'type' => 'serial',
  7301. 'not null' => TRUE,
  7302. ),
  7303. 'library_id' => array(
  7304. 'description' => 'TODO: please describe this field!',
  7305. 'type' => 'int',
  7306. 'not null' => TRUE,
  7307. ),
  7308. 'dbxref_id' => array(
  7309. 'description' => 'TODO: please describe this field!',
  7310. 'type' => 'int',
  7311. 'not null' => TRUE,
  7312. ),
  7313. 'is_current' => array(
  7314. 'description' => 'TODO: please describe this field!',
  7315. 'type' => 'boolean',
  7316. 'not null' => TRUE,
  7317. 'default' => 'ru',
  7318. ),
  7319. ),
  7320. 'primary key' => array(
  7321. 0 => 'library_dbxref_id',
  7322. ),
  7323. 'unique keys' => array(
  7324. 'library_dbxref_c1' => array(
  7325. 0 => 'library_id',
  7326. 1 => 'dbxref_id',
  7327. ),
  7328. ),
  7329. 'indexes' => array(
  7330. 'library_dbxref_idx1' => array(
  7331. 0 => 'library_id',
  7332. ),
  7333. 'library_dbxref_idx2' => array(
  7334. 0 => 'dbxref_id',
  7335. ),
  7336. ),
  7337. 'foreign keys' => array(
  7338. 'dbxref' => array(
  7339. 'table' => 'dbxref',
  7340. 'columns' => array(
  7341. 'dbxref_id' => 'dbxref_id',
  7342. ),
  7343. ),
  7344. 'library' => array(
  7345. 'table' => 'library',
  7346. 'columns' => array(
  7347. 'library_id' => 'library_id',
  7348. ),
  7349. ),
  7350. ),
  7351. 'table' => 'library_dbxref',
  7352. 'referring_tables' => NULL,
  7353. );
  7354. return $description;
  7355. }
  7356. /**
  7357. * Implements hook_chado_schema_v1_2_library_feature()
  7358. * Purpose: To describe the structure of 'library_feature' to tripal
  7359. * @see tripal_core_chado_insert()
  7360. * @see tripal_core_chado_update()
  7361. * @see tripal_core_chado_select()
  7362. *
  7363. * @return
  7364. * An array describing the 'library_feature' table
  7365. *
  7366. * @ingroup tripal_chado_v1.2_schema_api
  7367. *
  7368. */
  7369. function tripal_core_chado_schema_v1_2_library_feature() {
  7370. $description = array(
  7371. 'description' => 'TODO: please describe this table!',
  7372. 'fields' => array(
  7373. 'library_feature_id' => array(
  7374. 'description' => 'TODO: please describe this field!',
  7375. 'type' => 'serial',
  7376. 'not null' => TRUE,
  7377. ),
  7378. 'library_id' => array(
  7379. 'description' => 'TODO: please describe this field!',
  7380. 'type' => 'int',
  7381. 'not null' => TRUE,
  7382. ),
  7383. 'feature_id' => array(
  7384. 'description' => 'TODO: please describe this field!',
  7385. 'type' => 'int',
  7386. 'not null' => TRUE,
  7387. ),
  7388. ),
  7389. 'primary key' => array(
  7390. 0 => 'library_feature_id',
  7391. ),
  7392. 'unique keys' => array(
  7393. 'library_feature_c1' => array(
  7394. 0 => 'library_id',
  7395. 1 => 'feature_id',
  7396. ),
  7397. ),
  7398. 'indexes' => array(
  7399. 'library_feature_idx1' => array(
  7400. 0 => 'library_id',
  7401. ),
  7402. 'library_feature_idx2' => array(
  7403. 0 => 'feature_id',
  7404. ),
  7405. ),
  7406. 'foreign keys' => array(
  7407. 'feature' => array(
  7408. 'table' => 'feature',
  7409. 'columns' => array(
  7410. 'feature_id' => 'feature_id',
  7411. ),
  7412. ),
  7413. 'library' => array(
  7414. 'table' => 'library',
  7415. 'columns' => array(
  7416. 'library_id' => 'library_id',
  7417. ),
  7418. ),
  7419. ),
  7420. 'table' => 'library_feature',
  7421. 'referring_tables' => NULL,
  7422. );
  7423. return $description;
  7424. }
  7425. /**
  7426. * Implements hook_chado_schema_v1_2_library_pub()
  7427. * Purpose: To describe the structure of 'library_pub' to tripal
  7428. * @see tripal_core_chado_insert()
  7429. * @see tripal_core_chado_update()
  7430. * @see tripal_core_chado_select()
  7431. *
  7432. * @return
  7433. * An array describing the 'library_pub' table
  7434. *
  7435. * @ingroup tripal_chado_v1.2_schema_api
  7436. *
  7437. */
  7438. function tripal_core_chado_schema_v1_2_library_pub() {
  7439. $description = array(
  7440. 'description' => 'TODO: please describe this table!',
  7441. 'fields' => array(
  7442. 'library_pub_id' => array(
  7443. 'description' => 'TODO: please describe this field!',
  7444. 'type' => 'serial',
  7445. 'not null' => TRUE,
  7446. ),
  7447. 'library_id' => array(
  7448. 'description' => 'TODO: please describe this field!',
  7449. 'type' => 'int',
  7450. 'not null' => TRUE,
  7451. ),
  7452. 'pub_id' => array(
  7453. 'description' => 'TODO: please describe this field!',
  7454. 'type' => 'int',
  7455. 'not null' => TRUE,
  7456. ),
  7457. ),
  7458. 'primary key' => array(
  7459. 0 => 'library_pub_id',
  7460. ),
  7461. 'unique keys' => array(
  7462. 'library_pub_c1' => array(
  7463. 0 => 'library_id',
  7464. 1 => 'pub_id',
  7465. ),
  7466. ),
  7467. 'indexes' => array(
  7468. 'library_pub_idx1' => array(
  7469. 0 => 'library_id',
  7470. ),
  7471. 'library_pub_idx2' => array(
  7472. 0 => 'pub_id',
  7473. ),
  7474. ),
  7475. 'foreign keys' => array(
  7476. 'pub' => array(
  7477. 'table' => 'pub',
  7478. 'columns' => array(
  7479. 'pub_id' => 'pub_id',
  7480. ),
  7481. ),
  7482. 'library' => array(
  7483. 'table' => 'library',
  7484. 'columns' => array(
  7485. 'library_id' => 'library_id',
  7486. ),
  7487. ),
  7488. ),
  7489. 'table' => 'library_pub',
  7490. 'referring_tables' => NULL,
  7491. );
  7492. return $description;
  7493. }
  7494. /**
  7495. * Implements hook_chado_schema_v1_2_library_synonym()
  7496. * Purpose: To describe the structure of 'library_synonym' to tripal
  7497. * @see tripal_core_chado_insert()
  7498. * @see tripal_core_chado_update()
  7499. * @see tripal_core_chado_select()
  7500. *
  7501. * @return
  7502. * An array describing the 'library_synonym' table
  7503. *
  7504. * @ingroup tripal_chado_v1.2_schema_api
  7505. *
  7506. */
  7507. function tripal_core_chado_schema_v1_2_library_synonym() {
  7508. $description = array(
  7509. 'description' => 'TODO: please describe this table!',
  7510. 'fields' => array(
  7511. 'library_synonym_id' => array(
  7512. 'description' => 'TODO: please describe this field!',
  7513. 'type' => 'serial',
  7514. 'not null' => TRUE,
  7515. ),
  7516. 'synonym_id' => array(
  7517. 'description' => 'TODO: please describe this field!',
  7518. 'type' => 'int',
  7519. 'not null' => TRUE,
  7520. ),
  7521. 'library_id' => array(
  7522. 'description' => 'TODO: please describe this field!',
  7523. 'type' => 'int',
  7524. 'not null' => TRUE,
  7525. ),
  7526. 'pub_id' => array(
  7527. 'description' => 'TODO: please describe this field!',
  7528. 'type' => 'int',
  7529. 'not null' => TRUE,
  7530. ),
  7531. 'is_current' => array(
  7532. 'description' => 'TODO: please describe this field!',
  7533. 'type' => 'boolean',
  7534. 'not null' => TRUE,
  7535. 'default' => 'ru',
  7536. ),
  7537. 'is_internal' => array(
  7538. 'description' => 'TODO: please describe this field!',
  7539. 'type' => 'boolean',
  7540. 'not null' => TRUE,
  7541. 'default' => 'als',
  7542. ),
  7543. ),
  7544. 'primary key' => array(
  7545. 0 => 'library_synonym_id',
  7546. ),
  7547. 'unique keys' => array(
  7548. 'library_synonym_c1' => array(
  7549. 0 => 'synonym_id',
  7550. 1 => 'library_id',
  7551. 2 => 'pub_id',
  7552. ),
  7553. ),
  7554. 'indexes' => array(
  7555. 'library_synonym_idx1' => array(
  7556. 0 => 'synonym_id',
  7557. ),
  7558. 'library_synonym_idx2' => array(
  7559. 0 => 'library_id',
  7560. ),
  7561. 'library_synonym_idx3' => array(
  7562. 0 => 'pub_id',
  7563. ),
  7564. ),
  7565. 'foreign keys' => array(
  7566. 'pub' => array(
  7567. 'table' => 'pub',
  7568. 'columns' => array(
  7569. 'pub_id' => 'pub_id',
  7570. ),
  7571. ),
  7572. 'synonym' => array(
  7573. 'table' => 'synonym',
  7574. 'columns' => array(
  7575. 'synonym_id' => 'synonym_id',
  7576. ),
  7577. ),
  7578. 'library' => array(
  7579. 'table' => 'library',
  7580. 'columns' => array(
  7581. 'library_id' => 'library_id',
  7582. ),
  7583. ),
  7584. ),
  7585. 'table' => 'library_synonym',
  7586. 'referring_tables' => NULL,
  7587. );
  7588. return $description;
  7589. }
  7590. /**
  7591. * Implements hook_chado_schema_v1_2_libraryprop()
  7592. * Purpose: To describe the structure of 'libraryprop' to tripal
  7593. * @see tripal_core_chado_insert()
  7594. * @see tripal_core_chado_update()
  7595. * @see tripal_core_chado_select()
  7596. *
  7597. * @return
  7598. * An array describing the 'libraryprop' table
  7599. *
  7600. * @ingroup tripal_chado_v1.2_schema_api
  7601. *
  7602. */
  7603. function tripal_core_chado_schema_v1_2_libraryprop() {
  7604. $description = array(
  7605. 'description' => 'TODO: please describe this table!',
  7606. 'fields' => array(
  7607. 'libraryprop_id' => array(
  7608. 'description' => 'TODO: please describe this field!',
  7609. 'type' => 'serial',
  7610. 'not null' => TRUE,
  7611. ),
  7612. 'library_id' => array(
  7613. 'description' => 'TODO: please describe this field!',
  7614. 'type' => 'int',
  7615. 'not null' => TRUE,
  7616. ),
  7617. 'type_id' => array(
  7618. 'description' => 'TODO: please describe this field!',
  7619. 'type' => 'int',
  7620. 'not null' => TRUE,
  7621. ),
  7622. 'value' => array(
  7623. 'description' => 'TODO: please describe this field!',
  7624. 'type' => 'text',
  7625. 'not null' => FALSE,
  7626. ),
  7627. 'rank' => array(
  7628. 'description' => 'TODO: please describe this field!',
  7629. 'type' => 'int',
  7630. 'not null' => TRUE,
  7631. 'default' => 0,
  7632. ),
  7633. ),
  7634. 'primary key' => array(
  7635. 0 => 'libraryprop_id',
  7636. ),
  7637. 'unique keys' => array(
  7638. 'libraryprop_c1' => array(
  7639. 0 => 'library_id',
  7640. 1 => 'type_id',
  7641. 2 => 'rank',
  7642. ),
  7643. ),
  7644. 'indexes' => array(
  7645. 'libraryprop_idx1' => array(
  7646. 0 => 'library_id',
  7647. ),
  7648. 'libraryprop_idx2' => array(
  7649. 0 => 'type_id',
  7650. ),
  7651. ),
  7652. 'foreign keys' => array(
  7653. 'cvterm' => array(
  7654. 'table' => 'cvterm',
  7655. 'columns' => array(
  7656. 'type_id' => 'cvterm_id',
  7657. ),
  7658. ),
  7659. 'library' => array(
  7660. 'table' => 'library',
  7661. 'columns' => array(
  7662. 'library_id' => 'library_id',
  7663. ),
  7664. ),
  7665. ),
  7666. 'table' => 'libraryprop',
  7667. 'referring_tables' => array(
  7668. 0 => 'libraryprop_pub',
  7669. ),
  7670. );
  7671. return $description;
  7672. }
  7673. /**
  7674. * Implements hook_chado_schema_v1_2_libraryprop_pub()
  7675. * Purpose: To describe the structure of 'libraryprop_pub' to tripal
  7676. * @see tripal_core_chado_insert()
  7677. * @see tripal_core_chado_update()
  7678. * @see tripal_core_chado_select()
  7679. *
  7680. * @return
  7681. * An array describing the 'libraryprop_pub' table
  7682. *
  7683. * @ingroup tripal_chado_v1.2_schema_api
  7684. *
  7685. */
  7686. function tripal_core_chado_schema_v1_2_libraryprop_pub() {
  7687. $description = array(
  7688. 'description' => 'TODO: please describe this table!',
  7689. 'fields' => array(
  7690. 'libraryprop_pub_id' => array(
  7691. 'description' => 'TODO: please describe this field!',
  7692. 'type' => 'serial',
  7693. 'not null' => TRUE,
  7694. ),
  7695. 'libraryprop_id' => array(
  7696. 'description' => 'TODO: please describe this field!',
  7697. 'type' => 'int',
  7698. 'not null' => TRUE,
  7699. ),
  7700. 'pub_id' => array(
  7701. 'description' => 'TODO: please describe this field!',
  7702. 'type' => 'int',
  7703. 'not null' => TRUE,
  7704. ),
  7705. ),
  7706. 'primary key' => array(
  7707. 0 => 'libraryprop_pub_id',
  7708. ),
  7709. 'unique keys' => array(
  7710. 'libraryprop_pub_c1' => array(
  7711. 0 => 'libraryprop_id',
  7712. 1 => 'pub_id',
  7713. ),
  7714. ),
  7715. 'indexes' => array(
  7716. 'libraryprop_pub_idx1' => array(
  7717. 0 => 'libraryprop_id',
  7718. ),
  7719. 'libraryprop_pub_idx2' => array(
  7720. 0 => 'pub_id',
  7721. ),
  7722. ),
  7723. 'foreign keys' => array(
  7724. 'pub' => array(
  7725. 'table' => 'pub',
  7726. 'columns' => array(
  7727. 'pub_id' => 'pub_id',
  7728. ),
  7729. ),
  7730. 'libraryprop' => array(
  7731. 'table' => 'libraryprop',
  7732. 'columns' => array(
  7733. 'libraryprop_id' => 'libraryprop_id',
  7734. ),
  7735. ),
  7736. ),
  7737. 'table' => 'libraryprop_pub',
  7738. 'referring_tables' => NULL,
  7739. );
  7740. return $description;
  7741. }
  7742. /**
  7743. * Implements hook_chado_schema_v1_2_magedocumentation()
  7744. * Purpose: To describe the structure of 'magedocumentation' to tripal
  7745. * @see tripal_core_chado_insert()
  7746. * @see tripal_core_chado_update()
  7747. * @see tripal_core_chado_select()
  7748. *
  7749. * @return
  7750. * An array describing the 'magedocumentation' table
  7751. *
  7752. * @ingroup tripal_chado_v1.2_schema_api
  7753. *
  7754. */
  7755. function tripal_core_chado_schema_v1_2_magedocumentation() {
  7756. $description = array(
  7757. 'description' => 'TODO: please describe this table!',
  7758. 'fields' => array(
  7759. 'magedocumentation_id' => array(
  7760. 'description' => 'TODO: please describe this field!',
  7761. 'type' => 'serial',
  7762. 'not null' => TRUE,
  7763. ),
  7764. 'mageml_id' => array(
  7765. 'description' => 'TODO: please describe this field!',
  7766. 'type' => 'int',
  7767. 'not null' => TRUE,
  7768. ),
  7769. 'tableinfo_id' => array(
  7770. 'description' => 'TODO: please describe this field!',
  7771. 'type' => 'int',
  7772. 'not null' => TRUE,
  7773. ),
  7774. 'row_id' => array(
  7775. 'description' => 'TODO: please describe this field!',
  7776. 'type' => 'int',
  7777. 'not null' => TRUE,
  7778. ),
  7779. 'mageidentifier' => array(
  7780. 'description' => 'TODO: please describe this field!',
  7781. 'type' => 'text',
  7782. 'not null' => TRUE,
  7783. ),
  7784. ),
  7785. 'primary key' => array(
  7786. 0 => 'magedocumentation_id',
  7787. ),
  7788. 'indexes' => array(
  7789. 'magedocumentation_idx1' => array(
  7790. 0 => 'mageml_id',
  7791. ),
  7792. 'magedocumentation_idx2' => array(
  7793. 0 => 'tableinfo_id',
  7794. ),
  7795. 'magedocumentation_idx3' => array(
  7796. 0 => 'row_id',
  7797. ),
  7798. ),
  7799. 'foreign keys' => array(
  7800. 'tableinfo' => array(
  7801. 'table' => 'tableinfo',
  7802. 'columns' => array(
  7803. 'tableinfo_id' => 'tableinfo_id',
  7804. ),
  7805. ),
  7806. 'mageml' => array(
  7807. 'table' => 'mageml',
  7808. 'columns' => array(
  7809. 'mageml_id' => 'mageml_id',
  7810. ),
  7811. ),
  7812. ),
  7813. 'table' => 'magedocumentation',
  7814. 'referring_tables' => NULL,
  7815. );
  7816. return $description;
  7817. }
  7818. /**
  7819. * Implements hook_chado_schema_v1_2_mageml()
  7820. * Purpose: To describe the structure of 'mageml' to tripal
  7821. * @see tripal_core_chado_insert()
  7822. * @see tripal_core_chado_update()
  7823. * @see tripal_core_chado_select()
  7824. *
  7825. * @return
  7826. * An array describing the 'mageml' table
  7827. *
  7828. * @ingroup tripal_chado_v1.2_schema_api
  7829. *
  7830. */
  7831. function tripal_core_chado_schema_v1_2_mageml() {
  7832. $description = array(
  7833. 'description' => 'TODO: please describe this table!',
  7834. 'fields' => array(
  7835. 'mageml_id' => array(
  7836. 'description' => 'TODO: please describe this field!',
  7837. 'type' => 'serial',
  7838. 'not null' => TRUE,
  7839. ),
  7840. 'mage_package' => array(
  7841. 'description' => 'TODO: please describe this field!',
  7842. 'type' => 'text',
  7843. 'not null' => TRUE,
  7844. ),
  7845. 'mage_ml' => array(
  7846. 'description' => 'TODO: please describe this field!',
  7847. 'type' => 'text',
  7848. 'not null' => TRUE,
  7849. ),
  7850. ),
  7851. 'primary key' => array(
  7852. 0 => 'mageml_id',
  7853. ),
  7854. 'foreign keys' => array(
  7855. ),
  7856. 'table' => 'mageml',
  7857. 'referring_tables' => array(
  7858. 0 => 'magedocumentation',
  7859. ),
  7860. );
  7861. return $description;
  7862. }
  7863. /**
  7864. * Implements hook_chado_schema_v1_2_nd_experiment()
  7865. * Purpose: To describe the structure of 'nd_experiment' to tripal
  7866. * @see tripal_core_chado_insert()
  7867. * @see tripal_core_chado_update()
  7868. * @see tripal_core_chado_select()
  7869. *
  7870. * @return
  7871. * An array describing the 'nd_experiment' table
  7872. *
  7873. * @ingroup tripal_chado_v1.2_schema_api
  7874. *
  7875. */
  7876. function tripal_core_chado_schema_v1_2_nd_experiment() {
  7877. $description = array(
  7878. 'description' => 'TODO: please describe this table!',
  7879. 'fields' => array(
  7880. 'nd_experiment_id' => array(
  7881. 'description' => 'TODO: please describe this field!',
  7882. 'type' => 'serial',
  7883. 'not null' => TRUE,
  7884. ),
  7885. 'nd_geolocation_id' => array(
  7886. 'description' => 'TODO: please describe this field!',
  7887. 'type' => 'int',
  7888. 'not null' => TRUE,
  7889. ),
  7890. 'type_id' => array(
  7891. 'description' => 'TODO: please describe this field!',
  7892. 'type' => 'int',
  7893. 'not null' => TRUE,
  7894. ),
  7895. ),
  7896. 'primary key' => array(
  7897. 0 => 'nd_experiment_id',
  7898. ),
  7899. 'foreign keys' => array(
  7900. 'cvterm' => array(
  7901. 'table' => 'cvterm',
  7902. 'columns' => array(
  7903. 'type_id' => 'cvterm_id',
  7904. ),
  7905. ),
  7906. 'nd_geolocation' => array(
  7907. 'table' => 'nd_geolocation',
  7908. 'columns' => array(
  7909. 'nd_geolocation_id' => 'nd_geolocation_id',
  7910. ),
  7911. ),
  7912. ),
  7913. 'table' => 'nd_experiment',
  7914. 'referring_tables' => array(
  7915. 0 => 'nd_experiment_contact',
  7916. 1 => 'nd_experiment_dbxref',
  7917. 2 => 'nd_experiment_genotype',
  7918. 3 => 'nd_experiment_phenotype',
  7919. 4 => 'nd_experiment_project',
  7920. 5 => 'nd_experiment_protocol',
  7921. 6 => 'nd_experiment_pub',
  7922. 7 => 'nd_experiment_stock',
  7923. 8 => 'nd_experimentprop',
  7924. ),
  7925. );
  7926. return $description;
  7927. }
  7928. /**
  7929. * Implements hook_chado_schema_v1_2_nd_experiment_contact()
  7930. * Purpose: To describe the structure of 'nd_experiment_contact' to tripal
  7931. * @see tripal_core_chado_insert()
  7932. * @see tripal_core_chado_update()
  7933. * @see tripal_core_chado_select()
  7934. *
  7935. * @return
  7936. * An array describing the 'nd_experiment_contact' table
  7937. *
  7938. * @ingroup tripal_chado_v1.2_schema_api
  7939. *
  7940. */
  7941. function tripal_core_chado_schema_v1_2_nd_experiment_contact() {
  7942. $description = array(
  7943. 'description' => 'TODO: please describe this table!',
  7944. 'fields' => array(
  7945. 'nd_experiment_contact_id' => array(
  7946. 'description' => 'TODO: please describe this field!',
  7947. 'type' => 'serial',
  7948. 'not null' => TRUE,
  7949. ),
  7950. 'nd_experiment_id' => array(
  7951. 'description' => 'TODO: please describe this field!',
  7952. 'type' => 'int',
  7953. 'not null' => TRUE,
  7954. ),
  7955. 'contact_id' => array(
  7956. 'description' => 'TODO: please describe this field!',
  7957. 'type' => 'int',
  7958. 'not null' => TRUE,
  7959. ),
  7960. ),
  7961. 'primary key' => array(
  7962. 0 => 'nd_experiment_contact_id',
  7963. ),
  7964. 'foreign keys' => array(
  7965. 'contact' => array(
  7966. 'table' => 'contact',
  7967. 'columns' => array(
  7968. 'contact_id' => 'contact_id',
  7969. ),
  7970. ),
  7971. 'nd_experiment' => array(
  7972. 'table' => 'nd_experiment',
  7973. 'columns' => array(
  7974. 'nd_experiment_id' => 'nd_experiment_id',
  7975. ),
  7976. ),
  7977. ),
  7978. 'table' => 'nd_experiment_contact',
  7979. 'referring_tables' => NULL,
  7980. );
  7981. return $description;
  7982. }
  7983. /**
  7984. * Implements hook_chado_schema_v1_2_nd_experiment_dbxref()
  7985. * Purpose: To describe the structure of 'nd_experiment_dbxref' to tripal
  7986. * @see tripal_core_chado_insert()
  7987. * @see tripal_core_chado_update()
  7988. * @see tripal_core_chado_select()
  7989. *
  7990. * @return
  7991. * An array describing the 'nd_experiment_dbxref' table
  7992. *
  7993. * @ingroup tripal_chado_v1.2_schema_api
  7994. *
  7995. */
  7996. function tripal_core_chado_schema_v1_2_nd_experiment_dbxref() {
  7997. $description = array(
  7998. 'description' => 'TODO: please describe this table!',
  7999. 'fields' => array(
  8000. 'nd_experiment_dbxref_id' => array(
  8001. 'description' => 'TODO: please describe this field!',
  8002. 'type' => 'serial',
  8003. 'not null' => TRUE,
  8004. ),
  8005. 'nd_experiment_id' => array(
  8006. 'description' => 'TODO: please describe this field!',
  8007. 'type' => 'int',
  8008. 'not null' => TRUE,
  8009. ),
  8010. 'dbxref_id' => array(
  8011. 'description' => 'TODO: please describe this field!',
  8012. 'type' => 'int',
  8013. 'not null' => TRUE,
  8014. ),
  8015. ),
  8016. 'primary key' => array(
  8017. 0 => 'nd_experiment_dbxref_id',
  8018. ),
  8019. 'foreign keys' => array(
  8020. 'dbxref' => array(
  8021. 'table' => 'dbxref',
  8022. 'columns' => array(
  8023. 'dbxref_id' => 'dbxref_id',
  8024. ),
  8025. ),
  8026. 'nd_experiment' => array(
  8027. 'table' => 'nd_experiment',
  8028. 'columns' => array(
  8029. 'nd_experiment_id' => 'nd_experiment_id',
  8030. ),
  8031. ),
  8032. ),
  8033. 'table' => 'nd_experiment_dbxref',
  8034. 'referring_tables' => NULL,
  8035. );
  8036. return $description;
  8037. }
  8038. /**
  8039. * Implements hook_chado_schema_v1_2_nd_experiment_genotype()
  8040. * Purpose: To describe the structure of 'nd_experiment_genotype' to tripal
  8041. * @see tripal_core_chado_insert()
  8042. * @see tripal_core_chado_update()
  8043. * @see tripal_core_chado_select()
  8044. *
  8045. * @return
  8046. * An array describing the 'nd_experiment_genotype' table
  8047. *
  8048. * @ingroup tripal_chado_v1.2_schema_api
  8049. *
  8050. */
  8051. function tripal_core_chado_schema_v1_2_nd_experiment_genotype() {
  8052. $description = array(
  8053. 'description' => 'TODO: please describe this table!',
  8054. 'fields' => array(
  8055. 'nd_experiment_genotype_id' => array(
  8056. 'description' => 'TODO: please describe this field!',
  8057. 'type' => 'serial',
  8058. 'not null' => TRUE,
  8059. ),
  8060. 'nd_experiment_id' => array(
  8061. 'description' => 'TODO: please describe this field!',
  8062. 'type' => 'int',
  8063. 'not null' => TRUE,
  8064. ),
  8065. 'genotype_id' => array(
  8066. 'description' => 'TODO: please describe this field!',
  8067. 'type' => 'int',
  8068. 'not null' => TRUE,
  8069. ),
  8070. ),
  8071. 'primary key' => array(
  8072. 0 => 'nd_experiment_genotype_id',
  8073. ),
  8074. 'unique keys' => array(
  8075. 'nd_experiment_genotype_c1' => array(
  8076. 0 => 'nd_experiment_id',
  8077. 1 => 'genotype_id',
  8078. ),
  8079. ),
  8080. 'foreign keys' => array(
  8081. 'genotype' => array(
  8082. 'table' => 'genotype',
  8083. 'columns' => array(
  8084. 'genotype_id' => 'genotype_id',
  8085. ),
  8086. ),
  8087. 'nd_experiment' => array(
  8088. 'table' => 'nd_experiment',
  8089. 'columns' => array(
  8090. 'nd_experiment_id' => 'nd_experiment_id',
  8091. ),
  8092. ),
  8093. ),
  8094. 'table' => 'nd_experiment_genotype',
  8095. 'referring_tables' => NULL,
  8096. );
  8097. return $description;
  8098. }
  8099. /**
  8100. * Implements hook_chado_schema_v1_2_nd_experiment_phenotype()
  8101. * Purpose: To describe the structure of 'nd_experiment_phenotype' to tripal
  8102. * @see tripal_core_chado_insert()
  8103. * @see tripal_core_chado_update()
  8104. * @see tripal_core_chado_select()
  8105. *
  8106. * @return
  8107. * An array describing the 'nd_experiment_phenotype' table
  8108. *
  8109. * @ingroup tripal_chado_v1.2_schema_api
  8110. *
  8111. */
  8112. function tripal_core_chado_schema_v1_2_nd_experiment_phenotype() {
  8113. $description = array(
  8114. 'description' => 'TODO: please describe this table!',
  8115. 'fields' => array(
  8116. 'nd_experiment_phenotype_id' => array(
  8117. 'description' => 'TODO: please describe this field!',
  8118. 'type' => 'serial',
  8119. 'not null' => TRUE,
  8120. ),
  8121. 'nd_experiment_id' => array(
  8122. 'description' => 'TODO: please describe this field!',
  8123. 'type' => 'int',
  8124. 'not null' => TRUE,
  8125. ),
  8126. 'phenotype_id' => array(
  8127. 'description' => 'TODO: please describe this field!',
  8128. 'type' => 'int',
  8129. 'not null' => TRUE,
  8130. ),
  8131. ),
  8132. 'primary key' => array(
  8133. 0 => 'nd_experiment_phenotype_id',
  8134. ),
  8135. 'unique keys' => array(
  8136. 'nd_experiment_phenotype_c1' => array(
  8137. 0 => 'nd_experiment_id',
  8138. 1 => 'phenotype_id',
  8139. ),
  8140. ),
  8141. 'foreign keys' => array(
  8142. 'phenotype' => array(
  8143. 'table' => 'phenotype',
  8144. 'columns' => array(
  8145. 'phenotype_id' => 'phenotype_id',
  8146. ),
  8147. ),
  8148. 'nd_experiment' => array(
  8149. 'table' => 'nd_experiment',
  8150. 'columns' => array(
  8151. 'nd_experiment_id' => 'nd_experiment_id',
  8152. ),
  8153. ),
  8154. ),
  8155. 'table' => 'nd_experiment_phenotype',
  8156. 'referring_tables' => NULL,
  8157. );
  8158. return $description;
  8159. }
  8160. /**
  8161. * Implements hook_chado_schema_v1_2_nd_experiment_project()
  8162. * Purpose: To describe the structure of 'nd_experiment_project' to tripal
  8163. * @see tripal_core_chado_insert()
  8164. * @see tripal_core_chado_update()
  8165. * @see tripal_core_chado_select()
  8166. *
  8167. * @return
  8168. * An array describing the 'nd_experiment_project' table
  8169. *
  8170. * @ingroup tripal_chado_v1.2_schema_api
  8171. *
  8172. */
  8173. function tripal_core_chado_schema_v1_2_nd_experiment_project() {
  8174. $description = array(
  8175. 'description' => 'TODO: please describe this table!',
  8176. 'fields' => array(
  8177. 'nd_experiment_project_id' => array(
  8178. 'description' => 'TODO: please describe this field!',
  8179. 'type' => 'serial',
  8180. 'not null' => TRUE,
  8181. ),
  8182. 'project_id' => array(
  8183. 'description' => 'TODO: please describe this field!',
  8184. 'type' => 'int',
  8185. 'not null' => TRUE,
  8186. ),
  8187. 'nd_experiment_id' => array(
  8188. 'description' => 'TODO: please describe this field!',
  8189. 'type' => 'int',
  8190. 'not null' => TRUE,
  8191. ),
  8192. ),
  8193. 'primary key' => array(
  8194. 0 => 'nd_experiment_project_id',
  8195. ),
  8196. 'foreign keys' => array(
  8197. 'project' => array(
  8198. 'table' => 'project',
  8199. 'columns' => array(
  8200. 'project_id' => 'project_id',
  8201. ),
  8202. ),
  8203. 'nd_experiment' => array(
  8204. 'table' => 'nd_experiment',
  8205. 'columns' => array(
  8206. 'nd_experiment_id' => 'nd_experiment_id',
  8207. ),
  8208. ),
  8209. ),
  8210. 'table' => 'nd_experiment_project',
  8211. 'referring_tables' => NULL,
  8212. );
  8213. return $description;
  8214. }
  8215. /**
  8216. * Implements hook_chado_schema_v1_2_nd_experiment_protocol()
  8217. * Purpose: To describe the structure of 'nd_experiment_protocol' to tripal
  8218. * @see tripal_core_chado_insert()
  8219. * @see tripal_core_chado_update()
  8220. * @see tripal_core_chado_select()
  8221. *
  8222. * @return
  8223. * An array describing the 'nd_experiment_protocol' table
  8224. *
  8225. * @ingroup tripal_chado_v1.2_schema_api
  8226. *
  8227. */
  8228. function tripal_core_chado_schema_v1_2_nd_experiment_protocol() {
  8229. $description = array(
  8230. 'description' => 'TODO: please describe this table!',
  8231. 'fields' => array(
  8232. 'nd_experiment_protocol_id' => array(
  8233. 'description' => 'TODO: please describe this field!',
  8234. 'type' => 'serial',
  8235. 'not null' => TRUE,
  8236. ),
  8237. 'nd_experiment_id' => array(
  8238. 'description' => 'TODO: please describe this field!',
  8239. 'type' => 'int',
  8240. 'not null' => TRUE,
  8241. ),
  8242. 'nd_protocol_id' => array(
  8243. 'description' => 'TODO: please describe this field!',
  8244. 'type' => 'int',
  8245. 'not null' => TRUE,
  8246. ),
  8247. ),
  8248. 'primary key' => array(
  8249. 0 => 'nd_experiment_protocol_id',
  8250. ),
  8251. 'foreign keys' => array(
  8252. 'nd_experiment' => array(
  8253. 'table' => 'nd_experiment',
  8254. 'columns' => array(
  8255. 'nd_experiment_id' => 'nd_experiment_id',
  8256. ),
  8257. ),
  8258. 'nd_protocol' => array(
  8259. 'table' => 'nd_protocol',
  8260. 'columns' => array(
  8261. 'nd_protocol_id' => 'nd_protocol_id',
  8262. ),
  8263. ),
  8264. ),
  8265. 'table' => 'nd_experiment_protocol',
  8266. 'referring_tables' => NULL,
  8267. );
  8268. return $description;
  8269. }
  8270. /**
  8271. * Implements hook_chado_schema_v1_2_nd_experiment_pub()
  8272. * Purpose: To describe the structure of 'nd_experiment_pub' to tripal
  8273. * @see tripal_core_chado_insert()
  8274. * @see tripal_core_chado_update()
  8275. * @see tripal_core_chado_select()
  8276. *
  8277. * @return
  8278. * An array describing the 'nd_experiment_pub' table
  8279. *
  8280. * @ingroup tripal_chado_v1.2_schema_api
  8281. *
  8282. */
  8283. function tripal_core_chado_schema_v1_2_nd_experiment_pub() {
  8284. $description = array(
  8285. 'description' => 'TODO: please describe this table!',
  8286. 'fields' => array(
  8287. 'nd_experiment_pub_id' => array(
  8288. 'description' => 'TODO: please describe this field!',
  8289. 'type' => 'serial',
  8290. 'not null' => TRUE,
  8291. ),
  8292. 'nd_experiment_id' => array(
  8293. 'description' => 'TODO: please describe this field!',
  8294. 'type' => 'int',
  8295. 'not null' => TRUE,
  8296. ),
  8297. 'pub_id' => array(
  8298. 'description' => 'TODO: please describe this field!',
  8299. 'type' => 'int',
  8300. 'not null' => TRUE,
  8301. ),
  8302. ),
  8303. 'primary key' => array(
  8304. 0 => 'nd_experiment_pub_id',
  8305. ),
  8306. 'unique keys' => array(
  8307. 'nd_experiment_pub_c1' => array(
  8308. 0 => 'nd_experiment_id',
  8309. 1 => 'pub_id',
  8310. ),
  8311. ),
  8312. 'indexes' => array(
  8313. 'nd_experiment_pub_idx1' => array(
  8314. 0 => 'nd_experiment_id',
  8315. ),
  8316. 'nd_experiment_pub_idx2' => array(
  8317. 0 => 'pub_id',
  8318. ),
  8319. ),
  8320. 'foreign keys' => array(
  8321. 'pub' => array(
  8322. 'table' => 'pub',
  8323. 'columns' => array(
  8324. 'pub_id' => 'pub_id',
  8325. ),
  8326. ),
  8327. 'nd_experiment' => array(
  8328. 'table' => 'nd_experiment',
  8329. 'columns' => array(
  8330. 'nd_experiment_id' => 'nd_experiment_id',
  8331. ),
  8332. ),
  8333. ),
  8334. 'table' => 'nd_experiment_pub',
  8335. 'referring_tables' => NULL,
  8336. );
  8337. return $description;
  8338. }
  8339. /**
  8340. * Implements hook_chado_schema_v1_2_nd_experiment_stock()
  8341. * Purpose: To describe the structure of 'nd_experiment_stock' to tripal
  8342. * @see tripal_core_chado_insert()
  8343. * @see tripal_core_chado_update()
  8344. * @see tripal_core_chado_select()
  8345. *
  8346. * @return
  8347. * An array describing the 'nd_experiment_stock' table
  8348. *
  8349. * @ingroup tripal_chado_v1.2_schema_api
  8350. *
  8351. */
  8352. function tripal_core_chado_schema_v1_2_nd_experiment_stock() {
  8353. $description = array(
  8354. 'description' => 'TODO: please describe this table!',
  8355. 'fields' => array(
  8356. 'nd_experiment_stock_id' => array(
  8357. 'description' => 'TODO: please describe this field!',
  8358. 'type' => 'serial',
  8359. 'not null' => TRUE,
  8360. ),
  8361. 'nd_experiment_id' => array(
  8362. 'description' => 'TODO: please describe this field!',
  8363. 'type' => 'int',
  8364. 'not null' => TRUE,
  8365. ),
  8366. 'stock_id' => array(
  8367. 'description' => 'TODO: please describe this field!',
  8368. 'type' => 'int',
  8369. 'not null' => TRUE,
  8370. ),
  8371. 'type_id' => array(
  8372. 'description' => 'TODO: please describe this field!',
  8373. 'type' => 'int',
  8374. 'not null' => TRUE,
  8375. ),
  8376. ),
  8377. 'primary key' => array(
  8378. 0 => 'nd_experiment_stock_id',
  8379. ),
  8380. 'foreign keys' => array(
  8381. 'cvterm' => array(
  8382. 'table' => 'cvterm',
  8383. 'columns' => array(
  8384. 'type_id' => 'cvterm_id',
  8385. ),
  8386. ),
  8387. 'stock' => array(
  8388. 'table' => 'stock',
  8389. 'columns' => array(
  8390. 'stock_id' => 'stock_id',
  8391. ),
  8392. ),
  8393. 'nd_experiment' => array(
  8394. 'table' => 'nd_experiment',
  8395. 'columns' => array(
  8396. 'nd_experiment_id' => 'nd_experiment_id',
  8397. ),
  8398. ),
  8399. ),
  8400. 'table' => 'nd_experiment_stock',
  8401. 'referring_tables' => array(
  8402. 0 => 'nd_experiment_stock_dbxref',
  8403. 1 => 'nd_experiment_stockprop',
  8404. ),
  8405. );
  8406. return $description;
  8407. }
  8408. /**
  8409. * Implements hook_chado_schema_v1_2_nd_experiment_stock_dbxref()
  8410. * Purpose: To describe the structure of 'nd_experiment_stock_dbxref' to tripal
  8411. * @see tripal_core_chado_insert()
  8412. * @see tripal_core_chado_update()
  8413. * @see tripal_core_chado_select()
  8414. *
  8415. * @return
  8416. * An array describing the 'nd_experiment_stock_dbxref' table
  8417. *
  8418. * @ingroup tripal_chado_v1.2_schema_api
  8419. *
  8420. */
  8421. function tripal_core_chado_schema_v1_2_nd_experiment_stock_dbxref() {
  8422. $description = array(
  8423. 'description' => 'TODO: please describe this table!',
  8424. 'fields' => array(
  8425. 'nd_experiment_stock_dbxref_id' => array(
  8426. 'description' => 'TODO: please describe this field!',
  8427. 'type' => 'serial',
  8428. 'not null' => TRUE,
  8429. ),
  8430. 'nd_experiment_stock_id' => array(
  8431. 'description' => 'TODO: please describe this field!',
  8432. 'type' => 'int',
  8433. 'not null' => TRUE,
  8434. ),
  8435. 'dbxref_id' => array(
  8436. 'description' => 'TODO: please describe this field!',
  8437. 'type' => 'int',
  8438. 'not null' => TRUE,
  8439. ),
  8440. ),
  8441. 'primary key' => array(
  8442. 0 => 'nd_experiment_stock_dbxref_id',
  8443. ),
  8444. 'foreign keys' => array(
  8445. 'dbxref' => array(
  8446. 'table' => 'dbxref',
  8447. 'columns' => array(
  8448. 'dbxref_id' => 'dbxref_id',
  8449. ),
  8450. ),
  8451. 'nd_experiment_stock' => array(
  8452. 'table' => 'nd_experiment_stock',
  8453. 'columns' => array(
  8454. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  8455. ),
  8456. ),
  8457. ),
  8458. 'table' => 'nd_experiment_stock_dbxref',
  8459. 'referring_tables' => NULL,
  8460. );
  8461. return $description;
  8462. }
  8463. /**
  8464. * Implements hook_chado_schema_v1_2_nd_experiment_stockprop()
  8465. * Purpose: To describe the structure of 'nd_experiment_stockprop' to tripal
  8466. * @see tripal_core_chado_insert()
  8467. * @see tripal_core_chado_update()
  8468. * @see tripal_core_chado_select()
  8469. *
  8470. * @return
  8471. * An array describing the 'nd_experiment_stockprop' table
  8472. *
  8473. * @ingroup tripal_chado_v1.2_schema_api
  8474. *
  8475. */
  8476. function tripal_core_chado_schema_v1_2_nd_experiment_stockprop() {
  8477. $description = array(
  8478. 'description' => 'TODO: please describe this table!',
  8479. 'fields' => array(
  8480. 'nd_experiment_stockprop_id' => array(
  8481. 'description' => 'TODO: please describe this field!',
  8482. 'type' => 'serial',
  8483. 'not null' => TRUE,
  8484. ),
  8485. 'nd_experiment_stock_id' => array(
  8486. 'description' => 'TODO: please describe this field!',
  8487. 'type' => 'int',
  8488. 'not null' => TRUE,
  8489. ),
  8490. 'type_id' => array(
  8491. 'description' => 'TODO: please describe this field!',
  8492. 'type' => 'int',
  8493. 'not null' => TRUE,
  8494. ),
  8495. 'value' => array(
  8496. 'description' => 'TODO: please describe this field!',
  8497. 'type' => 'text',
  8498. 'not null' => FALSE,
  8499. ),
  8500. 'rank' => array(
  8501. 'description' => 'TODO: please describe this field!',
  8502. 'type' => 'int',
  8503. 'not null' => TRUE,
  8504. 'default' => 0,
  8505. ),
  8506. ),
  8507. 'primary key' => array(
  8508. 0 => 'nd_experiment_stockprop_id',
  8509. ),
  8510. 'unique keys' => array(
  8511. 'nd_experiment_stockprop_c1' => array(
  8512. 0 => 'nd_experiment_stock_id',
  8513. 1 => 'type_id',
  8514. 2 => 'rank',
  8515. ),
  8516. ),
  8517. 'foreign keys' => array(
  8518. 'cvterm' => array(
  8519. 'table' => 'cvterm',
  8520. 'columns' => array(
  8521. 'type_id' => 'cvterm_id',
  8522. ),
  8523. ),
  8524. 'nd_experiment_stock' => array(
  8525. 'table' => 'nd_experiment_stock',
  8526. 'columns' => array(
  8527. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  8528. ),
  8529. ),
  8530. ),
  8531. 'table' => 'nd_experiment_stockprop',
  8532. 'referring_tables' => NULL,
  8533. );
  8534. return $description;
  8535. }
  8536. /**
  8537. * Implements hook_chado_schema_v1_2_nd_experimentprop()
  8538. * Purpose: To describe the structure of 'nd_experimentprop' to tripal
  8539. * @see tripal_core_chado_insert()
  8540. * @see tripal_core_chado_update()
  8541. * @see tripal_core_chado_select()
  8542. *
  8543. * @return
  8544. * An array describing the 'nd_experimentprop' table
  8545. *
  8546. * @ingroup tripal_chado_v1.2_schema_api
  8547. *
  8548. */
  8549. function tripal_core_chado_schema_v1_2_nd_experimentprop() {
  8550. $description = array(
  8551. 'description' => 'TODO: please describe this table!',
  8552. 'fields' => array(
  8553. 'nd_experimentprop_id' => array(
  8554. 'description' => 'TODO: please describe this field!',
  8555. 'type' => 'serial',
  8556. 'not null' => TRUE,
  8557. ),
  8558. 'nd_experiment_id' => array(
  8559. 'description' => 'TODO: please describe this field!',
  8560. 'type' => 'int',
  8561. 'not null' => TRUE,
  8562. ),
  8563. 'type_id' => array(
  8564. 'description' => 'TODO: please describe this field!',
  8565. 'type' => 'int',
  8566. 'not null' => TRUE,
  8567. ),
  8568. 'value' => array(
  8569. 'description' => 'TODO: please describe this field!',
  8570. 'type' => 'text',
  8571. 'not null' => FALSE,
  8572. ),
  8573. 'rank' => array(
  8574. 'description' => 'TODO: please describe this field!',
  8575. 'type' => 'int',
  8576. 'not null' => TRUE,
  8577. 'default' => 0,
  8578. ),
  8579. ),
  8580. 'primary key' => array(
  8581. 0 => 'nd_experimentprop_id',
  8582. ),
  8583. 'unique keys' => array(
  8584. 'nd_experimentprop_c1' => array(
  8585. 0 => 'nd_experiment_id',
  8586. 1 => 'type_id',
  8587. 2 => 'rank',
  8588. ),
  8589. ),
  8590. 'foreign keys' => array(
  8591. 'cvterm' => array(
  8592. 'table' => 'cvterm',
  8593. 'columns' => array(
  8594. 'type_id' => 'cvterm_id',
  8595. ),
  8596. ),
  8597. 'nd_experiment' => array(
  8598. 'table' => 'nd_experiment',
  8599. 'columns' => array(
  8600. 'nd_experiment_id' => 'nd_experiment_id',
  8601. ),
  8602. ),
  8603. ),
  8604. 'table' => 'nd_experimentprop',
  8605. 'referring_tables' => NULL,
  8606. );
  8607. return $description;
  8608. }
  8609. /**
  8610. * Implements hook_chado_schema_v1_2_nd_geolocation()
  8611. * Purpose: To describe the structure of 'nd_geolocation' to tripal
  8612. * @see tripal_core_chado_insert()
  8613. * @see tripal_core_chado_update()
  8614. * @see tripal_core_chado_select()
  8615. *
  8616. * @return
  8617. * An array describing the 'nd_geolocation' table
  8618. *
  8619. * @ingroup tripal_chado_v1.2_schema_api
  8620. *
  8621. */
  8622. function tripal_core_chado_schema_v1_2_nd_geolocation() {
  8623. $description = array(
  8624. 'description' => 'TODO: please describe this table!',
  8625. 'fields' => array(
  8626. 'nd_geolocation_id' => array(
  8627. 'description' => 'TODO: please describe this field!',
  8628. 'type' => 'serial',
  8629. 'not null' => TRUE,
  8630. ),
  8631. 'description' => array(
  8632. 'description' => 'TODO: please describe this field!',
  8633. 'type' => 'varchar',
  8634. 'length' => '255',
  8635. 'not null' => FALSE,
  8636. ),
  8637. 'latitude' => array(
  8638. 'description' => 'TODO: please describe this field!',
  8639. 'type' => 'float',
  8640. 'not null' => FALSE,
  8641. ),
  8642. 'longitude' => array(
  8643. 'description' => 'TODO: please describe this field!',
  8644. 'type' => 'float',
  8645. 'not null' => FALSE,
  8646. ),
  8647. 'geodetic_datum' => array(
  8648. 'description' => 'TODO: please describe this field!',
  8649. 'type' => 'varchar',
  8650. 'length' => '32',
  8651. 'not null' => FALSE,
  8652. ),
  8653. 'altitude' => array(
  8654. 'description' => 'TODO: please describe this field!',
  8655. 'type' => 'float',
  8656. 'not null' => FALSE,
  8657. ),
  8658. ),
  8659. 'primary key' => array(
  8660. 0 => 'nd_geolocation_id',
  8661. ),
  8662. 'foreign keys' => array(
  8663. ),
  8664. 'table' => 'nd_geolocation',
  8665. 'referring_tables' => array(
  8666. 0 => 'nd_experiment',
  8667. 1 => 'nd_geolocationprop',
  8668. ),
  8669. );
  8670. return $description;
  8671. }
  8672. /**
  8673. * Implements hook_chado_schema_v1_2_nd_geolocationprop()
  8674. * Purpose: To describe the structure of 'nd_geolocationprop' to tripal
  8675. * @see tripal_core_chado_insert()
  8676. * @see tripal_core_chado_update()
  8677. * @see tripal_core_chado_select()
  8678. *
  8679. * @return
  8680. * An array describing the 'nd_geolocationprop' table
  8681. *
  8682. * @ingroup tripal_chado_v1.2_schema_api
  8683. *
  8684. */
  8685. function tripal_core_chado_schema_v1_2_nd_geolocationprop() {
  8686. $description = array(
  8687. 'description' => 'TODO: please describe this table!',
  8688. 'fields' => array(
  8689. 'nd_geolocationprop_id' => array(
  8690. 'description' => 'TODO: please describe this field!',
  8691. 'type' => 'serial',
  8692. 'not null' => TRUE,
  8693. ),
  8694. 'nd_geolocation_id' => array(
  8695. 'description' => 'TODO: please describe this field!',
  8696. 'type' => 'int',
  8697. 'not null' => TRUE,
  8698. ),
  8699. 'type_id' => array(
  8700. 'description' => 'TODO: please describe this field!',
  8701. 'type' => 'int',
  8702. 'not null' => TRUE,
  8703. ),
  8704. 'value' => array(
  8705. 'description' => 'TODO: please describe this field!',
  8706. 'type' => 'text',
  8707. 'not null' => FALSE,
  8708. ),
  8709. 'rank' => array(
  8710. 'description' => 'TODO: please describe this field!',
  8711. 'type' => 'int',
  8712. 'not null' => TRUE,
  8713. 'default' => 0,
  8714. ),
  8715. ),
  8716. 'primary key' => array(
  8717. 0 => 'nd_geolocationprop_id',
  8718. ),
  8719. 'unique keys' => array(
  8720. 'nd_geolocationprop_c1' => array(
  8721. 0 => 'nd_geolocation_id',
  8722. 1 => 'type_id',
  8723. 2 => 'rank',
  8724. ),
  8725. ),
  8726. 'foreign keys' => array(
  8727. 'cvterm' => array(
  8728. 'table' => 'cvterm',
  8729. 'columns' => array(
  8730. 'type_id' => 'cvterm_id',
  8731. ),
  8732. ),
  8733. 'nd_geolocation' => array(
  8734. 'table' => 'nd_geolocation',
  8735. 'columns' => array(
  8736. 'nd_geolocation_id' => 'nd_geolocation_id',
  8737. ),
  8738. ),
  8739. ),
  8740. 'table' => 'nd_geolocationprop',
  8741. 'referring_tables' => NULL,
  8742. );
  8743. return $description;
  8744. }
  8745. /**
  8746. * Implements hook_chado_schema_v1_2_nd_protocol()
  8747. * Purpose: To describe the structure of 'nd_protocol' to tripal
  8748. * @see tripal_core_chado_insert()
  8749. * @see tripal_core_chado_update()
  8750. * @see tripal_core_chado_select()
  8751. *
  8752. * @return
  8753. * An array describing the 'nd_protocol' table
  8754. *
  8755. * @ingroup tripal_chado_v1.2_schema_api
  8756. *
  8757. */
  8758. function tripal_core_chado_schema_v1_2_nd_protocol() {
  8759. $description = array(
  8760. 'description' => 'TODO: please describe this table!',
  8761. 'fields' => array(
  8762. 'nd_protocol_id' => array(
  8763. 'description' => 'TODO: please describe this field!',
  8764. 'type' => 'serial',
  8765. 'not null' => TRUE,
  8766. ),
  8767. 'name' => array(
  8768. 'description' => 'TODO: please describe this field!',
  8769. 'type' => 'varchar',
  8770. 'length' => '255',
  8771. 'not null' => TRUE,
  8772. ),
  8773. 'type_id' => array(
  8774. 'description' => 'TODO: please describe this field!',
  8775. 'type' => 'int',
  8776. 'not null' => TRUE,
  8777. ),
  8778. ),
  8779. 'primary key' => array(
  8780. 0 => 'nd_protocol_id',
  8781. ),
  8782. 'unique keys' => array(
  8783. 'name' => array(
  8784. 0 => 'name',
  8785. ),
  8786. ),
  8787. 'foreign keys' => array(
  8788. 'cvterm' => array(
  8789. 'table' => 'cvterm',
  8790. 'columns' => array(
  8791. 'type_id' => 'cvterm_id',
  8792. ),
  8793. ),
  8794. ),
  8795. 'table' => 'nd_protocol',
  8796. 'referring_tables' => array(
  8797. 0 => 'nd_experiment_protocol',
  8798. 1 => 'nd_protocol_reagent',
  8799. 2 => 'nd_protocolprop',
  8800. ),
  8801. );
  8802. return $description;
  8803. }
  8804. /**
  8805. * Implements hook_chado_schema_v1_2_nd_protocol_reagent()
  8806. * Purpose: To describe the structure of 'nd_protocol_reagent' to tripal
  8807. * @see tripal_core_chado_insert()
  8808. * @see tripal_core_chado_update()
  8809. * @see tripal_core_chado_select()
  8810. *
  8811. * @return
  8812. * An array describing the 'nd_protocol_reagent' table
  8813. *
  8814. * @ingroup tripal_chado_v1.2_schema_api
  8815. *
  8816. */
  8817. function tripal_core_chado_schema_v1_2_nd_protocol_reagent() {
  8818. $description = array(
  8819. 'description' => 'TODO: please describe this table!',
  8820. 'fields' => array(
  8821. 'nd_protocol_reagent_id' => array(
  8822. 'description' => 'TODO: please describe this field!',
  8823. 'type' => 'serial',
  8824. 'not null' => TRUE,
  8825. ),
  8826. 'nd_protocol_id' => array(
  8827. 'description' => 'TODO: please describe this field!',
  8828. 'type' => 'int',
  8829. 'not null' => TRUE,
  8830. ),
  8831. 'reagent_id' => array(
  8832. 'description' => 'TODO: please describe this field!',
  8833. 'type' => 'int',
  8834. 'not null' => TRUE,
  8835. ),
  8836. 'type_id' => array(
  8837. 'description' => 'TODO: please describe this field!',
  8838. 'type' => 'int',
  8839. 'not null' => TRUE,
  8840. ),
  8841. ),
  8842. 'primary key' => array(
  8843. 0 => 'nd_protocol_reagent_id',
  8844. ),
  8845. 'foreign keys' => array(
  8846. 'cvterm' => array(
  8847. 'table' => 'cvterm',
  8848. 'columns' => array(
  8849. 'type_id' => 'cvterm_id',
  8850. ),
  8851. ),
  8852. 'nd_protocol' => array(
  8853. 'table' => 'nd_protocol',
  8854. 'columns' => array(
  8855. 'nd_protocol_id' => 'nd_protocol_id',
  8856. ),
  8857. ),
  8858. 'nd_reagent' => array(
  8859. 'table' => 'nd_reagent',
  8860. 'columns' => array(
  8861. 'reagent_id' => 'nd_reagent_id',
  8862. ),
  8863. ),
  8864. ),
  8865. 'table' => 'nd_protocol_reagent',
  8866. 'referring_tables' => NULL,
  8867. );
  8868. return $description;
  8869. }
  8870. /**
  8871. * Implements hook_chado_schema_v1_2_nd_protocolprop()
  8872. * Purpose: To describe the structure of 'nd_protocolprop' to tripal
  8873. * @see tripal_core_chado_insert()
  8874. * @see tripal_core_chado_update()
  8875. * @see tripal_core_chado_select()
  8876. *
  8877. * @return
  8878. * An array describing the 'nd_protocolprop' table
  8879. *
  8880. * @ingroup tripal_chado_v1.2_schema_api
  8881. *
  8882. */
  8883. function tripal_core_chado_schema_v1_2_nd_protocolprop() {
  8884. $description = array(
  8885. 'description' => 'TODO: please describe this table!',
  8886. 'fields' => array(
  8887. 'nd_protocolprop_id' => array(
  8888. 'description' => 'TODO: please describe this field!',
  8889. 'type' => 'serial',
  8890. 'not null' => TRUE,
  8891. ),
  8892. 'nd_protocol_id' => array(
  8893. 'description' => 'TODO: please describe this field!',
  8894. 'type' => 'int',
  8895. 'not null' => TRUE,
  8896. ),
  8897. 'type_id' => array(
  8898. 'description' => 'TODO: please describe this field!',
  8899. 'type' => 'int',
  8900. 'not null' => TRUE,
  8901. ),
  8902. 'value' => array(
  8903. 'description' => 'TODO: please describe this field!',
  8904. 'type' => 'text',
  8905. 'not null' => FALSE,
  8906. ),
  8907. 'rank' => array(
  8908. 'description' => 'TODO: please describe this field!',
  8909. 'type' => 'int',
  8910. 'not null' => TRUE,
  8911. 'default' => 0,
  8912. ),
  8913. ),
  8914. 'primary key' => array(
  8915. 0 => 'nd_protocolprop_id',
  8916. ),
  8917. 'unique keys' => array(
  8918. 'nd_protocolprop_c1' => array(
  8919. 0 => 'nd_protocol_id',
  8920. 1 => 'type_id',
  8921. 2 => 'rank',
  8922. ),
  8923. ),
  8924. 'foreign keys' => array(
  8925. 'cvterm' => array(
  8926. 'table' => 'cvterm',
  8927. 'columns' => array(
  8928. 'type_id' => 'cvterm_id',
  8929. ),
  8930. ),
  8931. 'nd_protocol' => array(
  8932. 'table' => 'nd_protocol',
  8933. 'columns' => array(
  8934. 'nd_protocol_id' => 'nd_protocol_id',
  8935. ),
  8936. ),
  8937. ),
  8938. 'table' => 'nd_protocolprop',
  8939. 'referring_tables' => NULL,
  8940. );
  8941. return $description;
  8942. }
  8943. /**
  8944. * Implements hook_chado_schema_v1_2_nd_reagent()
  8945. * Purpose: To describe the structure of 'nd_reagent' to tripal
  8946. * @see tripal_core_chado_insert()
  8947. * @see tripal_core_chado_update()
  8948. * @see tripal_core_chado_select()
  8949. *
  8950. * @return
  8951. * An array describing the 'nd_reagent' table
  8952. *
  8953. * @ingroup tripal_chado_v1.2_schema_api
  8954. *
  8955. */
  8956. function tripal_core_chado_schema_v1_2_nd_reagent() {
  8957. $description = array(
  8958. 'description' => 'TODO: please describe this table!',
  8959. 'fields' => array(
  8960. 'nd_reagent_id' => array(
  8961. 'description' => 'TODO: please describe this field!',
  8962. 'type' => 'serial',
  8963. 'not null' => TRUE,
  8964. ),
  8965. 'name' => array(
  8966. 'description' => 'TODO: please describe this field!',
  8967. 'type' => 'varchar',
  8968. 'length' => '80',
  8969. 'not null' => TRUE,
  8970. ),
  8971. 'type_id' => array(
  8972. 'description' => 'TODO: please describe this field!',
  8973. 'type' => 'int',
  8974. 'not null' => TRUE,
  8975. ),
  8976. 'feature_id' => array(
  8977. 'description' => 'TODO: please describe this field!',
  8978. 'type' => 'int',
  8979. 'not null' => FALSE,
  8980. ),
  8981. ),
  8982. 'primary key' => array(
  8983. 0 => 'nd_reagent_id',
  8984. ),
  8985. 'foreign keys' => array(
  8986. 'cvterm' => array(
  8987. 'table' => 'cvterm',
  8988. 'columns' => array(
  8989. 'type_id' => 'cvterm_id',
  8990. ),
  8991. ),
  8992. ),
  8993. 'table' => 'nd_reagent',
  8994. 'referring_tables' => array(
  8995. 0 => 'nd_protocol_reagent',
  8996. 1 => 'nd_reagent_relationship',
  8997. 3 => 'nd_reagentprop',
  8998. ),
  8999. );
  9000. return $description;
  9001. }
  9002. /**
  9003. * Implements hook_chado_schema_v1_2_nd_reagent_relationship()
  9004. * Purpose: To describe the structure of 'nd_reagent_relationship' to tripal
  9005. * @see tripal_core_chado_insert()
  9006. * @see tripal_core_chado_update()
  9007. * @see tripal_core_chado_select()
  9008. *
  9009. * @return
  9010. * An array describing the 'nd_reagent_relationship' table
  9011. *
  9012. * @ingroup tripal_chado_v1.2_schema_api
  9013. *
  9014. */
  9015. function tripal_core_chado_schema_v1_2_nd_reagent_relationship() {
  9016. $description = array(
  9017. 'description' => 'TODO: please describe this table!',
  9018. 'fields' => array(
  9019. 'nd_reagent_relationship_id' => array(
  9020. 'description' => 'TODO: please describe this field!',
  9021. 'type' => 'serial',
  9022. 'not null' => TRUE,
  9023. ),
  9024. 'subject_reagent_id' => array(
  9025. 'description' => 'TODO: please describe this field!',
  9026. 'type' => 'int',
  9027. 'not null' => TRUE,
  9028. ),
  9029. 'object_reagent_id' => array(
  9030. 'description' => 'TODO: please describe this field!',
  9031. 'type' => 'int',
  9032. 'not null' => TRUE,
  9033. ),
  9034. 'type_id' => array(
  9035. 'description' => 'TODO: please describe this field!',
  9036. 'type' => 'int',
  9037. 'not null' => TRUE,
  9038. ),
  9039. ),
  9040. 'primary key' => array(
  9041. 0 => 'nd_reagent_relationship_id',
  9042. ),
  9043. 'foreign keys' => array(
  9044. 'cvterm' => array(
  9045. 'table' => 'cvterm',
  9046. 'columns' => array(
  9047. 'type_id' => 'cvterm_id',
  9048. ),
  9049. ),
  9050. 'nd_reagent' => array(
  9051. 'table' => 'nd_reagent',
  9052. 'columns' => array(
  9053. 'subject_reagent_id' => 'nd_reagent_id',
  9054. 'object_reagent_id' => 'nd_reagent_id',
  9055. ),
  9056. ),
  9057. ),
  9058. 'table' => 'nd_reagent_relationship',
  9059. 'referring_tables' => NULL,
  9060. );
  9061. return $description;
  9062. }
  9063. /**
  9064. * Implements hook_chado_schema_v1_2_nd_reagentprop()
  9065. * Purpose: To describe the structure of 'nd_reagentprop' to tripal
  9066. * @see tripal_core_chado_insert()
  9067. * @see tripal_core_chado_update()
  9068. * @see tripal_core_chado_select()
  9069. *
  9070. * @return
  9071. * An array describing the 'nd_reagentprop' table
  9072. *
  9073. * @ingroup tripal_chado_v1.2_schema_api
  9074. *
  9075. */
  9076. function tripal_core_chado_schema_v1_2_nd_reagentprop() {
  9077. $description = array(
  9078. 'description' => 'TODO: please describe this table!',
  9079. 'fields' => array(
  9080. 'nd_reagentprop_id' => array(
  9081. 'description' => 'TODO: please describe this field!',
  9082. 'type' => 'serial',
  9083. 'not null' => TRUE,
  9084. ),
  9085. 'nd_reagent_id' => array(
  9086. 'description' => 'TODO: please describe this field!',
  9087. 'type' => 'int',
  9088. 'not null' => TRUE,
  9089. ),
  9090. 'type_id' => array(
  9091. 'description' => 'TODO: please describe this field!',
  9092. 'type' => 'int',
  9093. 'not null' => TRUE,
  9094. ),
  9095. 'value' => array(
  9096. 'description' => 'TODO: please describe this field!',
  9097. 'type' => 'text',
  9098. 'not null' => FALSE,
  9099. ),
  9100. 'rank' => array(
  9101. 'description' => 'TODO: please describe this field!',
  9102. 'type' => 'int',
  9103. 'not null' => TRUE,
  9104. 'default' => 0,
  9105. ),
  9106. ),
  9107. 'primary key' => array(
  9108. 0 => 'nd_reagentprop_id',
  9109. ),
  9110. 'unique keys' => array(
  9111. 'nd_reagentprop_c1' => array(
  9112. 0 => 'nd_reagent_id',
  9113. 1 => 'type_id',
  9114. 2 => 'rank',
  9115. ),
  9116. ),
  9117. 'foreign keys' => array(
  9118. 'cvterm' => array(
  9119. 'table' => 'cvterm',
  9120. 'columns' => array(
  9121. 'type_id' => 'cvterm_id',
  9122. ),
  9123. ),
  9124. 'nd_reagent' => array(
  9125. 'table' => 'nd_reagent',
  9126. 'columns' => array(
  9127. 'nd_reagent_id' => 'nd_reagent_id',
  9128. ),
  9129. ),
  9130. ),
  9131. 'table' => 'nd_reagentprop',
  9132. 'referring_tables' => NULL,
  9133. );
  9134. return $description;
  9135. }
  9136. /**
  9137. * Implements hook_chado_schema_v1_2_organism()
  9138. * Purpose: To describe the structure of 'organism' to tripal
  9139. * @see tripal_core_chado_insert()
  9140. * @see tripal_core_chado_update()
  9141. * @see tripal_core_chado_select()
  9142. *
  9143. * @return
  9144. * An array describing the 'organism' table
  9145. *
  9146. * @ingroup tripal_chado_v1.2_schema_api
  9147. *
  9148. */
  9149. function tripal_core_chado_schema_v1_2_organism() {
  9150. $description = array(
  9151. 'description' => 'TODO: please describe this table!',
  9152. 'fields' => array(
  9153. 'organism_id' => array(
  9154. 'description' => 'TODO: please describe this field!',
  9155. 'type' => 'serial',
  9156. 'not null' => TRUE,
  9157. ),
  9158. 'abbreviation' => array(
  9159. 'description' => 'TODO: please describe this field!',
  9160. 'type' => 'varchar',
  9161. 'length' => '255',
  9162. 'not null' => FALSE,
  9163. ),
  9164. 'genus' => array(
  9165. 'description' => 'TODO: please describe this field!',
  9166. 'type' => 'varchar',
  9167. 'length' => '255',
  9168. 'not null' => TRUE,
  9169. ),
  9170. 'species' => array(
  9171. 'description' => 'TODO: please describe this field!',
  9172. 'type' => 'varchar',
  9173. 'length' => '255',
  9174. 'not null' => TRUE,
  9175. ),
  9176. 'common_name' => array(
  9177. 'description' => 'TODO: please describe this field!',
  9178. 'type' => 'varchar',
  9179. 'length' => '255',
  9180. 'not null' => FALSE,
  9181. ),
  9182. 'comment' => array(
  9183. 'description' => 'TODO: please describe this field!',
  9184. 'type' => 'text',
  9185. 'not null' => FALSE,
  9186. ),
  9187. ),
  9188. 'primary key' => array(
  9189. 0 => 'organism_id',
  9190. ),
  9191. 'unique keys' => array(
  9192. 'organism_c1' => array(
  9193. 0 => 'genus',
  9194. 1 => 'species',
  9195. ),
  9196. ),
  9197. 'foreign keys' => array(
  9198. ),
  9199. 'referring_tables' => array(
  9200. 0 => 'biomaterial',
  9201. 1 => 'cell_line',
  9202. 2 => 'feature',
  9203. 3 => 'library',
  9204. 4 => 'organism_dbxref',
  9205. 5 => 'organismprop',
  9206. 6 => 'phenotype_comparison',
  9207. 7 => 'phylonode_organism',
  9208. 8 => 'stock',
  9209. ),
  9210. 'table' => 'organism',
  9211. );
  9212. return $description;
  9213. }
  9214. /**
  9215. * Implements hook_chado_schema_v1_2_organism_dbxref()
  9216. * Purpose: To describe the structure of 'organism_dbxref' to tripal
  9217. * @see tripal_core_chado_insert()
  9218. * @see tripal_core_chado_update()
  9219. * @see tripal_core_chado_select()
  9220. *
  9221. * @return
  9222. * An array describing the 'organism_dbxref' table
  9223. *
  9224. * @ingroup tripal_chado_v1.2_schema_api
  9225. *
  9226. */
  9227. function tripal_core_chado_schema_v1_2_organism_dbxref() {
  9228. $description = array(
  9229. 'description' => 'TODO: please describe this table!',
  9230. 'fields' => array(
  9231. 'organism_dbxref_id' => array(
  9232. 'description' => 'TODO: please describe this field!',
  9233. 'type' => 'serial',
  9234. 'not null' => TRUE,
  9235. ),
  9236. 'organism_id' => array(
  9237. 'description' => 'TODO: please describe this field!',
  9238. 'type' => 'int',
  9239. 'not null' => TRUE,
  9240. ),
  9241. 'dbxref_id' => array(
  9242. 'description' => 'TODO: please describe this field!',
  9243. 'type' => 'int',
  9244. 'not null' => TRUE,
  9245. ),
  9246. ),
  9247. 'primary key' => array(
  9248. 0 => 'organism_dbxref_id',
  9249. ),
  9250. 'unique keys' => array(
  9251. 'organism_dbxref_c1' => array(
  9252. 0 => 'organism_id',
  9253. 1 => 'dbxref_id',
  9254. ),
  9255. ),
  9256. 'indexes' => array(
  9257. 'organism_dbxref_idx1' => array(
  9258. 0 => 'organism_id',
  9259. ),
  9260. 'organism_dbxref_idx2' => array(
  9261. 0 => 'dbxref_id',
  9262. ),
  9263. ),
  9264. 'foreign keys' => array(
  9265. 'organism' => array(
  9266. 'table' => 'organism',
  9267. 'columns' => array(
  9268. 'organism_id' => 'organism_id',
  9269. ),
  9270. ),
  9271. 'dbxref' => array(
  9272. 'table' => 'dbxref',
  9273. 'columns' => array(
  9274. 'dbxref_id' => 'dbxref_id',
  9275. ),
  9276. ),
  9277. ),
  9278. 'table' => 'organism_dbxref',
  9279. 'referring_tables' => NULL,
  9280. );
  9281. return $description;
  9282. }
  9283. /**
  9284. * Implements hook_chado_schema_v1_2_organismprop()
  9285. * Purpose: To describe the structure of 'organismprop' to tripal
  9286. * @see tripal_core_chado_insert()
  9287. * @see tripal_core_chado_update()
  9288. * @see tripal_core_chado_select()
  9289. *
  9290. * @return
  9291. * An array describing the 'organismprop' table
  9292. *
  9293. * @ingroup tripal_chado_v1.2_schema_api
  9294. *
  9295. */
  9296. function tripal_core_chado_schema_v1_2_organismprop() {
  9297. $description = array(
  9298. 'description' => 'TODO: please describe this table!',
  9299. 'fields' => array(
  9300. 'organismprop_id' => array(
  9301. 'description' => 'TODO: please describe this field!',
  9302. 'type' => 'serial',
  9303. 'not null' => TRUE,
  9304. ),
  9305. 'organism_id' => array(
  9306. 'description' => 'TODO: please describe this field!',
  9307. 'type' => 'int',
  9308. 'not null' => TRUE,
  9309. ),
  9310. 'type_id' => array(
  9311. 'description' => 'TODO: please describe this field!',
  9312. 'type' => 'int',
  9313. 'not null' => TRUE,
  9314. ),
  9315. 'value' => array(
  9316. 'description' => 'TODO: please describe this field!',
  9317. 'type' => 'text',
  9318. 'not null' => FALSE,
  9319. ),
  9320. 'rank' => array(
  9321. 'description' => 'TODO: please describe this field!',
  9322. 'type' => 'int',
  9323. 'not null' => TRUE,
  9324. 'default' => 0,
  9325. ),
  9326. ),
  9327. 'primary key' => array(
  9328. 0 => 'organismprop_id',
  9329. ),
  9330. 'unique keys' => array(
  9331. 'organismprop_c1' => array(
  9332. 0 => 'organism_id',
  9333. 1 => 'type_id',
  9334. 2 => 'rank',
  9335. ),
  9336. ),
  9337. 'indexes' => array(
  9338. 'organismprop_idx1' => array(
  9339. 0 => 'organism_id',
  9340. ),
  9341. 'organismprop_idx2' => array(
  9342. 0 => 'type_id',
  9343. ),
  9344. ),
  9345. 'foreign keys' => array(
  9346. 'organism' => array(
  9347. 'table' => 'organism',
  9348. 'columns' => array(
  9349. 'organism_id' => 'organism_id',
  9350. ),
  9351. ),
  9352. 'cvterm' => array(
  9353. 'table' => 'cvterm',
  9354. 'columns' => array(
  9355. 'type_id' => 'cvterm_id',
  9356. ),
  9357. ),
  9358. ),
  9359. 'table' => 'organismprop',
  9360. 'referring_tables' => NULL,
  9361. );
  9362. return $description;
  9363. }
  9364. /**
  9365. * Implements hook_chado_schema_v1_2_phendesc()
  9366. * Purpose: To describe the structure of 'phendesc' to tripal
  9367. * @see tripal_core_chado_insert()
  9368. * @see tripal_core_chado_update()
  9369. * @see tripal_core_chado_select()
  9370. *
  9371. * @return
  9372. * An array describing the 'phendesc' table
  9373. *
  9374. * @ingroup tripal_chado_v1.2_schema_api
  9375. *
  9376. */
  9377. function tripal_core_chado_schema_v1_2_phendesc() {
  9378. $description = array(
  9379. 'description' => 'TODO: please describe this table!',
  9380. 'fields' => array(
  9381. 'phendesc_id' => array(
  9382. 'description' => 'TODO: please describe this field!',
  9383. 'type' => 'serial',
  9384. 'not null' => TRUE,
  9385. ),
  9386. 'genotype_id' => array(
  9387. 'description' => 'TODO: please describe this field!',
  9388. 'type' => 'int',
  9389. 'not null' => TRUE,
  9390. ),
  9391. 'environment_id' => array(
  9392. 'description' => 'TODO: please describe this field!',
  9393. 'type' => 'int',
  9394. 'not null' => TRUE,
  9395. ),
  9396. 'description' => array(
  9397. 'description' => 'TODO: please describe this field!',
  9398. 'type' => 'text',
  9399. 'not null' => TRUE,
  9400. ),
  9401. 'type_id' => array(
  9402. 'description' => 'TODO: please describe this field!',
  9403. 'type' => 'int',
  9404. 'not null' => TRUE,
  9405. ),
  9406. 'pub_id' => array(
  9407. 'description' => 'TODO: please describe this field!',
  9408. 'type' => 'int',
  9409. 'not null' => TRUE,
  9410. ),
  9411. ),
  9412. 'primary key' => array(
  9413. 0 => 'phendesc_id',
  9414. ),
  9415. 'unique keys' => array(
  9416. 'phendesc_c1' => array(
  9417. 0 => 'genotype_id',
  9418. 1 => 'environment_id',
  9419. 2 => 'type_id',
  9420. 3 => 'pub_id',
  9421. ),
  9422. ),
  9423. 'indexes' => array(
  9424. 'phendesc_idx1' => array(
  9425. 0 => 'genotype_id',
  9426. ),
  9427. 'phendesc_idx2' => array(
  9428. 0 => 'environment_id',
  9429. ),
  9430. 'phendesc_idx3' => array(
  9431. 0 => 'pub_id',
  9432. ),
  9433. ),
  9434. 'foreign keys' => array(
  9435. 'cvterm' => array(
  9436. 'table' => 'cvterm',
  9437. 'columns' => array(
  9438. 'type_id' => 'cvterm_id',
  9439. ),
  9440. ),
  9441. 'pub' => array(
  9442. 'table' => 'pub',
  9443. 'columns' => array(
  9444. 'pub_id' => 'pub_id',
  9445. ),
  9446. ),
  9447. 'genotype' => array(
  9448. 'table' => 'genotype',
  9449. 'columns' => array(
  9450. 'genotype_id' => 'genotype_id',
  9451. ),
  9452. ),
  9453. 'environment' => array(
  9454. 'table' => 'environment',
  9455. 'columns' => array(
  9456. 'environment_id' => 'environment_id',
  9457. ),
  9458. ),
  9459. ),
  9460. 'table' => 'phendesc',
  9461. 'referring_tables' => NULL,
  9462. );
  9463. return $description;
  9464. }
  9465. /**
  9466. * Implements hook_chado_schema_v1_2_phenotype()
  9467. * Purpose: To describe the structure of 'phenotype' to tripal
  9468. * @see tripal_core_chado_insert()
  9469. * @see tripal_core_chado_update()
  9470. * @see tripal_core_chado_select()
  9471. *
  9472. * @return
  9473. * An array describing the 'phenotype' table
  9474. *
  9475. * @ingroup tripal_chado_v1.2_schema_api
  9476. *
  9477. */
  9478. function tripal_core_chado_schema_v1_2_phenotype() {
  9479. $description = array(
  9480. 'description' => 'TODO: please describe this table!',
  9481. 'fields' => array(
  9482. 'phenotype_id' => array(
  9483. 'description' => 'TODO: please describe this field!',
  9484. 'type' => 'serial',
  9485. 'not null' => TRUE,
  9486. ),
  9487. 'uniquename' => array(
  9488. 'description' => 'TODO: please describe this field!',
  9489. 'type' => 'text',
  9490. 'not null' => TRUE,
  9491. ),
  9492. 'name' => array(
  9493. 'description' => 'TODO: please describe this field!',
  9494. 'type' => 'text',
  9495. 'not null' => FALSE,
  9496. ),
  9497. 'observable_id' => array(
  9498. 'description' => 'TODO: please describe this field!',
  9499. 'type' => 'int',
  9500. 'not null' => FALSE,
  9501. ),
  9502. 'attr_id' => array(
  9503. 'description' => 'TODO: please describe this field!',
  9504. 'type' => 'int',
  9505. 'not null' => FALSE,
  9506. ),
  9507. 'value' => array(
  9508. 'description' => 'TODO: please describe this field!',
  9509. 'type' => 'text',
  9510. 'not null' => FALSE,
  9511. ),
  9512. 'cvalue_id' => array(
  9513. 'description' => 'TODO: please describe this field!',
  9514. 'type' => 'int',
  9515. 'not null' => FALSE,
  9516. ),
  9517. 'assay_id' => array(
  9518. 'description' => 'TODO: please describe this field!',
  9519. 'type' => 'int',
  9520. 'not null' => FALSE,
  9521. ),
  9522. ),
  9523. 'primary key' => array(
  9524. 0 => 'phenotype_id',
  9525. ),
  9526. 'unique keys' => array(
  9527. 'phenotype_c1' => array(
  9528. 0 => 'uniquename',
  9529. ),
  9530. ),
  9531. 'indexes' => array(
  9532. 'phenotype_idx1' => array(
  9533. 0 => 'cvalue_id',
  9534. ),
  9535. 'phenotype_idx2' => array(
  9536. 0 => 'observable_id',
  9537. ),
  9538. 'phenotype_idx3' => array(
  9539. 0 => 'attr_id',
  9540. ),
  9541. ),
  9542. 'foreign keys' => array(
  9543. 'cvterm' => array(
  9544. 'table' => 'cvterm',
  9545. 'columns' => array(
  9546. 'observable_id' => 'cvterm_id',
  9547. 'attr_id' => 'cvterm_id',
  9548. 'cvalue_id' => 'cvterm_id',
  9549. 'assay_id' => 'cvterm_id',
  9550. ),
  9551. ),
  9552. ),
  9553. 'table' => 'phenotype',
  9554. 'referring_tables' => array(
  9555. 0 => 'feature_phenotype',
  9556. 1 => 'nd_experiment_phenotype',
  9557. 2 => 'phenotype_comparison',
  9558. 4 => 'phenotype_cvterm',
  9559. 5 => 'phenstatement',
  9560. ),
  9561. );
  9562. return $description;
  9563. }
  9564. /**
  9565. * Implements hook_chado_schema_v1_2_phenotype_comparison()
  9566. * Purpose: To describe the structure of 'phenotype_comparison' to tripal
  9567. * @see tripal_core_chado_insert()
  9568. * @see tripal_core_chado_update()
  9569. * @see tripal_core_chado_select()
  9570. *
  9571. * @return
  9572. * An array describing the 'phenotype_comparison' table
  9573. *
  9574. * @ingroup tripal_chado_v1.2_schema_api
  9575. *
  9576. */
  9577. function tripal_core_chado_schema_v1_2_phenotype_comparison() {
  9578. $description = array(
  9579. 'description' => 'TODO: please describe this table!',
  9580. 'fields' => array(
  9581. 'phenotype_comparison_id' => array(
  9582. 'description' => 'TODO: please describe this field!',
  9583. 'type' => 'serial',
  9584. 'not null' => TRUE,
  9585. ),
  9586. 'genotype1_id' => array(
  9587. 'description' => 'TODO: please describe this field!',
  9588. 'type' => 'int',
  9589. 'not null' => TRUE,
  9590. ),
  9591. 'environment1_id' => array(
  9592. 'description' => 'TODO: please describe this field!',
  9593. 'type' => 'int',
  9594. 'not null' => TRUE,
  9595. ),
  9596. 'genotype2_id' => array(
  9597. 'description' => 'TODO: please describe this field!',
  9598. 'type' => 'int',
  9599. 'not null' => TRUE,
  9600. ),
  9601. 'environment2_id' => array(
  9602. 'description' => 'TODO: please describe this field!',
  9603. 'type' => 'int',
  9604. 'not null' => TRUE,
  9605. ),
  9606. 'phenotype1_id' => array(
  9607. 'description' => 'TODO: please describe this field!',
  9608. 'type' => 'int',
  9609. 'not null' => TRUE,
  9610. ),
  9611. 'phenotype2_id' => array(
  9612. 'description' => 'TODO: please describe this field!',
  9613. 'type' => 'int',
  9614. 'not null' => FALSE,
  9615. ),
  9616. 'pub_id' => array(
  9617. 'description' => 'TODO: please describe this field!',
  9618. 'type' => 'int',
  9619. 'not null' => TRUE,
  9620. ),
  9621. 'organism_id' => array(
  9622. 'description' => 'TODO: please describe this field!',
  9623. 'type' => 'int',
  9624. 'not null' => TRUE,
  9625. ),
  9626. ),
  9627. 'primary key' => array(
  9628. 0 => 'phenotype_comparison_id',
  9629. ),
  9630. 'unique keys' => array(
  9631. 'phenotype_comparison_c1' => array(
  9632. 0 => 'genotype1_id',
  9633. 1 => 'environment1_id',
  9634. 2 => 'genotype2_id',
  9635. 3 => 'environment2_id',
  9636. 4 => 'phenotype1_id',
  9637. 5 => 'pub_id',
  9638. ),
  9639. ),
  9640. 'indexes' => array(
  9641. 'phenotype_comparison_idx1' => array(
  9642. 0 => 'genotype1_id',
  9643. ),
  9644. 'phenotype_comparison_idx2' => array(
  9645. 0 => 'genotype2_id',
  9646. ),
  9647. 'phenotype_comparison_idx4' => array(
  9648. 0 => 'pub_id',
  9649. ),
  9650. ),
  9651. 'foreign keys' => array(
  9652. 'organism' => array(
  9653. 'table' => 'organism',
  9654. 'columns' => array(
  9655. 'organism_id' => 'organism_id',
  9656. ),
  9657. ),
  9658. 'pub' => array(
  9659. 'table' => 'pub',
  9660. 'columns' => array(
  9661. 'pub_id' => 'pub_id',
  9662. ),
  9663. ),
  9664. 'genotype' => array(
  9665. 'table' => 'genotype',
  9666. 'columns' => array(
  9667. 'genotype1_id' => 'genotype_id',
  9668. 'genotype2_id' => 'genotype_id',
  9669. ),
  9670. ),
  9671. 'environment' => array(
  9672. 'table' => 'environment',
  9673. 'columns' => array(
  9674. 'environment1_id' => 'environment_id',
  9675. 'environment2_id' => 'environment_id',
  9676. ),
  9677. ),
  9678. 'phenotype' => array(
  9679. 'table' => 'phenotype',
  9680. 'columns' => array(
  9681. 'phenotype1_id' => 'phenotype_id',
  9682. 'phenotype2_id' => 'phenotype_id',
  9683. ),
  9684. ),
  9685. ),
  9686. 'table' => 'phenotype_comparison',
  9687. 'referring_tables' => array(
  9688. 0 => 'phenotype_comparison_cvterm',
  9689. ),
  9690. );
  9691. return $description;
  9692. }
  9693. /**
  9694. * Implements hook_chado_schema_v1_2_phenotype_comparison_cvterm()
  9695. * Purpose: To describe the structure of 'phenotype_comparison_cvterm' to tripal
  9696. * @see tripal_core_chado_insert()
  9697. * @see tripal_core_chado_update()
  9698. * @see tripal_core_chado_select()
  9699. *
  9700. * @return
  9701. * An array describing the 'phenotype_comparison_cvterm' table
  9702. *
  9703. * @ingroup tripal_chado_v1.2_schema_api
  9704. *
  9705. */
  9706. function tripal_core_chado_schema_v1_2_phenotype_comparison_cvterm() {
  9707. $description = array(
  9708. 'description' => 'TODO: please describe this table!',
  9709. 'fields' => array(
  9710. 'phenotype_comparison_cvterm_id' => array(
  9711. 'description' => 'TODO: please describe this field!',
  9712. 'type' => 'serial',
  9713. 'not null' => TRUE,
  9714. ),
  9715. 'phenotype_comparison_id' => array(
  9716. 'description' => 'TODO: please describe this field!',
  9717. 'type' => 'int',
  9718. 'not null' => TRUE,
  9719. ),
  9720. 'cvterm_id' => array(
  9721. 'description' => 'TODO: please describe this field!',
  9722. 'type' => 'int',
  9723. 'not null' => TRUE,
  9724. ),
  9725. 'pub_id' => array(
  9726. 'description' => 'TODO: please describe this field!',
  9727. 'type' => 'int',
  9728. 'not null' => TRUE,
  9729. ),
  9730. 'rank' => array(
  9731. 'description' => 'TODO: please describe this field!',
  9732. 'type' => 'int',
  9733. 'not null' => TRUE,
  9734. 'default' => 0,
  9735. ),
  9736. ),
  9737. 'primary key' => array(
  9738. 0 => 'phenotype_comparison_cvterm_id',
  9739. ),
  9740. 'unique keys' => array(
  9741. 'phenotype_comparison_cvterm_c1' => array(
  9742. 0 => 'phenotype_comparison_id',
  9743. 1 => 'cvterm_id',
  9744. ),
  9745. ),
  9746. 'indexes' => array(
  9747. 'phenotype_comparison_cvterm_idx1' => array(
  9748. 0 => 'phenotype_comparison_id',
  9749. ),
  9750. 'phenotype_comparison_cvterm_idx2' => array(
  9751. 0 => 'cvterm_id',
  9752. ),
  9753. ),
  9754. 'foreign keys' => array(
  9755. 'cvterm' => array(
  9756. 'table' => 'cvterm',
  9757. 'columns' => array(
  9758. 'cvterm_id' => 'cvterm_id',
  9759. ),
  9760. ),
  9761. 'pub' => array(
  9762. 'table' => 'pub',
  9763. 'columns' => array(
  9764. 'pub_id' => 'pub_id',
  9765. ),
  9766. ),
  9767. 'phenotype_comparison' => array(
  9768. 'table' => 'phenotype_comparison',
  9769. 'columns' => array(
  9770. 'phenotype_comparison_id' => 'phenotype_comparison_id',
  9771. ),
  9772. ),
  9773. ),
  9774. 'table' => 'phenotype_comparison_cvterm',
  9775. 'referring_tables' => NULL,
  9776. );
  9777. return $description;
  9778. }
  9779. /**
  9780. * Implements hook_chado_schema_v1_2_phenotype_cvterm()
  9781. * Purpose: To describe the structure of 'phenotype_cvterm' to tripal
  9782. * @see tripal_core_chado_insert()
  9783. * @see tripal_core_chado_update()
  9784. * @see tripal_core_chado_select()
  9785. *
  9786. * @return
  9787. * An array describing the 'phenotype_cvterm' table
  9788. *
  9789. * @ingroup tripal_chado_v1.2_schema_api
  9790. *
  9791. */
  9792. function tripal_core_chado_schema_v1_2_phenotype_cvterm() {
  9793. $description = array(
  9794. 'description' => 'TODO: please describe this table!',
  9795. 'fields' => array(
  9796. 'phenotype_cvterm_id' => array(
  9797. 'description' => 'TODO: please describe this field!',
  9798. 'type' => 'serial',
  9799. 'not null' => TRUE,
  9800. ),
  9801. 'phenotype_id' => array(
  9802. 'description' => 'TODO: please describe this field!',
  9803. 'type' => 'int',
  9804. 'not null' => TRUE,
  9805. ),
  9806. 'cvterm_id' => array(
  9807. 'description' => 'TODO: please describe this field!',
  9808. 'type' => 'int',
  9809. 'not null' => TRUE,
  9810. ),
  9811. 'rank' => array(
  9812. 'description' => 'TODO: please describe this field!',
  9813. 'type' => 'int',
  9814. 'not null' => TRUE,
  9815. 'default' => 0,
  9816. ),
  9817. ),
  9818. 'primary key' => array(
  9819. 0 => 'phenotype_cvterm_id',
  9820. ),
  9821. 'unique keys' => array(
  9822. 'phenotype_cvterm_c1' => array(
  9823. 0 => 'phenotype_id',
  9824. 1 => 'cvterm_id',
  9825. 2 => 'rank',
  9826. ),
  9827. ),
  9828. 'indexes' => array(
  9829. 'phenotype_cvterm_idx1' => array(
  9830. 0 => 'phenotype_id',
  9831. ),
  9832. 'phenotype_cvterm_idx2' => array(
  9833. 0 => 'cvterm_id',
  9834. ),
  9835. ),
  9836. 'foreign keys' => array(
  9837. 'cvterm' => array(
  9838. 'table' => 'cvterm',
  9839. 'columns' => array(
  9840. 'cvterm_id' => 'cvterm_id',
  9841. ),
  9842. ),
  9843. 'phenotype' => array(
  9844. 'table' => 'phenotype',
  9845. 'columns' => array(
  9846. 'phenotype_id' => 'phenotype_id',
  9847. ),
  9848. ),
  9849. ),
  9850. 'table' => 'phenotype_cvterm',
  9851. 'referring_tables' => NULL,
  9852. );
  9853. return $description;
  9854. }
  9855. /**
  9856. * Implements hook_chado_schema_v1_2_phenstatement()
  9857. * Purpose: To describe the structure of 'phenstatement' to tripal
  9858. * @see tripal_core_chado_insert()
  9859. * @see tripal_core_chado_update()
  9860. * @see tripal_core_chado_select()
  9861. *
  9862. * @return
  9863. * An array describing the 'phenstatement' table
  9864. *
  9865. * @ingroup tripal_chado_v1.2_schema_api
  9866. *
  9867. */
  9868. function tripal_core_chado_schema_v1_2_phenstatement() {
  9869. $description = array(
  9870. 'description' => 'TODO: please describe this table!',
  9871. 'fields' => array(
  9872. 'phenstatement_id' => array(
  9873. 'description' => 'TODO: please describe this field!',
  9874. 'type' => 'serial',
  9875. 'not null' => TRUE,
  9876. ),
  9877. 'genotype_id' => array(
  9878. 'description' => 'TODO: please describe this field!',
  9879. 'type' => 'int',
  9880. 'not null' => TRUE,
  9881. ),
  9882. 'environment_id' => array(
  9883. 'description' => 'TODO: please describe this field!',
  9884. 'type' => 'int',
  9885. 'not null' => TRUE,
  9886. ),
  9887. 'phenotype_id' => array(
  9888. 'description' => 'TODO: please describe this field!',
  9889. 'type' => 'int',
  9890. 'not null' => TRUE,
  9891. ),
  9892. 'type_id' => array(
  9893. 'description' => 'TODO: please describe this field!',
  9894. 'type' => 'int',
  9895. 'not null' => TRUE,
  9896. ),
  9897. 'pub_id' => array(
  9898. 'description' => 'TODO: please describe this field!',
  9899. 'type' => 'int',
  9900. 'not null' => TRUE,
  9901. ),
  9902. ),
  9903. 'primary key' => array(
  9904. 0 => 'phenstatement_id',
  9905. ),
  9906. 'unique keys' => array(
  9907. 'phenstatement_c1' => array(
  9908. 0 => 'genotype_id',
  9909. 1 => 'phenotype_id',
  9910. 2 => 'environment_id',
  9911. 3 => 'type_id',
  9912. 4 => 'pub_id',
  9913. ),
  9914. ),
  9915. 'indexes' => array(
  9916. 'phenstatement_idx1' => array(
  9917. 0 => 'genotype_id',
  9918. ),
  9919. 'phenstatement_idx2' => array(
  9920. 0 => 'phenotype_id',
  9921. ),
  9922. ),
  9923. 'foreign keys' => array(
  9924. 'cvterm' => array(
  9925. 'table' => 'cvterm',
  9926. 'columns' => array(
  9927. 'type_id' => 'cvterm_id',
  9928. ),
  9929. ),
  9930. 'pub' => array(
  9931. 'table' => 'pub',
  9932. 'columns' => array(
  9933. 'pub_id' => 'pub_id',
  9934. ),
  9935. ),
  9936. 'genotype' => array(
  9937. 'table' => 'genotype',
  9938. 'columns' => array(
  9939. 'genotype_id' => 'genotype_id',
  9940. ),
  9941. ),
  9942. 'environment' => array(
  9943. 'table' => 'environment',
  9944. 'columns' => array(
  9945. 'environment_id' => 'environment_id',
  9946. ),
  9947. ),
  9948. 'phenotype' => array(
  9949. 'table' => 'phenotype',
  9950. 'columns' => array(
  9951. 'phenotype_id' => 'phenotype_id',
  9952. ),
  9953. ),
  9954. ),
  9955. 'table' => 'phenstatement',
  9956. 'referring_tables' => NULL,
  9957. );
  9958. return $description;
  9959. }
  9960. /**
  9961. * Implements hook_chado_schema_v1_2_phylonode()
  9962. * Purpose: To describe the structure of 'phylonode' to tripal
  9963. * @see tripal_core_chado_insert()
  9964. * @see tripal_core_chado_update()
  9965. * @see tripal_core_chado_select()
  9966. *
  9967. * @return
  9968. * An array describing the 'phylonode' table
  9969. *
  9970. * @ingroup tripal_chado_v1.2_schema_api
  9971. *
  9972. */
  9973. function tripal_core_chado_schema_v1_2_phylonode() {
  9974. $description = array(
  9975. 'description' => 'TODO: please describe this table!',
  9976. 'fields' => array(
  9977. 'phylonode_id' => array(
  9978. 'description' => 'TODO: please describe this field!',
  9979. 'type' => 'serial',
  9980. 'not null' => TRUE,
  9981. ),
  9982. 'phylotree_id' => array(
  9983. 'description' => 'TODO: please describe this field!',
  9984. 'type' => 'int',
  9985. 'not null' => TRUE,
  9986. ),
  9987. 'parent_phylonode_id' => array(
  9988. 'description' => 'TODO: please describe this field!',
  9989. 'type' => 'int',
  9990. 'not null' => FALSE,
  9991. ),
  9992. 'left_idx' => array(
  9993. 'description' => 'TODO: please describe this field!',
  9994. 'type' => 'int',
  9995. 'not null' => TRUE,
  9996. ),
  9997. 'right_idx' => array(
  9998. 'description' => 'TODO: please describe this field!',
  9999. 'type' => 'int',
  10000. 'not null' => TRUE,
  10001. ),
  10002. 'type_id' => array(
  10003. 'description' => 'TODO: please describe this field!',
  10004. 'type' => 'int',
  10005. 'not null' => FALSE,
  10006. ),
  10007. 'feature_id' => array(
  10008. 'description' => 'TODO: please describe this field!',
  10009. 'type' => 'int',
  10010. 'not null' => FALSE,
  10011. ),
  10012. 'label' => array(
  10013. 'description' => 'TODO: please describe this field!',
  10014. 'type' => 'varchar',
  10015. 'length' => '255',
  10016. 'not null' => FALSE,
  10017. ),
  10018. 'distance' => array(
  10019. 'description' => 'TODO: please describe this field!',
  10020. 'type' => 'float',
  10021. 'size' => 'big',
  10022. 'not null' => FALSE,
  10023. ),
  10024. ),
  10025. 'primary key' => array(
  10026. 0 => 'phylonode_id',
  10027. ),
  10028. 'unique keys' => array(
  10029. 'phylotree_id' => array(
  10030. 0 => 'phylotree_id',
  10031. 1 => 'left_idx',
  10032. ),
  10033. 'phylonode_phylotree_id_key1' => array(
  10034. 0 => 'phylotree_id',
  10035. 1 => 'right_idx',
  10036. ),
  10037. ),
  10038. 'foreign keys' => array(
  10039. 'cvterm' => array(
  10040. 'table' => 'cvterm',
  10041. 'columns' => array(
  10042. 'type_id' => 'cvterm_id',
  10043. ),
  10044. ),
  10045. 'feature' => array(
  10046. 'table' => 'feature',
  10047. 'columns' => array(
  10048. 'feature_id' => 'feature_id',
  10049. ),
  10050. ),
  10051. 'phylonode' => array(
  10052. 'table' => 'phylonode',
  10053. 'columns' => array(
  10054. 'parent_phylonode_id' => 'phylonode_id',
  10055. ),
  10056. ),
  10057. 'phylotree' => array(
  10058. 'table' => 'phylotree',
  10059. 'columns' => array(
  10060. 'phylotree_id' => 'phylotree_id',
  10061. ),
  10062. ),
  10063. ),
  10064. 'table' => 'phylonode',
  10065. 'referring_tables' => array(
  10066. 0 => 'phylonode',
  10067. 1 => 'phylonode_dbxref',
  10068. 2 => 'phylonode_organism',
  10069. 3 => 'phylonode_pub',
  10070. 4 => 'phylonode_relationship',
  10071. 6 => 'phylonodeprop',
  10072. ),
  10073. );
  10074. return $description;
  10075. }
  10076. /**
  10077. * Implements hook_chado_schema_v1_2_phylonode_dbxref()
  10078. * Purpose: To describe the structure of 'phylonode_dbxref' to tripal
  10079. * @see tripal_core_chado_insert()
  10080. * @see tripal_core_chado_update()
  10081. * @see tripal_core_chado_select()
  10082. *
  10083. * @return
  10084. * An array describing the 'phylonode_dbxref' table
  10085. *
  10086. * @ingroup tripal_chado_v1.2_schema_api
  10087. *
  10088. */
  10089. function tripal_core_chado_schema_v1_2_phylonode_dbxref() {
  10090. $description = array(
  10091. 'description' => 'TODO: please describe this table!',
  10092. 'fields' => array(
  10093. 'phylonode_dbxref_id' => array(
  10094. 'description' => 'TODO: please describe this field!',
  10095. 'type' => 'serial',
  10096. 'not null' => TRUE,
  10097. ),
  10098. 'phylonode_id' => array(
  10099. 'description' => 'TODO: please describe this field!',
  10100. 'type' => 'int',
  10101. 'not null' => TRUE,
  10102. ),
  10103. 'dbxref_id' => array(
  10104. 'description' => 'TODO: please describe this field!',
  10105. 'type' => 'int',
  10106. 'not null' => TRUE,
  10107. ),
  10108. ),
  10109. 'primary key' => array(
  10110. 0 => 'phylonode_dbxref_id',
  10111. ),
  10112. 'unique keys' => array(
  10113. 'phylonode_id' => array(
  10114. 0 => 'phylonode_id',
  10115. 1 => 'dbxref_id',
  10116. ),
  10117. ),
  10118. 'indexes' => array(
  10119. 'phylonode_dbxref_idx1' => array(
  10120. 0 => 'phylonode_id',
  10121. ),
  10122. 'phylonode_dbxref_idx2' => array(
  10123. 0 => 'dbxref_id',
  10124. ),
  10125. ),
  10126. 'foreign keys' => array(
  10127. 'dbxref' => array(
  10128. 'table' => 'dbxref',
  10129. 'columns' => array(
  10130. 'dbxref_id' => 'dbxref_id',
  10131. ),
  10132. ),
  10133. 'phylonode' => array(
  10134. 'table' => 'phylonode',
  10135. 'columns' => array(
  10136. 'phylonode_id' => 'phylonode_id',
  10137. ),
  10138. ),
  10139. ),
  10140. 'table' => 'phylonode_dbxref',
  10141. 'referring_tables' => NULL,
  10142. );
  10143. return $description;
  10144. }
  10145. /**
  10146. * Implements hook_chado_schema_v1_2_phylonode_organism()
  10147. * Purpose: To describe the structure of 'phylonode_organism' to tripal
  10148. * @see tripal_core_chado_insert()
  10149. * @see tripal_core_chado_update()
  10150. * @see tripal_core_chado_select()
  10151. *
  10152. * @return
  10153. * An array describing the 'phylonode_organism' table
  10154. *
  10155. * @ingroup tripal_chado_v1.2_schema_api
  10156. *
  10157. */
  10158. function tripal_core_chado_schema_v1_2_phylonode_organism() {
  10159. $description = array(
  10160. 'description' => 'TODO: please describe this table!',
  10161. 'fields' => array(
  10162. 'phylonode_organism_id' => array(
  10163. 'description' => 'TODO: please describe this field!',
  10164. 'type' => 'serial',
  10165. 'not null' => TRUE,
  10166. ),
  10167. 'phylonode_id' => array(
  10168. 'description' => 'TODO: please describe this field!',
  10169. 'type' => 'int',
  10170. 'not null' => TRUE,
  10171. ),
  10172. 'organism_id' => array(
  10173. 'description' => 'TODO: please describe this field!',
  10174. 'type' => 'int',
  10175. 'not null' => TRUE,
  10176. ),
  10177. ),
  10178. 'primary key' => array(
  10179. 0 => 'phylonode_organism_id',
  10180. ),
  10181. 'unique keys' => array(
  10182. 'phylonode_id' => array(
  10183. 0 => 'phylonode_id',
  10184. ),
  10185. ),
  10186. 'indexes' => array(
  10187. 'phylonode_organism_idx1' => array(
  10188. 0 => 'phylonode_id',
  10189. ),
  10190. 'phylonode_organism_idx2' => array(
  10191. 0 => 'organism_id',
  10192. ),
  10193. ),
  10194. 'foreign keys' => array(
  10195. 'organism' => array(
  10196. 'table' => 'organism',
  10197. 'columns' => array(
  10198. 'organism_id' => 'organism_id',
  10199. ),
  10200. ),
  10201. 'phylonode' => array(
  10202. 'table' => 'phylonode',
  10203. 'columns' => array(
  10204. 'phylonode_id' => 'phylonode_id',
  10205. ),
  10206. ),
  10207. ),
  10208. 'table' => 'phylonode_organism',
  10209. 'referring_tables' => NULL,
  10210. );
  10211. return $description;
  10212. }
  10213. /**
  10214. * Implements hook_chado_schema_v1_2_phylonode_pub()
  10215. * Purpose: To describe the structure of 'phylonode_pub' to tripal
  10216. * @see tripal_core_chado_insert()
  10217. * @see tripal_core_chado_update()
  10218. * @see tripal_core_chado_select()
  10219. *
  10220. * @return
  10221. * An array describing the 'phylonode_pub' table
  10222. *
  10223. * @ingroup tripal_chado_v1.2_schema_api
  10224. *
  10225. */
  10226. function tripal_core_chado_schema_v1_2_phylonode_pub() {
  10227. $description = array(
  10228. 'description' => 'TODO: please describe this table!',
  10229. 'fields' => array(
  10230. 'phylonode_pub_id' => array(
  10231. 'description' => 'TODO: please describe this field!',
  10232. 'type' => 'serial',
  10233. 'not null' => TRUE,
  10234. ),
  10235. 'phylonode_id' => array(
  10236. 'description' => 'TODO: please describe this field!',
  10237. 'type' => 'int',
  10238. 'not null' => TRUE,
  10239. ),
  10240. 'pub_id' => array(
  10241. 'description' => 'TODO: please describe this field!',
  10242. 'type' => 'int',
  10243. 'not null' => TRUE,
  10244. ),
  10245. ),
  10246. 'primary key' => array(
  10247. 0 => 'phylonode_pub_id',
  10248. ),
  10249. 'unique keys' => array(
  10250. 'phylonode_id' => array(
  10251. 0 => 'phylonode_id',
  10252. 1 => 'pub_id',
  10253. ),
  10254. ),
  10255. 'indexes' => array(
  10256. 'phylonode_pub_idx1' => array(
  10257. 0 => 'phylonode_id',
  10258. ),
  10259. 'phylonode_pub_idx2' => array(
  10260. 0 => 'pub_id',
  10261. ),
  10262. ),
  10263. 'foreign keys' => array(
  10264. 'pub' => array(
  10265. 'table' => 'pub',
  10266. 'columns' => array(
  10267. 'pub_id' => 'pub_id',
  10268. ),
  10269. ),
  10270. 'phylonode' => array(
  10271. 'table' => 'phylonode',
  10272. 'columns' => array(
  10273. 'phylonode_id' => 'phylonode_id',
  10274. ),
  10275. ),
  10276. ),
  10277. 'table' => 'phylonode_pub',
  10278. 'referring_tables' => NULL,
  10279. );
  10280. return $description;
  10281. }
  10282. /**
  10283. * Implements hook_chado_schema_v1_2_phylonode_relationship()
  10284. * Purpose: To describe the structure of 'phylonode_relationship' to tripal
  10285. * @see tripal_core_chado_insert()
  10286. * @see tripal_core_chado_update()
  10287. * @see tripal_core_chado_select()
  10288. *
  10289. * @return
  10290. * An array describing the 'phylonode_relationship' table
  10291. *
  10292. * @ingroup tripal_chado_v1.2_schema_api
  10293. *
  10294. */
  10295. function tripal_core_chado_schema_v1_2_phylonode_relationship() {
  10296. $description = array(
  10297. 'description' => 'TODO: please describe this table!',
  10298. 'fields' => array(
  10299. 'phylonode_relationship_id' => array(
  10300. 'description' => 'TODO: please describe this field!',
  10301. 'type' => 'serial',
  10302. 'not null' => TRUE,
  10303. ),
  10304. 'subject_id' => array(
  10305. 'description' => 'TODO: please describe this field!',
  10306. 'type' => 'int',
  10307. 'not null' => TRUE,
  10308. ),
  10309. 'object_id' => array(
  10310. 'description' => 'TODO: please describe this field!',
  10311. 'type' => 'int',
  10312. 'not null' => TRUE,
  10313. ),
  10314. 'type_id' => array(
  10315. 'description' => 'TODO: please describe this field!',
  10316. 'type' => 'int',
  10317. 'not null' => TRUE,
  10318. ),
  10319. 'rank' => array(
  10320. 'description' => 'TODO: please describe this field!',
  10321. 'type' => 'int',
  10322. 'not null' => FALSE,
  10323. ),
  10324. 'phylotree_id' => array(
  10325. 'description' => 'TODO: please describe this field!',
  10326. 'type' => 'int',
  10327. 'not null' => TRUE,
  10328. ),
  10329. ),
  10330. 'primary key' => array(
  10331. 0 => 'phylonode_relationship_id',
  10332. ),
  10333. 'unique keys' => array(
  10334. 'subject_id' => array(
  10335. 0 => 'subject_id',
  10336. 1 => 'object_id',
  10337. 2 => 'type_id',
  10338. ),
  10339. ),
  10340. 'indexes' => array(
  10341. 'phylonode_relationship_idx1' => array(
  10342. 0 => 'subject_id',
  10343. ),
  10344. 'phylonode_relationship_idx2' => array(
  10345. 0 => 'object_id',
  10346. ),
  10347. 'phylonode_relationship_idx3' => array(
  10348. 0 => 'type_id',
  10349. ),
  10350. ),
  10351. 'foreign keys' => array(
  10352. 'cvterm' => array(
  10353. 'table' => 'cvterm',
  10354. 'columns' => array(
  10355. 'type_id' => 'cvterm_id',
  10356. ),
  10357. ),
  10358. 'phylonode' => array(
  10359. 'table' => 'phylonode',
  10360. 'columns' => array(
  10361. 'subject_id' => 'phylonode_id',
  10362. 'object_id' => 'phylonode_id',
  10363. ),
  10364. ),
  10365. 'phylotree' => array(
  10366. 'table' => 'phylotree',
  10367. 'columns' => array(
  10368. 'phylotree_id' => 'phylotree_id',
  10369. ),
  10370. ),
  10371. ),
  10372. 'table' => 'phylonode_relationship',
  10373. 'referring_tables' => NULL,
  10374. );
  10375. return $description;
  10376. }
  10377. /**
  10378. * Implements hook_chado_schema_v1_2_phylonodeprop()
  10379. * Purpose: To describe the structure of 'phylonodeprop' to tripal
  10380. * @see tripal_core_chado_insert()
  10381. * @see tripal_core_chado_update()
  10382. * @see tripal_core_chado_select()
  10383. *
  10384. * @return
  10385. * An array describing the 'phylonodeprop' table
  10386. *
  10387. * @ingroup tripal_chado_v1.2_schema_api
  10388. *
  10389. */
  10390. function tripal_core_chado_schema_v1_2_phylonodeprop() {
  10391. $description = array(
  10392. 'description' => 'TODO: please describe this table!',
  10393. 'fields' => array(
  10394. 'phylonodeprop_id' => array(
  10395. 'description' => 'TODO: please describe this field!',
  10396. 'type' => 'serial',
  10397. 'not null' => TRUE,
  10398. ),
  10399. 'phylonode_id' => array(
  10400. 'description' => 'TODO: please describe this field!',
  10401. 'type' => 'int',
  10402. 'not null' => TRUE,
  10403. ),
  10404. 'type_id' => array(
  10405. 'description' => 'TODO: please describe this field!',
  10406. 'type' => 'int',
  10407. 'not null' => TRUE,
  10408. ),
  10409. 'value' => array(
  10410. 'description' => 'TODO: please describe this field!',
  10411. 'type' => 'text',
  10412. 'not null' => TRUE,
  10413. 'default' => '',
  10414. ),
  10415. 'rank' => array(
  10416. 'description' => 'TODO: please describe this field!',
  10417. 'type' => 'int',
  10418. 'not null' => TRUE,
  10419. 'default' => 0,
  10420. ),
  10421. ),
  10422. 'primary key' => array(
  10423. 0 => 'phylonodeprop_id',
  10424. ),
  10425. 'unique keys' => array(
  10426. 'phylonode_id' => array(
  10427. 0 => 'phylonode_id',
  10428. 1 => 'type_id',
  10429. 2 => 'value',
  10430. 3 => 'rank',
  10431. ),
  10432. ),
  10433. 'indexes' => array(
  10434. 'phylonodeprop_idx1' => array(
  10435. 0 => 'phylonode_id',
  10436. ),
  10437. 'phylonodeprop_idx2' => array(
  10438. 0 => 'type_id',
  10439. ),
  10440. ),
  10441. 'foreign keys' => array(
  10442. 'cvterm' => array(
  10443. 'table' => 'cvterm',
  10444. 'columns' => array(
  10445. 'type_id' => 'cvterm_id',
  10446. ),
  10447. ),
  10448. 'phylonode' => array(
  10449. 'table' => 'phylonode',
  10450. 'columns' => array(
  10451. 'phylonode_id' => 'phylonode_id',
  10452. ),
  10453. ),
  10454. ),
  10455. 'table' => 'phylonodeprop',
  10456. 'referring_tables' => NULL,
  10457. );
  10458. return $description;
  10459. }
  10460. /**
  10461. * Implements hook_chado_schema_v1_2_phylotree()
  10462. * Purpose: To describe the structure of 'phylotree' to tripal
  10463. * @see tripal_core_chado_insert()
  10464. * @see tripal_core_chado_update()
  10465. * @see tripal_core_chado_select()
  10466. *
  10467. * @return
  10468. * An array describing the 'phylotree' table
  10469. *
  10470. * @ingroup tripal_chado_v1.2_schema_api
  10471. *
  10472. */
  10473. function tripal_core_chado_schema_v1_2_phylotree() {
  10474. $description = array(
  10475. 'description' => 'TODO: please describe this table!',
  10476. 'fields' => array(
  10477. 'phylotree_id' => array(
  10478. 'description' => 'TODO: please describe this field!',
  10479. 'type' => 'serial',
  10480. 'not null' => TRUE,
  10481. ),
  10482. 'dbxref_id' => array(
  10483. 'description' => 'TODO: please describe this field!',
  10484. 'type' => 'int',
  10485. 'not null' => TRUE,
  10486. ),
  10487. 'name' => array(
  10488. 'description' => 'TODO: please describe this field!',
  10489. 'type' => 'varchar',
  10490. 'length' => '255',
  10491. 'not null' => FALSE,
  10492. ),
  10493. 'type_id' => array(
  10494. 'description' => 'TODO: please describe this field!',
  10495. 'type' => 'int',
  10496. 'not null' => FALSE,
  10497. ),
  10498. 'analysis_id' => array(
  10499. 'description' => 'TODO: please describe this field!',
  10500. 'type' => 'int',
  10501. 'not null' => FALSE,
  10502. ),
  10503. 'comment' => array(
  10504. 'description' => 'TODO: please describe this field!',
  10505. 'type' => 'text',
  10506. 'not null' => FALSE,
  10507. ),
  10508. ),
  10509. 'primary key' => array(
  10510. 0 => 'phylotree_id',
  10511. ),
  10512. 'indexes' => array(
  10513. 'phylotree_idx1' => array(
  10514. 0 => 'phylotree_id',
  10515. ),
  10516. ),
  10517. 'foreign keys' => array(
  10518. 'cvterm' => array(
  10519. 'table' => 'cvterm',
  10520. 'columns' => array(
  10521. 'type_id' => 'cvterm_id',
  10522. ),
  10523. ),
  10524. 'dbxref' => array(
  10525. 'table' => 'dbxref',
  10526. 'columns' => array(
  10527. 'dbxref_id' => 'dbxref_id',
  10528. ),
  10529. ),
  10530. 'analysis' => array(
  10531. 'table' => 'analysis',
  10532. 'columns' => array(
  10533. 'analysis_id' => 'analysis_id',
  10534. ),
  10535. ),
  10536. ),
  10537. 'table' => 'phylotree',
  10538. 'referring_tables' => array(
  10539. 0 => 'phylonode',
  10540. 1 => 'phylonode_relationship',
  10541. 2 => 'phylotree_pub',
  10542. ),
  10543. );
  10544. return $description;
  10545. }
  10546. /**
  10547. * Implements hook_chado_schema_v1_2_phylotree_pub()
  10548. * Purpose: To describe the structure of 'phylotree_pub' to tripal
  10549. * @see tripal_core_chado_insert()
  10550. * @see tripal_core_chado_update()
  10551. * @see tripal_core_chado_select()
  10552. *
  10553. * @return
  10554. * An array describing the 'phylotree_pub' table
  10555. *
  10556. * @ingroup tripal_chado_v1.2_schema_api
  10557. *
  10558. */
  10559. function tripal_core_chado_schema_v1_2_phylotree_pub() {
  10560. $description = array(
  10561. 'description' => 'TODO: please describe this table!',
  10562. 'fields' => array(
  10563. 'phylotree_pub_id' => array(
  10564. 'description' => 'TODO: please describe this field!',
  10565. 'type' => 'serial',
  10566. 'not null' => TRUE,
  10567. ),
  10568. 'phylotree_id' => array(
  10569. 'description' => 'TODO: please describe this field!',
  10570. 'type' => 'int',
  10571. 'not null' => TRUE,
  10572. ),
  10573. 'pub_id' => array(
  10574. 'description' => 'TODO: please describe this field!',
  10575. 'type' => 'int',
  10576. 'not null' => TRUE,
  10577. ),
  10578. ),
  10579. 'primary key' => array(
  10580. 0 => 'phylotree_pub_id',
  10581. ),
  10582. 'unique keys' => array(
  10583. 'phylotree_id' => array(
  10584. 0 => 'phylotree_id',
  10585. 1 => 'pub_id',
  10586. ),
  10587. ),
  10588. 'indexes' => array(
  10589. 'phylotree_pub_idx1' => array(
  10590. 0 => 'phylotree_id',
  10591. ),
  10592. 'phylotree_pub_idx2' => array(
  10593. 0 => 'pub_id',
  10594. ),
  10595. ),
  10596. 'foreign keys' => array(
  10597. 'pub' => array(
  10598. 'table' => 'pub',
  10599. 'columns' => array(
  10600. 'pub_id' => 'pub_id',
  10601. ),
  10602. ),
  10603. 'phylotree' => array(
  10604. 'table' => 'phylotree',
  10605. 'columns' => array(
  10606. 'phylotree_id' => 'phylotree_id',
  10607. ),
  10608. ),
  10609. ),
  10610. 'table' => 'phylotree_pub',
  10611. 'referring_tables' => NULL,
  10612. );
  10613. return $description;
  10614. }
  10615. /**
  10616. * Implements hook_chado_schema_v1_2_project()
  10617. * Purpose: To describe the structure of 'project' to tripal
  10618. * @see tripal_core_chado_insert()
  10619. * @see tripal_core_chado_update()
  10620. * @see tripal_core_chado_select()
  10621. *
  10622. * @return
  10623. * An array describing the 'project' table
  10624. *
  10625. * @ingroup tripal_chado_v1.2_schema_api
  10626. *
  10627. */
  10628. function tripal_core_chado_schema_v1_2_project() {
  10629. $description = array(
  10630. 'description' => 'TODO: please describe this table!',
  10631. 'fields' => array(
  10632. 'project_id' => array(
  10633. 'description' => 'TODO: please describe this field!',
  10634. 'type' => 'serial',
  10635. 'not null' => TRUE,
  10636. ),
  10637. 'name' => array(
  10638. 'description' => 'TODO: please describe this field!',
  10639. 'type' => 'varchar',
  10640. 'length' => '255',
  10641. 'not null' => TRUE,
  10642. ),
  10643. 'description' => array(
  10644. 'description' => 'TODO: please describe this field!',
  10645. 'type' => 'varchar',
  10646. 'length' => '255',
  10647. 'not null' => TRUE,
  10648. ),
  10649. ),
  10650. 'primary key' => array(
  10651. 0 => 'project_id',
  10652. ),
  10653. 'unique keys' => array(
  10654. 'project_c1' => array(
  10655. 0 => 'name',
  10656. ),
  10657. ),
  10658. 'foreign keys' => array(
  10659. ),
  10660. 'table' => 'project',
  10661. 'referring_tables' => array(
  10662. 0 => 'assay_project',
  10663. 1 => 'nd_experiment_project',
  10664. 2 => 'project_contact',
  10665. 10 => 'project_pub',
  10666. 18 => 'project_relationship',
  10667. 34 => 'projectprop',
  10668. ),
  10669. );
  10670. return $description;
  10671. }
  10672. /**
  10673. * Implements hook_chado_schema_v1_2_project_contact()
  10674. * Purpose: To describe the structure of 'project_contact' to tripal
  10675. * @see tripal_core_chado_insert()
  10676. * @see tripal_core_chado_update()
  10677. * @see tripal_core_chado_select()
  10678. *
  10679. * @return
  10680. * An array describing the 'project_contact' table
  10681. *
  10682. * @ingroup tripal_chado_v1.2_schema_api
  10683. *
  10684. */
  10685. function tripal_core_chado_schema_v1_2_project_contact() {
  10686. $description = array(
  10687. 'description' => 'TODO: please describe this table!',
  10688. 'fields' => array(
  10689. 'project_contact_id' => array(
  10690. 'description' => 'TODO: please describe this field!',
  10691. 'type' => 'serial',
  10692. 'not null' => TRUE,
  10693. ),
  10694. 'project_id' => array(
  10695. 'description' => 'TODO: please describe this field!',
  10696. 'type' => 'int',
  10697. 'not null' => TRUE,
  10698. ),
  10699. 'contact_id' => array(
  10700. 'description' => 'TODO: please describe this field!',
  10701. 'type' => 'int',
  10702. 'not null' => TRUE,
  10703. ),
  10704. ),
  10705. 'primary key' => array(
  10706. 0 => 'project_contact_id',
  10707. ),
  10708. 'unique keys' => array(
  10709. 'project_contact_c1' => array(
  10710. 0 => 'project_id',
  10711. 1 => 'contact_id',
  10712. ),
  10713. ),
  10714. 'indexes' => array(
  10715. 'project_contact_idx1' => array(
  10716. 0 => 'project_id',
  10717. ),
  10718. 'project_contact_idx2' => array(
  10719. 0 => 'contact_id',
  10720. ),
  10721. ),
  10722. 'foreign keys' => array(
  10723. 'contact' => array(
  10724. 'table' => 'contact',
  10725. 'columns' => array(
  10726. 'contact_id' => 'contact_id',
  10727. ),
  10728. ),
  10729. 'project' => array(
  10730. 'table' => 'project',
  10731. 'columns' => array(
  10732. 'project_id' => 'project_id',
  10733. ),
  10734. ),
  10735. ),
  10736. 'table' => 'project_contact',
  10737. 'referring_tables' => NULL,
  10738. );
  10739. return $description;
  10740. }
  10741. /**
  10742. * Implements hook_chado_schema_v1_2_project_pub()
  10743. * Purpose: To describe the structure of 'project_pub' to tripal
  10744. * @see tripal_core_chado_insert()
  10745. * @see tripal_core_chado_update()
  10746. * @see tripal_core_chado_select()
  10747. *
  10748. * @return
  10749. * An array describing the 'project_pub' table
  10750. *
  10751. * @ingroup tripal_chado_v1.2_schema_api
  10752. *
  10753. */
  10754. function tripal_core_chado_schema_v1_2_project_pub() {
  10755. $description = array(
  10756. 'description' => 'TODO: please describe this table!',
  10757. 'fields' => array(
  10758. 'project_pub_id' => array(
  10759. 'description' => 'TODO: please describe this field!',
  10760. 'type' => 'serial',
  10761. 'not null' => TRUE,
  10762. ),
  10763. 'project_id' => array(
  10764. 'description' => 'TODO: please describe this field!',
  10765. 'type' => 'int',
  10766. 'not null' => TRUE,
  10767. ),
  10768. 'pub_id' => array(
  10769. 'description' => 'TODO: please describe this field!',
  10770. 'type' => 'int',
  10771. 'not null' => TRUE,
  10772. ),
  10773. ),
  10774. 'primary key' => array(
  10775. 0 => 'project_pub_id',
  10776. ),
  10777. 'unique keys' => array(
  10778. 'project_pub_c1' => array(
  10779. 0 => 'project_id',
  10780. 1 => 'pub_id',
  10781. ),
  10782. ),
  10783. 'indexes' => array(
  10784. 'project_pub_idx1' => array(
  10785. 0 => 'project_id',
  10786. ),
  10787. 'project_pub_idx2' => array(
  10788. 0 => 'pub_id',
  10789. ),
  10790. ),
  10791. 'foreign keys' => array(
  10792. 'pub' => array(
  10793. 'table' => 'pub',
  10794. 'columns' => array(
  10795. 'pub_id' => 'pub_id',
  10796. ),
  10797. ),
  10798. 'project' => array(
  10799. 'table' => 'project',
  10800. 'columns' => array(
  10801. 'project_id' => 'project_id',
  10802. ),
  10803. ),
  10804. ),
  10805. 'table' => 'project_pub',
  10806. 'referring_tables' => NULL,
  10807. );
  10808. return $description;
  10809. }
  10810. /**
  10811. * Implements hook_chado_schema_v1_2_project_relationship()
  10812. * Purpose: To describe the structure of 'project_relationship' to tripal
  10813. * @see tripal_core_chado_insert()
  10814. * @see tripal_core_chado_update()
  10815. * @see tripal_core_chado_select()
  10816. *
  10817. * @return
  10818. * An array describing the 'project_relationship' table
  10819. *
  10820. * @ingroup tripal_chado_v1.2_schema_api
  10821. *
  10822. */
  10823. function tripal_core_chado_schema_v1_2_project_relationship() {
  10824. $description = array(
  10825. 'description' => 'TODO: please describe this table!',
  10826. 'fields' => array(
  10827. 'project_relationship_id' => array(
  10828. 'description' => 'TODO: please describe this field!',
  10829. 'type' => 'serial',
  10830. 'not null' => TRUE,
  10831. ),
  10832. 'subject_project_id' => array(
  10833. 'description' => 'TODO: please describe this field!',
  10834. 'type' => 'int',
  10835. 'not null' => TRUE,
  10836. ),
  10837. 'object_project_id' => array(
  10838. 'description' => 'TODO: please describe this field!',
  10839. 'type' => 'int',
  10840. 'not null' => TRUE,
  10841. ),
  10842. 'type_id' => array(
  10843. 'description' => 'TODO: please describe this field!',
  10844. 'type' => 'int',
  10845. 'not null' => TRUE,
  10846. ),
  10847. ),
  10848. 'primary key' => array(
  10849. 0 => 'project_relationship_id',
  10850. ),
  10851. 'unique keys' => array(
  10852. 'project_relationship_c1' => array(
  10853. 0 => 'subject_project_id',
  10854. 1 => 'object_project_id',
  10855. 2 => 'type_id',
  10856. ),
  10857. ),
  10858. 'foreign keys' => array(
  10859. 'cvterm' => array(
  10860. 'table' => 'cvterm',
  10861. 'columns' => array(
  10862. 'type_id' => 'cvterm_id',
  10863. ),
  10864. ),
  10865. 'project' => array(
  10866. 'table' => 'project',
  10867. 'columns' => array(
  10868. 'subject_project_id' => 'project_id',
  10869. 'object_project_id' => 'project_id',
  10870. ),
  10871. ),
  10872. ),
  10873. 'table' => 'project_relationship',
  10874. 'referring_tables' => NULL,
  10875. );
  10876. return $description;
  10877. }
  10878. /**
  10879. * Implements hook_chado_schema_v1_2_projectprop()
  10880. * Purpose: To describe the structure of 'projectprop' to tripal
  10881. * @see tripal_core_chado_insert()
  10882. * @see tripal_core_chado_update()
  10883. * @see tripal_core_chado_select()
  10884. *
  10885. * @return
  10886. * An array describing the 'projectprop' table
  10887. *
  10888. * @ingroup tripal_chado_v1.2_schema_api
  10889. *
  10890. */
  10891. function tripal_core_chado_schema_v1_2_projectprop() {
  10892. $description = array(
  10893. 'description' => 'TODO: please describe this table!',
  10894. 'fields' => array(
  10895. 'projectprop_id' => array(
  10896. 'description' => 'TODO: please describe this field!',
  10897. 'type' => 'serial',
  10898. 'not null' => TRUE,
  10899. ),
  10900. 'project_id' => array(
  10901. 'description' => 'TODO: please describe this field!',
  10902. 'type' => 'int',
  10903. 'not null' => TRUE,
  10904. ),
  10905. 'type_id' => array(
  10906. 'description' => 'TODO: please describe this field!',
  10907. 'type' => 'int',
  10908. 'not null' => TRUE,
  10909. ),
  10910. 'value' => array(
  10911. 'description' => 'TODO: please describe this field!',
  10912. 'type' => 'text',
  10913. 'not null' => FALSE,
  10914. ),
  10915. 'rank' => array(
  10916. 'description' => 'TODO: please describe this field!',
  10917. 'type' => 'int',
  10918. 'not null' => TRUE,
  10919. 'default' => 0,
  10920. ),
  10921. ),
  10922. 'primary key' => array(
  10923. 0 => 'projectprop_id',
  10924. ),
  10925. 'unique keys' => array(
  10926. 'projectprop_c1' => array(
  10927. 0 => 'project_id',
  10928. 1 => 'type_id',
  10929. 2 => 'rank',
  10930. ),
  10931. ),
  10932. 'foreign keys' => array(
  10933. 'cvterm' => array(
  10934. 'table' => 'cvterm',
  10935. 'columns' => array(
  10936. 'type_id' => 'cvterm_id',
  10937. ),
  10938. ),
  10939. 'project' => array(
  10940. 'table' => 'project',
  10941. 'columns' => array(
  10942. 'project_id' => 'project_id',
  10943. ),
  10944. ),
  10945. ),
  10946. 'table' => 'projectprop',
  10947. 'referring_tables' => NULL,
  10948. );
  10949. return $description;
  10950. }
  10951. /**
  10952. * Implements hook_chado_schema_v1_2_protocol()
  10953. * Purpose: To describe the structure of 'protocol' to tripal
  10954. * @see tripal_core_chado_insert()
  10955. * @see tripal_core_chado_update()
  10956. * @see tripal_core_chado_select()
  10957. *
  10958. * @return
  10959. * An array describing the 'protocol' table
  10960. *
  10961. * @ingroup tripal_chado_v1.2_schema_api
  10962. *
  10963. */
  10964. function tripal_core_chado_schema_v1_2_protocol() {
  10965. $description = array(
  10966. 'description' => 'TODO: please describe this table!',
  10967. 'fields' => array(
  10968. 'protocol_id' => array(
  10969. 'description' => 'TODO: please describe this field!',
  10970. 'type' => 'serial',
  10971. 'not null' => TRUE,
  10972. ),
  10973. 'type_id' => array(
  10974. 'description' => 'TODO: please describe this field!',
  10975. 'type' => 'int',
  10976. 'not null' => TRUE,
  10977. ),
  10978. 'pub_id' => array(
  10979. 'description' => 'TODO: please describe this field!',
  10980. 'type' => 'int',
  10981. 'not null' => FALSE,
  10982. ),
  10983. 'dbxref_id' => array(
  10984. 'description' => 'TODO: please describe this field!',
  10985. 'type' => 'int',
  10986. 'not null' => FALSE,
  10987. ),
  10988. 'name' => array(
  10989. 'description' => 'TODO: please describe this field!',
  10990. 'type' => 'text',
  10991. 'not null' => TRUE,
  10992. ),
  10993. 'uri' => array(
  10994. 'description' => 'TODO: please describe this field!',
  10995. 'type' => 'text',
  10996. 'not null' => FALSE,
  10997. ),
  10998. 'protocoldescription' => array(
  10999. 'description' => 'TODO: please describe this field!',
  11000. 'type' => 'text',
  11001. 'not null' => FALSE,
  11002. ),
  11003. 'hardwaredescription' => array(
  11004. 'description' => 'TODO: please describe this field!',
  11005. 'type' => 'text',
  11006. 'not null' => FALSE,
  11007. ),
  11008. 'softwaredescription' => array(
  11009. 'description' => 'TODO: please describe this field!',
  11010. 'type' => 'text',
  11011. 'not null' => FALSE,
  11012. ),
  11013. ),
  11014. 'primary key' => array(
  11015. 0 => 'protocol_id',
  11016. ),
  11017. 'unique keys' => array(
  11018. 'protocol_c1' => array(
  11019. 0 => 'name',
  11020. ),
  11021. ),
  11022. 'indexes' => array(
  11023. 'protocol_idx1' => array(
  11024. 0 => 'type_id',
  11025. ),
  11026. 'protocol_idx2' => array(
  11027. 0 => 'pub_id',
  11028. ),
  11029. 'protocol_idx3' => array(
  11030. 0 => 'dbxref_id',
  11031. ),
  11032. ),
  11033. 'foreign keys' => array(
  11034. 'cvterm' => array(
  11035. 'table' => 'cvterm',
  11036. 'columns' => array(
  11037. 'type_id' => 'cvterm_id',
  11038. ),
  11039. ),
  11040. 'dbxref' => array(
  11041. 'table' => 'dbxref',
  11042. 'columns' => array(
  11043. 'dbxref_id' => 'dbxref_id',
  11044. ),
  11045. ),
  11046. 'pub' => array(
  11047. 'table' => 'pub',
  11048. 'columns' => array(
  11049. 'pub_id' => 'pub_id',
  11050. ),
  11051. ),
  11052. ),
  11053. 'table' => 'protocol',
  11054. 'referring_tables' => array(
  11055. 0 => 'acquisition',
  11056. 1 => 'arraydesign',
  11057. 2 => 'assay',
  11058. 3 => 'protocolparam',
  11059. 4 => 'quantification',
  11060. 5 => 'treatment',
  11061. ),
  11062. );
  11063. return $description;
  11064. }
  11065. /**
  11066. * Implements hook_chado_schema_v1_2_protocolparam()
  11067. * Purpose: To describe the structure of 'protocolparam' to tripal
  11068. * @see tripal_core_chado_insert()
  11069. * @see tripal_core_chado_update()
  11070. * @see tripal_core_chado_select()
  11071. *
  11072. * @return
  11073. * An array describing the 'protocolparam' table
  11074. *
  11075. * @ingroup tripal_chado_v1.2_schema_api
  11076. *
  11077. */
  11078. function tripal_core_chado_schema_v1_2_protocolparam() {
  11079. $description = array(
  11080. 'description' => 'TODO: please describe this table!',
  11081. 'fields' => array(
  11082. 'protocolparam_id' => array(
  11083. 'description' => 'TODO: please describe this field!',
  11084. 'type' => 'serial',
  11085. 'not null' => TRUE,
  11086. ),
  11087. 'protocol_id' => array(
  11088. 'description' => 'TODO: please describe this field!',
  11089. 'type' => 'int',
  11090. 'not null' => TRUE,
  11091. ),
  11092. 'name' => array(
  11093. 'description' => 'TODO: please describe this field!',
  11094. 'type' => 'text',
  11095. 'not null' => TRUE,
  11096. ),
  11097. 'datatype_id' => array(
  11098. 'description' => 'TODO: please describe this field!',
  11099. 'type' => 'int',
  11100. 'not null' => FALSE,
  11101. ),
  11102. 'unittype_id' => array(
  11103. 'description' => 'TODO: please describe this field!',
  11104. 'type' => 'int',
  11105. 'not null' => FALSE,
  11106. ),
  11107. 'value' => array(
  11108. 'description' => 'TODO: please describe this field!',
  11109. 'type' => 'text',
  11110. 'not null' => FALSE,
  11111. ),
  11112. 'rank' => array(
  11113. 'description' => 'TODO: please describe this field!',
  11114. 'type' => 'int',
  11115. 'not null' => TRUE,
  11116. 'default' => 0,
  11117. ),
  11118. ),
  11119. 'primary key' => array(
  11120. 0 => 'protocolparam_id',
  11121. ),
  11122. 'indexes' => array(
  11123. 'protocolparam_idx1' => array(
  11124. 0 => 'protocol_id',
  11125. ),
  11126. 'protocolparam_idx2' => array(
  11127. 0 => 'datatype_id',
  11128. ),
  11129. 'protocolparam_idx3' => array(
  11130. 0 => 'unittype_id',
  11131. ),
  11132. ),
  11133. 'foreign keys' => array(
  11134. 'cvterm' => array(
  11135. 'table' => 'cvterm',
  11136. 'columns' => array(
  11137. 'datatype_id' => 'cvterm_id',
  11138. 'unittype_id' => 'cvterm_id',
  11139. ),
  11140. ),
  11141. 'protocol' => array(
  11142. 'table' => 'protocol',
  11143. 'columns' => array(
  11144. 'protocol_id' => 'protocol_id',
  11145. ),
  11146. ),
  11147. ),
  11148. 'table' => 'protocolparam',
  11149. 'referring_tables' => NULL,
  11150. );
  11151. return $description;
  11152. }
  11153. /**
  11154. * Implements hook_chado_schema_v1_2_pub()
  11155. * Purpose: To describe the structure of 'pub' to tripal
  11156. * @see tripal_core_chado_insert()
  11157. * @see tripal_core_chado_update()
  11158. * @see tripal_core_chado_select()
  11159. *
  11160. * @return
  11161. * An array describing the 'pub' table
  11162. *
  11163. * @ingroup tripal_chado_v1.2_schema_api
  11164. *
  11165. */
  11166. function tripal_core_chado_schema_v1_2_pub() {
  11167. $description = array(
  11168. 'description' => 'TODO: please describe this table!',
  11169. 'fields' => array(
  11170. 'pub_id' => array(
  11171. 'description' => 'TODO: please describe this field!',
  11172. 'type' => 'serial',
  11173. 'not null' => TRUE,
  11174. ),
  11175. 'title' => array(
  11176. 'description' => 'TODO: please describe this field!',
  11177. 'type' => 'text',
  11178. 'not null' => FALSE,
  11179. ),
  11180. 'volumetitle' => array(
  11181. 'description' => 'TODO: please describe this field!',
  11182. 'type' => 'text',
  11183. 'not null' => FALSE,
  11184. ),
  11185. 'volume' => array(
  11186. 'description' => 'TODO: please describe this field!',
  11187. 'type' => 'varchar',
  11188. 'length' => '255',
  11189. 'not null' => FALSE,
  11190. ),
  11191. 'series_name' => array(
  11192. 'description' => 'TODO: please describe this field!',
  11193. 'type' => 'varchar',
  11194. 'length' => '255',
  11195. 'not null' => FALSE,
  11196. ),
  11197. 'issue' => array(
  11198. 'description' => 'TODO: please describe this field!',
  11199. 'type' => 'varchar',
  11200. 'length' => '255',
  11201. 'not null' => FALSE,
  11202. ),
  11203. 'pyear' => array(
  11204. 'description' => 'TODO: please describe this field!',
  11205. 'type' => 'varchar',
  11206. 'length' => '255',
  11207. 'not null' => FALSE,
  11208. ),
  11209. 'pages' => array(
  11210. 'description' => 'TODO: please describe this field!',
  11211. 'type' => 'varchar',
  11212. 'length' => '255',
  11213. 'not null' => FALSE,
  11214. ),
  11215. 'miniref' => array(
  11216. 'description' => 'TODO: please describe this field!',
  11217. 'type' => 'varchar',
  11218. 'length' => '255',
  11219. 'not null' => FALSE,
  11220. ),
  11221. 'uniquename' => array(
  11222. 'description' => 'TODO: please describe this field!',
  11223. 'type' => 'text',
  11224. 'not null' => TRUE,
  11225. ),
  11226. 'type_id' => array(
  11227. 'description' => 'TODO: please describe this field!',
  11228. 'type' => 'int',
  11229. 'not null' => TRUE,
  11230. ),
  11231. 'is_obsolete' => array(
  11232. 'description' => 'TODO: please describe this field!',
  11233. 'type' => 'boolean',
  11234. 'not null' => FALSE,
  11235. 'default' => 'als',
  11236. ),
  11237. 'publisher' => array(
  11238. 'description' => 'TODO: please describe this field!',
  11239. 'type' => 'varchar',
  11240. 'length' => '255',
  11241. 'not null' => FALSE,
  11242. ),
  11243. 'pubplace' => array(
  11244. 'description' => 'TODO: please describe this field!',
  11245. 'type' => 'varchar',
  11246. 'length' => '255',
  11247. 'not null' => FALSE,
  11248. ),
  11249. ),
  11250. 'primary key' => array(
  11251. 0 => 'pub_id',
  11252. ),
  11253. 'unique keys' => array(
  11254. 'pub_c1' => array(
  11255. 0 => 'uniquename',
  11256. ),
  11257. ),
  11258. 'indexes' => array(
  11259. 'pub_idx1' => array(
  11260. 0 => 'type_id',
  11261. ),
  11262. ),
  11263. 'foreign keys' => array(
  11264. 'cvterm' => array(
  11265. 'table' => 'cvterm',
  11266. 'columns' => array(
  11267. 'type_id' => 'cvterm_id',
  11268. ),
  11269. ),
  11270. ),
  11271. 'table' => 'pub',
  11272. 'referring_tables' => array(
  11273. 0 => 'cell_line_cvterm',
  11274. 1 => 'cell_line_feature',
  11275. 2 => 'cell_line_library',
  11276. 3 => 'cell_line_pub',
  11277. 4 => 'cell_line_synonym',
  11278. 5 => 'cell_lineprop_pub',
  11279. 6 => 'expression_pub',
  11280. 7 => 'feature_cvterm',
  11281. 8 => 'feature_cvterm_pub',
  11282. 9 => 'feature_expression',
  11283. 10 => 'feature_pub',
  11284. 11 => 'feature_relationship_pub',
  11285. 12 => 'feature_relationshipprop_pub',
  11286. 13 => 'feature_synonym',
  11287. 14 => 'featureloc_pub',
  11288. 15 => 'featuremap_pub',
  11289. 16 => 'featureprop_pub',
  11290. 17 => 'library_cvterm',
  11291. 18 => 'library_pub',
  11292. 19 => 'library_synonym',
  11293. 20 => 'libraryprop_pub',
  11294. 21 => 'nd_experiment_pub',
  11295. 22 => 'phendesc',
  11296. 23 => 'phenotype_comparison',
  11297. 24 => 'phenotype_comparison_cvterm',
  11298. 25 => 'phenstatement',
  11299. 26 => 'phylonode_pub',
  11300. 27 => 'phylotree_pub',
  11301. 28 => 'project_pub',
  11302. 36 => 'protocol',
  11303. 37 => 'pub_dbxref',
  11304. 38 => 'pub_relationship',
  11305. 40 => 'pubauthor',
  11306. 41 => 'pubprop',
  11307. 42 => 'stock_cvterm',
  11308. 43 => 'stock_pub',
  11309. 44 => 'stock_relationship_cvterm',
  11310. 52 => 'stock_relationship_pub',
  11311. 53 => 'stockprop_pub',
  11312. 54 => 'study',
  11313. ),
  11314. );
  11315. return $description;
  11316. }
  11317. /**
  11318. * Implements hook_chado_schema_v1_2_pub_dbxref()
  11319. * Purpose: To describe the structure of 'pub_dbxref' to tripal
  11320. * @see tripal_core_chado_insert()
  11321. * @see tripal_core_chado_update()
  11322. * @see tripal_core_chado_select()
  11323. *
  11324. * @return
  11325. * An array describing the 'pub_dbxref' table
  11326. *
  11327. * @ingroup tripal_chado_v1.2_schema_api
  11328. *
  11329. */
  11330. function tripal_core_chado_schema_v1_2_pub_dbxref() {
  11331. $description = array(
  11332. 'description' => 'TODO: please describe this table!',
  11333. 'fields' => array(
  11334. 'pub_dbxref_id' => array(
  11335. 'description' => 'TODO: please describe this field!',
  11336. 'type' => 'serial',
  11337. 'not null' => TRUE,
  11338. ),
  11339. 'pub_id' => array(
  11340. 'description' => 'TODO: please describe this field!',
  11341. 'type' => 'int',
  11342. 'not null' => TRUE,
  11343. ),
  11344. 'dbxref_id' => array(
  11345. 'description' => 'TODO: please describe this field!',
  11346. 'type' => 'int',
  11347. 'not null' => TRUE,
  11348. ),
  11349. 'is_current' => array(
  11350. 'description' => 'TODO: please describe this field!',
  11351. 'type' => 'boolean',
  11352. 'not null' => TRUE,
  11353. 'default' => 'ru',
  11354. ),
  11355. ),
  11356. 'primary key' => array(
  11357. 0 => 'pub_dbxref_id',
  11358. ),
  11359. 'unique keys' => array(
  11360. 'pub_dbxref_c1' => array(
  11361. 0 => 'pub_id',
  11362. 1 => 'dbxref_id',
  11363. ),
  11364. ),
  11365. 'indexes' => array(
  11366. 'pub_dbxref_idx1' => array(
  11367. 0 => 'pub_id',
  11368. ),
  11369. 'pub_dbxref_idx2' => array(
  11370. 0 => 'dbxref_id',
  11371. ),
  11372. ),
  11373. 'foreign keys' => array(
  11374. 'dbxref' => array(
  11375. 'table' => 'dbxref',
  11376. 'columns' => array(
  11377. 'dbxref_id' => 'dbxref_id',
  11378. ),
  11379. ),
  11380. 'pub' => array(
  11381. 'table' => 'pub',
  11382. 'columns' => array(
  11383. 'pub_id' => 'pub_id',
  11384. ),
  11385. ),
  11386. ),
  11387. 'table' => 'pub_dbxref',
  11388. 'referring_tables' => NULL,
  11389. );
  11390. return $description;
  11391. }
  11392. /**
  11393. * Implements hook_chado_schema_v1_2_pub_relationship()
  11394. * Purpose: To describe the structure of 'pub_relationship' to tripal
  11395. * @see tripal_core_chado_insert()
  11396. * @see tripal_core_chado_update()
  11397. * @see tripal_core_chado_select()
  11398. *
  11399. * @return
  11400. * An array describing the 'pub_relationship' table
  11401. *
  11402. * @ingroup tripal_chado_v1.2_schema_api
  11403. *
  11404. */
  11405. function tripal_core_chado_schema_v1_2_pub_relationship() {
  11406. $description = array(
  11407. 'description' => 'TODO: please describe this table!',
  11408. 'fields' => array(
  11409. 'pub_relationship_id' => array(
  11410. 'description' => 'TODO: please describe this field!',
  11411. 'type' => 'serial',
  11412. 'not null' => TRUE,
  11413. ),
  11414. 'subject_id' => array(
  11415. 'description' => 'TODO: please describe this field!',
  11416. 'type' => 'int',
  11417. 'not null' => TRUE,
  11418. ),
  11419. 'object_id' => array(
  11420. 'description' => 'TODO: please describe this field!',
  11421. 'type' => 'int',
  11422. 'not null' => TRUE,
  11423. ),
  11424. 'type_id' => array(
  11425. 'description' => 'TODO: please describe this field!',
  11426. 'type' => 'int',
  11427. 'not null' => TRUE,
  11428. ),
  11429. ),
  11430. 'primary key' => array(
  11431. 0 => 'pub_relationship_id',
  11432. ),
  11433. 'unique keys' => array(
  11434. 'pub_relationship_c1' => array(
  11435. 0 => 'subject_id',
  11436. 1 => 'object_id',
  11437. 2 => 'type_id',
  11438. ),
  11439. ),
  11440. 'indexes' => array(
  11441. 'pub_relationship_idx1' => array(
  11442. 0 => 'subject_id',
  11443. ),
  11444. 'pub_relationship_idx2' => array(
  11445. 0 => 'object_id',
  11446. ),
  11447. 'pub_relationship_idx3' => array(
  11448. 0 => 'type_id',
  11449. ),
  11450. ),
  11451. 'foreign keys' => array(
  11452. 'cvterm' => array(
  11453. 'table' => 'cvterm',
  11454. 'columns' => array(
  11455. 'type_id' => 'cvterm_id',
  11456. ),
  11457. ),
  11458. 'pub' => array(
  11459. 'table' => 'pub',
  11460. 'columns' => array(
  11461. 'subject_id' => 'pub_id',
  11462. 'object_id' => 'pub_id',
  11463. ),
  11464. ),
  11465. ),
  11466. 'table' => 'pub_relationship',
  11467. 'referring_tables' => NULL,
  11468. );
  11469. return $description;
  11470. }
  11471. /**
  11472. * Implements hook_chado_schema_v1_2_pubauthor()
  11473. * Purpose: To describe the structure of 'pubauthor' to tripal
  11474. * @see tripal_core_chado_insert()
  11475. * @see tripal_core_chado_update()
  11476. * @see tripal_core_chado_select()
  11477. *
  11478. * @return
  11479. * An array describing the 'pubauthor' table
  11480. *
  11481. * @ingroup tripal_chado_v1.2_schema_api
  11482. *
  11483. */
  11484. function tripal_core_chado_schema_v1_2_pubauthor() {
  11485. $description = array(
  11486. 'description' => 'TODO: please describe this table!',
  11487. 'fields' => array(
  11488. 'pubauthor_id' => array(
  11489. 'description' => 'TODO: please describe this field!',
  11490. 'type' => 'serial',
  11491. 'not null' => TRUE,
  11492. ),
  11493. 'pub_id' => array(
  11494. 'description' => 'TODO: please describe this field!',
  11495. 'type' => 'int',
  11496. 'not null' => TRUE,
  11497. ),
  11498. 'rank' => array(
  11499. 'description' => 'TODO: please describe this field!',
  11500. 'type' => 'int',
  11501. 'not null' => TRUE,
  11502. ),
  11503. 'editor' => array(
  11504. 'description' => 'TODO: please describe this field!',
  11505. 'type' => 'boolean',
  11506. 'not null' => FALSE,
  11507. 'default' => 'als',
  11508. ),
  11509. 'surname' => array(
  11510. 'description' => 'TODO: please describe this field!',
  11511. 'type' => 'varchar',
  11512. 'length' => '100',
  11513. 'not null' => TRUE,
  11514. ),
  11515. 'givennames' => array(
  11516. 'description' => 'TODO: please describe this field!',
  11517. 'type' => 'varchar',
  11518. 'length' => '100',
  11519. 'not null' => FALSE,
  11520. ),
  11521. 'suffix' => array(
  11522. 'description' => 'TODO: please describe this field!',
  11523. 'type' => 'varchar',
  11524. 'length' => '100',
  11525. 'not null' => FALSE,
  11526. ),
  11527. ),
  11528. 'primary key' => array(
  11529. 0 => 'pubauthor_id',
  11530. ),
  11531. 'unique keys' => array(
  11532. 'pubauthor_c1' => array(
  11533. 0 => 'pub_id',
  11534. 1 => 'rank',
  11535. ),
  11536. ),
  11537. 'indexes' => array(
  11538. 'pubauthor_idx2' => array(
  11539. 0 => 'pub_id',
  11540. ),
  11541. ),
  11542. 'foreign keys' => array(
  11543. 'pub' => array(
  11544. 'table' => 'pub',
  11545. 'columns' => array(
  11546. 'pub_id' => 'pub_id',
  11547. ),
  11548. ),
  11549. ),
  11550. 'table' => 'pubauthor',
  11551. 'referring_tables' => NULL,
  11552. );
  11553. return $description;
  11554. }
  11555. /**
  11556. * Implements hook_chado_schema_v1_2_pubprop()
  11557. * Purpose: To describe the structure of 'pubprop' to tripal
  11558. * @see tripal_core_chado_insert()
  11559. * @see tripal_core_chado_update()
  11560. * @see tripal_core_chado_select()
  11561. *
  11562. * @return
  11563. * An array describing the 'pubprop' table
  11564. *
  11565. * @ingroup tripal_chado_v1.2_schema_api
  11566. *
  11567. */
  11568. function tripal_core_chado_schema_v1_2_pubprop() {
  11569. $description = array(
  11570. 'description' => 'TODO: please describe this table!',
  11571. 'fields' => array(
  11572. 'pubprop_id' => array(
  11573. 'description' => 'TODO: please describe this field!',
  11574. 'type' => 'serial',
  11575. 'not null' => TRUE,
  11576. ),
  11577. 'pub_id' => array(
  11578. 'description' => 'TODO: please describe this field!',
  11579. 'type' => 'int',
  11580. 'not null' => TRUE,
  11581. ),
  11582. 'type_id' => array(
  11583. 'description' => 'TODO: please describe this field!',
  11584. 'type' => 'int',
  11585. 'not null' => TRUE,
  11586. ),
  11587. 'value' => array(
  11588. 'description' => 'TODO: please describe this field!',
  11589. 'type' => 'text',
  11590. 'not null' => TRUE,
  11591. ),
  11592. 'rank' => array(
  11593. 'description' => 'TODO: please describe this field!',
  11594. 'type' => 'int',
  11595. 'not null' => FALSE,
  11596. ),
  11597. ),
  11598. 'primary key' => array(
  11599. 0 => 'pubprop_id',
  11600. ),
  11601. 'unique keys' => array(
  11602. 'pubprop_c1' => array(
  11603. 0 => 'pub_id',
  11604. 1 => 'type_id',
  11605. 2 => 'rank',
  11606. ),
  11607. ),
  11608. 'indexes' => array(
  11609. 'pubprop_idx1' => array(
  11610. 0 => 'pub_id',
  11611. ),
  11612. 'pubprop_idx2' => array(
  11613. 0 => 'type_id',
  11614. ),
  11615. ),
  11616. 'foreign keys' => array(
  11617. 'cvterm' => array(
  11618. 'table' => 'cvterm',
  11619. 'columns' => array(
  11620. 'type_id' => 'cvterm_id',
  11621. ),
  11622. ),
  11623. 'pub' => array(
  11624. 'table' => 'pub',
  11625. 'columns' => array(
  11626. 'pub_id' => 'pub_id',
  11627. ),
  11628. ),
  11629. ),
  11630. 'table' => 'pubprop',
  11631. 'referring_tables' => NULL,
  11632. );
  11633. return $description;
  11634. }
  11635. /**
  11636. * Implements hook_chado_schema_v1_2_quantification()
  11637. * Purpose: To describe the structure of 'quantification' to tripal
  11638. * @see tripal_core_chado_insert()
  11639. * @see tripal_core_chado_update()
  11640. * @see tripal_core_chado_select()
  11641. *
  11642. * @return
  11643. * An array describing the 'quantification' table
  11644. *
  11645. * @ingroup tripal_chado_v1.2_schema_api
  11646. *
  11647. */
  11648. function tripal_core_chado_schema_v1_2_quantification() {
  11649. $description = array(
  11650. 'description' => 'TODO: please describe this table!',
  11651. 'fields' => array(
  11652. 'quantification_id' => array(
  11653. 'description' => 'TODO: please describe this field!',
  11654. 'type' => 'serial',
  11655. 'not null' => TRUE,
  11656. ),
  11657. 'acquisition_id' => array(
  11658. 'description' => 'TODO: please describe this field!',
  11659. 'type' => 'int',
  11660. 'not null' => TRUE,
  11661. ),
  11662. 'operator_id' => array(
  11663. 'description' => 'TODO: please describe this field!',
  11664. 'type' => 'int',
  11665. 'not null' => FALSE,
  11666. ),
  11667. 'protocol_id' => array(
  11668. 'description' => 'TODO: please describe this field!',
  11669. 'type' => 'int',
  11670. 'not null' => FALSE,
  11671. ),
  11672. 'analysis_id' => array(
  11673. 'description' => 'TODO: please describe this field!',
  11674. 'type' => 'int',
  11675. 'not null' => TRUE,
  11676. ),
  11677. 'quantificationdate' => array(
  11678. 'description' => 'TODO: please describe this field!',
  11679. 'type' => 'datetime',
  11680. 'not null' => FALSE,
  11681. 'default' => 'ow(',
  11682. ),
  11683. 'name' => array(
  11684. 'description' => 'TODO: please describe this field!',
  11685. 'type' => 'text',
  11686. 'not null' => FALSE,
  11687. ),
  11688. 'uri' => array(
  11689. 'description' => 'TODO: please describe this field!',
  11690. 'type' => 'text',
  11691. 'not null' => FALSE,
  11692. ),
  11693. ),
  11694. 'primary key' => array(
  11695. 0 => 'quantification_id',
  11696. ),
  11697. 'unique keys' => array(
  11698. 'quantification_c1' => array(
  11699. 0 => 'name',
  11700. 1 => 'analysis_id',
  11701. ),
  11702. ),
  11703. 'indexes' => array(
  11704. 'quantification_idx1' => array(
  11705. 0 => 'acquisition_id',
  11706. ),
  11707. 'quantification_idx2' => array(
  11708. 0 => 'operator_id',
  11709. ),
  11710. 'quantification_idx3' => array(
  11711. 0 => 'protocol_id',
  11712. ),
  11713. 'quantification_idx4' => array(
  11714. 0 => 'analysis_id',
  11715. ),
  11716. ),
  11717. 'foreign keys' => array(
  11718. 'analysis' => array(
  11719. 'table' => 'analysis',
  11720. 'columns' => array(
  11721. 'analysis_id' => 'analysis_id',
  11722. ),
  11723. ),
  11724. 'contact' => array(
  11725. 'table' => 'contact',
  11726. 'columns' => array(
  11727. 'operator_id' => 'contact_id',
  11728. ),
  11729. ),
  11730. 'protocol' => array(
  11731. 'table' => 'protocol',
  11732. 'columns' => array(
  11733. 'protocol_id' => 'protocol_id',
  11734. ),
  11735. ),
  11736. 'acquisition' => array(
  11737. 'table' => 'acquisition',
  11738. 'columns' => array(
  11739. 'acquisition_id' => 'acquisition_id',
  11740. ),
  11741. ),
  11742. ),
  11743. 'table' => 'quantification',
  11744. 'referring_tables' => array(
  11745. 0 => 'elementresult',
  11746. 1 => 'quantification_relationship',
  11747. 3 => 'quantificationprop',
  11748. ),
  11749. );
  11750. return $description;
  11751. }
  11752. /**
  11753. * Implements hook_chado_schema_v1_2_quantification_relationship()
  11754. * Purpose: To describe the structure of 'quantification_relationship' to tripal
  11755. * @see tripal_core_chado_insert()
  11756. * @see tripal_core_chado_update()
  11757. * @see tripal_core_chado_select()
  11758. *
  11759. * @return
  11760. * An array describing the 'quantification_relationship' table
  11761. *
  11762. * @ingroup tripal_chado_v1.2_schema_api
  11763. *
  11764. */
  11765. function tripal_core_chado_schema_v1_2_quantification_relationship() {
  11766. $description = array(
  11767. 'description' => 'TODO: please describe this table!',
  11768. 'fields' => array(
  11769. 'quantification_relationship_id' => array(
  11770. 'description' => 'TODO: please describe this field!',
  11771. 'type' => 'serial',
  11772. 'not null' => TRUE,
  11773. ),
  11774. 'subject_id' => array(
  11775. 'description' => 'TODO: please describe this field!',
  11776. 'type' => 'int',
  11777. 'not null' => TRUE,
  11778. ),
  11779. 'type_id' => array(
  11780. 'description' => 'TODO: please describe this field!',
  11781. 'type' => 'int',
  11782. 'not null' => TRUE,
  11783. ),
  11784. 'object_id' => array(
  11785. 'description' => 'TODO: please describe this field!',
  11786. 'type' => 'int',
  11787. 'not null' => TRUE,
  11788. ),
  11789. ),
  11790. 'primary key' => array(
  11791. 0 => 'quantification_relationship_id',
  11792. ),
  11793. 'unique keys' => array(
  11794. 'quantification_relationship_c1' => array(
  11795. 0 => 'subject_id',
  11796. 1 => 'object_id',
  11797. 2 => 'type_id',
  11798. ),
  11799. ),
  11800. 'indexes' => array(
  11801. 'quantification_relationship_idx1' => array(
  11802. 0 => 'subject_id',
  11803. ),
  11804. 'quantification_relationship_idx2' => array(
  11805. 0 => 'type_id',
  11806. ),
  11807. 'quantification_relationship_idx3' => array(
  11808. 0 => 'object_id',
  11809. ),
  11810. ),
  11811. 'foreign keys' => array(
  11812. 'cvterm' => array(
  11813. 'table' => 'cvterm',
  11814. 'columns' => array(
  11815. 'type_id' => 'cvterm_id',
  11816. ),
  11817. ),
  11818. 'quantification' => array(
  11819. 'table' => 'quantification',
  11820. 'columns' => array(
  11821. 'subject_id' => 'quantification_id',
  11822. 'object_id' => 'quantification_id',
  11823. ),
  11824. ),
  11825. ),
  11826. 'table' => 'quantification_relationship',
  11827. 'referring_tables' => NULL,
  11828. );
  11829. return $description;
  11830. }
  11831. /**
  11832. * Implements hook_chado_schema_v1_2_quantificationprop()
  11833. * Purpose: To describe the structure of 'quantificationprop' to tripal
  11834. * @see tripal_core_chado_insert()
  11835. * @see tripal_core_chado_update()
  11836. * @see tripal_core_chado_select()
  11837. *
  11838. * @return
  11839. * An array describing the 'quantificationprop' table
  11840. *
  11841. * @ingroup tripal_chado_v1.2_schema_api
  11842. *
  11843. */
  11844. function tripal_core_chado_schema_v1_2_quantificationprop() {
  11845. $description = array(
  11846. 'description' => 'TODO: please describe this table!',
  11847. 'fields' => array(
  11848. 'quantificationprop_id' => array(
  11849. 'description' => 'TODO: please describe this field!',
  11850. 'type' => 'serial',
  11851. 'not null' => TRUE,
  11852. ),
  11853. 'quantification_id' => array(
  11854. 'description' => 'TODO: please describe this field!',
  11855. 'type' => 'int',
  11856. 'not null' => TRUE,
  11857. ),
  11858. 'type_id' => array(
  11859. 'description' => 'TODO: please describe this field!',
  11860. 'type' => 'int',
  11861. 'not null' => TRUE,
  11862. ),
  11863. 'value' => array(
  11864. 'description' => 'TODO: please describe this field!',
  11865. 'type' => 'text',
  11866. 'not null' => FALSE,
  11867. ),
  11868. 'rank' => array(
  11869. 'description' => 'TODO: please describe this field!',
  11870. 'type' => 'int',
  11871. 'not null' => TRUE,
  11872. 'default' => 0,
  11873. ),
  11874. ),
  11875. 'primary key' => array(
  11876. 0 => 'quantificationprop_id',
  11877. ),
  11878. 'unique keys' => array(
  11879. 'quantificationprop_c1' => array(
  11880. 0 => 'quantification_id',
  11881. 1 => 'type_id',
  11882. 2 => 'rank',
  11883. ),
  11884. ),
  11885. 'indexes' => array(
  11886. 'quantificationprop_idx1' => array(
  11887. 0 => 'quantification_id',
  11888. ),
  11889. 'quantificationprop_idx2' => array(
  11890. 0 => 'type_id',
  11891. ),
  11892. ),
  11893. 'foreign keys' => array(
  11894. 'cvterm' => array(
  11895. 'table' => 'cvterm',
  11896. 'columns' => array(
  11897. 'type_id' => 'cvterm_id',
  11898. ),
  11899. ),
  11900. 'quantification' => array(
  11901. 'table' => 'quantification',
  11902. 'columns' => array(
  11903. 'quantification_id' => 'quantification_id',
  11904. ),
  11905. ),
  11906. ),
  11907. 'table' => 'quantificationprop',
  11908. 'referring_tables' => NULL,
  11909. );
  11910. return $description;
  11911. }
  11912. /**
  11913. * Implements hook_chado_schema_v1_2_stock()
  11914. * Purpose: To describe the structure of 'stock' to tripal
  11915. * @see tripal_core_chado_insert()
  11916. * @see tripal_core_chado_update()
  11917. * @see tripal_core_chado_select()
  11918. *
  11919. * @return
  11920. * An array describing the 'stock' table
  11921. *
  11922. * @ingroup tripal_chado_v1.2_schema_api
  11923. *
  11924. */
  11925. function tripal_core_chado_schema_v1_2_stock() {
  11926. $description = array(
  11927. 'description' => 'Any stock can be globally identified by the combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.',
  11928. 'fields' => array(
  11929. 'stock_id' => array(
  11930. 'description' => 'TODO: please describe this field!',
  11931. 'type' => 'serial',
  11932. 'not null' => TRUE,
  11933. ),
  11934. 'dbxref_id' => array(
  11935. 'description' => 'TODO: please describe this field!',
  11936. 'type' => 'int',
  11937. 'not null' => FALSE,
  11938. ),
  11939. 'organism_id' => array(
  11940. 'description' => 'TODO: please describe this field!',
  11941. 'type' => 'int',
  11942. 'not null' => FALSE,
  11943. ),
  11944. 'name' => array(
  11945. 'description' => 'TODO: please describe this field!',
  11946. 'type' => 'varchar',
  11947. 'length' => '255',
  11948. 'not null' => FALSE,
  11949. ),
  11950. 'uniquename' => array(
  11951. 'description' => 'TODO: please describe this field!',
  11952. 'type' => 'text',
  11953. 'not null' => TRUE,
  11954. ),
  11955. 'description' => array(
  11956. 'description' => 'TODO: please describe this field!',
  11957. 'type' => 'text',
  11958. 'not null' => FALSE,
  11959. ),
  11960. 'type_id' => array(
  11961. 'description' => 'TODO: please describe this field!',
  11962. 'type' => 'int',
  11963. 'not null' => TRUE,
  11964. ),
  11965. 'is_obsolete' => array(
  11966. 'description' => 'TODO: please describe this field!',
  11967. 'type' => 'boolean',
  11968. 'not null' => TRUE,
  11969. 'default' => 'als',
  11970. ),
  11971. ),
  11972. 'primary key' => array(
  11973. 0 => 'stock_id',
  11974. ),
  11975. 'unique keys' => array(
  11976. 'stock_c1' => array(
  11977. 0 => 'organism_id',
  11978. 1 => 'uniquename',
  11979. 2 => 'type_id',
  11980. ),
  11981. ),
  11982. 'indexes' => array(
  11983. 'stock_idx1' => array(
  11984. 0 => 'dbxref_id',
  11985. ),
  11986. 'stock_idx2' => array(
  11987. 0 => 'organism_id',
  11988. ),
  11989. 'stock_idx3' => array(
  11990. 0 => 'type_id',
  11991. ),
  11992. 'stock_idx4' => array(
  11993. 0 => 'uniquename',
  11994. ),
  11995. 'stock_name_ind1' => array(
  11996. 0 => 'name',
  11997. ),
  11998. ),
  11999. 'foreign keys' => array(
  12000. 'organism' => array(
  12001. 'table' => 'organism',
  12002. 'columns' => array(
  12003. 'organism_id' => 'organism_id',
  12004. ),
  12005. ),
  12006. 'cvterm' => array(
  12007. 'table' => 'cvterm',
  12008. 'columns' => array(
  12009. 'type_id' => 'cvterm_id',
  12010. ),
  12011. ),
  12012. 'dbxref' => array(
  12013. 'table' => 'dbxref',
  12014. 'columns' => array(
  12015. 'dbxref_id' => 'dbxref_id',
  12016. ),
  12017. ),
  12018. ),
  12019. 'referring_tables' => array(
  12020. 0 => 'nd_experiment_stock',
  12021. 1 => 'stock_cvterm',
  12022. 2 => 'stock_dbxref',
  12023. 3 => 'stock_genotype',
  12024. 4 => 'stock_pub',
  12025. 5 => 'stock_relationship',
  12026. 7 => 'stockcollection_stock',
  12027. 8 => 'stockprop',
  12028. ),
  12029. 'table' => 'stock',
  12030. );
  12031. return $description;
  12032. }
  12033. /**
  12034. * Implements hook_chado_schema_v1_2_stock_cvterm()
  12035. * Purpose: To describe the structure of 'stock_cvterm' to tripal
  12036. * @see tripal_core_chado_insert()
  12037. * @see tripal_core_chado_update()
  12038. * @see tripal_core_chado_select()
  12039. *
  12040. * @return
  12041. * An array describing the 'stock_cvterm' table
  12042. *
  12043. * @ingroup tripal_chado_v1.2_schema_api
  12044. *
  12045. */
  12046. function tripal_core_chado_schema_v1_2_stock_cvterm() {
  12047. $description = array(
  12048. 'description' => 'TODO: please describe this table!',
  12049. 'fields' => array(
  12050. 'stock_cvterm_id' => array(
  12051. 'description' => 'TODO: please describe this field!',
  12052. 'type' => 'serial',
  12053. 'not null' => TRUE,
  12054. ),
  12055. 'stock_id' => array(
  12056. 'description' => 'TODO: please describe this field!',
  12057. 'type' => 'int',
  12058. 'not null' => TRUE,
  12059. ),
  12060. 'cvterm_id' => array(
  12061. 'description' => 'TODO: please describe this field!',
  12062. 'type' => 'int',
  12063. 'not null' => TRUE,
  12064. ),
  12065. 'pub_id' => array(
  12066. 'description' => 'TODO: please describe this field!',
  12067. 'type' => 'int',
  12068. 'not null' => TRUE,
  12069. ),
  12070. 'is_not' => array(
  12071. 'description' => 'TODO: please describe this field!',
  12072. 'type' => 'boolean',
  12073. 'not null' => TRUE,
  12074. 'default' => 'als',
  12075. ),
  12076. 'rank' => array(
  12077. 'description' => 'TODO: please describe this field!',
  12078. 'type' => 'int',
  12079. 'not null' => TRUE,
  12080. 'default' => 0,
  12081. ),
  12082. ),
  12083. 'primary key' => array(
  12084. 0 => 'stock_cvterm_id',
  12085. ),
  12086. 'unique keys' => array(
  12087. 'stock_cvterm_c1' => array(
  12088. 0 => 'stock_id',
  12089. 1 => 'cvterm_id',
  12090. 2 => 'pub_id',
  12091. 3 => 'rank',
  12092. ),
  12093. ),
  12094. 'indexes' => array(
  12095. 'stock_cvterm_idx1' => array(
  12096. 0 => 'stock_id',
  12097. ),
  12098. 'stock_cvterm_idx2' => array(
  12099. 0 => 'cvterm_id',
  12100. ),
  12101. 'stock_cvterm_idx3' => array(
  12102. 0 => 'pub_id',
  12103. ),
  12104. ),
  12105. 'foreign keys' => array(
  12106. 'cvterm' => array(
  12107. 'table' => 'cvterm',
  12108. 'columns' => array(
  12109. 'cvterm_id' => 'cvterm_id',
  12110. ),
  12111. ),
  12112. 'pub' => array(
  12113. 'table' => 'pub',
  12114. 'columns' => array(
  12115. 'pub_id' => 'pub_id',
  12116. ),
  12117. ),
  12118. 'stock' => array(
  12119. 'table' => 'stock',
  12120. 'columns' => array(
  12121. 'stock_id' => 'stock_id',
  12122. ),
  12123. ),
  12124. ),
  12125. 'table' => 'stock_cvterm',
  12126. 'referring_tables' => array(
  12127. 0 => 'stock_cvtermprop',
  12128. ),
  12129. );
  12130. return $description;
  12131. }
  12132. /**
  12133. * Implements hook_chado_schema_v1_2_stock_cvtermprop()
  12134. * Purpose: To describe the structure of 'stock_cvtermprop' to tripal
  12135. * @see tripal_core_chado_insert()
  12136. * @see tripal_core_chado_update()
  12137. * @see tripal_core_chado_select()
  12138. *
  12139. * @return
  12140. * An array describing the 'stock_cvtermprop' table
  12141. *
  12142. * @ingroup tripal_chado_v1.2_schema_api
  12143. *
  12144. */
  12145. function tripal_core_chado_schema_v1_2_stock_cvtermprop() {
  12146. $description = array(
  12147. 'description' => 'TODO: please describe this table!',
  12148. 'fields' => array(
  12149. 'stock_cvtermprop_id' => array(
  12150. 'description' => 'TODO: please describe this field!',
  12151. 'type' => 'serial',
  12152. 'not null' => TRUE,
  12153. ),
  12154. 'stock_cvterm_id' => array(
  12155. 'description' => 'TODO: please describe this field!',
  12156. 'type' => 'int',
  12157. 'not null' => TRUE,
  12158. ),
  12159. 'type_id' => array(
  12160. 'description' => 'TODO: please describe this field!',
  12161. 'type' => 'int',
  12162. 'not null' => TRUE,
  12163. ),
  12164. 'value' => array(
  12165. 'description' => 'TODO: please describe this field!',
  12166. 'type' => 'text',
  12167. 'not null' => FALSE,
  12168. ),
  12169. 'rank' => array(
  12170. 'description' => 'TODO: please describe this field!',
  12171. 'type' => 'int',
  12172. 'not null' => TRUE,
  12173. 'default' => 0,
  12174. ),
  12175. ),
  12176. 'primary key' => array(
  12177. 0 => 'stock_cvtermprop_id',
  12178. ),
  12179. 'unique keys' => array(
  12180. 'stock_cvtermprop_c1' => array(
  12181. 0 => 'stock_cvterm_id',
  12182. 1 => 'type_id',
  12183. 2 => 'rank',
  12184. ),
  12185. ),
  12186. 'indexes' => array(
  12187. 'stock_cvtermprop_idx1' => array(
  12188. 0 => 'stock_cvterm_id',
  12189. ),
  12190. 'stock_cvtermprop_idx2' => array(
  12191. 0 => 'type_id',
  12192. ),
  12193. ),
  12194. 'foreign keys' => array(
  12195. 'cvterm' => array(
  12196. 'table' => 'cvterm',
  12197. 'columns' => array(
  12198. 'type_id' => 'cvterm_id',
  12199. ),
  12200. ),
  12201. 'stock_cvterm' => array(
  12202. 'table' => 'stock_cvterm',
  12203. 'columns' => array(
  12204. 'stock_cvterm_id' => 'stock_cvterm_id',
  12205. ),
  12206. ),
  12207. ),
  12208. 'table' => 'stock_cvtermprop',
  12209. 'referring_tables' => NULL,
  12210. );
  12211. return $description;
  12212. }
  12213. /**
  12214. * Implements hook_chado_schema_v1_2_stock_dbxref()
  12215. * Purpose: To describe the structure of 'stock_dbxref' to tripal
  12216. * @see tripal_core_chado_insert()
  12217. * @see tripal_core_chado_update()
  12218. * @see tripal_core_chado_select()
  12219. *
  12220. * @return
  12221. * An array describing the 'stock_dbxref' table
  12222. *
  12223. * @ingroup tripal_chado_v1.2_schema_api
  12224. *
  12225. */
  12226. function tripal_core_chado_schema_v1_2_stock_dbxref() {
  12227. $description = array(
  12228. 'description' => 'TODO: please describe this table!',
  12229. 'fields' => array(
  12230. 'stock_dbxref_id' => array(
  12231. 'description' => 'TODO: please describe this field!',
  12232. 'type' => 'serial',
  12233. 'not null' => TRUE,
  12234. ),
  12235. 'stock_id' => array(
  12236. 'description' => 'TODO: please describe this field!',
  12237. 'type' => 'int',
  12238. 'not null' => TRUE,
  12239. ),
  12240. 'dbxref_id' => array(
  12241. 'description' => 'TODO: please describe this field!',
  12242. 'type' => 'int',
  12243. 'not null' => TRUE,
  12244. ),
  12245. 'is_current' => array(
  12246. 'description' => 'TODO: please describe this field!',
  12247. 'type' => 'boolean',
  12248. 'not null' => TRUE,
  12249. 'default' => 'ru',
  12250. ),
  12251. ),
  12252. 'primary key' => array(
  12253. 0 => 'stock_dbxref_id',
  12254. ),
  12255. 'unique keys' => array(
  12256. 'stock_dbxref_c1' => array(
  12257. 0 => 'stock_id',
  12258. 1 => 'dbxref_id',
  12259. ),
  12260. ),
  12261. 'indexes' => array(
  12262. 'stock_dbxref_idx1' => array(
  12263. 0 => 'stock_id',
  12264. ),
  12265. 'stock_dbxref_idx2' => array(
  12266. 0 => 'dbxref_id',
  12267. ),
  12268. ),
  12269. 'foreign keys' => array(
  12270. 'dbxref' => array(
  12271. 'table' => 'dbxref',
  12272. 'columns' => array(
  12273. 'dbxref_id' => 'dbxref_id',
  12274. ),
  12275. ),
  12276. 'stock' => array(
  12277. 'table' => 'stock',
  12278. 'columns' => array(
  12279. 'stock_id' => 'stock_id',
  12280. ),
  12281. ),
  12282. ),
  12283. 'table' => 'stock_dbxref',
  12284. 'referring_tables' => array(
  12285. 0 => 'stock_dbxrefprop',
  12286. ),
  12287. );
  12288. return $description;
  12289. }
  12290. /**
  12291. * Implements hook_chado_schema_v1_2_stock_dbxrefprop()
  12292. * Purpose: To describe the structure of 'stock_dbxrefprop' to tripal
  12293. * @see tripal_core_chado_insert()
  12294. * @see tripal_core_chado_update()
  12295. * @see tripal_core_chado_select()
  12296. *
  12297. * @return
  12298. * An array describing the 'stock_dbxrefprop' table
  12299. *
  12300. * @ingroup tripal_chado_v1.2_schema_api
  12301. *
  12302. */
  12303. function tripal_core_chado_schema_v1_2_stock_dbxrefprop() {
  12304. $description = array(
  12305. 'description' => 'TODO: please describe this table!',
  12306. 'fields' => array(
  12307. 'stock_dbxrefprop_id' => array(
  12308. 'description' => 'TODO: please describe this field!',
  12309. 'type' => 'serial',
  12310. 'not null' => TRUE,
  12311. ),
  12312. 'stock_dbxref_id' => array(
  12313. 'description' => 'TODO: please describe this field!',
  12314. 'type' => 'int',
  12315. 'not null' => TRUE,
  12316. ),
  12317. 'type_id' => array(
  12318. 'description' => 'TODO: please describe this field!',
  12319. 'type' => 'int',
  12320. 'not null' => TRUE,
  12321. ),
  12322. 'value' => array(
  12323. 'description' => 'TODO: please describe this field!',
  12324. 'type' => 'text',
  12325. 'not null' => FALSE,
  12326. ),
  12327. 'rank' => array(
  12328. 'description' => 'TODO: please describe this field!',
  12329. 'type' => 'int',
  12330. 'not null' => TRUE,
  12331. 'default' => 0,
  12332. ),
  12333. ),
  12334. 'primary key' => array(
  12335. 0 => 'stock_dbxrefprop_id',
  12336. ),
  12337. 'unique keys' => array(
  12338. 'stock_dbxrefprop_c1' => array(
  12339. 0 => 'stock_dbxref_id',
  12340. 1 => 'type_id',
  12341. 2 => 'rank',
  12342. ),
  12343. ),
  12344. 'indexes' => array(
  12345. 'stock_dbxrefprop_idx1' => array(
  12346. 0 => 'stock_dbxref_id',
  12347. ),
  12348. 'stock_dbxrefprop_idx2' => array(
  12349. 0 => 'type_id',
  12350. ),
  12351. ),
  12352. 'foreign keys' => array(
  12353. 'cvterm' => array(
  12354. 'table' => 'cvterm',
  12355. 'columns' => array(
  12356. 'type_id' => 'cvterm_id',
  12357. ),
  12358. ),
  12359. 'stock_dbxref' => array(
  12360. 'table' => 'stock_dbxref',
  12361. 'columns' => array(
  12362. 'stock_dbxref_id' => 'stock_dbxref_id',
  12363. ),
  12364. ),
  12365. ),
  12366. 'table' => 'stock_dbxrefprop',
  12367. 'referring_tables' => NULL,
  12368. );
  12369. return $description;
  12370. }
  12371. /**
  12372. * Implements hook_chado_schema_v1_2_stock_genotype()
  12373. * Purpose: To describe the structure of 'stock_genotype' to tripal
  12374. * @see tripal_core_chado_insert()
  12375. * @see tripal_core_chado_update()
  12376. * @see tripal_core_chado_select()
  12377. *
  12378. * @return
  12379. * An array describing the 'stock_genotype' table
  12380. *
  12381. * @ingroup tripal_chado_v1.2_schema_api
  12382. *
  12383. */
  12384. function tripal_core_chado_schema_v1_2_stock_genotype() {
  12385. $description = array(
  12386. 'description' => 'TODO: please describe this table!',
  12387. 'fields' => array(
  12388. 'stock_genotype_id' => array(
  12389. 'description' => 'TODO: please describe this field!',
  12390. 'type' => 'serial',
  12391. 'not null' => TRUE,
  12392. ),
  12393. 'stock_id' => array(
  12394. 'description' => 'TODO: please describe this field!',
  12395. 'type' => 'int',
  12396. 'not null' => TRUE,
  12397. ),
  12398. 'genotype_id' => array(
  12399. 'description' => 'TODO: please describe this field!',
  12400. 'type' => 'int',
  12401. 'not null' => TRUE,
  12402. ),
  12403. ),
  12404. 'primary key' => array(
  12405. 0 => 'stock_genotype_id',
  12406. ),
  12407. 'unique keys' => array(
  12408. 'stock_genotype_c1' => array(
  12409. 0 => 'stock_id',
  12410. 1 => 'genotype_id',
  12411. ),
  12412. ),
  12413. 'indexes' => array(
  12414. 'stock_genotype_idx1' => array(
  12415. 0 => 'stock_id',
  12416. ),
  12417. 'stock_genotype_idx2' => array(
  12418. 0 => 'genotype_id',
  12419. ),
  12420. ),
  12421. 'foreign keys' => array(
  12422. 'genotype' => array(
  12423. 'table' => 'genotype',
  12424. 'columns' => array(
  12425. 'genotype_id' => 'genotype_id',
  12426. ),
  12427. ),
  12428. 'stock' => array(
  12429. 'table' => 'stock',
  12430. 'columns' => array(
  12431. 'stock_id' => 'stock_id',
  12432. ),
  12433. ),
  12434. ),
  12435. 'table' => 'stock_genotype',
  12436. 'referring_tables' => NULL,
  12437. );
  12438. return $description;
  12439. }
  12440. /**
  12441. * Implements hook_chado_schema_v1_2_stock_pub()
  12442. * Purpose: To describe the structure of 'stock_pub' to tripal
  12443. * @see tripal_core_chado_insert()
  12444. * @see tripal_core_chado_update()
  12445. * @see tripal_core_chado_select()
  12446. *
  12447. * @return
  12448. * An array describing the 'stock_pub' table
  12449. *
  12450. * @ingroup tripal_chado_v1.2_schema_api
  12451. *
  12452. */
  12453. function tripal_core_chado_schema_v1_2_stock_pub() {
  12454. $description = array(
  12455. 'description' => 'TODO: please describe this table!',
  12456. 'fields' => array(
  12457. 'stock_pub_id' => array(
  12458. 'description' => 'TODO: please describe this field!',
  12459. 'type' => 'serial',
  12460. 'not null' => TRUE,
  12461. ),
  12462. 'stock_id' => array(
  12463. 'description' => 'TODO: please describe this field!',
  12464. 'type' => 'int',
  12465. 'not null' => TRUE,
  12466. ),
  12467. 'pub_id' => array(
  12468. 'description' => 'TODO: please describe this field!',
  12469. 'type' => 'int',
  12470. 'not null' => TRUE,
  12471. ),
  12472. ),
  12473. 'primary key' => array(
  12474. 0 => 'stock_pub_id',
  12475. ),
  12476. 'unique keys' => array(
  12477. 'stock_pub_c1' => array(
  12478. 0 => 'stock_id',
  12479. 1 => 'pub_id',
  12480. ),
  12481. ),
  12482. 'indexes' => array(
  12483. 'stock_pub_idx1' => array(
  12484. 0 => 'stock_id',
  12485. ),
  12486. 'stock_pub_idx2' => array(
  12487. 0 => 'pub_id',
  12488. ),
  12489. ),
  12490. 'foreign keys' => array(
  12491. 'pub' => array(
  12492. 'table' => 'pub',
  12493. 'columns' => array(
  12494. 'pub_id' => 'pub_id',
  12495. ),
  12496. ),
  12497. 'stock' => array(
  12498. 'table' => 'stock',
  12499. 'columns' => array(
  12500. 'stock_id' => 'stock_id',
  12501. ),
  12502. ),
  12503. ),
  12504. 'table' => 'stock_pub',
  12505. 'referring_tables' => NULL,
  12506. );
  12507. return $description;
  12508. }
  12509. /**
  12510. * Implements hook_chado_schema_v1_2_stock_relationship()
  12511. * Purpose: To describe the structure of 'stock_relationship' to tripal
  12512. * @see tripal_core_chado_insert()
  12513. * @see tripal_core_chado_update()
  12514. * @see tripal_core_chado_select()
  12515. *
  12516. * @return
  12517. * An array describing the 'stock_relationship' table
  12518. *
  12519. * @ingroup tripal_chado_v1.2_schema_api
  12520. *
  12521. */
  12522. function tripal_core_chado_schema_v1_2_stock_relationship() {
  12523. $description = array(
  12524. 'description' => 'TODO: please describe this table!',
  12525. 'fields' => array(
  12526. 'stock_relationship_id' => array(
  12527. 'description' => 'TODO: please describe this field!',
  12528. 'type' => 'serial',
  12529. 'not null' => TRUE,
  12530. ),
  12531. 'subject_id' => array(
  12532. 'description' => 'TODO: please describe this field!',
  12533. 'type' => 'int',
  12534. 'not null' => TRUE,
  12535. ),
  12536. 'object_id' => array(
  12537. 'description' => 'TODO: please describe this field!',
  12538. 'type' => 'int',
  12539. 'not null' => TRUE,
  12540. ),
  12541. 'type_id' => array(
  12542. 'description' => 'TODO: please describe this field!',
  12543. 'type' => 'int',
  12544. 'not null' => TRUE,
  12545. ),
  12546. 'value' => array(
  12547. 'description' => 'TODO: please describe this field!',
  12548. 'type' => 'text',
  12549. 'not null' => FALSE,
  12550. ),
  12551. 'rank' => array(
  12552. 'description' => 'TODO: please describe this field!',
  12553. 'type' => 'int',
  12554. 'not null' => TRUE,
  12555. 'default' => 0,
  12556. ),
  12557. ),
  12558. 'primary key' => array(
  12559. 0 => 'stock_relationship_id',
  12560. ),
  12561. 'unique keys' => array(
  12562. 'stock_relationship_c1' => array(
  12563. 0 => 'subject_id',
  12564. 1 => 'object_id',
  12565. 2 => 'type_id',
  12566. 3 => 'rank',
  12567. ),
  12568. ),
  12569. 'indexes' => array(
  12570. 'stock_relationship_idx1' => array(
  12571. 0 => 'subject_id',
  12572. ),
  12573. 'stock_relationship_idx2' => array(
  12574. 0 => 'object_id',
  12575. ),
  12576. 'stock_relationship_idx3' => array(
  12577. 0 => 'type_id',
  12578. ),
  12579. ),
  12580. 'foreign keys' => array(
  12581. 'cvterm' => array(
  12582. 'table' => 'cvterm',
  12583. 'columns' => array(
  12584. 'type_id' => 'cvterm_id',
  12585. ),
  12586. ),
  12587. 'stock' => array(
  12588. 'table' => 'stock',
  12589. 'columns' => array(
  12590. 'subject_id' => 'stock_id',
  12591. 'object_id' => 'stock_id',
  12592. ),
  12593. ),
  12594. ),
  12595. 'table' => 'stock_relationship',
  12596. 'referring_tables' => array(
  12597. 0 => 'stock_relationship_cvterm',
  12598. 8 => 'stock_relationship_pub',
  12599. ),
  12600. );
  12601. return $description;
  12602. }
  12603. /**
  12604. * Implements hook_chado_schema_v1_2_stock_relationship_cvterm()
  12605. * Purpose: To describe the structure of 'stock_relationship_cvterm' to tripal
  12606. * @see tripal_core_chado_insert()
  12607. * @see tripal_core_chado_update()
  12608. * @see tripal_core_chado_select()
  12609. *
  12610. * @return
  12611. * An array describing the 'stock_relationship_cvterm' table
  12612. *
  12613. * @ingroup tripal_chado_v1.2_schema_api
  12614. *
  12615. */
  12616. function tripal_core_chado_schema_v1_2_stock_relationship_cvterm() {
  12617. $description = array(
  12618. 'description' => 'TODO: please describe this table!',
  12619. 'fields' => array(
  12620. 'stock_relationship_cvterm_id' => array(
  12621. 'description' => 'TODO: please describe this field!',
  12622. 'type' => 'serial',
  12623. 'not null' => TRUE,
  12624. ),
  12625. 'stock_relationship_id' => array(
  12626. 'description' => 'TODO: please describe this field!',
  12627. 'type' => 'int',
  12628. 'not null' => TRUE,
  12629. ),
  12630. 'cvterm_id' => array(
  12631. 'description' => 'TODO: please describe this field!',
  12632. 'type' => 'int',
  12633. 'not null' => TRUE,
  12634. ),
  12635. 'pub_id' => array(
  12636. 'description' => 'TODO: please describe this field!',
  12637. 'type' => 'int',
  12638. 'not null' => FALSE,
  12639. ),
  12640. ),
  12641. 'primary key' => array(
  12642. 0 => 'stock_relationship_cvterm_id',
  12643. ),
  12644. 'foreign keys' => array(
  12645. 'cvterm' => array(
  12646. 'table' => 'cvterm',
  12647. 'columns' => array(
  12648. 'cvterm_id' => 'cvterm_id',
  12649. ),
  12650. ),
  12651. 'pub' => array(
  12652. 'table' => 'pub',
  12653. 'columns' => array(
  12654. 'pub_id' => 'pub_id',
  12655. ),
  12656. ),
  12657. 'stock_relationship' => array(
  12658. 'table' => 'stock_relationship',
  12659. 'columns' => array(
  12660. 'stock_relationship_id' => 'stock_relationship_id',
  12661. ),
  12662. ),
  12663. ),
  12664. 'table' => 'stock_relationship_cvterm',
  12665. 'referring_tables' => NULL,
  12666. );
  12667. return $description;
  12668. }
  12669. /**
  12670. * Implements hook_chado_schema_v1_2_stock_relationship_pub()
  12671. * Purpose: To describe the structure of 'stock_relationship_pub' to tripal
  12672. * @see tripal_core_chado_insert()
  12673. * @see tripal_core_chado_update()
  12674. * @see tripal_core_chado_select()
  12675. *
  12676. * @return
  12677. * An array describing the 'stock_relationship_pub' table
  12678. *
  12679. * @ingroup tripal_chado_v1.2_schema_api
  12680. *
  12681. */
  12682. function tripal_core_chado_schema_v1_2_stock_relationship_pub() {
  12683. $description = array(
  12684. 'description' => 'TODO: please describe this table!',
  12685. 'fields' => array(
  12686. 'stock_relationship_pub_id' => array(
  12687. 'description' => 'TODO: please describe this field!',
  12688. 'type' => 'serial',
  12689. 'not null' => TRUE,
  12690. ),
  12691. 'stock_relationship_id' => array(
  12692. 'description' => 'TODO: please describe this field!',
  12693. 'type' => 'int',
  12694. 'not null' => TRUE,
  12695. ),
  12696. 'pub_id' => array(
  12697. 'description' => 'TODO: please describe this field!',
  12698. 'type' => 'int',
  12699. 'not null' => TRUE,
  12700. ),
  12701. ),
  12702. 'primary key' => array(
  12703. 0 => 'stock_relationship_pub_id',
  12704. ),
  12705. 'unique keys' => array(
  12706. 'stock_relationship_pub_c1' => array(
  12707. 0 => 'stock_relationship_id',
  12708. 1 => 'pub_id',
  12709. ),
  12710. ),
  12711. 'indexes' => array(
  12712. 'stock_relationship_pub_idx1' => array(
  12713. 0 => 'stock_relationship_id',
  12714. ),
  12715. 'stock_relationship_pub_idx2' => array(
  12716. 0 => 'pub_id',
  12717. ),
  12718. ),
  12719. 'foreign keys' => array(
  12720. 'pub' => array(
  12721. 'table' => 'pub',
  12722. 'columns' => array(
  12723. 'pub_id' => 'pub_id',
  12724. ),
  12725. ),
  12726. 'stock_relationship' => array(
  12727. 'table' => 'stock_relationship',
  12728. 'columns' => array(
  12729. 'stock_relationship_id' => 'stock_relationship_id',
  12730. ),
  12731. ),
  12732. ),
  12733. 'table' => 'stock_relationship_pub',
  12734. 'referring_tables' => NULL,
  12735. );
  12736. return $description;
  12737. }
  12738. /**
  12739. * Implements hook_chado_schema_v1_2_stockcollection()
  12740. * Purpose: To describe the structure of 'stockcollection' to tripal
  12741. * @see tripal_core_chado_insert()
  12742. * @see tripal_core_chado_update()
  12743. * @see tripal_core_chado_select()
  12744. *
  12745. * @return
  12746. * An array describing the 'stockcollection' table
  12747. *
  12748. * @ingroup tripal_chado_v1.2_schema_api
  12749. *
  12750. */
  12751. function tripal_core_chado_schema_v1_2_stockcollection() {
  12752. $description = array(
  12753. 'description' => 'TODO: please describe this table!',
  12754. 'fields' => array(
  12755. 'stockcollection_id' => array(
  12756. 'description' => 'TODO: please describe this field!',
  12757. 'type' => 'serial',
  12758. 'not null' => TRUE,
  12759. ),
  12760. 'type_id' => array(
  12761. 'description' => 'TODO: please describe this field!',
  12762. 'type' => 'int',
  12763. 'not null' => TRUE,
  12764. ),
  12765. 'contact_id' => array(
  12766. 'description' => 'TODO: please describe this field!',
  12767. 'type' => 'int',
  12768. 'not null' => FALSE,
  12769. ),
  12770. 'name' => array(
  12771. 'description' => 'TODO: please describe this field!',
  12772. 'type' => 'varchar',
  12773. 'length' => '255',
  12774. 'not null' => FALSE,
  12775. ),
  12776. 'uniquename' => array(
  12777. 'description' => 'TODO: please describe this field!',
  12778. 'type' => 'text',
  12779. 'not null' => TRUE,
  12780. ),
  12781. ),
  12782. 'primary key' => array(
  12783. 0 => 'stockcollection_id',
  12784. ),
  12785. 'unique keys' => array(
  12786. 'stockcollection_c1' => array(
  12787. 0 => 'uniquename',
  12788. 1 => 'type_id',
  12789. ),
  12790. ),
  12791. 'indexes' => array(
  12792. 'stockcollection_idx1' => array(
  12793. 0 => 'contact_id',
  12794. ),
  12795. 'stockcollection_idx2' => array(
  12796. 0 => 'type_id',
  12797. ),
  12798. 'stockcollection_idx3' => array(
  12799. 0 => 'uniquename',
  12800. ),
  12801. 'stockcollection_name_ind1' => array(
  12802. 0 => 'name',
  12803. ),
  12804. ),
  12805. 'foreign keys' => array(
  12806. 'cvterm' => array(
  12807. 'table' => 'cvterm',
  12808. 'columns' => array(
  12809. 'type_id' => 'cvterm_id',
  12810. ),
  12811. ),
  12812. 'contact' => array(
  12813. 'table' => 'contact',
  12814. 'columns' => array(
  12815. 'contact_id' => 'contact_id',
  12816. ),
  12817. ),
  12818. ),
  12819. 'table' => 'stockcollection',
  12820. 'referring_tables' => array(
  12821. 0 => 'stockcollection_stock',
  12822. 1 => 'stockcollectionprop',
  12823. ),
  12824. );
  12825. return $description;
  12826. }
  12827. /**
  12828. * Implements hook_chado_schema_v1_2_stockcollection_stock()
  12829. * Purpose: To describe the structure of 'stockcollection_stock' to tripal
  12830. * @see tripal_core_chado_insert()
  12831. * @see tripal_core_chado_update()
  12832. * @see tripal_core_chado_select()
  12833. *
  12834. * @return
  12835. * An array describing the 'stockcollection_stock' table
  12836. *
  12837. * @ingroup tripal_chado_v1.2_schema_api
  12838. *
  12839. */
  12840. function tripal_core_chado_schema_v1_2_stockcollection_stock() {
  12841. $description = array(
  12842. 'description' => 'TODO: please describe this table!',
  12843. 'fields' => array(
  12844. 'stockcollection_stock_id' => array(
  12845. 'description' => 'TODO: please describe this field!',
  12846. 'type' => 'serial',
  12847. 'not null' => TRUE,
  12848. ),
  12849. 'stockcollection_id' => array(
  12850. 'description' => 'TODO: please describe this field!',
  12851. 'type' => 'int',
  12852. 'not null' => TRUE,
  12853. ),
  12854. 'stock_id' => array(
  12855. 'description' => 'TODO: please describe this field!',
  12856. 'type' => 'int',
  12857. 'not null' => TRUE,
  12858. ),
  12859. ),
  12860. 'primary key' => array(
  12861. 0 => 'stockcollection_stock_id',
  12862. ),
  12863. 'unique keys' => array(
  12864. 'stockcollection_stock_c1' => array(
  12865. 0 => 'stockcollection_id',
  12866. 1 => 'stock_id',
  12867. ),
  12868. ),
  12869. 'indexes' => array(
  12870. 'stockcollection_stock_idx1' => array(
  12871. 0 => 'stockcollection_id',
  12872. ),
  12873. 'stockcollection_stock_idx2' => array(
  12874. 0 => 'stock_id',
  12875. ),
  12876. ),
  12877. 'foreign keys' => array(
  12878. 'stock' => array(
  12879. 'table' => 'stock',
  12880. 'columns' => array(
  12881. 'stock_id' => 'stock_id',
  12882. ),
  12883. ),
  12884. 'stockcollection' => array(
  12885. 'table' => 'stockcollection',
  12886. 'columns' => array(
  12887. 'stockcollection_id' => 'stockcollection_id',
  12888. ),
  12889. ),
  12890. ),
  12891. 'table' => 'stockcollection_stock',
  12892. 'referring_tables' => NULL,
  12893. );
  12894. return $description;
  12895. }
  12896. /**
  12897. * Implements hook_chado_schema_v1_2_stockcollectionprop()
  12898. * Purpose: To describe the structure of 'stockcollectionprop' to tripal
  12899. * @see tripal_core_chado_insert()
  12900. * @see tripal_core_chado_update()
  12901. * @see tripal_core_chado_select()
  12902. *
  12903. * @return
  12904. * An array describing the 'stockcollectionprop' table
  12905. *
  12906. * @ingroup tripal_chado_v1.2_schema_api
  12907. *
  12908. */
  12909. function tripal_core_chado_schema_v1_2_stockcollectionprop() {
  12910. $description = array(
  12911. 'description' => 'TODO: please describe this table!',
  12912. 'fields' => array(
  12913. 'stockcollectionprop_id' => array(
  12914. 'description' => 'TODO: please describe this field!',
  12915. 'type' => 'serial',
  12916. 'not null' => TRUE,
  12917. ),
  12918. 'stockcollection_id' => array(
  12919. 'description' => 'TODO: please describe this field!',
  12920. 'type' => 'int',
  12921. 'not null' => TRUE,
  12922. ),
  12923. 'type_id' => array(
  12924. 'description' => 'TODO: please describe this field!',
  12925. 'type' => 'int',
  12926. 'not null' => TRUE,
  12927. ),
  12928. 'value' => array(
  12929. 'description' => 'TODO: please describe this field!',
  12930. 'type' => 'text',
  12931. 'not null' => FALSE,
  12932. ),
  12933. 'rank' => array(
  12934. 'description' => 'TODO: please describe this field!',
  12935. 'type' => 'int',
  12936. 'not null' => TRUE,
  12937. 'default' => 0,
  12938. ),
  12939. ),
  12940. 'primary key' => array(
  12941. 0 => 'stockcollectionprop_id',
  12942. ),
  12943. 'unique keys' => array(
  12944. 'stockcollectionprop_c1' => array(
  12945. 0 => 'stockcollection_id',
  12946. 1 => 'type_id',
  12947. 2 => 'rank',
  12948. ),
  12949. ),
  12950. 'indexes' => array(
  12951. 'stockcollectionprop_idx1' => array(
  12952. 0 => 'stockcollection_id',
  12953. ),
  12954. 'stockcollectionprop_idx2' => array(
  12955. 0 => 'type_id',
  12956. ),
  12957. ),
  12958. 'foreign keys' => array(
  12959. 'cvterm' => array(
  12960. 'table' => 'cvterm',
  12961. 'columns' => array(
  12962. 'type_id' => 'cvterm_id',
  12963. ),
  12964. ),
  12965. 'stockcollection' => array(
  12966. 'table' => 'stockcollection',
  12967. 'columns' => array(
  12968. 'stockcollection_id' => 'stockcollection_id',
  12969. ),
  12970. ),
  12971. ),
  12972. 'table' => 'stockcollectionprop',
  12973. 'referring_tables' => NULL,
  12974. );
  12975. return $description;
  12976. }
  12977. /**
  12978. * Implements hook_chado_schema_v1_2_stockprop()
  12979. * Purpose: To describe the structure of 'stockprop' to tripal
  12980. * @see tripal_core_chado_insert()
  12981. * @see tripal_core_chado_update()
  12982. * @see tripal_core_chado_select()
  12983. *
  12984. * @return
  12985. * An array describing the 'stockprop' table
  12986. *
  12987. * @ingroup tripal_chado_v1.2_schema_api
  12988. *
  12989. */
  12990. function tripal_core_chado_schema_v1_2_stockprop() {
  12991. $description = array(
  12992. 'description' => 'TODO: please describe this table!',
  12993. 'fields' => array(
  12994. 'stockprop_id' => array(
  12995. 'description' => 'TODO: please describe this field!',
  12996. 'type' => 'serial',
  12997. 'not null' => TRUE,
  12998. ),
  12999. 'stock_id' => array(
  13000. 'description' => 'TODO: please describe this field!',
  13001. 'type' => 'int',
  13002. 'not null' => TRUE,
  13003. ),
  13004. 'type_id' => array(
  13005. 'description' => 'TODO: please describe this field!',
  13006. 'type' => 'int',
  13007. 'not null' => TRUE,
  13008. ),
  13009. 'value' => array(
  13010. 'description' => 'TODO: please describe this field!',
  13011. 'type' => 'text',
  13012. 'not null' => FALSE,
  13013. ),
  13014. 'rank' => array(
  13015. 'description' => 'TODO: please describe this field!',
  13016. 'type' => 'int',
  13017. 'not null' => TRUE,
  13018. 'default' => 0,
  13019. ),
  13020. ),
  13021. 'primary key' => array(
  13022. 0 => 'stockprop_id',
  13023. ),
  13024. 'unique keys' => array(
  13025. 'stockprop_c1' => array(
  13026. 0 => 'stock_id',
  13027. 1 => 'type_id',
  13028. 2 => 'rank',
  13029. ),
  13030. ),
  13031. 'indexes' => array(
  13032. 'stockprop_idx1' => array(
  13033. 0 => 'stock_id',
  13034. ),
  13035. 'stockprop_idx2' => array(
  13036. 0 => 'type_id',
  13037. ),
  13038. ),
  13039. 'foreign keys' => array(
  13040. 'cvterm' => array(
  13041. 'table' => 'cvterm',
  13042. 'columns' => array(
  13043. 'type_id' => 'cvterm_id',
  13044. ),
  13045. ),
  13046. 'stock' => array(
  13047. 'table' => 'stock',
  13048. 'columns' => array(
  13049. 'stock_id' => 'stock_id',
  13050. ),
  13051. ),
  13052. ),
  13053. 'table' => 'stockprop',
  13054. 'referring_tables' => array(
  13055. 0 => 'stockprop_pub',
  13056. ),
  13057. );
  13058. return $description;
  13059. }
  13060. /**
  13061. * Implements hook_chado_schema_v1_2_stockprop_pub()
  13062. * Purpose: To describe the structure of 'stockprop_pub' to tripal
  13063. * @see tripal_core_chado_insert()
  13064. * @see tripal_core_chado_update()
  13065. * @see tripal_core_chado_select()
  13066. *
  13067. * @return
  13068. * An array describing the 'stockprop_pub' table
  13069. *
  13070. * @ingroup tripal_chado_v1.2_schema_api
  13071. *
  13072. */
  13073. function tripal_core_chado_schema_v1_2_stockprop_pub() {
  13074. $description = array(
  13075. 'description' => 'TODO: please describe this table!',
  13076. 'fields' => array(
  13077. 'stockprop_pub_id' => array(
  13078. 'description' => 'TODO: please describe this field!',
  13079. 'type' => 'serial',
  13080. 'not null' => TRUE,
  13081. ),
  13082. 'stockprop_id' => array(
  13083. 'description' => 'TODO: please describe this field!',
  13084. 'type' => 'int',
  13085. 'not null' => TRUE,
  13086. ),
  13087. 'pub_id' => array(
  13088. 'description' => 'TODO: please describe this field!',
  13089. 'type' => 'int',
  13090. 'not null' => TRUE,
  13091. ),
  13092. ),
  13093. 'primary key' => array(
  13094. 0 => 'stockprop_pub_id',
  13095. ),
  13096. 'unique keys' => array(
  13097. 'stockprop_pub_c1' => array(
  13098. 0 => 'stockprop_id',
  13099. 1 => 'pub_id',
  13100. ),
  13101. ),
  13102. 'indexes' => array(
  13103. 'stockprop_pub_idx1' => array(
  13104. 0 => 'stockprop_id',
  13105. ),
  13106. 'stockprop_pub_idx2' => array(
  13107. 0 => 'pub_id',
  13108. ),
  13109. ),
  13110. 'foreign keys' => array(
  13111. 'pub' => array(
  13112. 'table' => 'pub',
  13113. 'columns' => array(
  13114. 'pub_id' => 'pub_id',
  13115. ),
  13116. ),
  13117. 'stockprop' => array(
  13118. 'table' => 'stockprop',
  13119. 'columns' => array(
  13120. 'stockprop_id' => 'stockprop_id',
  13121. ),
  13122. ),
  13123. ),
  13124. 'table' => 'stockprop_pub',
  13125. 'referring_tables' => NULL,
  13126. );
  13127. return $description;
  13128. }
  13129. /**
  13130. * Implements hook_chado_schema_v1_2_study()
  13131. * Purpose: To describe the structure of 'study' to tripal
  13132. * @see tripal_core_chado_insert()
  13133. * @see tripal_core_chado_update()
  13134. * @see tripal_core_chado_select()
  13135. *
  13136. * @return
  13137. * An array describing the 'study' table
  13138. *
  13139. * @ingroup tripal_chado_v1.2_schema_api
  13140. *
  13141. */
  13142. function tripal_core_chado_schema_v1_2_study() {
  13143. $description = array(
  13144. 'description' => 'TODO: please describe this table!',
  13145. 'fields' => array(
  13146. 'study_id' => array(
  13147. 'description' => 'TODO: please describe this field!',
  13148. 'type' => 'serial',
  13149. 'not null' => TRUE,
  13150. ),
  13151. 'contact_id' => array(
  13152. 'description' => 'TODO: please describe this field!',
  13153. 'type' => 'int',
  13154. 'not null' => TRUE,
  13155. ),
  13156. 'pub_id' => array(
  13157. 'description' => 'TODO: please describe this field!',
  13158. 'type' => 'int',
  13159. 'not null' => FALSE,
  13160. ),
  13161. 'dbxref_id' => array(
  13162. 'description' => 'TODO: please describe this field!',
  13163. 'type' => 'int',
  13164. 'not null' => FALSE,
  13165. ),
  13166. 'name' => array(
  13167. 'description' => 'TODO: please describe this field!',
  13168. 'type' => 'text',
  13169. 'not null' => TRUE,
  13170. ),
  13171. 'description' => array(
  13172. 'description' => 'TODO: please describe this field!',
  13173. 'type' => 'text',
  13174. 'not null' => FALSE,
  13175. ),
  13176. ),
  13177. 'primary key' => array(
  13178. 0 => 'study_id',
  13179. ),
  13180. 'unique keys' => array(
  13181. 'study_c1' => array(
  13182. 0 => 'name',
  13183. ),
  13184. ),
  13185. 'indexes' => array(
  13186. 'study_idx1' => array(
  13187. 0 => 'contact_id',
  13188. ),
  13189. 'study_idx2' => array(
  13190. 0 => 'pub_id',
  13191. ),
  13192. 'study_idx3' => array(
  13193. 0 => 'dbxref_id',
  13194. ),
  13195. ),
  13196. 'foreign keys' => array(
  13197. 'dbxref' => array(
  13198. 'table' => 'dbxref',
  13199. 'columns' => array(
  13200. 'dbxref_id' => 'dbxref_id',
  13201. ),
  13202. ),
  13203. 'pub' => array(
  13204. 'table' => 'pub',
  13205. 'columns' => array(
  13206. 'pub_id' => 'pub_id',
  13207. ),
  13208. ),
  13209. 'contact' => array(
  13210. 'table' => 'contact',
  13211. 'columns' => array(
  13212. 'contact_id' => 'contact_id',
  13213. ),
  13214. ),
  13215. ),
  13216. 'table' => 'study',
  13217. 'referring_tables' => array(
  13218. 0 => 'study_assay',
  13219. 1 => 'studydesign',
  13220. 2 => 'studyprop',
  13221. ),
  13222. );
  13223. return $description;
  13224. }
  13225. /**
  13226. * Implements hook_chado_schema_v1_2_study_assay()
  13227. * Purpose: To describe the structure of 'study_assay' to tripal
  13228. * @see tripal_core_chado_insert()
  13229. * @see tripal_core_chado_update()
  13230. * @see tripal_core_chado_select()
  13231. *
  13232. * @return
  13233. * An array describing the 'study_assay' table
  13234. *
  13235. * @ingroup tripal_chado_v1.2_schema_api
  13236. *
  13237. */
  13238. function tripal_core_chado_schema_v1_2_study_assay() {
  13239. $description = array(
  13240. 'description' => 'TODO: please describe this table!',
  13241. 'fields' => array(
  13242. 'study_assay_id' => array(
  13243. 'description' => 'TODO: please describe this field!',
  13244. 'type' => 'serial',
  13245. 'not null' => TRUE,
  13246. ),
  13247. 'study_id' => array(
  13248. 'description' => 'TODO: please describe this field!',
  13249. 'type' => 'int',
  13250. 'not null' => TRUE,
  13251. ),
  13252. 'assay_id' => array(
  13253. 'description' => 'TODO: please describe this field!',
  13254. 'type' => 'int',
  13255. 'not null' => TRUE,
  13256. ),
  13257. ),
  13258. 'primary key' => array(
  13259. 0 => 'study_assay_id',
  13260. ),
  13261. 'unique keys' => array(
  13262. 'study_assay_c1' => array(
  13263. 0 => 'study_id',
  13264. 1 => 'assay_id',
  13265. ),
  13266. ),
  13267. 'indexes' => array(
  13268. 'study_assay_idx1' => array(
  13269. 0 => 'study_id',
  13270. ),
  13271. 'study_assay_idx2' => array(
  13272. 0 => 'assay_id',
  13273. ),
  13274. ),
  13275. 'foreign keys' => array(
  13276. 'assay' => array(
  13277. 'table' => 'assay',
  13278. 'columns' => array(
  13279. 'assay_id' => 'assay_id',
  13280. ),
  13281. ),
  13282. 'study' => array(
  13283. 'table' => 'study',
  13284. 'columns' => array(
  13285. 'study_id' => 'study_id',
  13286. ),
  13287. ),
  13288. ),
  13289. 'table' => 'study_assay',
  13290. 'referring_tables' => NULL,
  13291. );
  13292. return $description;
  13293. }
  13294. /**
  13295. * Implements hook_chado_schema_v1_2_studydesign()
  13296. * Purpose: To describe the structure of 'studydesign' to tripal
  13297. * @see tripal_core_chado_insert()
  13298. * @see tripal_core_chado_update()
  13299. * @see tripal_core_chado_select()
  13300. *
  13301. * @return
  13302. * An array describing the 'studydesign' table
  13303. *
  13304. * @ingroup tripal_chado_v1.2_schema_api
  13305. *
  13306. */
  13307. function tripal_core_chado_schema_v1_2_studydesign() {
  13308. $description = array(
  13309. 'description' => 'TODO: please describe this table!',
  13310. 'fields' => array(
  13311. 'studydesign_id' => array(
  13312. 'description' => 'TODO: please describe this field!',
  13313. 'type' => 'serial',
  13314. 'not null' => TRUE,
  13315. ),
  13316. 'study_id' => array(
  13317. 'description' => 'TODO: please describe this field!',
  13318. 'type' => 'int',
  13319. 'not null' => TRUE,
  13320. ),
  13321. 'description' => array(
  13322. 'description' => 'TODO: please describe this field!',
  13323. 'type' => 'text',
  13324. 'not null' => FALSE,
  13325. ),
  13326. ),
  13327. 'primary key' => array(
  13328. 0 => 'studydesign_id',
  13329. ),
  13330. 'indexes' => array(
  13331. 'studydesign_idx1' => array(
  13332. 0 => 'study_id',
  13333. ),
  13334. ),
  13335. 'foreign keys' => array(
  13336. 'study' => array(
  13337. 'table' => 'study',
  13338. 'columns' => array(
  13339. 'study_id' => 'study_id',
  13340. ),
  13341. ),
  13342. ),
  13343. 'table' => 'studydesign',
  13344. 'referring_tables' => array(
  13345. 0 => 'studydesignprop',
  13346. 1 => 'studyfactor',
  13347. ),
  13348. );
  13349. return $description;
  13350. }
  13351. /**
  13352. * Implements hook_chado_schema_v1_2_studydesignprop()
  13353. * Purpose: To describe the structure of 'studydesignprop' to tripal
  13354. * @see tripal_core_chado_insert()
  13355. * @see tripal_core_chado_update()
  13356. * @see tripal_core_chado_select()
  13357. *
  13358. * @return
  13359. * An array describing the 'studydesignprop' table
  13360. *
  13361. * @ingroup tripal_chado_v1.2_schema_api
  13362. *
  13363. */
  13364. function tripal_core_chado_schema_v1_2_studydesignprop() {
  13365. $description = array(
  13366. 'description' => 'TODO: please describe this table!',
  13367. 'fields' => array(
  13368. 'studydesignprop_id' => array(
  13369. 'description' => 'TODO: please describe this field!',
  13370. 'type' => 'serial',
  13371. 'not null' => TRUE,
  13372. ),
  13373. 'studydesign_id' => array(
  13374. 'description' => 'TODO: please describe this field!',
  13375. 'type' => 'int',
  13376. 'not null' => TRUE,
  13377. ),
  13378. 'type_id' => array(
  13379. 'description' => 'TODO: please describe this field!',
  13380. 'type' => 'int',
  13381. 'not null' => TRUE,
  13382. ),
  13383. 'value' => array(
  13384. 'description' => 'TODO: please describe this field!',
  13385. 'type' => 'text',
  13386. 'not null' => FALSE,
  13387. ),
  13388. 'rank' => array(
  13389. 'description' => 'TODO: please describe this field!',
  13390. 'type' => 'int',
  13391. 'not null' => TRUE,
  13392. 'default' => 0,
  13393. ),
  13394. ),
  13395. 'primary key' => array(
  13396. 0 => 'studydesignprop_id',
  13397. ),
  13398. 'unique keys' => array(
  13399. 'studydesignprop_c1' => array(
  13400. 0 => 'studydesign_id',
  13401. 1 => 'type_id',
  13402. 2 => 'rank',
  13403. ),
  13404. ),
  13405. 'indexes' => array(
  13406. 'studydesignprop_idx1' => array(
  13407. 0 => 'studydesign_id',
  13408. ),
  13409. 'studydesignprop_idx2' => array(
  13410. 0 => 'type_id',
  13411. ),
  13412. ),
  13413. 'foreign keys' => array(
  13414. 'cvterm' => array(
  13415. 'table' => 'cvterm',
  13416. 'columns' => array(
  13417. 'type_id' => 'cvterm_id',
  13418. ),
  13419. ),
  13420. 'studydesign' => array(
  13421. 'table' => 'studydesign',
  13422. 'columns' => array(
  13423. 'studydesign_id' => 'studydesign_id',
  13424. ),
  13425. ),
  13426. ),
  13427. 'table' => 'studydesignprop',
  13428. 'referring_tables' => NULL,
  13429. );
  13430. return $description;
  13431. }
  13432. /**
  13433. * Implements hook_chado_schema_v1_2_studyfactor()
  13434. * Purpose: To describe the structure of 'studyfactor' to tripal
  13435. * @see tripal_core_chado_insert()
  13436. * @see tripal_core_chado_update()
  13437. * @see tripal_core_chado_select()
  13438. *
  13439. * @return
  13440. * An array describing the 'studyfactor' table
  13441. *
  13442. * @ingroup tripal_chado_v1.2_schema_api
  13443. *
  13444. */
  13445. function tripal_core_chado_schema_v1_2_studyfactor() {
  13446. $description = array(
  13447. 'description' => 'TODO: please describe this table!',
  13448. 'fields' => array(
  13449. 'studyfactor_id' => array(
  13450. 'description' => 'TODO: please describe this field!',
  13451. 'type' => 'serial',
  13452. 'not null' => TRUE,
  13453. ),
  13454. 'studydesign_id' => array(
  13455. 'description' => 'TODO: please describe this field!',
  13456. 'type' => 'int',
  13457. 'not null' => TRUE,
  13458. ),
  13459. 'type_id' => array(
  13460. 'description' => 'TODO: please describe this field!',
  13461. 'type' => 'int',
  13462. 'not null' => FALSE,
  13463. ),
  13464. 'name' => array(
  13465. 'description' => 'TODO: please describe this field!',
  13466. 'type' => 'text',
  13467. 'not null' => TRUE,
  13468. ),
  13469. 'description' => array(
  13470. 'description' => 'TODO: please describe this field!',
  13471. 'type' => 'text',
  13472. 'not null' => FALSE,
  13473. ),
  13474. ),
  13475. 'primary key' => array(
  13476. 0 => 'studyfactor_id',
  13477. ),
  13478. 'indexes' => array(
  13479. 'studyfactor_idx1' => array(
  13480. 0 => 'studydesign_id',
  13481. ),
  13482. 'studyfactor_idx2' => array(
  13483. 0 => 'type_id',
  13484. ),
  13485. ),
  13486. 'foreign keys' => array(
  13487. 'cvterm' => array(
  13488. 'table' => 'cvterm',
  13489. 'columns' => array(
  13490. 'type_id' => 'cvterm_id',
  13491. ),
  13492. ),
  13493. 'studydesign' => array(
  13494. 'table' => 'studydesign',
  13495. 'columns' => array(
  13496. 'studydesign_id' => 'studydesign_id',
  13497. ),
  13498. ),
  13499. ),
  13500. 'table' => 'studyfactor',
  13501. 'referring_tables' => array(
  13502. 0 => 'studyfactorvalue',
  13503. ),
  13504. );
  13505. return $description;
  13506. }
  13507. /**
  13508. * Implements hook_chado_schema_v1_2_studyfactorvalue()
  13509. * Purpose: To describe the structure of 'studyfactorvalue' to tripal
  13510. * @see tripal_core_chado_insert()
  13511. * @see tripal_core_chado_update()
  13512. * @see tripal_core_chado_select()
  13513. *
  13514. * @return
  13515. * An array describing the 'studyfactorvalue' table
  13516. *
  13517. * @ingroup tripal_chado_v1.2_schema_api
  13518. *
  13519. */
  13520. function tripal_core_chado_schema_v1_2_studyfactorvalue() {
  13521. $description = array(
  13522. 'description' => 'TODO: please describe this table!',
  13523. 'fields' => array(
  13524. 'studyfactorvalue_id' => array(
  13525. 'description' => 'TODO: please describe this field!',
  13526. 'type' => 'serial',
  13527. 'not null' => TRUE,
  13528. ),
  13529. 'studyfactor_id' => array(
  13530. 'description' => 'TODO: please describe this field!',
  13531. 'type' => 'int',
  13532. 'not null' => TRUE,
  13533. ),
  13534. 'assay_id' => array(
  13535. 'description' => 'TODO: please describe this field!',
  13536. 'type' => 'int',
  13537. 'not null' => TRUE,
  13538. ),
  13539. 'factorvalue' => array(
  13540. 'description' => 'TODO: please describe this field!',
  13541. 'type' => 'text',
  13542. 'not null' => FALSE,
  13543. ),
  13544. 'name' => array(
  13545. 'description' => 'TODO: please describe this field!',
  13546. 'type' => 'text',
  13547. 'not null' => FALSE,
  13548. ),
  13549. 'rank' => array(
  13550. 'description' => 'TODO: please describe this field!',
  13551. 'type' => 'int',
  13552. 'not null' => TRUE,
  13553. 'default' => 0,
  13554. ),
  13555. ),
  13556. 'primary key' => array(
  13557. 0 => 'studyfactorvalue_id',
  13558. ),
  13559. 'indexes' => array(
  13560. 'studyfactorvalue_idx1' => array(
  13561. 0 => 'studyfactor_id',
  13562. ),
  13563. 'studyfactorvalue_idx2' => array(
  13564. 0 => 'assay_id',
  13565. ),
  13566. ),
  13567. 'foreign keys' => array(
  13568. 'assay' => array(
  13569. 'table' => 'assay',
  13570. 'columns' => array(
  13571. 'assay_id' => 'assay_id',
  13572. ),
  13573. ),
  13574. 'studyfactor' => array(
  13575. 'table' => 'studyfactor',
  13576. 'columns' => array(
  13577. 'studyfactor_id' => 'studyfactor_id',
  13578. ),
  13579. ),
  13580. ),
  13581. 'table' => 'studyfactorvalue',
  13582. 'referring_tables' => NULL,
  13583. );
  13584. return $description;
  13585. }
  13586. /**
  13587. * Implements hook_chado_schema_v1_2_studyprop()
  13588. * Purpose: To describe the structure of 'studyprop' to tripal
  13589. * @see tripal_core_chado_insert()
  13590. * @see tripal_core_chado_update()
  13591. * @see tripal_core_chado_select()
  13592. *
  13593. * @return
  13594. * An array describing the 'studyprop' table
  13595. *
  13596. * @ingroup tripal_chado_v1.2_schema_api
  13597. *
  13598. */
  13599. function tripal_core_chado_schema_v1_2_studyprop() {
  13600. $description = array(
  13601. 'description' => 'TODO: please describe this table!',
  13602. 'fields' => array(
  13603. 'studyprop_id' => array(
  13604. 'description' => 'TODO: please describe this field!',
  13605. 'type' => 'serial',
  13606. 'not null' => TRUE,
  13607. ),
  13608. 'study_id' => array(
  13609. 'description' => 'TODO: please describe this field!',
  13610. 'type' => 'int',
  13611. 'not null' => TRUE,
  13612. ),
  13613. 'type_id' => array(
  13614. 'description' => 'TODO: please describe this field!',
  13615. 'type' => 'int',
  13616. 'not null' => TRUE,
  13617. ),
  13618. 'value' => array(
  13619. 'description' => 'TODO: please describe this field!',
  13620. 'type' => 'text',
  13621. 'not null' => FALSE,
  13622. ),
  13623. 'rank' => array(
  13624. 'description' => 'TODO: please describe this field!',
  13625. 'type' => 'int',
  13626. 'not null' => TRUE,
  13627. 'default' => 0,
  13628. ),
  13629. ),
  13630. 'primary key' => array(
  13631. 0 => 'studyprop_id',
  13632. ),
  13633. 'unique keys' => array(
  13634. 'study_id' => array(
  13635. 0 => 'study_id',
  13636. 1 => 'type_id',
  13637. 2 => 'rank',
  13638. ),
  13639. ),
  13640. 'indexes' => array(
  13641. 'studyprop_idx1' => array(
  13642. 0 => 'study_id',
  13643. ),
  13644. 'studyprop_idx2' => array(
  13645. 0 => 'type_id',
  13646. ),
  13647. ),
  13648. 'foreign keys' => array(
  13649. 'cvterm' => array(
  13650. 'table' => 'cvterm',
  13651. 'columns' => array(
  13652. 'type_id' => 'cvterm_id',
  13653. ),
  13654. ),
  13655. 'study' => array(
  13656. 'table' => 'study',
  13657. 'columns' => array(
  13658. 'study_id' => 'study_id',
  13659. ),
  13660. ),
  13661. ),
  13662. 'table' => 'studyprop',
  13663. 'referring_tables' => array(
  13664. 0 => 'studyprop_feature',
  13665. ),
  13666. );
  13667. return $description;
  13668. }
  13669. /**
  13670. * Implements hook_chado_schema_v1_2_studyprop_feature()
  13671. * Purpose: To describe the structure of 'studyprop_feature' to tripal
  13672. * @see tripal_core_chado_insert()
  13673. * @see tripal_core_chado_update()
  13674. * @see tripal_core_chado_select()
  13675. *
  13676. * @return
  13677. * An array describing the 'studyprop_feature' table
  13678. *
  13679. * @ingroup tripal_chado_v1.2_schema_api
  13680. *
  13681. */
  13682. function tripal_core_chado_schema_v1_2_studyprop_feature() {
  13683. $description = array(
  13684. 'description' => 'TODO: please describe this table!',
  13685. 'fields' => array(
  13686. 'studyprop_feature_id' => array(
  13687. 'description' => 'TODO: please describe this field!',
  13688. 'type' => 'serial',
  13689. 'not null' => TRUE,
  13690. ),
  13691. 'studyprop_id' => array(
  13692. 'description' => 'TODO: please describe this field!',
  13693. 'type' => 'int',
  13694. 'not null' => TRUE,
  13695. ),
  13696. 'feature_id' => array(
  13697. 'description' => 'TODO: please describe this field!',
  13698. 'type' => 'int',
  13699. 'not null' => TRUE,
  13700. ),
  13701. 'type_id' => array(
  13702. 'description' => 'TODO: please describe this field!',
  13703. 'type' => 'int',
  13704. 'not null' => FALSE,
  13705. ),
  13706. ),
  13707. 'primary key' => array(
  13708. 0 => 'studyprop_feature_id',
  13709. ),
  13710. 'unique keys' => array(
  13711. 'studyprop_id' => array(
  13712. 0 => 'studyprop_id',
  13713. 1 => 'feature_id',
  13714. ),
  13715. ),
  13716. 'indexes' => array(
  13717. 'studyprop_feature_idx1' => array(
  13718. 0 => 'studyprop_id',
  13719. ),
  13720. 'studyprop_feature_idx2' => array(
  13721. 0 => 'feature_id',
  13722. ),
  13723. ),
  13724. 'foreign keys' => array(
  13725. 'cvterm' => array(
  13726. 'table' => 'cvterm',
  13727. 'columns' => array(
  13728. 'type_id' => 'cvterm_id',
  13729. ),
  13730. ),
  13731. 'feature' => array(
  13732. 'table' => 'feature',
  13733. 'columns' => array(
  13734. 'feature_id' => 'feature_id',
  13735. ),
  13736. ),
  13737. 'studyprop' => array(
  13738. 'table' => 'studyprop',
  13739. 'columns' => array(
  13740. 'studyprop_id' => 'studyprop_id',
  13741. ),
  13742. ),
  13743. ),
  13744. 'table' => 'studyprop_feature',
  13745. 'referring_tables' => NULL,
  13746. );
  13747. return $description;
  13748. }
  13749. /**
  13750. * Implements hook_chado_schema_v1_2_synonym()
  13751. * Purpose: To describe the structure of 'synonym' to tripal
  13752. * @see tripal_core_chado_insert()
  13753. * @see tripal_core_chado_update()
  13754. * @see tripal_core_chado_select()
  13755. *
  13756. * @return
  13757. * An array describing the 'synonym' table
  13758. *
  13759. * @ingroup tripal_chado_v1.2_schema_api
  13760. *
  13761. */
  13762. function tripal_core_chado_schema_v1_2_synonym() {
  13763. $description = array(
  13764. 'description' => 'TODO: please describe this table!',
  13765. 'fields' => array(
  13766. 'synonym_id' => array(
  13767. 'description' => 'TODO: please describe this field!',
  13768. 'type' => 'serial',
  13769. 'not null' => TRUE,
  13770. ),
  13771. 'name' => array(
  13772. 'description' => 'TODO: please describe this field!',
  13773. 'type' => 'varchar',
  13774. 'length' => '255',
  13775. 'not null' => TRUE,
  13776. ),
  13777. 'type_id' => array(
  13778. 'description' => 'TODO: please describe this field!',
  13779. 'type' => 'int',
  13780. 'not null' => TRUE,
  13781. ),
  13782. 'synonym_sgml' => array(
  13783. 'description' => 'TODO: please describe this field!',
  13784. 'type' => 'varchar',
  13785. 'length' => '255',
  13786. 'not null' => TRUE,
  13787. ),
  13788. ),
  13789. 'primary key' => array(
  13790. 0 => 'synonym_id',
  13791. ),
  13792. 'unique keys' => array(
  13793. 'synonym_c1' => array(
  13794. 0 => 'name',
  13795. 1 => 'type_id',
  13796. ),
  13797. ),
  13798. 'indexes' => array(
  13799. 'synonym_idx1' => array(
  13800. 0 => 'type_id',
  13801. ),
  13802. ),
  13803. 'foreign keys' => array(
  13804. 'cvterm' => array(
  13805. 'table' => 'cvterm',
  13806. 'columns' => array(
  13807. 'type_id' => 'cvterm_id',
  13808. ),
  13809. ),
  13810. ),
  13811. 'table' => 'synonym',
  13812. 'referring_tables' => array(
  13813. 0 => 'cell_line_synonym',
  13814. 1 => 'feature_synonym',
  13815. 2 => 'library_synonym',
  13816. ),
  13817. );
  13818. return $description;
  13819. }
  13820. /**
  13821. * Implements hook_chado_schema_v1_2_tableinfo()
  13822. * Purpose: To describe the structure of 'tableinfo' to tripal
  13823. * @see tripal_core_chado_insert()
  13824. * @see tripal_core_chado_update()
  13825. * @see tripal_core_chado_select()
  13826. *
  13827. * @return
  13828. * An array describing the 'tableinfo' table
  13829. *
  13830. * @ingroup tripal_chado_v1.2_schema_api
  13831. *
  13832. */
  13833. function tripal_core_chado_schema_v1_2_tableinfo() {
  13834. $description = array(
  13835. 'description' => 'TODO: please describe this table!',
  13836. 'fields' => array(
  13837. 'tableinfo_id' => array(
  13838. 'description' => 'TODO: please describe this field!',
  13839. 'type' => 'serial',
  13840. 'not null' => TRUE,
  13841. ),
  13842. 'name' => array(
  13843. 'description' => 'TODO: please describe this field!',
  13844. 'type' => 'varchar',
  13845. 'length' => '30',
  13846. 'not null' => TRUE,
  13847. ),
  13848. 'primary_key_column' => array(
  13849. 'description' => 'TODO: please describe this field!',
  13850. 'type' => 'varchar',
  13851. 'length' => '30',
  13852. 'not null' => FALSE,
  13853. ),
  13854. 'is_view' => array(
  13855. 'description' => 'TODO: please describe this field!',
  13856. 'type' => 'int',
  13857. 'not null' => TRUE,
  13858. 'default' => 0,
  13859. ),
  13860. 'view_on_table_id' => array(
  13861. 'description' => 'TODO: please describe this field!',
  13862. 'type' => 'int',
  13863. 'not null' => FALSE,
  13864. ),
  13865. 'superclass_table_id' => array(
  13866. 'description' => 'TODO: please describe this field!',
  13867. 'type' => 'int',
  13868. 'not null' => FALSE,
  13869. ),
  13870. 'is_updateable' => array(
  13871. 'description' => 'TODO: please describe this field!',
  13872. 'type' => 'int',
  13873. 'not null' => TRUE,
  13874. 'default' => 1,
  13875. ),
  13876. 'modification_date' => array(
  13877. 'description' => 'TODO: please describe this field!',
  13878. 'type' => 'date',
  13879. 'not null' => TRUE,
  13880. 'default' => 'ow(',
  13881. ),
  13882. ),
  13883. 'primary key' => array(
  13884. 0 => 'tableinfo_id',
  13885. ),
  13886. 'unique keys' => array(
  13887. 'tableinfo_c1' => array(
  13888. 0 => 'name',
  13889. ),
  13890. ),
  13891. 'foreign keys' => array(
  13892. ),
  13893. 'table' => 'tableinfo',
  13894. 'referring_tables' => array(
  13895. 0 => 'control',
  13896. 1 => 'magedocumentation',
  13897. ),
  13898. );
  13899. return $description;
  13900. }
  13901. /**
  13902. * Implements hook_chado_schema_v1_2_treatment()
  13903. * Purpose: To describe the structure of 'treatment' to tripal
  13904. * @see tripal_core_chado_insert()
  13905. * @see tripal_core_chado_update()
  13906. * @see tripal_core_chado_select()
  13907. *
  13908. * @return
  13909. * An array describing the 'treatment' table
  13910. *
  13911. * @ingroup tripal_chado_v1.2_schema_api
  13912. *
  13913. */
  13914. function tripal_core_chado_schema_v1_2_treatment() {
  13915. $description = array(
  13916. 'description' => 'TODO: please describe this table!',
  13917. 'fields' => array(
  13918. 'treatment_id' => array(
  13919. 'description' => 'TODO: please describe this field!',
  13920. 'type' => 'serial',
  13921. 'not null' => TRUE,
  13922. ),
  13923. 'rank' => array(
  13924. 'description' => 'TODO: please describe this field!',
  13925. 'type' => 'int',
  13926. 'not null' => TRUE,
  13927. 'default' => 0,
  13928. ),
  13929. 'biomaterial_id' => array(
  13930. 'description' => 'TODO: please describe this field!',
  13931. 'type' => 'int',
  13932. 'not null' => TRUE,
  13933. ),
  13934. 'type_id' => array(
  13935. 'description' => 'TODO: please describe this field!',
  13936. 'type' => 'int',
  13937. 'not null' => TRUE,
  13938. ),
  13939. 'protocol_id' => array(
  13940. 'description' => 'TODO: please describe this field!',
  13941. 'type' => 'int',
  13942. 'not null' => FALSE,
  13943. ),
  13944. 'name' => array(
  13945. 'description' => 'TODO: please describe this field!',
  13946. 'type' => 'text',
  13947. 'not null' => FALSE,
  13948. ),
  13949. ),
  13950. 'primary key' => array(
  13951. 0 => 'treatment_id',
  13952. ),
  13953. 'indexes' => array(
  13954. 'treatment_idx1' => array(
  13955. 0 => 'biomaterial_id',
  13956. ),
  13957. 'treatment_idx2' => array(
  13958. 0 => 'type_id',
  13959. ),
  13960. 'treatment_idx3' => array(
  13961. 0 => 'protocol_id',
  13962. ),
  13963. ),
  13964. 'foreign keys' => array(
  13965. 'cvterm' => array(
  13966. 'table' => 'cvterm',
  13967. 'columns' => array(
  13968. 'type_id' => 'cvterm_id',
  13969. ),
  13970. ),
  13971. 'protocol' => array(
  13972. 'table' => 'protocol',
  13973. 'columns' => array(
  13974. 'protocol_id' => 'protocol_id',
  13975. ),
  13976. ),
  13977. 'biomaterial' => array(
  13978. 'table' => 'biomaterial',
  13979. 'columns' => array(
  13980. 'biomaterial_id' => 'biomaterial_id',
  13981. ),
  13982. ),
  13983. ),
  13984. 'table' => 'treatment',
  13985. 'referring_tables' => array(
  13986. 0 => 'biomaterial_treatment',
  13987. ),
  13988. );
  13989. return $description;
  13990. }