tripal_core.schema_v1.11.api.inc 249 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719
  1. <?php
  2. /**
  3. * Implements hook_chado_schema_v1_11_acquisition()
  4. * Purpose: To describe the structure of 'acquisition' to tripal
  5. * @see tripal_core_chado_insert()
  6. * @see tripal_core_chado_update()
  7. * @see tripal_core_chado_select()
  8. *
  9. * @return
  10. * An array describing the 'acquisition' table
  11. *
  12. * @ingroup tripal_chado_v1.11_schema_api
  13. *
  14. */
  15. function tripal_core_chado_schema_v1_11_acquisition() {
  16. $description = array (
  17. 'table' => 'acquisition',
  18. 'fields' => array (
  19. 'acquisition_id' => array (
  20. 'type' => 'serial',
  21. 'not NULL' => '1',
  22. ),
  23. 'assay_id' => array (
  24. 'type' => 'int',
  25. 'not NULL' => '1',
  26. ),
  27. 'protocol_id' => array (
  28. 'type' => 'int',
  29. 'not NULL' => '',
  30. ),
  31. 'channel_id' => array (
  32. 'type' => 'int',
  33. 'not NULL' => '',
  34. ),
  35. 'acquisitiondate' => array (
  36. 'type' => 'datetime',
  37. 'not NULL' => '',
  38. 'default' => 'ow(',
  39. ),
  40. 'name' => array (
  41. 'type' => 'text',
  42. 'not NULL' => '',
  43. ),
  44. 'uri' => array (
  45. 'type' => 'text',
  46. 'not NULL' => '',
  47. ),
  48. ),
  49. 'primary key' => array (
  50. 0 => 'acquisition_id',
  51. ),
  52. 'unique keys' => array (
  53. 'acquisition_c1' => array (
  54. 0 => 'name',
  55. ),
  56. ),
  57. 'indexes' => array (
  58. 'acquisition_idx1' => array (
  59. 0 => 'assay_id',
  60. ),
  61. 'acquisition_idx2' => array (
  62. 0 => 'protocol_id',
  63. ),
  64. 'acquisition_idx3' => array (
  65. 0 => 'channel_id',
  66. ),
  67. ),
  68. 'foreign keys' => array (
  69. 'protocol' => array (
  70. 'table' => 'protocol',
  71. 'columns' => array (
  72. 'protocol_id' => 'protocol_id',
  73. ),
  74. ),
  75. 'channel' => array (
  76. 'table' => 'channel',
  77. 'columns' => array (
  78. 'channel_id' => 'channel_id',
  79. ),
  80. ),
  81. 'assay' => array (
  82. 'table' => 'assay',
  83. 'columns' => array (
  84. 'assay_id' => 'assay_id',
  85. ),
  86. ),
  87. ),
  88. );
  89. return $description;
  90. }
  91. /**
  92. * Implements hook_chado_schema_v1_11_acquisition_relationship()
  93. * Purpose: To describe the structure of 'acquisition_relationship' to tripal
  94. * @see tripal_core_chado_insert()
  95. * @see tripal_core_chado_update()
  96. * @see tripal_core_chado_select()
  97. *
  98. * @return
  99. * An array describing the 'acquisition_relationship' table
  100. *
  101. * @ingroup tripal_chado_v1.11_schema_api
  102. *
  103. */
  104. function tripal_core_chado_schema_v1_11_acquisition_relationship() {
  105. $description = array (
  106. 'table' => 'acquisition_relationship',
  107. 'fields' => array (
  108. 'acquisition_relationship_id' => array (
  109. 'type' => 'serial',
  110. 'not NULL' => '1',
  111. ),
  112. 'subject_id' => array (
  113. 'type' => 'int',
  114. 'not NULL' => '1',
  115. ),
  116. 'type_id' => array (
  117. 'type' => 'int',
  118. 'not NULL' => '1',
  119. ),
  120. 'object_id' => array (
  121. 'type' => 'int',
  122. 'not NULL' => '1',
  123. ),
  124. 'value' => array (
  125. 'type' => 'text',
  126. 'not NULL' => '',
  127. ),
  128. 'rank' => array (
  129. 'type' => 'int',
  130. 'not NULL' => '1',
  131. 'default' => '0',
  132. ),
  133. ),
  134. 'primary key' => array (
  135. 0 => 'acquisition_relationship_id',
  136. ),
  137. 'unique keys' => array (
  138. 'acquisition_relationship_c1' => array (
  139. 0 => 'subject_id',
  140. 1 => 'object_id',
  141. 2 => 'type_id',
  142. 3 => 'rank',
  143. ),
  144. ),
  145. 'indexes' => array (
  146. 'acquisition_relationship_idx1' => array (
  147. 0 => 'subject_id',
  148. ),
  149. 'acquisition_relationship_idx2' => array (
  150. 0 => 'type_id',
  151. ),
  152. 'acquisition_relationship_idx3' => array (
  153. 0 => 'object_id',
  154. ),
  155. ),
  156. 'foreign keys' => array (
  157. 'cvterm' => array (
  158. 'table' => 'cvterm',
  159. 'columns' => array (
  160. 'type_id' => 'cvterm_id',
  161. ),
  162. ),
  163. 'acquisition' => array (
  164. 'table' => 'acquisition',
  165. 'columns' => array (
  166. 'subject_id' => 'acquisition_id',
  167. 'object_id' => 'acquisition_id',
  168. ),
  169. ),
  170. ),
  171. );
  172. return $description;
  173. }
  174. /**
  175. * Implements hook_chado_schema_v1_11_acquisitionprop()
  176. * Purpose: To describe the structure of 'acquisitionprop' to tripal
  177. * @see tripal_core_chado_insert()
  178. * @see tripal_core_chado_update()
  179. * @see tripal_core_chado_select()
  180. *
  181. * @return
  182. * An array describing the 'acquisitionprop' table
  183. *
  184. * @ingroup tripal_chado_v1.11_schema_api
  185. *
  186. */
  187. function tripal_core_chado_schema_v1_11_acquisitionprop() {
  188. $description = array (
  189. 'table' => 'acquisitionprop',
  190. 'fields' => array (
  191. 'acquisitionprop_id' => array (
  192. 'type' => 'serial',
  193. 'not NULL' => '1',
  194. ),
  195. 'acquisition_id' => array (
  196. 'type' => 'int',
  197. 'not NULL' => '1',
  198. ),
  199. 'type_id' => array (
  200. 'type' => 'int',
  201. 'not NULL' => '1',
  202. ),
  203. 'value' => array (
  204. 'type' => 'text',
  205. 'not NULL' => '',
  206. ),
  207. 'rank' => array (
  208. 'type' => 'int',
  209. 'not NULL' => '1',
  210. 'default' => '0',
  211. ),
  212. ),
  213. 'primary key' => array (
  214. 0 => 'acquisitionprop_id',
  215. ),
  216. 'unique keys' => array (
  217. 'acquisitionprop_c1' => array (
  218. 0 => 'acquisition_id',
  219. 1 => 'type_id',
  220. 2 => 'rank',
  221. ),
  222. ),
  223. 'indexes' => array (
  224. 'acquisitionprop_idx1' => array (
  225. 0 => 'acquisition_id',
  226. ),
  227. 'acquisitionprop_idx2' => array (
  228. 0 => 'type_id',
  229. ),
  230. ),
  231. 'foreign keys' => array (
  232. 'cvterm' => array (
  233. 'table' => 'cvterm',
  234. 'columns' => array (
  235. 'type_id' => 'cvterm_id',
  236. ),
  237. ),
  238. 'acquisition' => array (
  239. 'table' => 'acquisition',
  240. 'columns' => array (
  241. 'acquisition_id' => 'acquisition_id',
  242. ),
  243. ),
  244. ),
  245. );
  246. return $description;
  247. }
  248. /**
  249. * Implements hook_chado_schema_v1_11_analysis()
  250. * Purpose: To describe the structure of 'analysis' to tripal
  251. * @see tripal_core_chado_insert()
  252. * @see tripal_core_chado_update()
  253. * @see tripal_core_chado_select()
  254. *
  255. * @return
  256. * An array describing the 'analysis' table
  257. *
  258. * @ingroup tripal_chado_v1.11_schema_api
  259. *
  260. */
  261. function tripal_core_chado_schema_v1_11_analysis() {
  262. $description = array (
  263. 'referring_tables' => array (
  264. 0 => 'analysisfeature',
  265. 1 => 'analysisprop',
  266. 2 => 'phylotree',
  267. 3 => 'quantification',
  268. ),
  269. 'table' => 'analysis',
  270. 'fields' => array (
  271. 'analysis_id' => array (
  272. 'type' => 'serial',
  273. 'not NULL' => '1',
  274. ),
  275. 'name' => array (
  276. 'type' => 'varchar',
  277. 'length' => '255',
  278. 'not NULL' => '',
  279. ),
  280. 'description' => array (
  281. 'type' => 'text',
  282. 'not NULL' => '',
  283. ),
  284. 'program' => array (
  285. 'type' => 'varchar',
  286. 'length' => '255',
  287. 'not NULL' => '1',
  288. ),
  289. 'programversion' => array (
  290. 'type' => 'varchar',
  291. 'length' => '255',
  292. 'not NULL' => '1',
  293. ),
  294. 'algorithm' => array (
  295. 'type' => 'varchar',
  296. 'length' => '255',
  297. 'not NULL' => '',
  298. ),
  299. 'sourcename' => array (
  300. 'type' => 'varchar',
  301. 'length' => '255',
  302. 'not NULL' => '',
  303. ),
  304. 'sourceversion' => array (
  305. 'type' => 'varchar',
  306. 'length' => '255',
  307. 'not NULL' => '',
  308. ),
  309. 'sourceuri' => array (
  310. 'type' => 'text',
  311. 'not NULL' => '',
  312. ),
  313. 'timeexecuted' => array (
  314. 'type' => 'datetime',
  315. 'not NULL' => '1',
  316. 'default' => 'ow(',
  317. ),
  318. ),
  319. 'primary key' => array (
  320. 0 => 'analysis_id',
  321. ),
  322. 'unique keys' => array (
  323. 'analysis_c1' => array (
  324. 0 => 'program',
  325. 1 => 'programversion',
  326. 2 => 'sourcename',
  327. ),
  328. ),
  329. 'indexes' => array (
  330. ),
  331. 'foreign keys' => array (
  332. ),
  333. );
  334. return $description;
  335. }
  336. /**
  337. * Implements hook_chado_schema_v1_11_analysisfeature()
  338. * Purpose: To describe the structure of 'analysisfeature' to tripal
  339. * @see tripal_core_chado_insert()
  340. * @see tripal_core_chado_update()
  341. * @see tripal_core_chado_select()
  342. *
  343. * @return
  344. * An array describing the 'analysisfeature' table
  345. *
  346. * @ingroup tripal_chado_v1.11_schema_api
  347. *
  348. */
  349. function tripal_core_chado_schema_v1_11_analysisfeature() {
  350. $description = array (
  351. 'table' => 'analysisfeature',
  352. 'fields' => array (
  353. 'analysisfeature_id' => array (
  354. 'type' => 'serial',
  355. 'not NULL' => '1',
  356. ),
  357. 'feature_id' => array (
  358. 'type' => 'int',
  359. 'not NULL' => '1',
  360. ),
  361. 'analysis_id' => array (
  362. 'type' => 'int',
  363. 'not NULL' => '1',
  364. ),
  365. 'rawscore' => array (
  366. 'type' => 'float',
  367. 'size' => 'big',
  368. 'not NULL' => '',
  369. ),
  370. 'normscore' => array (
  371. 'type' => 'float',
  372. 'size' => 'big',
  373. 'not NULL' => '',
  374. ),
  375. 'significance' => array (
  376. 'type' => 'float',
  377. 'size' => 'big',
  378. 'not NULL' => '',
  379. ),
  380. 'identity' => array (
  381. 'type' => 'float',
  382. 'size' => 'big',
  383. 'not NULL' => '',
  384. ),
  385. ),
  386. 'primary key' => array (
  387. 0 => 'analysisfeature_id',
  388. ),
  389. 'unique keys' => array (
  390. 'analysisfeature_c1' => array (
  391. 0 => 'feature_id',
  392. 1 => 'analysis_id',
  393. ),
  394. ),
  395. 'indexes' => array (
  396. 'analysisfeature_idx1' => array (
  397. 0 => 'feature_id',
  398. ),
  399. 'analysisfeature_idx2' => array (
  400. 0 => 'analysis_id',
  401. ),
  402. ),
  403. 'foreign keys' => array (
  404. 'feature' => array (
  405. 'table' => 'feature',
  406. 'columns' => array (
  407. 'feature_id' => 'feature_id',
  408. ),
  409. ),
  410. 'analysis' => array (
  411. 'table' => 'analysis',
  412. 'columns' => array (
  413. 'analysis_id' => 'analysis_id',
  414. ),
  415. ),
  416. ),
  417. );
  418. return $description;
  419. }
  420. /**
  421. * Implements hook_chado_schema_v1_11_analysisfeatureprop()
  422. * Purpose: To describe the structure of 'analysisfeatureprop' to tripal
  423. * @see tripal_core_chado_insert()
  424. * @see tripal_core_chado_update()
  425. * @see tripal_core_chado_select()
  426. *
  427. * @return
  428. * An array describing the 'analysisfeatureprop' table
  429. *
  430. * @ingroup tripal_chado_v1.11_schema_api
  431. *
  432. */
  433. function tripal_core_chado_schema_v1_11_analysisfeatureprop() {
  434. $description = array (
  435. 'table' => 'analysisfeatureprop',
  436. 'fields' => array (
  437. 'analysisfeatureprop_id' => array (
  438. 'type' => 'serial',
  439. 'not NULL' => '1',
  440. ),
  441. 'analysisfeature_id' => array (
  442. 'type' => 'int',
  443. 'not NULL' => '1',
  444. ),
  445. 'type_id' => array (
  446. 'type' => 'int',
  447. 'not NULL' => '1',
  448. ),
  449. 'value' => array (
  450. 'type' => 'text',
  451. 'not NULL' => '',
  452. ),
  453. 'rank' => array (
  454. 'type' => 'int',
  455. 'not NULL' => '1',
  456. ),
  457. ),
  458. 'primary key' => array (
  459. 0 => 'analysisfeatureprop_id',
  460. ),
  461. 'unique keys' => array (
  462. 'analysisfeature_id_type_id_rank' => array (
  463. 0 => 'analysisfeature_id',
  464. 1 => 'type_id',
  465. 2 => 'rank',
  466. ),
  467. ),
  468. 'indexes' => array (
  469. ),
  470. 'foreign keys' => array (
  471. 'cvterm' => array (
  472. 'table' => 'cvterm',
  473. 'columns' => array (
  474. 'type_id' => 'cvterm_id',
  475. ),
  476. ),
  477. 'analysisfeature' => array (
  478. 'table' => 'analysisfeature',
  479. 'columns' => array (
  480. 'analysisfeature_id' => 'analysisfeature_id',
  481. ),
  482. ),
  483. ),
  484. );
  485. return $description;
  486. }
  487. /**
  488. * Implements hook_chado_schema_v1_11_analysisprop()
  489. * Purpose: To describe the structure of 'analysisprop' to tripal
  490. * @see tripal_core_chado_insert()
  491. * @see tripal_core_chado_update()
  492. * @see tripal_core_chado_select()
  493. *
  494. * @return
  495. * An array describing the 'analysisprop' table
  496. *
  497. * @ingroup tripal_chado_v1.11_schema_api
  498. *
  499. */
  500. function tripal_core_chado_schema_v1_11_analysisprop() {
  501. $description = array (
  502. 'table' => 'analysisprop',
  503. 'fields' => array (
  504. 'analysisprop_id' => array (
  505. 'type' => 'serial',
  506. 'not NULL' => '1',
  507. ),
  508. 'analysis_id' => array (
  509. 'type' => 'int',
  510. 'not NULL' => '1',
  511. ),
  512. 'type_id' => array (
  513. 'type' => 'int',
  514. 'not NULL' => '1',
  515. ),
  516. 'value' => array (
  517. 'type' => 'text',
  518. 'not NULL' => '',
  519. ),
  520. ),
  521. 'primary key' => array (
  522. 0 => 'analysisprop_id',
  523. ),
  524. 'unique keys' => array (
  525. 'analysisprop_c1' => array (
  526. 0 => 'analysis_id',
  527. 1 => 'type_id',
  528. ),
  529. ),
  530. 'indexes' => array (
  531. 'analysisprop_idx1' => array (
  532. 0 => 'analysis_id',
  533. ),
  534. 'analysisprop_idx2' => array (
  535. 0 => 'type_id',
  536. ),
  537. ),
  538. 'foreign keys' => array (
  539. 'cvterm' => array (
  540. 'table' => 'cvterm',
  541. 'columns' => array (
  542. 'type_id' => 'cvterm_id',
  543. ),
  544. ),
  545. 'analysis' => array (
  546. 'table' => 'analysis',
  547. 'columns' => array (
  548. 'analysis_id' => 'analysis_id',
  549. ),
  550. ),
  551. ),
  552. );
  553. return $description;
  554. }
  555. /**
  556. * Implements hook_chado_schema_v1_11_arraydesign()
  557. * Purpose: To describe the structure of 'arraydesign' to tripal
  558. * @see tripal_core_chado_insert()
  559. * @see tripal_core_chado_update()
  560. * @see tripal_core_chado_select()
  561. *
  562. * @return
  563. * An array describing the 'arraydesign' table
  564. *
  565. * @ingroup tripal_chado_v1.11_schema_api
  566. *
  567. */
  568. function tripal_core_chado_schema_v1_11_arraydesign() {
  569. $description = array (
  570. 'table' => 'arraydesign',
  571. 'fields' => array (
  572. 'arraydesign_id' => array (
  573. 'type' => 'serial',
  574. 'not NULL' => '1',
  575. ),
  576. 'manufacturer_id' => array (
  577. 'type' => 'int',
  578. 'not NULL' => '1',
  579. ),
  580. 'platformtype_id' => array (
  581. 'type' => 'int',
  582. 'not NULL' => '1',
  583. ),
  584. 'substratetype_id' => array (
  585. 'type' => 'int',
  586. 'not NULL' => '',
  587. ),
  588. 'protocol_id' => array (
  589. 'type' => 'int',
  590. 'not NULL' => '',
  591. ),
  592. 'dbxref_id' => array (
  593. 'type' => 'int',
  594. 'not NULL' => '',
  595. ),
  596. 'name' => array (
  597. 'type' => 'text',
  598. 'not NULL' => '1',
  599. ),
  600. 'version' => array (
  601. 'type' => 'text',
  602. 'not NULL' => '',
  603. ),
  604. 'description' => array (
  605. 'type' => 'text',
  606. 'not NULL' => '',
  607. ),
  608. 'array_dimensions' => array (
  609. 'type' => 'text',
  610. 'not NULL' => '',
  611. ),
  612. 'element_dimensions' => array (
  613. 'type' => 'text',
  614. 'not NULL' => '',
  615. ),
  616. 'num_of_elements' => array (
  617. 'type' => 'int',
  618. 'not NULL' => '',
  619. ),
  620. 'num_array_columns' => array (
  621. 'type' => 'int',
  622. 'not NULL' => '',
  623. ),
  624. 'num_array_rows' => array (
  625. 'type' => 'int',
  626. 'not NULL' => '',
  627. ),
  628. 'num_grid_columns' => array (
  629. 'type' => 'int',
  630. 'not NULL' => '',
  631. ),
  632. 'num_grid_rows' => array (
  633. 'type' => 'int',
  634. 'not NULL' => '',
  635. ),
  636. 'num_sub_columns' => array (
  637. 'type' => 'int',
  638. 'not NULL' => '',
  639. ),
  640. 'num_sub_rows' => array (
  641. 'type' => 'int',
  642. 'not NULL' => '',
  643. ),
  644. ),
  645. 'primary key' => array (
  646. 0 => 'arraydesign_id',
  647. ),
  648. 'unique keys' => array (
  649. 'arraydesign_c1' => array (
  650. 0 => 'name',
  651. ),
  652. ),
  653. 'indexes' => array (
  654. 'arraydesign_idx1' => array (
  655. 0 => 'manufacturer_id',
  656. ),
  657. 'arraydesign_idx2' => array (
  658. 0 => 'platformtype_id',
  659. ),
  660. 'arraydesign_idx3' => array (
  661. 0 => 'substratetype_id',
  662. ),
  663. 'arraydesign_idx4' => array (
  664. 0 => 'protocol_id',
  665. ),
  666. 'arraydesign_idx5' => array (
  667. 0 => 'dbxref_id',
  668. ),
  669. ),
  670. 'foreign keys' => array (
  671. 'dbxref' => array (
  672. 'table' => 'dbxref',
  673. 'columns' => array (
  674. 'dbxref_id' => 'dbxref_id',
  675. ),
  676. ),
  677. 'cvterm' => array (
  678. 'table' => 'cvterm',
  679. 'columns' => array (
  680. 'platformtype_id' => 'cvterm_id',
  681. 'substratetype_id' => 'cvterm_id',
  682. ),
  683. ),
  684. 'contact' => array (
  685. 'table' => 'contact',
  686. 'columns' => array (
  687. 'manufacturer_id' => 'contact_id',
  688. ),
  689. ),
  690. 'protocol' => array (
  691. 'table' => 'protocol',
  692. 'columns' => array (
  693. 'protocol_id' => 'protocol_id',
  694. ),
  695. ),
  696. ),
  697. );
  698. return $description;
  699. }
  700. /**
  701. * Implements hook_chado_schema_v1_11_arraydesignprop()
  702. * Purpose: To describe the structure of 'arraydesignprop' to tripal
  703. * @see tripal_core_chado_insert()
  704. * @see tripal_core_chado_update()
  705. * @see tripal_core_chado_select()
  706. *
  707. * @return
  708. * An array describing the 'arraydesignprop' table
  709. *
  710. * @ingroup tripal_chado_v1.11_schema_api
  711. *
  712. */
  713. function tripal_core_chado_schema_v1_11_arraydesignprop() {
  714. $description = array (
  715. 'table' => 'arraydesignprop',
  716. 'fields' => array (
  717. 'arraydesignprop_id' => array (
  718. 'type' => 'serial',
  719. 'not NULL' => '1',
  720. ),
  721. 'arraydesign_id' => array (
  722. 'type' => 'int',
  723. 'not NULL' => '1',
  724. ),
  725. 'type_id' => array (
  726. 'type' => 'int',
  727. 'not NULL' => '1',
  728. ),
  729. 'value' => array (
  730. 'type' => 'text',
  731. 'not NULL' => '',
  732. ),
  733. 'rank' => array (
  734. 'type' => 'int',
  735. 'not NULL' => '1',
  736. 'default' => '0',
  737. ),
  738. ),
  739. 'primary key' => array (
  740. 0 => 'arraydesignprop_id',
  741. ),
  742. 'unique keys' => array (
  743. 'arraydesignprop_c1' => array (
  744. 0 => 'arraydesign_id',
  745. 1 => 'type_id',
  746. 2 => 'rank',
  747. ),
  748. ),
  749. 'indexes' => array (
  750. 'arraydesignprop_idx1' => array (
  751. 0 => 'arraydesign_id',
  752. ),
  753. 'arraydesignprop_idx2' => array (
  754. 0 => 'type_id',
  755. ),
  756. ),
  757. 'foreign keys' => array (
  758. 'cvterm' => array (
  759. 'table' => 'cvterm',
  760. 'columns' => array (
  761. 'type_id' => 'cvterm_id',
  762. ),
  763. ),
  764. 'arraydesign' => array (
  765. 'table' => 'arraydesign',
  766. 'columns' => array (
  767. 'arraydesign_id' => 'arraydesign_id',
  768. ),
  769. ),
  770. ),
  771. );
  772. return $description;
  773. }
  774. /**
  775. * Implements hook_chado_schema_v1_11_assay()
  776. * Purpose: To describe the structure of 'assay' to tripal
  777. * @see tripal_core_chado_insert()
  778. * @see tripal_core_chado_update()
  779. * @see tripal_core_chado_select()
  780. *
  781. * @return
  782. * An array describing the 'assay' table
  783. *
  784. * @ingroup tripal_chado_v1.11_schema_api
  785. *
  786. */
  787. function tripal_core_chado_schema_v1_11_assay() {
  788. $description = array (
  789. 'table' => 'assay',
  790. 'fields' => array (
  791. 'assay_id' => array (
  792. 'type' => 'serial',
  793. 'not NULL' => '1',
  794. ),
  795. 'arraydesign_id' => array (
  796. 'type' => 'int',
  797. 'not NULL' => '1',
  798. ),
  799. 'protocol_id' => array (
  800. 'type' => 'int',
  801. 'not NULL' => '',
  802. ),
  803. 'assaydate' => array (
  804. 'type' => 'datetime',
  805. 'not NULL' => '',
  806. 'default' => 'ow(',
  807. ),
  808. 'arrayidentifier' => array (
  809. 'type' => 'text',
  810. 'not NULL' => '',
  811. ),
  812. 'arraybatchidentifier' => array (
  813. 'type' => 'text',
  814. 'not NULL' => '',
  815. ),
  816. 'operator_id' => array (
  817. 'type' => 'int',
  818. 'not NULL' => '1',
  819. ),
  820. 'dbxref_id' => array (
  821. 'type' => 'int',
  822. 'not NULL' => '',
  823. ),
  824. 'name' => array (
  825. 'type' => 'text',
  826. 'not NULL' => '',
  827. ),
  828. 'description' => array (
  829. 'type' => 'text',
  830. 'not NULL' => '',
  831. ),
  832. ),
  833. 'primary key' => array (
  834. 0 => 'assay_id',
  835. ),
  836. 'unique keys' => array (
  837. 'assay_c1' => array (
  838. 0 => 'name',
  839. ),
  840. ),
  841. 'indexes' => array (
  842. 'assay_idx1' => array (
  843. 0 => 'arraydesign_id',
  844. ),
  845. 'assay_idx2' => array (
  846. 0 => 'protocol_id',
  847. ),
  848. 'assay_idx3' => array (
  849. 0 => 'operator_id',
  850. ),
  851. 'assay_idx4' => array (
  852. 0 => 'dbxref_id',
  853. ),
  854. ),
  855. 'foreign keys' => array (
  856. 'dbxref' => array (
  857. 'table' => 'dbxref',
  858. 'columns' => array (
  859. 'dbxref_id' => 'dbxref_id',
  860. ),
  861. ),
  862. 'contact' => array (
  863. 'table' => 'contact',
  864. 'columns' => array (
  865. 'operator_id' => 'contact_id',
  866. ),
  867. ),
  868. 'protocol' => array (
  869. 'table' => 'protocol',
  870. 'columns' => array (
  871. 'protocol_id' => 'protocol_id',
  872. ),
  873. ),
  874. 'arraydesign' => array (
  875. 'table' => 'arraydesign',
  876. 'columns' => array (
  877. 'arraydesign_id' => 'arraydesign_id',
  878. ),
  879. ),
  880. ),
  881. );
  882. return $description;
  883. }
  884. /**
  885. * Implements hook_chado_schema_v1_11_assay_biomaterial()
  886. * Purpose: To describe the structure of 'assay_biomaterial' to tripal
  887. * @see tripal_core_chado_insert()
  888. * @see tripal_core_chado_update()
  889. * @see tripal_core_chado_select()
  890. *
  891. * @return
  892. * An array describing the 'assay_biomaterial' table
  893. *
  894. * @ingroup tripal_chado_v1.11_schema_api
  895. *
  896. */
  897. function tripal_core_chado_schema_v1_11_assay_biomaterial() {
  898. $description = array (
  899. 'table' => 'assay_biomaterial',
  900. 'fields' => array (
  901. 'assay_biomaterial_id' => array (
  902. 'type' => 'serial',
  903. 'not NULL' => '1',
  904. ),
  905. 'assay_id' => array (
  906. 'type' => 'int',
  907. 'not NULL' => '1',
  908. ),
  909. 'biomaterial_id' => array (
  910. 'type' => 'int',
  911. 'not NULL' => '1',
  912. ),
  913. 'channel_id' => array (
  914. 'type' => 'int',
  915. 'not NULL' => '',
  916. ),
  917. 'rank' => array (
  918. 'type' => 'int',
  919. 'not NULL' => '1',
  920. 'default' => '0',
  921. ),
  922. ),
  923. 'primary key' => array (
  924. 0 => 'assay_biomaterial_id',
  925. ),
  926. 'unique keys' => array (
  927. 'assay_biomaterial_c1' => array (
  928. 0 => 'assay_id',
  929. 1 => 'biomaterial_id',
  930. 2 => 'channel_id',
  931. 3 => 'rank',
  932. ),
  933. ),
  934. 'indexes' => array (
  935. 'assay_biomaterial_idx1' => array (
  936. 0 => 'assay_id',
  937. ),
  938. 'assay_biomaterial_idx2' => array (
  939. 0 => 'biomaterial_id',
  940. ),
  941. 'assay_biomaterial_idx3' => array (
  942. 0 => 'channel_id',
  943. ),
  944. ),
  945. 'foreign keys' => array (
  946. 'channel' => array (
  947. 'table' => 'channel',
  948. 'columns' => array (
  949. 'channel_id' => 'channel_id',
  950. ),
  951. ),
  952. 'assay' => array (
  953. 'table' => 'assay',
  954. 'columns' => array (
  955. 'assay_id' => 'assay_id',
  956. ),
  957. ),
  958. 'biomaterial' => array (
  959. 'table' => 'biomaterial',
  960. 'columns' => array (
  961. 'biomaterial_id' => 'biomaterial_id',
  962. ),
  963. ),
  964. ),
  965. );
  966. return $description;
  967. }
  968. /**
  969. * Implements hook_chado_schema_v1_11_assay_project()
  970. * Purpose: To describe the structure of 'assay_project' to tripal
  971. * @see tripal_core_chado_insert()
  972. * @see tripal_core_chado_update()
  973. * @see tripal_core_chado_select()
  974. *
  975. * @return
  976. * An array describing the 'assay_project' table
  977. *
  978. * @ingroup tripal_chado_v1.11_schema_api
  979. *
  980. */
  981. function tripal_core_chado_schema_v1_11_assay_project() {
  982. $description = array (
  983. 'table' => 'assay_project',
  984. 'fields' => array (
  985. 'assay_project_id' => array (
  986. 'type' => 'serial',
  987. 'not NULL' => '1',
  988. ),
  989. 'assay_id' => array (
  990. 'type' => 'int',
  991. 'not NULL' => '1',
  992. ),
  993. 'project_id' => array (
  994. 'type' => 'int',
  995. 'not NULL' => '1',
  996. ),
  997. ),
  998. 'primary key' => array (
  999. 0 => 'assay_project_id',
  1000. ),
  1001. 'unique keys' => array (
  1002. 'assay_project_c1' => array (
  1003. 0 => 'assay_id',
  1004. 1 => 'project_id',
  1005. ),
  1006. ),
  1007. 'indexes' => array (
  1008. 'assay_project_idx1' => array (
  1009. 0 => 'assay_id',
  1010. ),
  1011. 'assay_project_idx2' => array (
  1012. 0 => 'project_id',
  1013. ),
  1014. ),
  1015. 'foreign keys' => array (
  1016. 'project' => array (
  1017. 'table' => 'project',
  1018. 'columns' => array (
  1019. 'project_id' => 'project_id',
  1020. ),
  1021. ),
  1022. 'assay' => array (
  1023. 'table' => 'assay',
  1024. 'columns' => array (
  1025. 'assay_id' => 'assay_id',
  1026. ),
  1027. ),
  1028. ),
  1029. );
  1030. return $description;
  1031. }
  1032. /**
  1033. * Implements hook_chado_schema_v1_11_assayprop()
  1034. * Purpose: To describe the structure of 'assayprop' to tripal
  1035. * @see tripal_core_chado_insert()
  1036. * @see tripal_core_chado_update()
  1037. * @see tripal_core_chado_select()
  1038. *
  1039. * @return
  1040. * An array describing the 'assayprop' table
  1041. *
  1042. * @ingroup tripal_chado_v1.11_schema_api
  1043. *
  1044. */
  1045. function tripal_core_chado_schema_v1_11_assayprop() {
  1046. $description = array (
  1047. 'table' => 'assayprop',
  1048. 'fields' => array (
  1049. 'assayprop_id' => array (
  1050. 'type' => 'serial',
  1051. 'not NULL' => '1',
  1052. ),
  1053. 'assay_id' => array (
  1054. 'type' => 'int',
  1055. 'not NULL' => '1',
  1056. ),
  1057. 'type_id' => array (
  1058. 'type' => 'int',
  1059. 'not NULL' => '1',
  1060. ),
  1061. 'value' => array (
  1062. 'type' => 'text',
  1063. 'not NULL' => '',
  1064. ),
  1065. 'rank' => array (
  1066. 'type' => 'int',
  1067. 'not NULL' => '1',
  1068. 'default' => '0',
  1069. ),
  1070. ),
  1071. 'primary key' => array (
  1072. 0 => 'assayprop_id',
  1073. ),
  1074. 'unique keys' => array (
  1075. 'assayprop_c1' => array (
  1076. 0 => 'assay_id',
  1077. 1 => 'type_id',
  1078. 2 => 'rank',
  1079. ),
  1080. ),
  1081. 'indexes' => array (
  1082. 'assayprop_idx1' => array (
  1083. 0 => 'assay_id',
  1084. ),
  1085. 'assayprop_idx2' => array (
  1086. 0 => 'type_id',
  1087. ),
  1088. ),
  1089. 'foreign keys' => array (
  1090. 'cvterm' => array (
  1091. 'table' => 'cvterm',
  1092. 'columns' => array (
  1093. 'type_id' => 'cvterm_id',
  1094. ),
  1095. ),
  1096. 'assay' => array (
  1097. 'table' => 'assay',
  1098. 'columns' => array (
  1099. 'assay_id' => 'assay_id',
  1100. ),
  1101. ),
  1102. ),
  1103. );
  1104. return $description;
  1105. }
  1106. /**
  1107. * Implements hook_chado_schema_v1_11_biomaterial()
  1108. * Purpose: To describe the structure of 'biomaterial' to tripal
  1109. * @see tripal_core_chado_insert()
  1110. * @see tripal_core_chado_update()
  1111. * @see tripal_core_chado_select()
  1112. *
  1113. * @return
  1114. * An array describing the 'biomaterial' table
  1115. *
  1116. * @ingroup tripal_chado_v1.11_schema_api
  1117. *
  1118. */
  1119. function tripal_core_chado_schema_v1_11_biomaterial() {
  1120. $description = array (
  1121. 'table' => 'biomaterial',
  1122. 'fields' => array (
  1123. 'biomaterial_id' => array (
  1124. 'type' => 'serial',
  1125. 'not NULL' => '1',
  1126. ),
  1127. 'taxon_id' => array (
  1128. 'type' => 'int',
  1129. 'not NULL' => '',
  1130. ),
  1131. 'biosourceprovider_id' => array (
  1132. 'type' => 'int',
  1133. 'not NULL' => '',
  1134. ),
  1135. 'dbxref_id' => array (
  1136. 'type' => 'int',
  1137. 'not NULL' => '',
  1138. ),
  1139. 'name' => array (
  1140. 'type' => 'text',
  1141. 'not NULL' => '',
  1142. ),
  1143. 'description' => array (
  1144. 'type' => 'text',
  1145. 'not NULL' => '',
  1146. ),
  1147. ),
  1148. 'primary key' => array (
  1149. 0 => 'biomaterial_id',
  1150. ),
  1151. 'unique keys' => array (
  1152. 'biomaterial_c1' => array (
  1153. 0 => 'name',
  1154. ),
  1155. ),
  1156. 'indexes' => array (
  1157. 'biomaterial_idx1' => array (
  1158. 0 => 'taxon_id',
  1159. ),
  1160. 'biomaterial_idx2' => array (
  1161. 0 => 'biosourceprovider_id',
  1162. ),
  1163. 'biomaterial_idx3' => array (
  1164. 0 => 'dbxref_id',
  1165. ),
  1166. ),
  1167. 'foreign keys' => array (
  1168. 'dbxref' => array (
  1169. 'table' => 'dbxref',
  1170. 'columns' => array (
  1171. 'dbxref_id' => 'dbxref_id',
  1172. ),
  1173. ),
  1174. 'organism' => array (
  1175. 'table' => 'organism',
  1176. 'columns' => array (
  1177. 'taxon_id' => 'organism_id',
  1178. ),
  1179. ),
  1180. 'contact' => array (
  1181. 'table' => 'contact',
  1182. 'columns' => array (
  1183. 'biosourceprovider_id' => 'contact_id',
  1184. ),
  1185. ),
  1186. ),
  1187. );
  1188. return $description;
  1189. }
  1190. /**
  1191. * Implements hook_chado_schema_v1_11_biomaterial_dbxref()
  1192. * Purpose: To describe the structure of 'biomaterial_dbxref' to tripal
  1193. * @see tripal_core_chado_insert()
  1194. * @see tripal_core_chado_update()
  1195. * @see tripal_core_chado_select()
  1196. *
  1197. * @return
  1198. * An array describing the 'biomaterial_dbxref' table
  1199. *
  1200. * @ingroup tripal_chado_v1.11_schema_api
  1201. *
  1202. */
  1203. function tripal_core_chado_schema_v1_11_biomaterial_dbxref() {
  1204. $description = array (
  1205. 'table' => 'biomaterial_dbxref',
  1206. 'fields' => array (
  1207. 'biomaterial_dbxref_id' => array (
  1208. 'type' => 'serial',
  1209. 'not NULL' => '1',
  1210. ),
  1211. 'biomaterial_id' => array (
  1212. 'type' => 'int',
  1213. 'not NULL' => '1',
  1214. ),
  1215. 'dbxref_id' => array (
  1216. 'type' => 'int',
  1217. 'not NULL' => '1',
  1218. ),
  1219. ),
  1220. 'primary key' => array (
  1221. 0 => 'biomaterial_dbxref_id',
  1222. ),
  1223. 'unique keys' => array (
  1224. 'biomaterial_dbxref_c1' => array (
  1225. 0 => 'biomaterial_id',
  1226. 1 => 'dbxref_id',
  1227. ),
  1228. ),
  1229. 'indexes' => array (
  1230. 'biomaterial_dbxref_idx1' => array (
  1231. 0 => 'biomaterial_id',
  1232. ),
  1233. 'biomaterial_dbxref_idx2' => array (
  1234. 0 => 'dbxref_id',
  1235. ),
  1236. ),
  1237. 'foreign keys' => array (
  1238. 'dbxref' => array (
  1239. 'table' => 'dbxref',
  1240. 'columns' => array (
  1241. 'dbxref_id' => 'dbxref_id',
  1242. ),
  1243. ),
  1244. 'biomaterial' => array (
  1245. 'table' => 'biomaterial',
  1246. 'columns' => array (
  1247. 'biomaterial_id' => 'biomaterial_id',
  1248. ),
  1249. ),
  1250. ),
  1251. );
  1252. return $description;
  1253. }
  1254. /**
  1255. * Implements hook_chado_schema_v1_11_biomaterial_relationship()
  1256. * Purpose: To describe the structure of 'biomaterial_relationship' to tripal
  1257. * @see tripal_core_chado_insert()
  1258. * @see tripal_core_chado_update()
  1259. * @see tripal_core_chado_select()
  1260. *
  1261. * @return
  1262. * An array describing the 'biomaterial_relationship' table
  1263. *
  1264. * @ingroup tripal_chado_v1.11_schema_api
  1265. *
  1266. */
  1267. function tripal_core_chado_schema_v1_11_biomaterial_relationship() {
  1268. $description = array (
  1269. 'table' => 'biomaterial_relationship',
  1270. 'fields' => array (
  1271. 'biomaterial_relationship_id' => array (
  1272. 'type' => 'serial',
  1273. 'not NULL' => '1',
  1274. ),
  1275. 'subject_id' => array (
  1276. 'type' => 'int',
  1277. 'not NULL' => '1',
  1278. ),
  1279. 'type_id' => array (
  1280. 'type' => 'int',
  1281. 'not NULL' => '1',
  1282. ),
  1283. 'object_id' => array (
  1284. 'type' => 'int',
  1285. 'not NULL' => '1',
  1286. ),
  1287. ),
  1288. 'primary key' => array (
  1289. 0 => 'biomaterial_relationship_id',
  1290. ),
  1291. 'unique keys' => array (
  1292. 'biomaterial_relationship_c1' => array (
  1293. 0 => 'subject_id',
  1294. 1 => 'object_id',
  1295. 2 => 'type_id',
  1296. ),
  1297. ),
  1298. 'indexes' => array (
  1299. 'biomaterial_relationship_idx1' => array (
  1300. 0 => 'subject_id',
  1301. ),
  1302. 'biomaterial_relationship_idx2' => array (
  1303. 0 => 'object_id',
  1304. ),
  1305. 'biomaterial_relationship_idx3' => array (
  1306. 0 => 'type_id',
  1307. ),
  1308. ),
  1309. 'foreign keys' => array (
  1310. 'cvterm' => array (
  1311. 'table' => 'cvterm',
  1312. 'columns' => array (
  1313. 'type_id' => 'cvterm_id',
  1314. ),
  1315. ),
  1316. 'biomaterial' => array (
  1317. 'table' => 'biomaterial',
  1318. 'columns' => array (
  1319. 'subject_id' => 'biomaterial_id',
  1320. 'object_id' => 'biomaterial_id',
  1321. ),
  1322. ),
  1323. ),
  1324. );
  1325. return $description;
  1326. }
  1327. /**
  1328. * Implements hook_chado_schema_v1_11_biomaterial_treatment()
  1329. * Purpose: To describe the structure of 'biomaterial_treatment' to tripal
  1330. * @see tripal_core_chado_insert()
  1331. * @see tripal_core_chado_update()
  1332. * @see tripal_core_chado_select()
  1333. *
  1334. * @return
  1335. * An array describing the 'biomaterial_treatment' table
  1336. *
  1337. * @ingroup tripal_chado_v1.11_schema_api
  1338. *
  1339. */
  1340. function tripal_core_chado_schema_v1_11_biomaterial_treatment() {
  1341. $description = array (
  1342. 'table' => 'biomaterial_treatment',
  1343. 'fields' => array (
  1344. 'biomaterial_treatment_id' => array (
  1345. 'type' => 'serial',
  1346. 'not NULL' => '1',
  1347. ),
  1348. 'biomaterial_id' => array (
  1349. 'type' => 'int',
  1350. 'not NULL' => '1',
  1351. ),
  1352. 'treatment_id' => array (
  1353. 'type' => 'int',
  1354. 'not NULL' => '1',
  1355. ),
  1356. 'unittype_id' => array (
  1357. 'type' => 'int',
  1358. 'not NULL' => '',
  1359. ),
  1360. 'value' => array (
  1361. 'type' => 'float',
  1362. 'not NULL' => '',
  1363. ),
  1364. 'rank' => array (
  1365. 'type' => 'int',
  1366. 'not NULL' => '1',
  1367. 'default' => '0',
  1368. ),
  1369. ),
  1370. 'primary key' => array (
  1371. 0 => 'biomaterial_treatment_id',
  1372. ),
  1373. 'unique keys' => array (
  1374. 'biomaterial_treatment_c1' => array (
  1375. 0 => 'biomaterial_id',
  1376. 1 => 'treatment_id',
  1377. ),
  1378. ),
  1379. 'indexes' => array (
  1380. 'biomaterial_treatment_idx1' => array (
  1381. 0 => 'biomaterial_id',
  1382. ),
  1383. 'biomaterial_treatment_idx2' => array (
  1384. 0 => 'treatment_id',
  1385. ),
  1386. 'biomaterial_treatment_idx3' => array (
  1387. 0 => 'unittype_id',
  1388. ),
  1389. ),
  1390. 'foreign keys' => array (
  1391. 'cvterm' => array (
  1392. 'table' => 'cvterm',
  1393. 'columns' => array (
  1394. 'unittype_id' => 'cvterm_id',
  1395. ),
  1396. ),
  1397. 'biomaterial' => array (
  1398. 'table' => 'biomaterial',
  1399. 'columns' => array (
  1400. 'biomaterial_id' => 'biomaterial_id',
  1401. ),
  1402. ),
  1403. 'treatment' => array (
  1404. 'table' => 'treatment',
  1405. 'columns' => array (
  1406. 'treatment_id' => 'treatment_id',
  1407. ),
  1408. ),
  1409. ),
  1410. );
  1411. return $description;
  1412. }
  1413. /**
  1414. * Implements hook_chado_schema_v1_11_biomaterialprop()
  1415. * Purpose: To describe the structure of 'biomaterialprop' to tripal
  1416. * @see tripal_core_chado_insert()
  1417. * @see tripal_core_chado_update()
  1418. * @see tripal_core_chado_select()
  1419. *
  1420. * @return
  1421. * An array describing the 'biomaterialprop' table
  1422. *
  1423. * @ingroup tripal_chado_v1.11_schema_api
  1424. *
  1425. */
  1426. function tripal_core_chado_schema_v1_11_biomaterialprop() {
  1427. $description = array (
  1428. 'table' => 'biomaterialprop',
  1429. 'fields' => array (
  1430. 'biomaterialprop_id' => array (
  1431. 'type' => 'serial',
  1432. 'not NULL' => '1',
  1433. ),
  1434. 'biomaterial_id' => array (
  1435. 'type' => 'int',
  1436. 'not NULL' => '1',
  1437. ),
  1438. 'type_id' => array (
  1439. 'type' => 'int',
  1440. 'not NULL' => '1',
  1441. ),
  1442. 'value' => array (
  1443. 'type' => 'text',
  1444. 'not NULL' => '',
  1445. ),
  1446. 'rank' => array (
  1447. 'type' => 'int',
  1448. 'not NULL' => '1',
  1449. 'default' => '0',
  1450. ),
  1451. ),
  1452. 'primary key' => array (
  1453. 0 => 'biomaterialprop_id',
  1454. ),
  1455. 'unique keys' => array (
  1456. 'biomaterialprop_c1' => array (
  1457. 0 => 'biomaterial_id',
  1458. 1 => 'type_id',
  1459. 2 => 'rank',
  1460. ),
  1461. ),
  1462. 'indexes' => array (
  1463. 'biomaterialprop_idx1' => array (
  1464. 0 => 'biomaterial_id',
  1465. ),
  1466. 'biomaterialprop_idx2' => array (
  1467. 0 => 'type_id',
  1468. ),
  1469. ),
  1470. 'foreign keys' => array (
  1471. 'cvterm' => array (
  1472. 'table' => 'cvterm',
  1473. 'columns' => array (
  1474. 'type_id' => 'cvterm_id',
  1475. ),
  1476. ),
  1477. 'biomaterial' => array (
  1478. 'table' => 'biomaterial',
  1479. 'columns' => array (
  1480. 'biomaterial_id' => 'biomaterial_id',
  1481. ),
  1482. ),
  1483. ),
  1484. );
  1485. return $description;
  1486. }
  1487. /**
  1488. * Implements hook_chado_schema_v1_11_cell_line()
  1489. * Purpose: To describe the structure of 'cell_line' to tripal
  1490. * @see tripal_core_chado_insert()
  1491. * @see tripal_core_chado_update()
  1492. * @see tripal_core_chado_select()
  1493. *
  1494. * @return
  1495. * An array describing the 'cell_line' table
  1496. *
  1497. * @ingroup tripal_chado_v1.11_schema_api
  1498. *
  1499. */
  1500. function tripal_core_chado_schema_v1_11_cell_line() {
  1501. $description = array (
  1502. 'table' => 'cell_line',
  1503. 'fields' => array (
  1504. 'cell_line_id' => array (
  1505. 'type' => 'serial',
  1506. 'not NULL' => '1',
  1507. ),
  1508. 'name' => array (
  1509. 'type' => 'varchar',
  1510. 'length' => '255',
  1511. 'not NULL' => '',
  1512. ),
  1513. 'uniquename' => array (
  1514. 'type' => 'varchar',
  1515. 'length' => '255',
  1516. 'not NULL' => '1',
  1517. ),
  1518. 'organism_id' => array (
  1519. 'type' => 'int',
  1520. 'not NULL' => '1',
  1521. ),
  1522. 'timeaccessioned' => array (
  1523. 'type' => 'datetime',
  1524. 'not NULL' => '1',
  1525. 'default' => 'ow(',
  1526. ),
  1527. 'timelastmodified' => array (
  1528. 'type' => 'datetime',
  1529. 'not NULL' => '1',
  1530. 'default' => 'ow(',
  1531. ),
  1532. ),
  1533. 'primary key' => array (
  1534. 0 => 'cell_line_id',
  1535. ),
  1536. 'unique keys' => array (
  1537. 'cell_line_c1' => array (
  1538. 0 => 'uniquename',
  1539. 1 => 'organism_id',
  1540. ),
  1541. ),
  1542. 'indexes' => array (
  1543. ),
  1544. 'foreign keys' => array (
  1545. 'organism' => array (
  1546. 'table' => 'organism',
  1547. 'columns' => array (
  1548. 'organism_id' => 'organism_id',
  1549. ),
  1550. ),
  1551. ),
  1552. );
  1553. return $description;
  1554. }
  1555. /**
  1556. * Implements hook_chado_schema_v1_11_cell_line_cvterm()
  1557. * Purpose: To describe the structure of 'cell_line_cvterm' to tripal
  1558. * @see tripal_core_chado_insert()
  1559. * @see tripal_core_chado_update()
  1560. * @see tripal_core_chado_select()
  1561. *
  1562. * @return
  1563. * An array describing the 'cell_line_cvterm' table
  1564. *
  1565. * @ingroup tripal_chado_v1.11_schema_api
  1566. *
  1567. */
  1568. function tripal_core_chado_schema_v1_11_cell_line_cvterm() {
  1569. $description = array (
  1570. 'table' => 'cell_line_cvterm',
  1571. 'fields' => array (
  1572. 'cell_line_cvterm_id' => array (
  1573. 'type' => 'serial',
  1574. 'not NULL' => '1',
  1575. ),
  1576. 'cell_line_id' => array (
  1577. 'type' => 'int',
  1578. 'not NULL' => '1',
  1579. ),
  1580. 'cvterm_id' => array (
  1581. 'type' => 'int',
  1582. 'not NULL' => '1',
  1583. ),
  1584. 'pub_id' => array (
  1585. 'type' => 'int',
  1586. 'not NULL' => '1',
  1587. ),
  1588. 'rank' => array (
  1589. 'type' => 'int',
  1590. 'not NULL' => '1',
  1591. 'default' => '0',
  1592. ),
  1593. ),
  1594. 'primary key' => array (
  1595. 0 => 'cell_line_cvterm_id',
  1596. ),
  1597. 'unique keys' => array (
  1598. 'cell_line_cvterm_c1' => array (
  1599. 0 => 'cell_line_id',
  1600. 1 => 'cvterm_id',
  1601. 2 => 'pub_id',
  1602. 3 => 'rank',
  1603. ),
  1604. ),
  1605. 'indexes' => array (
  1606. ),
  1607. 'foreign keys' => array (
  1608. 'cvterm' => array (
  1609. 'table' => 'cvterm',
  1610. 'columns' => array (
  1611. 'cvterm_id' => 'cvterm_id',
  1612. ),
  1613. ),
  1614. 'pub' => array (
  1615. 'table' => 'pub',
  1616. 'columns' => array (
  1617. 'pub_id' => 'pub_id',
  1618. ),
  1619. ),
  1620. 'cell_line' => array (
  1621. 'table' => 'cell_line',
  1622. 'columns' => array (
  1623. 'cell_line_id' => 'cell_line_id',
  1624. ),
  1625. ),
  1626. ),
  1627. );
  1628. return $description;
  1629. }
  1630. /**
  1631. * Implements hook_chado_schema_v1_11_cell_line_cvtermprop()
  1632. * Purpose: To describe the structure of 'cell_line_cvtermprop' to tripal
  1633. * @see tripal_core_chado_insert()
  1634. * @see tripal_core_chado_update()
  1635. * @see tripal_core_chado_select()
  1636. *
  1637. * @return
  1638. * An array describing the 'cell_line_cvtermprop' table
  1639. *
  1640. * @ingroup tripal_chado_v1.11_schema_api
  1641. *
  1642. */
  1643. function tripal_core_chado_schema_v1_11_cell_line_cvtermprop() {
  1644. $description = array (
  1645. 'table' => 'cell_line_cvtermprop',
  1646. 'fields' => array (
  1647. 'cell_line_cvtermprop_id' => array (
  1648. 'type' => 'serial',
  1649. 'not NULL' => '1',
  1650. ),
  1651. 'cell_line_cvterm_id' => array (
  1652. 'type' => 'int',
  1653. 'not NULL' => '1',
  1654. ),
  1655. 'type_id' => array (
  1656. 'type' => 'int',
  1657. 'not NULL' => '1',
  1658. ),
  1659. 'value' => array (
  1660. 'type' => 'text',
  1661. 'not NULL' => '',
  1662. ),
  1663. 'rank' => array (
  1664. 'type' => 'int',
  1665. 'not NULL' => '1',
  1666. 'default' => '0',
  1667. ),
  1668. ),
  1669. 'primary key' => array (
  1670. 0 => 'cell_line_cvtermprop_id',
  1671. ),
  1672. 'unique keys' => array (
  1673. 'cell_line_cvtermprop_c1' => array (
  1674. 0 => 'cell_line_cvterm_id',
  1675. 1 => 'type_id',
  1676. 2 => 'rank',
  1677. ),
  1678. ),
  1679. 'indexes' => array (
  1680. ),
  1681. 'foreign keys' => array (
  1682. 'cvterm' => array (
  1683. 'table' => 'cvterm',
  1684. 'columns' => array (
  1685. 'type_id' => 'cvterm_id',
  1686. ),
  1687. ),
  1688. 'cell_line_cvterm' => array (
  1689. 'table' => 'cell_line_cvterm',
  1690. 'columns' => array (
  1691. 'cell_line_cvterm_id' => 'cell_line_cvterm_id',
  1692. ),
  1693. ),
  1694. ),
  1695. );
  1696. return $description;
  1697. }
  1698. /**
  1699. * Implements hook_chado_schema_v1_11_cell_line_dbxref()
  1700. * Purpose: To describe the structure of 'cell_line_dbxref' to tripal
  1701. * @see tripal_core_chado_insert()
  1702. * @see tripal_core_chado_update()
  1703. * @see tripal_core_chado_select()
  1704. *
  1705. * @return
  1706. * An array describing the 'cell_line_dbxref' table
  1707. *
  1708. * @ingroup tripal_chado_v1.11_schema_api
  1709. *
  1710. */
  1711. function tripal_core_chado_schema_v1_11_cell_line_dbxref() {
  1712. $description = array (
  1713. 'table' => 'cell_line_dbxref',
  1714. 'fields' => array (
  1715. 'cell_line_dbxref_id' => array (
  1716. 'type' => 'serial',
  1717. 'not NULL' => '1',
  1718. ),
  1719. 'cell_line_id' => array (
  1720. 'type' => 'int',
  1721. 'not NULL' => '1',
  1722. ),
  1723. 'dbxref_id' => array (
  1724. 'type' => 'int',
  1725. 'not NULL' => '1',
  1726. ),
  1727. 'is_current' => array (
  1728. 'type' => 'boolean',
  1729. 'not NULL' => '1',
  1730. 'default' => 'ru',
  1731. ),
  1732. ),
  1733. 'primary key' => array (
  1734. 0 => 'cell_line_dbxref_id',
  1735. ),
  1736. 'unique keys' => array (
  1737. 'cell_line_dbxref_c1' => array (
  1738. 0 => 'cell_line_id',
  1739. 1 => 'dbxref_id',
  1740. ),
  1741. ),
  1742. 'indexes' => array (
  1743. ),
  1744. 'foreign keys' => array (
  1745. 'dbxref' => array (
  1746. 'table' => 'dbxref',
  1747. 'columns' => array (
  1748. 'dbxref_id' => 'dbxref_id',
  1749. ),
  1750. ),
  1751. 'cell_line' => array (
  1752. 'table' => 'cell_line',
  1753. 'columns' => array (
  1754. 'cell_line_id' => 'cell_line_id',
  1755. ),
  1756. ),
  1757. ),
  1758. );
  1759. return $description;
  1760. }
  1761. /**
  1762. * Implements hook_chado_schema_v1_11_cell_line_feature()
  1763. * Purpose: To describe the structure of 'cell_line_feature' to tripal
  1764. * @see tripal_core_chado_insert()
  1765. * @see tripal_core_chado_update()
  1766. * @see tripal_core_chado_select()
  1767. *
  1768. * @return
  1769. * An array describing the 'cell_line_feature' table
  1770. *
  1771. * @ingroup tripal_chado_v1.11_schema_api
  1772. *
  1773. */
  1774. function tripal_core_chado_schema_v1_11_cell_line_feature() {
  1775. $description = array (
  1776. 'table' => 'cell_line_feature',
  1777. 'fields' => array (
  1778. 'cell_line_feature_id' => array (
  1779. 'type' => 'serial',
  1780. 'not NULL' => '1',
  1781. ),
  1782. 'cell_line_id' => array (
  1783. 'type' => 'int',
  1784. 'not NULL' => '1',
  1785. ),
  1786. 'feature_id' => array (
  1787. 'type' => 'int',
  1788. 'not NULL' => '1',
  1789. ),
  1790. 'pub_id' => array (
  1791. 'type' => 'int',
  1792. 'not NULL' => '1',
  1793. ),
  1794. ),
  1795. 'primary key' => array (
  1796. 0 => 'cell_line_feature_id',
  1797. ),
  1798. 'unique keys' => array (
  1799. 'cell_line_feature_c1' => array (
  1800. 0 => 'cell_line_id',
  1801. 1 => 'feature_id',
  1802. 2 => 'pub_id',
  1803. ),
  1804. ),
  1805. 'indexes' => array (
  1806. ),
  1807. 'foreign keys' => array (
  1808. 'pub' => array (
  1809. 'table' => 'pub',
  1810. 'columns' => array (
  1811. 'pub_id' => 'pub_id',
  1812. ),
  1813. ),
  1814. 'feature' => array (
  1815. 'table' => 'feature',
  1816. 'columns' => array (
  1817. 'feature_id' => 'feature_id',
  1818. ),
  1819. ),
  1820. 'cell_line' => array (
  1821. 'table' => 'cell_line',
  1822. 'columns' => array (
  1823. 'cell_line_id' => 'cell_line_id',
  1824. ),
  1825. ),
  1826. ),
  1827. );
  1828. return $description;
  1829. }
  1830. /**
  1831. * Implements hook_chado_schema_v1_11_cell_line_library()
  1832. * Purpose: To describe the structure of 'cell_line_library' to tripal
  1833. * @see tripal_core_chado_insert()
  1834. * @see tripal_core_chado_update()
  1835. * @see tripal_core_chado_select()
  1836. *
  1837. * @return
  1838. * An array describing the 'cell_line_library' table
  1839. *
  1840. * @ingroup tripal_chado_v1.11_schema_api
  1841. *
  1842. */
  1843. function tripal_core_chado_schema_v1_11_cell_line_library() {
  1844. $description = array (
  1845. 'table' => 'cell_line_library',
  1846. 'fields' => array (
  1847. 'cell_line_library_id' => array (
  1848. 'type' => 'serial',
  1849. 'not NULL' => '1',
  1850. ),
  1851. 'cell_line_id' => array (
  1852. 'type' => 'int',
  1853. 'not NULL' => '1',
  1854. ),
  1855. 'library_id' => array (
  1856. 'type' => 'int',
  1857. 'not NULL' => '1',
  1858. ),
  1859. 'pub_id' => array (
  1860. 'type' => 'int',
  1861. 'not NULL' => '1',
  1862. ),
  1863. ),
  1864. 'primary key' => array (
  1865. 0 => 'cell_line_library_id',
  1866. ),
  1867. 'unique keys' => array (
  1868. 'cell_line_library_c1' => array (
  1869. 0 => 'cell_line_id',
  1870. 1 => 'library_id',
  1871. 2 => 'pub_id',
  1872. ),
  1873. ),
  1874. 'indexes' => array (
  1875. ),
  1876. 'foreign keys' => array (
  1877. 'pub' => array (
  1878. 'table' => 'pub',
  1879. 'columns' => array (
  1880. 'pub_id' => 'pub_id',
  1881. ),
  1882. ),
  1883. 'library' => array (
  1884. 'table' => 'library',
  1885. 'columns' => array (
  1886. 'library_id' => 'library_id',
  1887. ),
  1888. ),
  1889. 'cell_line' => array (
  1890. 'table' => 'cell_line',
  1891. 'columns' => array (
  1892. 'cell_line_id' => 'cell_line_id',
  1893. ),
  1894. ),
  1895. ),
  1896. );
  1897. return $description;
  1898. }
  1899. /**
  1900. * Implements hook_chado_schema_v1_11_cell_line_pub()
  1901. * Purpose: To describe the structure of 'cell_line_pub' to tripal
  1902. * @see tripal_core_chado_insert()
  1903. * @see tripal_core_chado_update()
  1904. * @see tripal_core_chado_select()
  1905. *
  1906. * @return
  1907. * An array describing the 'cell_line_pub' table
  1908. *
  1909. * @ingroup tripal_chado_v1.11_schema_api
  1910. *
  1911. */
  1912. function tripal_core_chado_schema_v1_11_cell_line_pub() {
  1913. $description = array (
  1914. 'table' => 'cell_line_pub',
  1915. 'fields' => array (
  1916. 'cell_line_pub_id' => array (
  1917. 'type' => 'serial',
  1918. 'not NULL' => '1',
  1919. ),
  1920. 'cell_line_id' => array (
  1921. 'type' => 'int',
  1922. 'not NULL' => '1',
  1923. ),
  1924. 'pub_id' => array (
  1925. 'type' => 'int',
  1926. 'not NULL' => '1',
  1927. ),
  1928. ),
  1929. 'primary key' => array (
  1930. 0 => 'cell_line_pub_id',
  1931. ),
  1932. 'unique keys' => array (
  1933. 'cell_line_pub_c1' => array (
  1934. 0 => 'cell_line_id',
  1935. 1 => 'pub_id',
  1936. ),
  1937. ),
  1938. 'indexes' => array (
  1939. ),
  1940. 'foreign keys' => array (
  1941. 'pub' => array (
  1942. 'table' => 'pub',
  1943. 'columns' => array (
  1944. 'pub_id' => 'pub_id',
  1945. ),
  1946. ),
  1947. 'cell_line' => array (
  1948. 'table' => 'cell_line',
  1949. 'columns' => array (
  1950. 'cell_line_id' => 'cell_line_id',
  1951. ),
  1952. ),
  1953. ),
  1954. );
  1955. return $description;
  1956. }
  1957. /**
  1958. * Implements hook_chado_schema_v1_11_cell_line_relationship()
  1959. * Purpose: To describe the structure of 'cell_line_relationship' to tripal
  1960. * @see tripal_core_chado_insert()
  1961. * @see tripal_core_chado_update()
  1962. * @see tripal_core_chado_select()
  1963. *
  1964. * @return
  1965. * An array describing the 'cell_line_relationship' table
  1966. *
  1967. * @ingroup tripal_chado_v1.11_schema_api
  1968. *
  1969. */
  1970. function tripal_core_chado_schema_v1_11_cell_line_relationship() {
  1971. $description = array (
  1972. 'table' => 'cell_line_relationship',
  1973. 'fields' => array (
  1974. 'cell_line_relationship_id' => array (
  1975. 'type' => 'serial',
  1976. 'not NULL' => '1',
  1977. ),
  1978. 'subject_id' => array (
  1979. 'type' => 'int',
  1980. 'not NULL' => '1',
  1981. ),
  1982. 'object_id' => array (
  1983. 'type' => 'int',
  1984. 'not NULL' => '1',
  1985. ),
  1986. 'type_id' => array (
  1987. 'type' => 'int',
  1988. 'not NULL' => '1',
  1989. ),
  1990. ),
  1991. 'primary key' => array (
  1992. 0 => 'cell_line_relationship_id',
  1993. ),
  1994. 'unique keys' => array (
  1995. 'cell_line_relationship_c1' => array (
  1996. 0 => 'subject_id',
  1997. 1 => 'object_id',
  1998. 2 => 'type_id',
  1999. ),
  2000. ),
  2001. 'indexes' => array (
  2002. ),
  2003. 'foreign keys' => array (
  2004. 'cvterm' => array (
  2005. 'table' => 'cvterm',
  2006. 'columns' => array (
  2007. 'type_id' => 'cvterm_id',
  2008. ),
  2009. ),
  2010. 'cell_line' => array (
  2011. 'table' => 'cell_line',
  2012. 'columns' => array (
  2013. 'subject_id' => 'cell_line_id',
  2014. 'object_id' => 'cell_line_id',
  2015. ),
  2016. ),
  2017. ),
  2018. );
  2019. return $description;
  2020. }
  2021. /**
  2022. * Implements hook_chado_schema_v1_11_cell_line_synonym()
  2023. * Purpose: To describe the structure of 'cell_line_synonym' to tripal
  2024. * @see tripal_core_chado_insert()
  2025. * @see tripal_core_chado_update()
  2026. * @see tripal_core_chado_select()
  2027. *
  2028. * @return
  2029. * An array describing the 'cell_line_synonym' table
  2030. *
  2031. * @ingroup tripal_chado_v1.11_schema_api
  2032. *
  2033. */
  2034. function tripal_core_chado_schema_v1_11_cell_line_synonym() {
  2035. $description = array (
  2036. 'table' => 'cell_line_synonym',
  2037. 'fields' => array (
  2038. 'cell_line_synonym_id' => array (
  2039. 'type' => 'serial',
  2040. 'not NULL' => '1',
  2041. ),
  2042. 'cell_line_id' => array (
  2043. 'type' => 'int',
  2044. 'not NULL' => '1',
  2045. ),
  2046. 'synonym_id' => array (
  2047. 'type' => 'int',
  2048. 'not NULL' => '1',
  2049. ),
  2050. 'pub_id' => array (
  2051. 'type' => 'int',
  2052. 'not NULL' => '1',
  2053. ),
  2054. 'is_current' => array (
  2055. 'type' => 'boolean',
  2056. 'not NULL' => '1',
  2057. 'default' => 'als',
  2058. ),
  2059. 'is_internal' => array (
  2060. 'type' => 'boolean',
  2061. 'not NULL' => '1',
  2062. 'default' => 'als',
  2063. ),
  2064. ),
  2065. 'primary key' => array (
  2066. 0 => 'cell_line_synonym_id',
  2067. ),
  2068. 'unique keys' => array (
  2069. 'cell_line_synonym_c1' => array (
  2070. 0 => 'synonym_id',
  2071. 1 => 'cell_line_id',
  2072. 2 => 'pub_id',
  2073. ),
  2074. ),
  2075. 'indexes' => array (
  2076. ),
  2077. 'foreign keys' => array (
  2078. 'pub' => array (
  2079. 'table' => 'pub',
  2080. 'columns' => array (
  2081. 'pub_id' => 'pub_id',
  2082. ),
  2083. ),
  2084. 'synonym' => array (
  2085. 'table' => 'synonym',
  2086. 'columns' => array (
  2087. 'synonym_id' => 'synonym_id',
  2088. ),
  2089. ),
  2090. 'cell_line' => array (
  2091. 'table' => 'cell_line',
  2092. 'columns' => array (
  2093. 'cell_line_id' => 'cell_line_id',
  2094. ),
  2095. ),
  2096. ),
  2097. );
  2098. return $description;
  2099. }
  2100. /**
  2101. * Implements hook_chado_schema_v1_11_cell_lineprop()
  2102. * Purpose: To describe the structure of 'cell_lineprop' to tripal
  2103. * @see tripal_core_chado_insert()
  2104. * @see tripal_core_chado_update()
  2105. * @see tripal_core_chado_select()
  2106. *
  2107. * @return
  2108. * An array describing the 'cell_lineprop' table
  2109. *
  2110. * @ingroup tripal_chado_v1.11_schema_api
  2111. *
  2112. */
  2113. function tripal_core_chado_schema_v1_11_cell_lineprop() {
  2114. $description = array (
  2115. 'table' => 'cell_lineprop',
  2116. 'fields' => array (
  2117. 'cell_lineprop_id' => array (
  2118. 'type' => 'serial',
  2119. 'not NULL' => '1',
  2120. ),
  2121. 'cell_line_id' => array (
  2122. 'type' => 'int',
  2123. 'not NULL' => '1',
  2124. ),
  2125. 'type_id' => array (
  2126. 'type' => 'int',
  2127. 'not NULL' => '1',
  2128. ),
  2129. 'value' => array (
  2130. 'type' => 'text',
  2131. 'not NULL' => '',
  2132. ),
  2133. 'rank' => array (
  2134. 'type' => 'int',
  2135. 'not NULL' => '1',
  2136. 'default' => '0',
  2137. ),
  2138. ),
  2139. 'primary key' => array (
  2140. 0 => 'cell_lineprop_id',
  2141. ),
  2142. 'unique keys' => array (
  2143. 'cell_lineprop_c1' => array (
  2144. 0 => 'cell_line_id',
  2145. 1 => 'type_id',
  2146. 2 => 'rank',
  2147. ),
  2148. ),
  2149. 'indexes' => array (
  2150. ),
  2151. 'foreign keys' => array (
  2152. 'cvterm' => array (
  2153. 'table' => 'cvterm',
  2154. 'columns' => array (
  2155. 'type_id' => 'cvterm_id',
  2156. ),
  2157. ),
  2158. 'cell_line' => array (
  2159. 'table' => 'cell_line',
  2160. 'columns' => array (
  2161. 'cell_line_id' => 'cell_line_id',
  2162. ),
  2163. ),
  2164. ),
  2165. );
  2166. return $description;
  2167. }
  2168. /**
  2169. * Implements hook_chado_schema_v1_11_cell_lineprop_pub()
  2170. * Purpose: To describe the structure of 'cell_lineprop_pub' to tripal
  2171. * @see tripal_core_chado_insert()
  2172. * @see tripal_core_chado_update()
  2173. * @see tripal_core_chado_select()
  2174. *
  2175. * @return
  2176. * An array describing the 'cell_lineprop_pub' table
  2177. *
  2178. * @ingroup tripal_chado_v1.11_schema_api
  2179. *
  2180. */
  2181. function tripal_core_chado_schema_v1_11_cell_lineprop_pub() {
  2182. $description = array (
  2183. 'table' => 'cell_lineprop_pub',
  2184. 'fields' => array (
  2185. 'cell_lineprop_pub_id' => array (
  2186. 'type' => 'serial',
  2187. 'not NULL' => '1',
  2188. ),
  2189. 'cell_lineprop_id' => array (
  2190. 'type' => 'int',
  2191. 'not NULL' => '1',
  2192. ),
  2193. 'pub_id' => array (
  2194. 'type' => 'int',
  2195. 'not NULL' => '1',
  2196. ),
  2197. ),
  2198. 'primary key' => array (
  2199. 0 => 'cell_lineprop_pub_id',
  2200. ),
  2201. 'unique keys' => array (
  2202. 'cell_lineprop_pub_c1' => array (
  2203. 0 => 'cell_lineprop_id',
  2204. 1 => 'pub_id',
  2205. ),
  2206. ),
  2207. 'indexes' => array (
  2208. ),
  2209. 'foreign keys' => array (
  2210. 'pub' => array (
  2211. 'table' => 'pub',
  2212. 'columns' => array (
  2213. 'pub_id' => 'pub_id',
  2214. ),
  2215. ),
  2216. 'cell_lineprop' => array (
  2217. 'table' => 'cell_lineprop',
  2218. 'columns' => array (
  2219. 'cell_lineprop_id' => 'cell_lineprop_id',
  2220. ),
  2221. ),
  2222. ),
  2223. );
  2224. return $description;
  2225. }
  2226. /**
  2227. * Implements hook_chado_schema_v1_11_channel()
  2228. * Purpose: To describe the structure of 'channel' to tripal
  2229. * @see tripal_core_chado_insert()
  2230. * @see tripal_core_chado_update()
  2231. * @see tripal_core_chado_select()
  2232. *
  2233. * @return
  2234. * An array describing the 'channel' table
  2235. *
  2236. * @ingroup tripal_chado_v1.11_schema_api
  2237. *
  2238. */
  2239. function tripal_core_chado_schema_v1_11_channel() {
  2240. $description = array (
  2241. 'table' => 'channel',
  2242. 'fields' => array (
  2243. 'channel_id' => array (
  2244. 'type' => 'serial',
  2245. 'not NULL' => '1',
  2246. ),
  2247. 'name' => array (
  2248. 'type' => 'text',
  2249. 'not NULL' => '1',
  2250. ),
  2251. 'definition' => array (
  2252. 'type' => 'text',
  2253. 'not NULL' => '1',
  2254. ),
  2255. ),
  2256. 'primary key' => array (
  2257. 0 => 'channel_id',
  2258. ),
  2259. 'unique keys' => array (
  2260. 'channel_c1' => array (
  2261. 0 => 'name',
  2262. ),
  2263. ),
  2264. 'indexes' => array (
  2265. ),
  2266. 'foreign keys' => array (
  2267. ),
  2268. );
  2269. return $description;
  2270. }
  2271. /**
  2272. * Implements hook_chado_schema_v1_11_contact()
  2273. * Purpose: To describe the structure of 'contact' to tripal
  2274. * @see tripal_core_chado_insert()
  2275. * @see tripal_core_chado_update()
  2276. * @see tripal_core_chado_select()
  2277. *
  2278. * @return
  2279. * An array describing the 'contact' table
  2280. *
  2281. * @ingroup tripal_chado_v1.11_schema_api
  2282. *
  2283. */
  2284. function tripal_core_chado_schema_v1_11_contact() {
  2285. $description = array (
  2286. 'table' => 'contact',
  2287. 'fields' => array (
  2288. 'contact_id' => array (
  2289. 'type' => 'serial',
  2290. 'not NULL' => '1',
  2291. ),
  2292. 'type_id' => array (
  2293. 'type' => 'int',
  2294. 'not NULL' => '',
  2295. ),
  2296. 'name' => array (
  2297. 'type' => 'varchar',
  2298. 'length' => '255',
  2299. 'not NULL' => '1',
  2300. ),
  2301. 'description' => array (
  2302. 'type' => 'varchar',
  2303. 'length' => '255',
  2304. 'not NULL' => '',
  2305. ),
  2306. ),
  2307. 'primary key' => array (
  2308. 0 => 'contact_id',
  2309. ),
  2310. 'unique keys' => array (
  2311. 'contact_c1' => array (
  2312. 0 => 'name',
  2313. ),
  2314. ),
  2315. 'indexes' => array (
  2316. ),
  2317. 'foreign keys' => array (
  2318. 'cvterm' => array (
  2319. 'table' => 'cvterm',
  2320. 'columns' => array (
  2321. 'type_id' => 'cvterm_id',
  2322. ),
  2323. ),
  2324. ),
  2325. );
  2326. return $description;
  2327. }
  2328. /**
  2329. * Implements hook_chado_schema_v1_11_contact_relationship()
  2330. * Purpose: To describe the structure of 'contact_relationship' to tripal
  2331. * @see tripal_core_chado_insert()
  2332. * @see tripal_core_chado_update()
  2333. * @see tripal_core_chado_select()
  2334. *
  2335. * @return
  2336. * An array describing the 'contact_relationship' table
  2337. *
  2338. * @ingroup tripal_chado_v1.11_schema_api
  2339. *
  2340. */
  2341. function tripal_core_chado_schema_v1_11_contact_relationship() {
  2342. $description = array (
  2343. 'table' => 'contact_relationship',
  2344. 'fields' => array (
  2345. 'contact_relationship_id' => array (
  2346. 'type' => 'serial',
  2347. 'not NULL' => '1',
  2348. ),
  2349. 'type_id' => array (
  2350. 'type' => 'int',
  2351. 'not NULL' => '1',
  2352. ),
  2353. 'subject_id' => array (
  2354. 'type' => 'int',
  2355. 'not NULL' => '1',
  2356. ),
  2357. 'object_id' => array (
  2358. 'type' => 'int',
  2359. 'not NULL' => '1',
  2360. ),
  2361. ),
  2362. 'primary key' => array (
  2363. 0 => 'contact_relationship_id',
  2364. ),
  2365. 'unique keys' => array (
  2366. 'contact_relationship_c1' => array (
  2367. 0 => 'subject_id',
  2368. 1 => 'object_id',
  2369. 2 => 'type_id',
  2370. ),
  2371. ),
  2372. 'indexes' => array (
  2373. 'contact_relationship_idx1' => array (
  2374. 0 => 'type_id',
  2375. ),
  2376. 'contact_relationship_idx2' => array (
  2377. 0 => 'subject_id',
  2378. ),
  2379. 'contact_relationship_idx3' => array (
  2380. 0 => 'object_id',
  2381. ),
  2382. ),
  2383. 'foreign keys' => array (
  2384. 'cvterm' => array (
  2385. 'table' => 'cvterm',
  2386. 'columns' => array (
  2387. 'type_id' => 'cvterm_id',
  2388. ),
  2389. ),
  2390. 'contact' => array (
  2391. 'table' => 'contact',
  2392. 'columns' => array (
  2393. 'subject_id' => 'contact_id',
  2394. 'object_id' => 'contact_id',
  2395. ),
  2396. ),
  2397. ),
  2398. );
  2399. return $description;
  2400. }
  2401. /**
  2402. * Implements hook_chado_schema_v1_11_control()
  2403. * Purpose: To describe the structure of 'control' to tripal
  2404. * @see tripal_core_chado_insert()
  2405. * @see tripal_core_chado_update()
  2406. * @see tripal_core_chado_select()
  2407. *
  2408. * @return
  2409. * An array describing the 'control' table
  2410. *
  2411. * @ingroup tripal_chado_v1.11_schema_api
  2412. *
  2413. */
  2414. function tripal_core_chado_schema_v1_11_control() {
  2415. $description = array (
  2416. 'table' => 'control',
  2417. 'fields' => array (
  2418. 'control_id' => array (
  2419. 'type' => 'serial',
  2420. 'not NULL' => '1',
  2421. ),
  2422. 'type_id' => array (
  2423. 'type' => 'int',
  2424. 'not NULL' => '1',
  2425. ),
  2426. 'assay_id' => array (
  2427. 'type' => 'int',
  2428. 'not NULL' => '1',
  2429. ),
  2430. 'tableinfo_id' => array (
  2431. 'type' => 'int',
  2432. 'not NULL' => '1',
  2433. ),
  2434. 'row_id' => array (
  2435. 'type' => 'int',
  2436. 'not NULL' => '1',
  2437. ),
  2438. 'name' => array (
  2439. 'type' => 'text',
  2440. 'not NULL' => '',
  2441. ),
  2442. 'value' => array (
  2443. 'type' => 'text',
  2444. 'not NULL' => '',
  2445. ),
  2446. 'rank' => array (
  2447. 'type' => 'int',
  2448. 'not NULL' => '1',
  2449. 'default' => '0',
  2450. ),
  2451. ),
  2452. 'primary key' => array (
  2453. 0 => 'control_id',
  2454. ),
  2455. 'unique keys' => array (
  2456. ),
  2457. 'indexes' => array (
  2458. 'control_idx1' => array (
  2459. 0 => 'type_id',
  2460. ),
  2461. 'control_idx2' => array (
  2462. 0 => 'assay_id',
  2463. ),
  2464. 'control_idx3' => array (
  2465. 0 => 'tableinfo_id',
  2466. ),
  2467. 'control_idx4' => array (
  2468. 0 => 'row_id',
  2469. ),
  2470. ),
  2471. 'foreign keys' => array (
  2472. 'tableinfo' => array (
  2473. 'table' => 'tableinfo',
  2474. 'columns' => array (
  2475. 'tableinfo_id' => 'tableinfo_id',
  2476. ),
  2477. ),
  2478. 'cvterm' => array (
  2479. 'table' => 'cvterm',
  2480. 'columns' => array (
  2481. 'type_id' => 'cvterm_id',
  2482. ),
  2483. ),
  2484. 'assay' => array (
  2485. 'table' => 'assay',
  2486. 'columns' => array (
  2487. 'assay_id' => 'assay_id',
  2488. ),
  2489. ),
  2490. ),
  2491. );
  2492. return $description;
  2493. }
  2494. /**
  2495. * Implements hook_chado_schema_v1_11_cv()
  2496. * Purpose: To describe the structure of 'cv' to tripal
  2497. * @see tripal_core_chado_insert()
  2498. * @see tripal_core_chado_update()
  2499. * @see tripal_core_chado_select()
  2500. *
  2501. * @return
  2502. * An array describing the 'cv' table
  2503. *
  2504. * @ingroup tripal_chado_v1.11_schema_api
  2505. *
  2506. */
  2507. function tripal_core_chado_schema_v1_11_cv() {
  2508. $description = array (
  2509. 'table' => 'cv',
  2510. 'fields' => array (
  2511. 'cv_id' => array (
  2512. 'type' => 'serial',
  2513. 'not NULL' => '1',
  2514. ),
  2515. 'name' => array (
  2516. 'type' => 'varchar',
  2517. 'length' => '255',
  2518. 'not NULL' => '1',
  2519. ),
  2520. 'definition' => array (
  2521. 'type' => 'text',
  2522. 'not NULL' => '',
  2523. ),
  2524. ),
  2525. 'primary key' => array (
  2526. 0 => 'cv_id',
  2527. ),
  2528. 'unique keys' => array (
  2529. 'cv_c1' => array (
  2530. 0 => 'name',
  2531. ),
  2532. ),
  2533. 'indexes' => array (
  2534. ),
  2535. 'foreign keys' => array (
  2536. ),
  2537. );
  2538. return $description;
  2539. }
  2540. /**
  2541. * Implements hook_chado_schema_v1_11_cvterm()
  2542. * Purpose: To describe the structure of 'cvterm' to tripal
  2543. * @see tripal_core_chado_insert()
  2544. * @see tripal_core_chado_update()
  2545. * @see tripal_core_chado_select()
  2546. *
  2547. * @return
  2548. * An array describing the 'cvterm' table
  2549. *
  2550. * @ingroup tripal_chado_v1.11_schema_api
  2551. *
  2552. */
  2553. function tripal_core_chado_schema_v1_11_cvterm() {
  2554. $description = array (
  2555. 'table' => 'cvterm',
  2556. 'fields' => array (
  2557. 'cvterm_id' => array (
  2558. 'type' => 'serial',
  2559. 'not NULL' => '1',
  2560. ),
  2561. 'cv_id' => array (
  2562. 'type' => 'int',
  2563. 'not NULL' => '1',
  2564. ),
  2565. 'name' => array (
  2566. 'type' => 'varchar',
  2567. 'length' => '1024',
  2568. 'not NULL' => '1',
  2569. ),
  2570. 'definition' => array (
  2571. 'type' => 'text',
  2572. 'not NULL' => '',
  2573. ),
  2574. 'dbxref_id' => array (
  2575. 'type' => 'int',
  2576. 'not NULL' => '1',
  2577. ),
  2578. 'is_obsolete' => array (
  2579. 'type' => 'int',
  2580. 'not NULL' => '1',
  2581. 'default' => '0',
  2582. ),
  2583. 'is_relationshiptype' => array (
  2584. 'type' => 'int',
  2585. 'not NULL' => '1',
  2586. 'default' => '0',
  2587. ),
  2588. ),
  2589. 'primary key' => array (
  2590. 0 => 'cvterm_id',
  2591. ),
  2592. 'unique keys' => array (
  2593. 'cvterm_c1' => array (
  2594. 0 => 'name',
  2595. 1 => 'cv_id',
  2596. 2 => 'is_obsolete',
  2597. ),
  2598. 'cvterm_c2' => array (
  2599. 0 => 'dbxref_id',
  2600. ),
  2601. ),
  2602. 'indexes' => array (
  2603. 'cvterm_idx1' => array (
  2604. 0 => 'cv_id',
  2605. ),
  2606. 'cvterm_idx2' => array (
  2607. 0 => 'name',
  2608. ),
  2609. 'cvterm_idx3' => array (
  2610. 0 => 'dbxref_id',
  2611. ),
  2612. ),
  2613. 'foreign keys' => array (
  2614. 'dbxref' => array (
  2615. 'table' => 'dbxref',
  2616. 'columns' => array (
  2617. 'dbxref_id' => 'dbxref_id',
  2618. ),
  2619. ),
  2620. 'cv' => array (
  2621. 'table' => 'cv',
  2622. 'columns' => array (
  2623. 'cv_id' => 'cv_id',
  2624. ),
  2625. ),
  2626. ),
  2627. );
  2628. return $description;
  2629. }
  2630. /**
  2631. * Implements hook_chado_schema_v1_11_cvterm_dbxref()
  2632. * Purpose: To describe the structure of 'cvterm_dbxref' to tripal
  2633. * @see tripal_core_chado_insert()
  2634. * @see tripal_core_chado_update()
  2635. * @see tripal_core_chado_select()
  2636. *
  2637. * @return
  2638. * An array describing the 'cvterm_dbxref' table
  2639. *
  2640. * @ingroup tripal_chado_v1.11_schema_api
  2641. *
  2642. */
  2643. function tripal_core_chado_schema_v1_11_cvterm_dbxref() {
  2644. $description = array (
  2645. 'table' => 'cvterm_dbxref',
  2646. 'fields' => array (
  2647. 'cvterm_dbxref_id' => array (
  2648. 'type' => 'serial',
  2649. 'not NULL' => '1',
  2650. ),
  2651. 'cvterm_id' => array (
  2652. 'type' => 'int',
  2653. 'not NULL' => '1',
  2654. ),
  2655. 'dbxref_id' => array (
  2656. 'type' => 'int',
  2657. 'not NULL' => '1',
  2658. ),
  2659. 'is_for_definition' => array (
  2660. 'type' => 'int',
  2661. 'not NULL' => '1',
  2662. 'default' => '0',
  2663. ),
  2664. ),
  2665. 'primary key' => array (
  2666. 0 => 'cvterm_dbxref_id',
  2667. ),
  2668. 'unique keys' => array (
  2669. 'cvterm_dbxref_c1' => array (
  2670. 0 => 'cvterm_id',
  2671. 1 => 'dbxref_id',
  2672. ),
  2673. ),
  2674. 'indexes' => array (
  2675. 'cvterm_dbxref_idx1' => array (
  2676. 0 => 'cvterm_id',
  2677. ),
  2678. 'cvterm_dbxref_idx2' => array (
  2679. 0 => 'dbxref_id',
  2680. ),
  2681. ),
  2682. 'foreign keys' => array (
  2683. 'dbxref' => array (
  2684. 'table' => 'dbxref',
  2685. 'columns' => array (
  2686. 'dbxref_id' => 'dbxref_id',
  2687. ),
  2688. ),
  2689. 'cvterm' => array (
  2690. 'table' => 'cvterm',
  2691. 'columns' => array (
  2692. 'cvterm_id' => 'cvterm_id',
  2693. ),
  2694. ),
  2695. ),
  2696. );
  2697. return $description;
  2698. }
  2699. /**
  2700. * Implements hook_chado_schema_v1_11_cvterm_relationship()
  2701. * Purpose: To describe the structure of 'cvterm_relationship' to tripal
  2702. * @see tripal_core_chado_insert()
  2703. * @see tripal_core_chado_update()
  2704. * @see tripal_core_chado_select()
  2705. *
  2706. * @return
  2707. * An array describing the 'cvterm_relationship' table
  2708. *
  2709. * @ingroup tripal_chado_v1.11_schema_api
  2710. *
  2711. */
  2712. function tripal_core_chado_schema_v1_11_cvterm_relationship() {
  2713. $description = array (
  2714. 'table' => 'cvterm_relationship',
  2715. 'fields' => array (
  2716. 'cvterm_relationship_id' => array (
  2717. 'type' => 'serial',
  2718. 'not NULL' => '1',
  2719. ),
  2720. 'type_id' => array (
  2721. 'type' => 'int',
  2722. 'not NULL' => '1',
  2723. ),
  2724. 'subject_id' => array (
  2725. 'type' => 'int',
  2726. 'not NULL' => '1',
  2727. ),
  2728. 'object_id' => array (
  2729. 'type' => 'int',
  2730. 'not NULL' => '1',
  2731. ),
  2732. ),
  2733. 'primary key' => array (
  2734. 0 => 'cvterm_relationship_id',
  2735. ),
  2736. 'unique keys' => array (
  2737. 'cvterm_relationship_c1' => array (
  2738. 0 => 'subject_id',
  2739. 1 => 'object_id',
  2740. 2 => 'type_id',
  2741. ),
  2742. ),
  2743. 'indexes' => array (
  2744. 'cvterm_relationship_idx1' => array (
  2745. 0 => 'type_id',
  2746. ),
  2747. 'cvterm_relationship_idx2' => array (
  2748. 0 => 'subject_id',
  2749. ),
  2750. 'cvterm_relationship_idx3' => array (
  2751. 0 => 'object_id',
  2752. ),
  2753. ),
  2754. 'foreign keys' => array (
  2755. 'cvterm' => array (
  2756. 'table' => 'cvterm',
  2757. 'columns' => array (
  2758. 'type_id' => 'cvterm_id',
  2759. 'subject_id' => 'cvterm_id',
  2760. 'object_id' => 'cvterm_id',
  2761. ),
  2762. ),
  2763. ),
  2764. );
  2765. return $description;
  2766. }
  2767. /**
  2768. * Implements hook_chado_schema_v1_11_cvtermpath()
  2769. * Purpose: To describe the structure of 'cvtermpath' to tripal
  2770. * @see tripal_core_chado_insert()
  2771. * @see tripal_core_chado_update()
  2772. * @see tripal_core_chado_select()
  2773. *
  2774. * @return
  2775. * An array describing the 'cvtermpath' table
  2776. *
  2777. * @ingroup tripal_chado_v1.11_schema_api
  2778. *
  2779. */
  2780. function tripal_core_chado_schema_v1_11_cvtermpath() {
  2781. $description = array (
  2782. 'table' => 'cvtermpath',
  2783. 'fields' => array (
  2784. 'cvtermpath_id' => array (
  2785. 'type' => 'serial',
  2786. 'not NULL' => '1',
  2787. ),
  2788. 'type_id' => array (
  2789. 'type' => 'int',
  2790. 'not NULL' => '',
  2791. ),
  2792. 'subject_id' => array (
  2793. 'type' => 'int',
  2794. 'not NULL' => '1',
  2795. ),
  2796. 'object_id' => array (
  2797. 'type' => 'int',
  2798. 'not NULL' => '1',
  2799. ),
  2800. 'cv_id' => array (
  2801. 'type' => 'int',
  2802. 'not NULL' => '1',
  2803. ),
  2804. 'pathdistance' => array (
  2805. 'type' => 'int',
  2806. 'not NULL' => '',
  2807. ),
  2808. ),
  2809. 'primary key' => array (
  2810. 0 => 'cvtermpath_id',
  2811. ),
  2812. 'unique keys' => array (
  2813. 'cvtermpath_c1' => array (
  2814. 0 => 'subject_id',
  2815. 1 => 'object_id',
  2816. 2 => 'type_id',
  2817. 3 => 'pathdistance',
  2818. ),
  2819. ),
  2820. 'indexes' => array (
  2821. 'cvtermpath_idx1' => array (
  2822. 0 => 'type_id',
  2823. ),
  2824. 'cvtermpath_idx2' => array (
  2825. 0 => 'subject_id',
  2826. ),
  2827. 'cvtermpath_idx3' => array (
  2828. 0 => 'object_id',
  2829. ),
  2830. 'cvtermpath_idx4' => array (
  2831. 0 => 'cv_id',
  2832. ),
  2833. ),
  2834. 'foreign keys' => array (
  2835. 'cv' => array (
  2836. 'table' => 'cv',
  2837. 'columns' => array (
  2838. 'cv_id' => 'cv_id',
  2839. ),
  2840. ),
  2841. 'cvterm' => array (
  2842. 'table' => 'cvterm',
  2843. 'columns' => array (
  2844. 'type_id' => 'cvterm_id',
  2845. 'subject_id' => 'cvterm_id',
  2846. 'object_id' => 'cvterm_id',
  2847. ),
  2848. ),
  2849. ),
  2850. );
  2851. return $description;
  2852. }
  2853. /**
  2854. * Implements hook_chado_schema_v1_11_cvtermprop()
  2855. * Purpose: To describe the structure of 'cvtermprop' to tripal
  2856. * @see tripal_core_chado_insert()
  2857. * @see tripal_core_chado_update()
  2858. * @see tripal_core_chado_select()
  2859. *
  2860. * @return
  2861. * An array describing the 'cvtermprop' table
  2862. *
  2863. * @ingroup tripal_chado_v1.11_schema_api
  2864. *
  2865. */
  2866. function tripal_core_chado_schema_v1_11_cvtermprop() {
  2867. $description = array (
  2868. 'table' => 'cvtermprop',
  2869. 'fields' => array (
  2870. 'cvtermprop_id' => array (
  2871. 'type' => 'serial',
  2872. 'not NULL' => '1',
  2873. ),
  2874. 'cvterm_id' => array (
  2875. 'type' => 'int',
  2876. 'not NULL' => '1',
  2877. ),
  2878. 'type_id' => array (
  2879. 'type' => 'int',
  2880. 'not NULL' => '1',
  2881. ),
  2882. 'value' => array (
  2883. 'type' => 'text',
  2884. 'not NULL' => '1',
  2885. 'default' => '',
  2886. ),
  2887. 'rank' => array (
  2888. 'type' => 'int',
  2889. 'not NULL' => '1',
  2890. 'default' => '0',
  2891. ),
  2892. ),
  2893. 'primary key' => array (
  2894. 0 => 'cvtermprop_id',
  2895. ),
  2896. 'unique keys' => array (
  2897. 'cvterm_id' => array (
  2898. 0 => 'cvterm_id',
  2899. 1 => 'type_id',
  2900. 2 => 'value',
  2901. 3 => 'rank',
  2902. ),
  2903. ),
  2904. 'indexes' => array (
  2905. 'cvtermprop_idx1' => array (
  2906. 0 => 'cvterm_id',
  2907. ),
  2908. 'cvtermprop_idx2' => array (
  2909. 0 => 'type_id',
  2910. ),
  2911. ),
  2912. 'foreign keys' => array (
  2913. 'cvterm' => array (
  2914. 'table' => 'cvterm',
  2915. 'columns' => array (
  2916. 'cvterm_id' => 'cvterm_id',
  2917. 'type_id' => 'cvterm_id',
  2918. ),
  2919. ),
  2920. ),
  2921. );
  2922. return $description;
  2923. }
  2924. /**
  2925. * Implements hook_chado_schema_v1_11_cvtermsynonym()
  2926. * Purpose: To describe the structure of 'cvtermsynonym' to tripal
  2927. * @see tripal_core_chado_insert()
  2928. * @see tripal_core_chado_update()
  2929. * @see tripal_core_chado_select()
  2930. *
  2931. * @return
  2932. * An array describing the 'cvtermsynonym' table
  2933. *
  2934. * @ingroup tripal_chado_v1.11_schema_api
  2935. *
  2936. */
  2937. function tripal_core_chado_schema_v1_11_cvtermsynonym() {
  2938. $description = array (
  2939. 'table' => 'cvtermsynonym',
  2940. 'fields' => array (
  2941. 'cvtermsynonym_id' => array (
  2942. 'type' => 'serial',
  2943. 'not NULL' => '1',
  2944. ),
  2945. 'cvterm_id' => array (
  2946. 'type' => 'int',
  2947. 'not NULL' => '1',
  2948. ),
  2949. 'synonym' => array (
  2950. 'type' => 'varchar',
  2951. 'length' => '1024',
  2952. 'not NULL' => '1',
  2953. ),
  2954. 'type_id' => array (
  2955. 'type' => 'int',
  2956. 'not NULL' => '',
  2957. ),
  2958. ),
  2959. 'primary key' => array (
  2960. 0 => 'cvtermsynonym_id',
  2961. ),
  2962. 'unique keys' => array (
  2963. 'cvtermsynonym_c1' => array (
  2964. 0 => 'cvterm_id',
  2965. 1 => 'synonym',
  2966. ),
  2967. ),
  2968. 'indexes' => array (
  2969. 'cvtermsynonym_idx1' => array (
  2970. 0 => 'cvterm_id',
  2971. ),
  2972. ),
  2973. 'foreign keys' => array (
  2974. 'cvterm' => array (
  2975. 'table' => 'cvterm',
  2976. 'columns' => array (
  2977. 'cvterm_id' => 'cvterm_id',
  2978. 'type_id' => 'cvterm_id',
  2979. ),
  2980. ),
  2981. ),
  2982. );
  2983. return $description;
  2984. }
  2985. /**
  2986. * Implements hook_chado_schema_v1_11_db()
  2987. * Purpose: To describe the structure of 'db' to tripal
  2988. * @see tripal_core_chado_insert()
  2989. * @see tripal_core_chado_update()
  2990. * @see tripal_core_chado_select()
  2991. *
  2992. * @return
  2993. * An array describing the 'db' table
  2994. *
  2995. * @ingroup tripal_chado_v1.11_schema_api
  2996. *
  2997. */
  2998. function tripal_core_chado_schema_v1_11_db() {
  2999. $description = array (
  3000. 'table' => 'db',
  3001. 'fields' => array (
  3002. 'db_id' => array (
  3003. 'type' => 'serial',
  3004. 'not NULL' => '1',
  3005. ),
  3006. 'name' => array (
  3007. 'type' => 'varchar',
  3008. 'length' => '255',
  3009. 'not NULL' => '1',
  3010. ),
  3011. 'description' => array (
  3012. 'type' => 'varchar',
  3013. 'length' => '255',
  3014. 'not NULL' => '',
  3015. ),
  3016. 'urlprefix' => array (
  3017. 'type' => 'varchar',
  3018. 'length' => '255',
  3019. 'not NULL' => '',
  3020. ),
  3021. 'url' => array (
  3022. 'type' => 'varchar',
  3023. 'length' => '255',
  3024. 'not NULL' => '',
  3025. ),
  3026. ),
  3027. 'primary key' => array (
  3028. 0 => 'db_id',
  3029. ),
  3030. 'unique keys' => array (
  3031. 'db_c1' => array (
  3032. 0 => 'name',
  3033. ),
  3034. ),
  3035. 'indexes' => array (
  3036. ),
  3037. 'foreign keys' => array (
  3038. ),
  3039. );
  3040. return $description;
  3041. }
  3042. /**
  3043. * Implements hook_chado_schema_v1_11_dbxref()
  3044. * Purpose: To describe the structure of 'dbxref' to tripal
  3045. * @see tripal_core_chado_insert()
  3046. * @see tripal_core_chado_update()
  3047. * @see tripal_core_chado_select()
  3048. *
  3049. * @return
  3050. * An array describing the 'dbxref' table
  3051. *
  3052. * @ingroup tripal_chado_v1.11_schema_api
  3053. *
  3054. */
  3055. function tripal_core_chado_schema_v1_11_dbxref() {
  3056. $description = array (
  3057. 'table' => 'dbxref',
  3058. 'fields' => array (
  3059. 'dbxref_id' => array (
  3060. 'type' => 'serial',
  3061. 'not NULL' => '1',
  3062. ),
  3063. 'db_id' => array (
  3064. 'type' => 'int',
  3065. 'not NULL' => '1',
  3066. ),
  3067. 'accession' => array (
  3068. 'type' => 'varchar',
  3069. 'length' => '255',
  3070. 'not NULL' => '1',
  3071. ),
  3072. 'version' => array (
  3073. 'type' => 'varchar',
  3074. 'length' => '255',
  3075. 'not NULL' => '1',
  3076. 'default' => '',
  3077. ),
  3078. 'description' => array (
  3079. 'type' => 'text',
  3080. 'not NULL' => '',
  3081. ),
  3082. ),
  3083. 'primary key' => array (
  3084. 0 => 'dbxref_id',
  3085. ),
  3086. 'unique keys' => array (
  3087. 'dbxref_c1' => array (
  3088. 0 => 'db_id',
  3089. 1 => 'accession',
  3090. 2 => 'version',
  3091. ),
  3092. ),
  3093. 'indexes' => array (
  3094. 'dbxref_idx1' => array (
  3095. 0 => 'db_id',
  3096. ),
  3097. 'dbxref_idx2' => array (
  3098. 0 => 'accession',
  3099. ),
  3100. 'dbxref_idx3' => array (
  3101. 0 => 'version',
  3102. ),
  3103. ),
  3104. 'foreign keys' => array (
  3105. 'db' => array (
  3106. 'table' => 'db',
  3107. 'columns' => array (
  3108. 'db_id' => 'db_id',
  3109. ),
  3110. ),
  3111. ),
  3112. );
  3113. return $description;
  3114. }
  3115. /**
  3116. * Implements hook_chado_schema_v1_11_dbxrefprop()
  3117. * Purpose: To describe the structure of 'dbxrefprop' to tripal
  3118. * @see tripal_core_chado_insert()
  3119. * @see tripal_core_chado_update()
  3120. * @see tripal_core_chado_select()
  3121. *
  3122. * @return
  3123. * An array describing the 'dbxrefprop' table
  3124. *
  3125. * @ingroup tripal_chado_v1.11_schema_api
  3126. *
  3127. */
  3128. function tripal_core_chado_schema_v1_11_dbxrefprop() {
  3129. $description = array (
  3130. 'table' => 'dbxrefprop',
  3131. 'fields' => array (
  3132. 'dbxrefprop_id' => array (
  3133. 'type' => 'serial',
  3134. 'not NULL' => '1',
  3135. ),
  3136. 'dbxref_id' => array (
  3137. 'type' => 'int',
  3138. 'not NULL' => '1',
  3139. ),
  3140. 'type_id' => array (
  3141. 'type' => 'int',
  3142. 'not NULL' => '1',
  3143. ),
  3144. 'value' => array (
  3145. 'type' => 'text',
  3146. 'not NULL' => '1',
  3147. 'default' => '',
  3148. ),
  3149. 'rank' => array (
  3150. 'type' => 'int',
  3151. 'not NULL' => '1',
  3152. 'default' => '0',
  3153. ),
  3154. ),
  3155. 'primary key' => array (
  3156. 0 => 'dbxrefprop_id',
  3157. ),
  3158. 'unique keys' => array (
  3159. 'dbxrefprop_c1' => array (
  3160. 0 => 'dbxref_id',
  3161. 1 => 'type_id',
  3162. 2 => 'rank',
  3163. ),
  3164. ),
  3165. 'indexes' => array (
  3166. 'dbxrefprop_idx1' => array (
  3167. 0 => 'dbxref_id',
  3168. ),
  3169. 'dbxrefprop_idx2' => array (
  3170. 0 => 'type_id',
  3171. ),
  3172. ),
  3173. 'foreign keys' => array (
  3174. 'dbxref' => array (
  3175. 'table' => 'dbxref',
  3176. 'columns' => array (
  3177. 'dbxref_id' => 'dbxref_id',
  3178. ),
  3179. ),
  3180. 'cvterm' => array (
  3181. 'table' => 'cvterm',
  3182. 'columns' => array (
  3183. 'type_id' => 'cvterm_id',
  3184. ),
  3185. ),
  3186. ),
  3187. );
  3188. return $description;
  3189. }
  3190. /**
  3191. * Implements hook_chado_schema_v1_11_eimage()
  3192. * Purpose: To describe the structure of 'eimage' to tripal
  3193. * @see tripal_core_chado_insert()
  3194. * @see tripal_core_chado_update()
  3195. * @see tripal_core_chado_select()
  3196. *
  3197. * @return
  3198. * An array describing the 'eimage' table
  3199. *
  3200. * @ingroup tripal_chado_v1.11_schema_api
  3201. *
  3202. */
  3203. function tripal_core_chado_schema_v1_11_eimage() {
  3204. $description = array (
  3205. 'table' => 'eimage',
  3206. 'fields' => array (
  3207. 'eimage_id' => array (
  3208. 'type' => 'serial',
  3209. 'not NULL' => '1',
  3210. ),
  3211. 'eimage_data' => array (
  3212. 'type' => 'text',
  3213. 'not NULL' => '',
  3214. ),
  3215. 'eimage_type' => array (
  3216. 'type' => 'varchar',
  3217. 'length' => '255',
  3218. 'not NULL' => '1',
  3219. ),
  3220. 'image_uri' => array (
  3221. 'type' => 'varchar',
  3222. 'length' => '255',
  3223. 'not NULL' => '',
  3224. ),
  3225. ),
  3226. 'primary key' => array (
  3227. 0 => 'eimage_id',
  3228. ),
  3229. 'unique keys' => array (
  3230. ),
  3231. 'indexes' => array (
  3232. ),
  3233. 'foreign keys' => array (
  3234. ),
  3235. );
  3236. return $description;
  3237. }
  3238. /**
  3239. * Implements hook_chado_schema_v1_11_element()
  3240. * Purpose: To describe the structure of 'element' to tripal
  3241. * @see tripal_core_chado_insert()
  3242. * @see tripal_core_chado_update()
  3243. * @see tripal_core_chado_select()
  3244. *
  3245. * @return
  3246. * An array describing the 'element' table
  3247. *
  3248. * @ingroup tripal_chado_v1.11_schema_api
  3249. *
  3250. */
  3251. function tripal_core_chado_schema_v1_11_element() {
  3252. $description = array (
  3253. 'table' => 'element',
  3254. 'fields' => array (
  3255. 'element_id' => array (
  3256. 'type' => 'serial',
  3257. 'not NULL' => '1',
  3258. ),
  3259. 'feature_id' => array (
  3260. 'type' => 'int',
  3261. 'not NULL' => '',
  3262. ),
  3263. 'arraydesign_id' => array (
  3264. 'type' => 'int',
  3265. 'not NULL' => '1',
  3266. ),
  3267. 'type_id' => array (
  3268. 'type' => 'int',
  3269. 'not NULL' => '',
  3270. ),
  3271. 'dbxref_id' => array (
  3272. 'type' => 'int',
  3273. 'not NULL' => '',
  3274. ),
  3275. ),
  3276. 'primary key' => array (
  3277. 0 => 'element_id',
  3278. ),
  3279. 'unique keys' => array (
  3280. 'element_c1' => array (
  3281. 0 => 'feature_id',
  3282. 1 => 'arraydesign_id',
  3283. ),
  3284. ),
  3285. 'indexes' => array (
  3286. 'element_idx1' => array (
  3287. 0 => 'feature_id',
  3288. ),
  3289. 'element_idx2' => array (
  3290. 0 => 'arraydesign_id',
  3291. ),
  3292. 'element_idx3' => array (
  3293. 0 => 'type_id',
  3294. ),
  3295. 'element_idx4' => array (
  3296. 0 => 'dbxref_id',
  3297. ),
  3298. ),
  3299. 'foreign keys' => array (
  3300. 'dbxref' => array (
  3301. 'table' => 'dbxref',
  3302. 'columns' => array (
  3303. 'dbxref_id' => 'dbxref_id',
  3304. ),
  3305. ),
  3306. 'cvterm' => array (
  3307. 'table' => 'cvterm',
  3308. 'columns' => array (
  3309. 'type_id' => 'cvterm_id',
  3310. ),
  3311. ),
  3312. 'feature' => array (
  3313. 'table' => 'feature',
  3314. 'columns' => array (
  3315. 'feature_id' => 'feature_id',
  3316. ),
  3317. ),
  3318. 'arraydesign' => array (
  3319. 'table' => 'arraydesign',
  3320. 'columns' => array (
  3321. 'arraydesign_id' => 'arraydesign_id',
  3322. ),
  3323. ),
  3324. ),
  3325. );
  3326. return $description;
  3327. }
  3328. /**
  3329. * Implements hook_chado_schema_v1_11_element_relationship()
  3330. * Purpose: To describe the structure of 'element_relationship' 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 'element_relationship' table
  3337. *
  3338. * @ingroup tripal_chado_v1.11_schema_api
  3339. *
  3340. */
  3341. function tripal_core_chado_schema_v1_11_element_relationship() {
  3342. $description = array (
  3343. 'table' => 'element_relationship',
  3344. 'fields' => array (
  3345. 'element_relationship_id' => array (
  3346. 'type' => 'serial',
  3347. 'not NULL' => '1',
  3348. ),
  3349. 'subject_id' => array (
  3350. 'type' => 'int',
  3351. 'not NULL' => '1',
  3352. ),
  3353. 'type_id' => array (
  3354. 'type' => 'int',
  3355. 'not NULL' => '1',
  3356. ),
  3357. 'object_id' => array (
  3358. 'type' => 'int',
  3359. 'not NULL' => '1',
  3360. ),
  3361. 'value' => array (
  3362. 'type' => 'text',
  3363. 'not NULL' => '',
  3364. ),
  3365. 'rank' => array (
  3366. 'type' => 'int',
  3367. 'not NULL' => '1',
  3368. 'default' => '0',
  3369. ),
  3370. ),
  3371. 'primary key' => array (
  3372. 0 => 'element_relationship_id',
  3373. ),
  3374. 'unique keys' => array (
  3375. 'element_relationship_c1' => array (
  3376. 0 => 'subject_id',
  3377. 1 => 'object_id',
  3378. 2 => 'type_id',
  3379. 3 => 'rank',
  3380. ),
  3381. ),
  3382. 'indexes' => array (
  3383. 'element_relationship_idx1' => array (
  3384. 0 => 'subject_id',
  3385. ),
  3386. 'element_relationship_idx2' => array (
  3387. 0 => 'type_id',
  3388. ),
  3389. 'element_relationship_idx3' => array (
  3390. 0 => 'object_id',
  3391. ),
  3392. 'element_relationship_idx4' => array (
  3393. 0 => 'value',
  3394. ),
  3395. ),
  3396. 'foreign keys' => array (
  3397. 'cvterm' => array (
  3398. 'table' => 'cvterm',
  3399. 'columns' => array (
  3400. 'type_id' => 'cvterm_id',
  3401. ),
  3402. ),
  3403. 'element' => array (
  3404. 'table' => 'element',
  3405. 'columns' => array (
  3406. 'subject_id' => 'element_id',
  3407. 'object_id' => 'element_id',
  3408. ),
  3409. ),
  3410. ),
  3411. );
  3412. return $description;
  3413. }
  3414. /**
  3415. * Implements hook_chado_schema_v1_11_elementresult()
  3416. * Purpose: To describe the structure of 'elementresult' to tripal
  3417. * @see tripal_core_chado_insert()
  3418. * @see tripal_core_chado_update()
  3419. * @see tripal_core_chado_select()
  3420. *
  3421. * @return
  3422. * An array describing the 'elementresult' table
  3423. *
  3424. * @ingroup tripal_chado_v1.11_schema_api
  3425. *
  3426. */
  3427. function tripal_core_chado_schema_v1_11_elementresult() {
  3428. $description = array (
  3429. 'table' => 'elementresult',
  3430. 'fields' => array (
  3431. 'elementresult_id' => array (
  3432. 'type' => 'serial',
  3433. 'not NULL' => '1',
  3434. ),
  3435. 'element_id' => array (
  3436. 'type' => 'int',
  3437. 'not NULL' => '1',
  3438. ),
  3439. 'quantification_id' => array (
  3440. 'type' => 'int',
  3441. 'not NULL' => '1',
  3442. ),
  3443. 'signal' => array (
  3444. 'type' => 'float',
  3445. 'size' => 'big',
  3446. 'not NULL' => '1',
  3447. ),
  3448. ),
  3449. 'primary key' => array (
  3450. 0 => 'elementresult_id',
  3451. ),
  3452. 'unique keys' => array (
  3453. 'elementresult_c1' => array (
  3454. 0 => 'element_id',
  3455. 1 => 'quantification_id',
  3456. ),
  3457. ),
  3458. 'indexes' => array (
  3459. 'elementresult_idx1' => array (
  3460. 0 => 'element_id',
  3461. ),
  3462. 'elementresult_idx2' => array (
  3463. 0 => 'quantification_id',
  3464. ),
  3465. 'elementresult_idx3' => array (
  3466. 0 => 'signal',
  3467. ),
  3468. ),
  3469. 'foreign keys' => array (
  3470. 'quantification' => array (
  3471. 'table' => 'quantification',
  3472. 'columns' => array (
  3473. 'quantification_id' => 'quantification_id',
  3474. ),
  3475. ),
  3476. 'element' => array (
  3477. 'table' => 'element',
  3478. 'columns' => array (
  3479. 'element_id' => 'element_id',
  3480. ),
  3481. ),
  3482. ),
  3483. );
  3484. return $description;
  3485. }
  3486. /**
  3487. * Implements hook_chado_schema_v1_11_elementresult_relationship()
  3488. * Purpose: To describe the structure of 'elementresult_relationship' to tripal
  3489. * @see tripal_core_chado_insert()
  3490. * @see tripal_core_chado_update()
  3491. * @see tripal_core_chado_select()
  3492. *
  3493. * @return
  3494. * An array describing the 'elementresult_relationship' table
  3495. *
  3496. * @ingroup tripal_chado_v1.11_schema_api
  3497. *
  3498. */
  3499. function tripal_core_chado_schema_v1_11_elementresult_relationship() {
  3500. $description = array (
  3501. 'table' => 'elementresult_relationship',
  3502. 'fields' => array (
  3503. 'elementresult_relationship_id' => array (
  3504. 'type' => 'serial',
  3505. 'not NULL' => '1',
  3506. ),
  3507. 'subject_id' => array (
  3508. 'type' => 'int',
  3509. 'not NULL' => '1',
  3510. ),
  3511. 'type_id' => array (
  3512. 'type' => 'int',
  3513. 'not NULL' => '1',
  3514. ),
  3515. 'object_id' => array (
  3516. 'type' => 'int',
  3517. 'not NULL' => '1',
  3518. ),
  3519. 'value' => array (
  3520. 'type' => 'text',
  3521. 'not NULL' => '',
  3522. ),
  3523. 'rank' => array (
  3524. 'type' => 'int',
  3525. 'not NULL' => '1',
  3526. 'default' => '0',
  3527. ),
  3528. ),
  3529. 'primary key' => array (
  3530. 0 => 'elementresult_relationship_id',
  3531. ),
  3532. 'unique keys' => array (
  3533. 'elementresult_relationship_c1' => array (
  3534. 0 => 'subject_id',
  3535. 1 => 'object_id',
  3536. 2 => 'type_id',
  3537. 3 => 'rank',
  3538. ),
  3539. ),
  3540. 'indexes' => array (
  3541. 'elementresult_relationship_idx1' => array (
  3542. 0 => 'subject_id',
  3543. ),
  3544. 'elementresult_relationship_idx2' => array (
  3545. 0 => 'type_id',
  3546. ),
  3547. 'elementresult_relationship_idx3' => array (
  3548. 0 => 'object_id',
  3549. ),
  3550. 'elementresult_relationship_idx4' => array (
  3551. 0 => 'value',
  3552. ),
  3553. ),
  3554. 'foreign keys' => array (
  3555. 'cvterm' => array (
  3556. 'table' => 'cvterm',
  3557. 'columns' => array (
  3558. 'type_id' => 'cvterm_id',
  3559. ),
  3560. ),
  3561. 'elementresult' => array (
  3562. 'table' => 'elementresult',
  3563. 'columns' => array (
  3564. 'subject_id' => 'elementresult_id',
  3565. 'object_id' => 'elementresult_id',
  3566. ),
  3567. ),
  3568. ),
  3569. );
  3570. return $description;
  3571. }
  3572. /**
  3573. * Implements hook_chado_schema_v1_11_environment()
  3574. * Purpose: To describe the structure of 'environment' to tripal
  3575. * @see tripal_core_chado_insert()
  3576. * @see tripal_core_chado_update()
  3577. * @see tripal_core_chado_select()
  3578. *
  3579. * @return
  3580. * An array describing the 'environment' table
  3581. *
  3582. * @ingroup tripal_chado_v1.11_schema_api
  3583. *
  3584. */
  3585. function tripal_core_chado_schema_v1_11_environment() {
  3586. $description = array (
  3587. 'table' => 'environment',
  3588. 'fields' => array (
  3589. 'environment_id' => array (
  3590. 'type' => 'serial',
  3591. 'not NULL' => '1',
  3592. ),
  3593. 'uniquename' => array (
  3594. 'type' => 'text',
  3595. 'not NULL' => '1',
  3596. ),
  3597. 'description' => array (
  3598. 'type' => 'text',
  3599. 'not NULL' => '',
  3600. ),
  3601. ),
  3602. 'primary key' => array (
  3603. 0 => 'environment_id',
  3604. ),
  3605. 'unique keys' => array (
  3606. 'environment_c1' => array (
  3607. 0 => 'uniquename',
  3608. ),
  3609. ),
  3610. 'indexes' => array (
  3611. 'environment_idx1' => array (
  3612. 0 => 'uniquename',
  3613. ),
  3614. ),
  3615. 'foreign keys' => array (
  3616. ),
  3617. );
  3618. return $description;
  3619. }
  3620. /**
  3621. * Implements hook_chado_schema_v1_11_environment_cvterm()
  3622. * Purpose: To describe the structure of 'environment_cvterm' to tripal
  3623. * @see tripal_core_chado_insert()
  3624. * @see tripal_core_chado_update()
  3625. * @see tripal_core_chado_select()
  3626. *
  3627. * @return
  3628. * An array describing the 'environment_cvterm' table
  3629. *
  3630. * @ingroup tripal_chado_v1.11_schema_api
  3631. *
  3632. */
  3633. function tripal_core_chado_schema_v1_11_environment_cvterm() {
  3634. $description = array (
  3635. 'table' => 'environment_cvterm',
  3636. 'fields' => array (
  3637. 'environment_cvterm_id' => array (
  3638. 'type' => 'serial',
  3639. 'not NULL' => '1',
  3640. ),
  3641. 'environment_id' => array (
  3642. 'type' => 'int',
  3643. 'not NULL' => '1',
  3644. ),
  3645. 'cvterm_id' => array (
  3646. 'type' => 'int',
  3647. 'not NULL' => '1',
  3648. ),
  3649. ),
  3650. 'primary key' => array (
  3651. 0 => 'environment_cvterm_id',
  3652. ),
  3653. 'unique keys' => array (
  3654. 'environment_cvterm_c1' => array (
  3655. 0 => 'environment_id',
  3656. 1 => 'cvterm_id',
  3657. ),
  3658. ),
  3659. 'indexes' => array (
  3660. 'environment_cvterm_idx1' => array (
  3661. 0 => 'environment_id',
  3662. ),
  3663. 'environment_cvterm_idx2' => array (
  3664. 0 => 'cvterm_id',
  3665. ),
  3666. ),
  3667. 'foreign keys' => array (
  3668. 'cvterm' => array (
  3669. 'table' => 'cvterm',
  3670. 'columns' => array (
  3671. 'cvterm_id' => 'cvterm_id',
  3672. ),
  3673. ),
  3674. 'environment' => array (
  3675. 'table' => 'environment',
  3676. 'columns' => array (
  3677. 'environment_id' => 'environment_id',
  3678. ),
  3679. ),
  3680. ),
  3681. );
  3682. return $description;
  3683. }
  3684. /**
  3685. * Implements hook_chado_schema_v1_11_expression()
  3686. * Purpose: To describe the structure of 'expression' to tripal
  3687. * @see tripal_core_chado_insert()
  3688. * @see tripal_core_chado_update()
  3689. * @see tripal_core_chado_select()
  3690. *
  3691. * @return
  3692. * An array describing the 'expression' table
  3693. *
  3694. * @ingroup tripal_chado_v1.11_schema_api
  3695. *
  3696. */
  3697. function tripal_core_chado_schema_v1_11_expression() {
  3698. $description = array (
  3699. 'table' => 'expression',
  3700. 'fields' => array (
  3701. 'expression_id' => array (
  3702. 'type' => 'serial',
  3703. 'not NULL' => '1',
  3704. ),
  3705. 'uniquename' => array (
  3706. 'type' => 'text',
  3707. 'not NULL' => '1',
  3708. ),
  3709. 'md5checksum' => array (
  3710. 'type' => 'char',
  3711. 'length' => '32',
  3712. 'not NULL' => '',
  3713. ),
  3714. 'description' => array (
  3715. 'type' => 'text',
  3716. 'not NULL' => '',
  3717. ),
  3718. ),
  3719. 'primary key' => array (
  3720. 0 => 'expression_id',
  3721. ),
  3722. 'unique keys' => array (
  3723. 'expression_c1' => array (
  3724. 0 => 'uniquename',
  3725. ),
  3726. ),
  3727. 'indexes' => array (
  3728. ),
  3729. 'foreign keys' => array (
  3730. ),
  3731. );
  3732. return $description;
  3733. }
  3734. /**
  3735. * Implements hook_chado_schema_v1_11_expression_cvterm()
  3736. * Purpose: To describe the structure of 'expression_cvterm' to tripal
  3737. * @see tripal_core_chado_insert()
  3738. * @see tripal_core_chado_update()
  3739. * @see tripal_core_chado_select()
  3740. *
  3741. * @return
  3742. * An array describing the 'expression_cvterm' table
  3743. *
  3744. * @ingroup tripal_chado_v1.11_schema_api
  3745. *
  3746. */
  3747. function tripal_core_chado_schema_v1_11_expression_cvterm() {
  3748. $description = array (
  3749. 'table' => 'expression_cvterm',
  3750. 'fields' => array (
  3751. 'expression_cvterm_id' => array (
  3752. 'type' => 'serial',
  3753. 'not NULL' => '1',
  3754. ),
  3755. 'expression_id' => array (
  3756. 'type' => 'int',
  3757. 'not NULL' => '1',
  3758. ),
  3759. 'cvterm_id' => array (
  3760. 'type' => 'int',
  3761. 'not NULL' => '1',
  3762. ),
  3763. 'rank' => array (
  3764. 'type' => 'int',
  3765. 'not NULL' => '1',
  3766. 'default' => '0',
  3767. ),
  3768. 'cvterm_type_id' => array (
  3769. 'type' => 'int',
  3770. 'not NULL' => '1',
  3771. ),
  3772. ),
  3773. 'primary key' => array (
  3774. 0 => 'expression_cvterm_id',
  3775. ),
  3776. 'unique keys' => array (
  3777. 'expression_cvterm_c1' => array (
  3778. 0 => 'expression_id',
  3779. 1 => 'cvterm_id',
  3780. 2 => 'cvterm_type_id',
  3781. ),
  3782. ),
  3783. 'indexes' => array (
  3784. 'expression_cvterm_idx1' => array (
  3785. 0 => 'expression_id',
  3786. ),
  3787. 'expression_cvterm_idx2' => array (
  3788. 0 => 'cvterm_id',
  3789. ),
  3790. 'expression_cvterm_idx3' => array (
  3791. 0 => 'cvterm_type_id',
  3792. ),
  3793. ),
  3794. 'foreign keys' => array (
  3795. 'cvterm' => array (
  3796. 'table' => 'cvterm',
  3797. 'columns' => array (
  3798. 'cvterm_id' => 'cvterm_id',
  3799. 'cvterm_type_id' => 'cvterm_id',
  3800. ),
  3801. ),
  3802. 'expression' => array (
  3803. 'table' => 'expression',
  3804. 'columns' => array (
  3805. 'expression_id' => 'expression_id',
  3806. ),
  3807. ),
  3808. ),
  3809. );
  3810. return $description;
  3811. }
  3812. /**
  3813. * Implements hook_chado_schema_v1_11_expression_cvtermprop()
  3814. * Purpose: To describe the structure of 'expression_cvtermprop' to tripal
  3815. * @see tripal_core_chado_insert()
  3816. * @see tripal_core_chado_update()
  3817. * @see tripal_core_chado_select()
  3818. *
  3819. * @return
  3820. * An array describing the 'expression_cvtermprop' table
  3821. *
  3822. * @ingroup tripal_chado_v1.11_schema_api
  3823. *
  3824. */
  3825. function tripal_core_chado_schema_v1_11_expression_cvtermprop() {
  3826. $description = array (
  3827. 'table' => 'expression_cvtermprop',
  3828. 'fields' => array (
  3829. 'expression_cvtermprop_id' => array (
  3830. 'type' => 'serial',
  3831. 'not NULL' => '1',
  3832. ),
  3833. 'expression_cvterm_id' => array (
  3834. 'type' => 'int',
  3835. 'not NULL' => '1',
  3836. ),
  3837. 'type_id' => array (
  3838. 'type' => 'int',
  3839. 'not NULL' => '1',
  3840. ),
  3841. 'value' => array (
  3842. 'type' => 'text',
  3843. 'not NULL' => '',
  3844. ),
  3845. 'rank' => array (
  3846. 'type' => 'int',
  3847. 'not NULL' => '1',
  3848. 'default' => '0',
  3849. ),
  3850. ),
  3851. 'primary key' => array (
  3852. 0 => 'expression_cvtermprop_id',
  3853. ),
  3854. 'unique keys' => array (
  3855. 'expression_cvtermprop_c1' => array (
  3856. 0 => 'expression_cvterm_id',
  3857. 1 => 'type_id',
  3858. 2 => 'rank',
  3859. ),
  3860. ),
  3861. 'indexes' => array (
  3862. 'expression_cvtermprop_idx1' => array (
  3863. 0 => 'expression_cvterm_id',
  3864. ),
  3865. 'expression_cvtermprop_idx2' => array (
  3866. 0 => 'type_id',
  3867. ),
  3868. ),
  3869. 'foreign keys' => array (
  3870. 'cvterm' => array (
  3871. 'table' => 'cvterm',
  3872. 'columns' => array (
  3873. 'type_id' => 'cvterm_id',
  3874. ),
  3875. ),
  3876. 'expression_cvterm' => array (
  3877. 'table' => 'expression_cvterm',
  3878. 'columns' => array (
  3879. 'expression_cvterm_id' => 'expression_cvterm_id',
  3880. ),
  3881. ),
  3882. ),
  3883. );
  3884. return $description;
  3885. }
  3886. /**
  3887. * Implements hook_chado_schema_v1_11_expression_image()
  3888. * Purpose: To describe the structure of 'expression_image' to tripal
  3889. * @see tripal_core_chado_insert()
  3890. * @see tripal_core_chado_update()
  3891. * @see tripal_core_chado_select()
  3892. *
  3893. * @return
  3894. * An array describing the 'expression_image' table
  3895. *
  3896. * @ingroup tripal_chado_v1.11_schema_api
  3897. *
  3898. */
  3899. function tripal_core_chado_schema_v1_11_expression_image() {
  3900. $description = array (
  3901. 'table' => 'expression_image',
  3902. 'fields' => array (
  3903. 'expression_image_id' => array (
  3904. 'type' => 'serial',
  3905. 'not NULL' => '1',
  3906. ),
  3907. 'expression_id' => array (
  3908. 'type' => 'int',
  3909. 'not NULL' => '1',
  3910. ),
  3911. 'eimage_id' => array (
  3912. 'type' => 'int',
  3913. 'not NULL' => '1',
  3914. ),
  3915. ),
  3916. 'primary key' => array (
  3917. 0 => 'expression_image_id',
  3918. ),
  3919. 'unique keys' => array (
  3920. 'expression_image_c1' => array (
  3921. 0 => 'expression_id',
  3922. 1 => 'eimage_id',
  3923. ),
  3924. ),
  3925. 'indexes' => array (
  3926. 'expression_image_idx1' => array (
  3927. 0 => 'expression_id',
  3928. ),
  3929. 'expression_image_idx2' => array (
  3930. 0 => 'eimage_id',
  3931. ),
  3932. ),
  3933. 'foreign keys' => array (
  3934. 'expression' => array (
  3935. 'table' => 'expression',
  3936. 'columns' => array (
  3937. 'expression_id' => 'expression_id',
  3938. ),
  3939. ),
  3940. 'eimage' => array (
  3941. 'table' => 'eimage',
  3942. 'columns' => array (
  3943. 'eimage_id' => 'eimage_id',
  3944. ),
  3945. ),
  3946. ),
  3947. );
  3948. return $description;
  3949. }
  3950. /**
  3951. * Implements hook_chado_schema_v1_11_expression_pub()
  3952. * Purpose: To describe the structure of 'expression_pub' to tripal
  3953. * @see tripal_core_chado_insert()
  3954. * @see tripal_core_chado_update()
  3955. * @see tripal_core_chado_select()
  3956. *
  3957. * @return
  3958. * An array describing the 'expression_pub' table
  3959. *
  3960. * @ingroup tripal_chado_v1.11_schema_api
  3961. *
  3962. */
  3963. function tripal_core_chado_schema_v1_11_expression_pub() {
  3964. $description = array (
  3965. 'table' => 'expression_pub',
  3966. 'fields' => array (
  3967. 'expression_pub_id' => array (
  3968. 'type' => 'serial',
  3969. 'not NULL' => '1',
  3970. ),
  3971. 'expression_id' => array (
  3972. 'type' => 'int',
  3973. 'not NULL' => '1',
  3974. ),
  3975. 'pub_id' => array (
  3976. 'type' => 'int',
  3977. 'not NULL' => '1',
  3978. ),
  3979. ),
  3980. 'primary key' => array (
  3981. 0 => 'expression_pub_id',
  3982. ),
  3983. 'unique keys' => array (
  3984. 'expression_pub_c1' => array (
  3985. 0 => 'expression_id',
  3986. 1 => 'pub_id',
  3987. ),
  3988. ),
  3989. 'indexes' => array (
  3990. 'expression_pub_idx1' => array (
  3991. 0 => 'expression_id',
  3992. ),
  3993. 'expression_pub_idx2' => array (
  3994. 0 => 'pub_id',
  3995. ),
  3996. ),
  3997. 'foreign keys' => array (
  3998. 'pub' => array (
  3999. 'table' => 'pub',
  4000. 'columns' => array (
  4001. 'pub_id' => 'pub_id',
  4002. ),
  4003. ),
  4004. 'expression' => array (
  4005. 'table' => 'expression',
  4006. 'columns' => array (
  4007. 'expression_id' => 'expression_id',
  4008. ),
  4009. ),
  4010. ),
  4011. );
  4012. return $description;
  4013. }
  4014. /**
  4015. * Implements hook_chado_schema_v1_11_expressionprop()
  4016. * Purpose: To describe the structure of 'expressionprop' to tripal
  4017. * @see tripal_core_chado_insert()
  4018. * @see tripal_core_chado_update()
  4019. * @see tripal_core_chado_select()
  4020. *
  4021. * @return
  4022. * An array describing the 'expressionprop' table
  4023. *
  4024. * @ingroup tripal_chado_v1.11_schema_api
  4025. *
  4026. */
  4027. function tripal_core_chado_schema_v1_11_expressionprop() {
  4028. $description = array (
  4029. 'table' => 'expressionprop',
  4030. 'fields' => array (
  4031. 'expressionprop_id' => array (
  4032. 'type' => 'serial',
  4033. 'not NULL' => '1',
  4034. ),
  4035. 'expression_id' => array (
  4036. 'type' => 'int',
  4037. 'not NULL' => '1',
  4038. ),
  4039. 'type_id' => array (
  4040. 'type' => 'int',
  4041. 'not NULL' => '1',
  4042. ),
  4043. 'value' => array (
  4044. 'type' => 'text',
  4045. 'not NULL' => '',
  4046. ),
  4047. 'rank' => array (
  4048. 'type' => 'int',
  4049. 'not NULL' => '1',
  4050. 'default' => '0',
  4051. ),
  4052. ),
  4053. 'primary key' => array (
  4054. 0 => 'expressionprop_id',
  4055. ),
  4056. 'unique keys' => array (
  4057. 'expressionprop_c1' => array (
  4058. 0 => 'expression_id',
  4059. 1 => 'type_id',
  4060. 2 => 'rank',
  4061. ),
  4062. ),
  4063. 'indexes' => array (
  4064. 'expressionprop_idx1' => array (
  4065. 0 => 'expression_id',
  4066. ),
  4067. 'expressionprop_idx2' => array (
  4068. 0 => 'type_id',
  4069. ),
  4070. ),
  4071. 'foreign keys' => array (
  4072. 'cvterm' => array (
  4073. 'table' => 'cvterm',
  4074. 'columns' => array (
  4075. 'type_id' => 'cvterm_id',
  4076. ),
  4077. ),
  4078. 'expression' => array (
  4079. 'table' => 'expression',
  4080. 'columns' => array (
  4081. 'expression_id' => 'expression_id',
  4082. ),
  4083. ),
  4084. ),
  4085. );
  4086. return $description;
  4087. }
  4088. /**
  4089. * Implements hook_chado_schema_v1_11_feature()
  4090. * Purpose: To describe the structure of 'feature' to tripal
  4091. * @see tripal_core_chado_insert()
  4092. * @see tripal_core_chado_update()
  4093. * @see tripal_core_chado_select()
  4094. *
  4095. * @return
  4096. * An array describing the 'feature' table
  4097. *
  4098. * @ingroup tripal_chado_v1.11_schema_api
  4099. *
  4100. */
  4101. function tripal_core_chado_schema_v1_11_feature() {
  4102. $description = array (
  4103. 'table' => 'feature',
  4104. 'fields' => array (
  4105. 'feature_id' => array (
  4106. 'type' => 'serial',
  4107. 'not NULL' => '1',
  4108. ),
  4109. 'dbxref_id' => array (
  4110. 'type' => 'int',
  4111. 'not NULL' => '',
  4112. ),
  4113. 'organism_id' => array (
  4114. 'type' => 'int',
  4115. 'not NULL' => '1',
  4116. ),
  4117. 'name' => array (
  4118. 'type' => 'varchar',
  4119. 'length' => '255',
  4120. 'not NULL' => '',
  4121. ),
  4122. 'uniquename' => array (
  4123. 'type' => 'text',
  4124. 'not NULL' => '1',
  4125. ),
  4126. 'residues' => array (
  4127. 'type' => 'text',
  4128. 'not NULL' => '',
  4129. ),
  4130. 'seqlen' => array (
  4131. 'type' => 'int',
  4132. 'not NULL' => '',
  4133. ),
  4134. 'md5checksum' => array (
  4135. 'type' => 'char',
  4136. 'length' => '32',
  4137. 'not NULL' => '',
  4138. ),
  4139. 'type_id' => array (
  4140. 'type' => 'int',
  4141. 'not NULL' => '1',
  4142. ),
  4143. 'is_analysis' => array (
  4144. 'type' => 'boolean',
  4145. 'not NULL' => '1',
  4146. 'default' => 'als',
  4147. ),
  4148. 'is_obsolete' => array (
  4149. 'type' => 'boolean',
  4150. 'not NULL' => '1',
  4151. 'default' => 'als',
  4152. ),
  4153. 'timeaccessioned' => array (
  4154. 'type' => 'datetime',
  4155. 'not NULL' => '1',
  4156. 'default' => 'ow(',
  4157. ),
  4158. 'timelastmodified' => array (
  4159. 'type' => 'datetime',
  4160. 'not NULL' => '1',
  4161. 'default' => 'ow(',
  4162. ),
  4163. ),
  4164. 'primary key' => array (
  4165. 0 => 'feature_id',
  4166. ),
  4167. 'unique keys' => array (
  4168. 'feature_c1' => array (
  4169. 0 => 'organism_id',
  4170. 1 => 'uniquename',
  4171. 2 => 'type_id',
  4172. ),
  4173. ),
  4174. 'indexes' => array (
  4175. 'feature_idx1' => array (
  4176. 0 => 'dbxref_id',
  4177. ),
  4178. 'feature_idx2' => array (
  4179. 0 => 'organism_id',
  4180. ),
  4181. 'feature_idx3' => array (
  4182. 0 => 'type_id',
  4183. ),
  4184. 'feature_idx4' => array (
  4185. 0 => 'uniquename',
  4186. ),
  4187. 'feature_name_ind1' => array (
  4188. 0 => 'name',
  4189. ),
  4190. ),
  4191. 'foreign keys' => array (
  4192. 'organism' => array (
  4193. 'table' => 'organism',
  4194. 'columns' => array (
  4195. 'organism_id' => 'organism_id',
  4196. ),
  4197. ),
  4198. 'dbxref' => array (
  4199. 'table' => 'dbxref',
  4200. 'columns' => array (
  4201. 'dbxref_id' => 'dbxref_id',
  4202. ),
  4203. ),
  4204. 'cvterm' => array (
  4205. 'table' => 'cvterm',
  4206. 'columns' => array (
  4207. 'type_id' => 'cvterm_id',
  4208. ),
  4209. ),
  4210. ),
  4211. 'referring_tables' => array (
  4212. 0 => 'analysisfeature',
  4213. 1 => 'element',
  4214. 2 => 'feature_cvterm',
  4215. 3 => 'feature_dbxref',
  4216. 4 => 'feature_expression',
  4217. 5 => 'feature_genotype',
  4218. 6 => 'feature_phenotype',
  4219. 7 => 'feature_pub',
  4220. 8 => 'feature_relationship',
  4221. 9 => 'feature_synonym',
  4222. 10 => 'featureloc',
  4223. 11 => 'featurepos',
  4224. 12 => 'featureprop',
  4225. 13 => 'featurerange',
  4226. 14 => 'library_feature',
  4227. 15 => 'phylonode',
  4228. 16 => 'wwwuser_feature',
  4229. ),
  4230. );
  4231. return $description;
  4232. }
  4233. /**
  4234. * Implements hook_chado_schema_v1_11_feature_cvterm()
  4235. * Purpose: To describe the structure of 'feature_cvterm' to tripal
  4236. * @see tripal_core_chado_insert()
  4237. * @see tripal_core_chado_update()
  4238. * @see tripal_core_chado_select()
  4239. *
  4240. * @return
  4241. * An array describing the 'feature_cvterm' table
  4242. *
  4243. * @ingroup tripal_chado_v1.11_schema_api
  4244. *
  4245. */
  4246. function tripal_core_chado_schema_v1_11_feature_cvterm() {
  4247. $description = array (
  4248. 'table' => 'feature_cvterm',
  4249. 'fields' => array (
  4250. 'feature_cvterm_id' => array (
  4251. 'type' => 'serial',
  4252. 'not NULL' => '1',
  4253. ),
  4254. 'feature_id' => array (
  4255. 'type' => 'int',
  4256. 'not NULL' => '1',
  4257. ),
  4258. 'cvterm_id' => array (
  4259. 'type' => 'int',
  4260. 'not NULL' => '1',
  4261. ),
  4262. 'pub_id' => array (
  4263. 'type' => 'int',
  4264. 'not NULL' => '1',
  4265. ),
  4266. 'is_not' => array (
  4267. 'type' => 'boolean',
  4268. 'not NULL' => '1',
  4269. 'default' => 'als',
  4270. ),
  4271. 'rank' => array (
  4272. 'type' => 'int',
  4273. 'not NULL' => '1',
  4274. 'default' => '0',
  4275. ),
  4276. ),
  4277. 'primary key' => array (
  4278. 0 => 'feature_cvterm_id',
  4279. ),
  4280. 'unique keys' => array (
  4281. 'feature_cvterm_c1' => array (
  4282. 0 => 'feature_id',
  4283. 1 => 'cvterm_id',
  4284. 2 => 'pub_id',
  4285. 3 => 'rank',
  4286. ),
  4287. ),
  4288. 'indexes' => array (
  4289. 'feature_cvterm_idx1' => array (
  4290. 0 => 'feature_id',
  4291. ),
  4292. 'feature_cvterm_idx2' => array (
  4293. 0 => 'cvterm_id',
  4294. ),
  4295. 'feature_cvterm_idx3' => array (
  4296. 0 => 'pub_id',
  4297. ),
  4298. ),
  4299. 'foreign keys' => array (
  4300. 'feature' => array (
  4301. 'table' => 'feature',
  4302. 'columns' => array (
  4303. 'feature_id' => 'feature_id',
  4304. ),
  4305. ),
  4306. 'cvterm' => array (
  4307. 'table' => 'cvterm',
  4308. 'columns' => array (
  4309. 'cvterm_id' => 'cvterm_id',
  4310. ),
  4311. ),
  4312. 'pub' => array (
  4313. 'table' => 'pub',
  4314. 'columns' => array (
  4315. 'pub_id' => 'pub_id',
  4316. ),
  4317. ),
  4318. ),
  4319. );
  4320. return $description;
  4321. }
  4322. /**
  4323. * Implements hook_chado_schema_v1_11_feature_cvterm_dbxref()
  4324. * Purpose: To describe the structure of 'feature_cvterm_dbxref' to tripal
  4325. * @see tripal_core_chado_insert()
  4326. * @see tripal_core_chado_update()
  4327. * @see tripal_core_chado_select()
  4328. *
  4329. * @return
  4330. * An array describing the 'feature_cvterm_dbxref' table
  4331. *
  4332. * @ingroup tripal_chado_v1.11_schema_api
  4333. *
  4334. */
  4335. function tripal_core_chado_schema_v1_11_feature_cvterm_dbxref() {
  4336. $description = array (
  4337. 'table' => 'feature_cvterm_dbxref',
  4338. 'fields' => array (
  4339. 'feature_cvterm_dbxref_id' => array (
  4340. 'type' => 'serial',
  4341. 'not NULL' => '1',
  4342. ),
  4343. 'feature_cvterm_id' => array (
  4344. 'type' => 'int',
  4345. 'not NULL' => '1',
  4346. ),
  4347. 'dbxref_id' => array (
  4348. 'type' => 'int',
  4349. 'not NULL' => '1',
  4350. ),
  4351. ),
  4352. 'primary key' => array (
  4353. 0 => 'feature_cvterm_dbxref_id',
  4354. ),
  4355. 'unique keys' => array (
  4356. 'feature_cvterm_dbxref_c1' => array (
  4357. 0 => 'feature_cvterm_id',
  4358. 1 => 'dbxref_id',
  4359. ),
  4360. ),
  4361. 'indexes' => array (
  4362. 'feature_cvterm_dbxref_idx1' => array (
  4363. 0 => 'feature_cvterm_id',
  4364. ),
  4365. 'feature_cvterm_dbxref_idx2' => array (
  4366. 0 => 'dbxref_id',
  4367. ),
  4368. ),
  4369. 'foreign keys' => array (
  4370. 'feature_cvterm' => array (
  4371. 'table' => 'feature_cvterm',
  4372. 'columns' => array (
  4373. 'feature_cvterm_id' => 'feature_cvterm_id',
  4374. ),
  4375. ),
  4376. 'dbxref' => array (
  4377. 'table' => 'dbxref',
  4378. 'columns' => array (
  4379. 'dbxref_id' => 'dbxref_id',
  4380. ),
  4381. ),
  4382. ),
  4383. );
  4384. return $description;
  4385. }
  4386. /**
  4387. * Implements hook_chado_schema_v1_11_feature_cvterm_pub()
  4388. * Purpose: To describe the structure of 'feature_cvterm_pub' to tripal
  4389. * @see tripal_core_chado_insert()
  4390. * @see tripal_core_chado_update()
  4391. * @see tripal_core_chado_select()
  4392. *
  4393. * @return
  4394. * An array describing the 'feature_cvterm_pub' table
  4395. *
  4396. * @ingroup tripal_chado_v1.11_schema_api
  4397. *
  4398. */
  4399. function tripal_core_chado_schema_v1_11_feature_cvterm_pub() {
  4400. $description = array (
  4401. 'table' => 'feature_cvterm_pub',
  4402. 'fields' => array (
  4403. 'feature_cvterm_pub_id' => array (
  4404. 'type' => 'serial',
  4405. 'not NULL' => '1',
  4406. ),
  4407. 'feature_cvterm_id' => array (
  4408. 'type' => 'int',
  4409. 'not NULL' => '1',
  4410. ),
  4411. 'pub_id' => array (
  4412. 'type' => 'int',
  4413. 'not NULL' => '1',
  4414. ),
  4415. ),
  4416. 'primary key' => array (
  4417. 0 => 'feature_cvterm_pub_id',
  4418. ),
  4419. 'unique keys' => array (
  4420. 'feature_cvterm_pub_c1' => array (
  4421. 0 => 'feature_cvterm_id',
  4422. 1 => 'pub_id',
  4423. ),
  4424. ),
  4425. 'indexes' => array (
  4426. 'feature_cvterm_pub_idx1' => array (
  4427. 0 => 'feature_cvterm_id',
  4428. ),
  4429. 'feature_cvterm_pub_idx2' => array (
  4430. 0 => 'pub_id',
  4431. ),
  4432. ),
  4433. 'foreign keys' => array (
  4434. 'feature_cvterm' => array (
  4435. 'table' => 'feature_cvterm',
  4436. 'columns' => array (
  4437. 'feature_cvterm_id' => 'feature_cvterm_id',
  4438. ),
  4439. ),
  4440. 'pub' => array (
  4441. 'table' => 'pub',
  4442. 'columns' => array (
  4443. 'pub_id' => 'pub_id',
  4444. ),
  4445. ),
  4446. ),
  4447. );
  4448. return $description;
  4449. }
  4450. /**
  4451. * Implements hook_chado_schema_v1_11_feature_cvtermprop()
  4452. * Purpose: To describe the structure of 'feature_cvtermprop' to tripal
  4453. * @see tripal_core_chado_insert()
  4454. * @see tripal_core_chado_update()
  4455. * @see tripal_core_chado_select()
  4456. *
  4457. * @return
  4458. * An array describing the 'feature_cvtermprop' table
  4459. *
  4460. * @ingroup tripal_chado_v1.11_schema_api
  4461. *
  4462. */
  4463. function tripal_core_chado_schema_v1_11_feature_cvtermprop() {
  4464. $description = array (
  4465. 'table' => 'feature_cvtermprop',
  4466. 'fields' => array (
  4467. 'feature_cvtermprop_id' => array (
  4468. 'type' => 'serial',
  4469. 'not NULL' => '1',
  4470. ),
  4471. 'feature_cvterm_id' => array (
  4472. 'type' => 'int',
  4473. 'not NULL' => '1',
  4474. ),
  4475. 'type_id' => array (
  4476. 'type' => 'int',
  4477. 'not NULL' => '1',
  4478. ),
  4479. 'value' => array (
  4480. 'type' => 'text',
  4481. 'not NULL' => '',
  4482. ),
  4483. 'rank' => array (
  4484. 'type' => 'int',
  4485. 'not NULL' => '1',
  4486. 'default' => '0',
  4487. ),
  4488. ),
  4489. 'primary key' => array (
  4490. 0 => 'feature_cvtermprop_id',
  4491. ),
  4492. 'unique keys' => array (
  4493. 'feature_cvtermprop_c1' => array (
  4494. 0 => 'feature_cvterm_id',
  4495. 1 => 'type_id',
  4496. 2 => 'rank',
  4497. ),
  4498. ),
  4499. 'indexes' => array (
  4500. 'feature_cvtermprop_idx1' => array (
  4501. 0 => 'feature_cvterm_id',
  4502. ),
  4503. 'feature_cvtermprop_idx2' => array (
  4504. 0 => 'type_id',
  4505. ),
  4506. ),
  4507. 'foreign keys' => array (
  4508. 'feature_cvterm' => array (
  4509. 'table' => 'feature_cvterm',
  4510. 'columns' => array (
  4511. 'feature_cvterm_id' => 'feature_cvterm_id',
  4512. ),
  4513. ),
  4514. 'cvterm' => array (
  4515. 'table' => 'cvterm',
  4516. 'columns' => array (
  4517. 'type_id' => 'cvterm_id',
  4518. ),
  4519. ),
  4520. ),
  4521. );
  4522. return $description;
  4523. }
  4524. /**
  4525. * Implements hook_chado_schema_v1_11_feature_dbxref()
  4526. * Purpose: To describe the structure of 'feature_dbxref' to tripal
  4527. * @see tripal_core_chado_insert()
  4528. * @see tripal_core_chado_update()
  4529. * @see tripal_core_chado_select()
  4530. *
  4531. * @return
  4532. * An array describing the 'feature_dbxref' table
  4533. *
  4534. * @ingroup tripal_chado_v1.11_schema_api
  4535. *
  4536. */
  4537. function tripal_core_chado_schema_v1_11_feature_dbxref() {
  4538. $description = array (
  4539. 'table' => 'feature_dbxref',
  4540. 'fields' => array (
  4541. 'feature_dbxref_id' => array (
  4542. 'type' => 'serial',
  4543. 'not NULL' => '1',
  4544. ),
  4545. 'feature_id' => array (
  4546. 'type' => 'int',
  4547. 'not NULL' => '1',
  4548. ),
  4549. 'dbxref_id' => array (
  4550. 'type' => 'int',
  4551. 'not NULL' => '1',
  4552. ),
  4553. 'is_current' => array (
  4554. 'type' => 'boolean',
  4555. 'not NULL' => '1',
  4556. 'default' => 'ru',
  4557. ),
  4558. ),
  4559. 'primary key' => array (
  4560. 0 => 'feature_dbxref_id',
  4561. ),
  4562. 'unique keys' => array (
  4563. 'feature_dbxref_c1' => array (
  4564. 0 => 'feature_id',
  4565. 1 => 'dbxref_id',
  4566. ),
  4567. ),
  4568. 'indexes' => array (
  4569. 'feature_dbxref_idx1' => array (
  4570. 0 => 'feature_id',
  4571. ),
  4572. 'feature_dbxref_idx2' => array (
  4573. 0 => 'dbxref_id',
  4574. ),
  4575. ),
  4576. 'foreign keys' => array (
  4577. 'feature' => array (
  4578. 'table' => 'feature',
  4579. 'columns' => array (
  4580. 'feature_id' => 'feature_id',
  4581. ),
  4582. ),
  4583. 'dbxref' => array (
  4584. 'table' => 'dbxref',
  4585. 'columns' => array (
  4586. 'dbxref_id' => 'dbxref_id',
  4587. ),
  4588. ),
  4589. ),
  4590. );
  4591. return $description;
  4592. }
  4593. /**
  4594. * Implements hook_chado_schema_v1_11_feature_expression()
  4595. * Purpose: To describe the structure of 'feature_expression' to tripal
  4596. * @see tripal_core_chado_insert()
  4597. * @see tripal_core_chado_update()
  4598. * @see tripal_core_chado_select()
  4599. *
  4600. * @return
  4601. * An array describing the 'feature_expression' table
  4602. *
  4603. * @ingroup tripal_chado_v1.11_schema_api
  4604. *
  4605. */
  4606. function tripal_core_chado_schema_v1_11_feature_expression() {
  4607. $description = array (
  4608. 'table' => 'feature_expression',
  4609. 'fields' => array (
  4610. 'feature_expression_id' => array (
  4611. 'type' => 'serial',
  4612. 'not NULL' => '1',
  4613. ),
  4614. 'expression_id' => array (
  4615. 'type' => 'int',
  4616. 'not NULL' => '1',
  4617. ),
  4618. 'feature_id' => array (
  4619. 'type' => 'int',
  4620. 'not NULL' => '1',
  4621. ),
  4622. 'pub_id' => array (
  4623. 'type' => 'int',
  4624. 'not NULL' => '1',
  4625. ),
  4626. ),
  4627. 'primary key' => array (
  4628. 0 => 'feature_expression_id',
  4629. ),
  4630. 'unique keys' => array (
  4631. 'feature_expression_c1' => array (
  4632. 0 => 'expression_id',
  4633. 1 => 'feature_id',
  4634. 2 => 'pub_id',
  4635. ),
  4636. ),
  4637. 'indexes' => array (
  4638. 'feature_expression_idx1' => array (
  4639. 0 => 'expression_id',
  4640. ),
  4641. 'feature_expression_idx2' => array (
  4642. 0 => 'feature_id',
  4643. ),
  4644. 'feature_expression_idx3' => array (
  4645. 0 => 'pub_id',
  4646. ),
  4647. ),
  4648. 'foreign keys' => array (
  4649. 'pub' => array (
  4650. 'table' => 'pub',
  4651. 'columns' => array (
  4652. 'pub_id' => 'pub_id',
  4653. ),
  4654. ),
  4655. 'feature' => array (
  4656. 'table' => 'feature',
  4657. 'columns' => array (
  4658. 'feature_id' => 'feature_id',
  4659. ),
  4660. ),
  4661. 'expression' => array (
  4662. 'table' => 'expression',
  4663. 'columns' => array (
  4664. 'expression_id' => 'expression_id',
  4665. ),
  4666. ),
  4667. ),
  4668. );
  4669. return $description;
  4670. }
  4671. /**
  4672. * Implements hook_chado_schema_v1_11_feature_expressionprop()
  4673. * Purpose: To describe the structure of 'feature_expressionprop' to tripal
  4674. * @see tripal_core_chado_insert()
  4675. * @see tripal_core_chado_update()
  4676. * @see tripal_core_chado_select()
  4677. *
  4678. * @return
  4679. * An array describing the 'feature_expressionprop' table
  4680. *
  4681. * @ingroup tripal_chado_v1.11_schema_api
  4682. *
  4683. */
  4684. function tripal_core_chado_schema_v1_11_feature_expressionprop() {
  4685. $description = array (
  4686. 'table' => 'feature_expressionprop',
  4687. 'fields' => array (
  4688. 'feature_expressionprop_id' => array (
  4689. 'type' => 'serial',
  4690. 'not NULL' => '1',
  4691. ),
  4692. 'feature_expression_id' => array (
  4693. 'type' => 'int',
  4694. 'not NULL' => '1',
  4695. ),
  4696. 'type_id' => array (
  4697. 'type' => 'int',
  4698. 'not NULL' => '1',
  4699. ),
  4700. 'value' => array (
  4701. 'type' => 'text',
  4702. 'not NULL' => '',
  4703. ),
  4704. 'rank' => array (
  4705. 'type' => 'int',
  4706. 'not NULL' => '1',
  4707. 'default' => '0',
  4708. ),
  4709. ),
  4710. 'primary key' => array (
  4711. 0 => 'feature_expressionprop_id',
  4712. ),
  4713. 'unique keys' => array (
  4714. 'feature_expressionprop_c1' => array (
  4715. 0 => 'feature_expression_id',
  4716. 1 => 'type_id',
  4717. 2 => 'rank',
  4718. ),
  4719. ),
  4720. 'indexes' => array (
  4721. 'feature_expressionprop_idx1' => array (
  4722. 0 => 'feature_expression_id',
  4723. ),
  4724. 'feature_expressionprop_idx2' => array (
  4725. 0 => 'type_id',
  4726. ),
  4727. ),
  4728. 'foreign keys' => array (
  4729. 'cvterm' => array (
  4730. 'table' => 'cvterm',
  4731. 'columns' => array (
  4732. 'type_id' => 'cvterm_id',
  4733. ),
  4734. ),
  4735. 'feature_expression' => array (
  4736. 'table' => 'feature_expression',
  4737. 'columns' => array (
  4738. 'feature_expression_id' => 'feature_expression_id',
  4739. ),
  4740. ),
  4741. ),
  4742. );
  4743. return $description;
  4744. }
  4745. /**
  4746. * Implements hook_chado_schema_v1_11_feature_genotype()
  4747. * Purpose: To describe the structure of 'feature_genotype' to tripal
  4748. * @see tripal_core_chado_insert()
  4749. * @see tripal_core_chado_update()
  4750. * @see tripal_core_chado_select()
  4751. *
  4752. * @return
  4753. * An array describing the 'feature_genotype' table
  4754. *
  4755. * @ingroup tripal_chado_v1.11_schema_api
  4756. *
  4757. */
  4758. function tripal_core_chado_schema_v1_11_feature_genotype() {
  4759. $description = array (
  4760. 'table' => 'feature_genotype',
  4761. 'fields' => array (
  4762. 'feature_genotype_id' => array (
  4763. 'type' => 'serial',
  4764. 'not NULL' => '1',
  4765. ),
  4766. 'feature_id' => array (
  4767. 'type' => 'int',
  4768. 'not NULL' => '1',
  4769. ),
  4770. 'genotype_id' => array (
  4771. 'type' => 'int',
  4772. 'not NULL' => '1',
  4773. ),
  4774. 'chromosome_id' => array (
  4775. 'type' => 'int',
  4776. 'not NULL' => '',
  4777. ),
  4778. 'rank' => array (
  4779. 'type' => 'int',
  4780. 'not NULL' => '1',
  4781. ),
  4782. 'cgroup' => array (
  4783. 'type' => 'int',
  4784. 'not NULL' => '1',
  4785. ),
  4786. 'cvterm_id' => array (
  4787. 'type' => 'int',
  4788. 'not NULL' => '1',
  4789. ),
  4790. ),
  4791. 'primary key' => array (
  4792. 0 => 'feature_genotype_id',
  4793. ),
  4794. 'unique keys' => array (
  4795. 'feature_genotype_c1' => array (
  4796. 0 => 'feature_id',
  4797. 1 => 'genotype_id',
  4798. 2 => 'cvterm_id',
  4799. 3 => 'chromosome_id',
  4800. 4 => 'rank',
  4801. 5 => 'cgroup',
  4802. ),
  4803. ),
  4804. 'indexes' => array (
  4805. 'feature_genotype_idx1' => array (
  4806. 0 => 'feature_id',
  4807. ),
  4808. 'feature_genotype_idx2' => array (
  4809. 0 => 'genotype_id',
  4810. ),
  4811. ),
  4812. 'foreign keys' => array (
  4813. 'cvterm' => array (
  4814. 'table' => 'cvterm',
  4815. 'columns' => array (
  4816. 'cvterm_id' => 'cvterm_id',
  4817. ),
  4818. ),
  4819. 'feature' => array (
  4820. 'table' => 'feature',
  4821. 'columns' => array (
  4822. 'feature_id' => 'feature_id',
  4823. 'chromosome_id' => 'feature_id',
  4824. ),
  4825. ),
  4826. 'genotype' => array (
  4827. 'table' => 'genotype',
  4828. 'columns' => array (
  4829. 'genotype_id' => 'genotype_id',
  4830. ),
  4831. ),
  4832. ),
  4833. );
  4834. return $description;
  4835. }
  4836. /**
  4837. * Implements hook_chado_schema_v1_11_feature_phenotype()
  4838. * Purpose: To describe the structure of 'feature_phenotype' to tripal
  4839. * @see tripal_core_chado_insert()
  4840. * @see tripal_core_chado_update()
  4841. * @see tripal_core_chado_select()
  4842. *
  4843. * @return
  4844. * An array describing the 'feature_phenotype' table
  4845. *
  4846. * @ingroup tripal_chado_v1.11_schema_api
  4847. *
  4848. */
  4849. function tripal_core_chado_schema_v1_11_feature_phenotype() {
  4850. $description = array (
  4851. 'table' => 'feature_phenotype',
  4852. 'fields' => array (
  4853. 'feature_phenotype_id' => array (
  4854. 'type' => 'serial',
  4855. 'not NULL' => '1',
  4856. ),
  4857. 'feature_id' => array (
  4858. 'type' => 'int',
  4859. 'not NULL' => '1',
  4860. ),
  4861. 'phenotype_id' => array (
  4862. 'type' => 'int',
  4863. 'not NULL' => '1',
  4864. ),
  4865. ),
  4866. 'primary key' => array (
  4867. 0 => 'feature_phenotype_id',
  4868. ),
  4869. 'unique keys' => array (
  4870. 'feature_phenotype_c1' => array (
  4871. 0 => 'feature_id',
  4872. 1 => 'phenotype_id',
  4873. ),
  4874. ),
  4875. 'indexes' => array (
  4876. 'feature_phenotype_idx1' => array (
  4877. 0 => 'feature_id',
  4878. ),
  4879. 'feature_phenotype_idx2' => array (
  4880. 0 => 'phenotype_id',
  4881. ),
  4882. ),
  4883. 'foreign keys' => array (
  4884. 'feature' => array (
  4885. 'table' => 'feature',
  4886. 'columns' => array (
  4887. 'feature_id' => 'feature_id',
  4888. ),
  4889. ),
  4890. 'phenotype' => array (
  4891. 'table' => 'phenotype',
  4892. 'columns' => array (
  4893. 'phenotype_id' => 'phenotype_id',
  4894. ),
  4895. ),
  4896. ),
  4897. );
  4898. return $description;
  4899. }
  4900. /**
  4901. * Implements hook_chado_schema_v1_11_feature_pub()
  4902. * Purpose: To describe the structure of 'feature_pub' to tripal
  4903. * @see tripal_core_chado_insert()
  4904. * @see tripal_core_chado_update()
  4905. * @see tripal_core_chado_select()
  4906. *
  4907. * @return
  4908. * An array describing the 'feature_pub' table
  4909. *
  4910. * @ingroup tripal_chado_v1.11_schema_api
  4911. *
  4912. */
  4913. function tripal_core_chado_schema_v1_11_feature_pub() {
  4914. $description = array (
  4915. 'table' => 'feature_pub',
  4916. 'fields' => array (
  4917. 'feature_pub_id' => array (
  4918. 'type' => 'serial',
  4919. 'not NULL' => '1',
  4920. ),
  4921. 'feature_id' => array (
  4922. 'type' => 'int',
  4923. 'not NULL' => '1',
  4924. ),
  4925. 'pub_id' => array (
  4926. 'type' => 'int',
  4927. 'not NULL' => '1',
  4928. ),
  4929. ),
  4930. 'primary key' => array (
  4931. 0 => 'feature_pub_id',
  4932. ),
  4933. 'unique keys' => array (
  4934. 'feature_pub_c1' => array (
  4935. 0 => 'feature_id',
  4936. 1 => 'pub_id',
  4937. ),
  4938. ),
  4939. 'indexes' => array (
  4940. 'feature_pub_idx1' => array (
  4941. 0 => 'feature_id',
  4942. ),
  4943. 'feature_pub_idx2' => array (
  4944. 0 => 'pub_id',
  4945. ),
  4946. ),
  4947. 'foreign keys' => array (
  4948. 'pub' => array (
  4949. 'table' => 'pub',
  4950. 'columns' => array (
  4951. 'pub_id' => 'pub_id',
  4952. ),
  4953. ),
  4954. 'feature' => array (
  4955. 'table' => 'feature',
  4956. 'columns' => array (
  4957. 'feature_id' => 'feature_id',
  4958. ),
  4959. ),
  4960. ),
  4961. );
  4962. return $description;
  4963. }
  4964. /**
  4965. * Implements hook_chado_schema_v1_11_feature_pubprop()
  4966. * Purpose: To describe the structure of 'feature_pubprop' to tripal
  4967. * @see tripal_core_chado_insert()
  4968. * @see tripal_core_chado_update()
  4969. * @see tripal_core_chado_select()
  4970. *
  4971. * @return
  4972. * An array describing the 'feature_pubprop' table
  4973. *
  4974. * @ingroup tripal_chado_v1.11_schema_api
  4975. *
  4976. */
  4977. function tripal_core_chado_schema_v1_11_feature_pubprop() {
  4978. $description = array (
  4979. 'table' => 'feature_pubprop',
  4980. 'fields' => array (
  4981. 'feature_pubprop_id' => array (
  4982. 'type' => 'serial',
  4983. 'not NULL' => '1',
  4984. ),
  4985. 'feature_pub_id' => array (
  4986. 'type' => 'int',
  4987. 'not NULL' => '1',
  4988. ),
  4989. 'type_id' => array (
  4990. 'type' => 'int',
  4991. 'not NULL' => '1',
  4992. ),
  4993. 'value' => array (
  4994. 'type' => 'text',
  4995. 'not NULL' => '',
  4996. ),
  4997. 'rank' => array (
  4998. 'type' => 'int',
  4999. 'not NULL' => '1',
  5000. 'default' => '0',
  5001. ),
  5002. ),
  5003. 'primary key' => array (
  5004. 0 => 'feature_pubprop_id',
  5005. ),
  5006. 'unique keys' => array (
  5007. 'feature_pubprop_c1' => array (
  5008. 0 => 'feature_pub_id',
  5009. 1 => 'type_id',
  5010. 2 => 'rank',
  5011. ),
  5012. ),
  5013. 'indexes' => array (
  5014. 'feature_pubprop_idx1' => array (
  5015. 0 => 'feature_pub_id',
  5016. ),
  5017. ),
  5018. 'foreign keys' => array (
  5019. 'cvterm' => array (
  5020. 'table' => 'cvterm',
  5021. 'columns' => array (
  5022. 'type_id' => 'cvterm_id',
  5023. ),
  5024. ),
  5025. 'feature_pub' => array (
  5026. 'table' => 'feature_pub',
  5027. 'columns' => array (
  5028. 'feature_pub_id' => 'feature_pub_id',
  5029. ),
  5030. ),
  5031. ),
  5032. );
  5033. return $description;
  5034. }
  5035. /**
  5036. * Implements hook_chado_schema_v1_11_feature_relationship()
  5037. * Purpose: To describe the structure of 'feature_relationship' to tripal
  5038. * @see tripal_core_chado_insert()
  5039. * @see tripal_core_chado_update()
  5040. * @see tripal_core_chado_select()
  5041. *
  5042. * @return
  5043. * An array describing the 'feature_relationship' table
  5044. *
  5045. * @ingroup tripal_chado_v1.11_schema_api
  5046. *
  5047. */
  5048. function tripal_core_chado_schema_v1_11_feature_relationship() {
  5049. $description = array (
  5050. 'table' => 'feature_relationship',
  5051. 'fields' => array (
  5052. 'feature_relationship_id' => array (
  5053. 'type' => 'serial',
  5054. 'not NULL' => '1',
  5055. ),
  5056. 'subject_id' => array (
  5057. 'type' => 'int',
  5058. 'not NULL' => '1',
  5059. ),
  5060. 'object_id' => array (
  5061. 'type' => 'int',
  5062. 'not NULL' => '1',
  5063. ),
  5064. 'type_id' => array (
  5065. 'type' => 'int',
  5066. 'not NULL' => '1',
  5067. ),
  5068. 'value' => array (
  5069. 'type' => 'text',
  5070. 'not NULL' => '',
  5071. ),
  5072. 'rank' => array (
  5073. 'type' => 'int',
  5074. 'not NULL' => '1',
  5075. 'default' => '0',
  5076. ),
  5077. ),
  5078. 'primary key' => array (
  5079. 0 => 'feature_relationship_id',
  5080. ),
  5081. 'unique keys' => array (
  5082. 'feature_relationship_c1' => array (
  5083. 0 => 'subject_id',
  5084. 1 => 'object_id',
  5085. 2 => 'type_id',
  5086. 3 => 'rank',
  5087. ),
  5088. ),
  5089. 'indexes' => array (
  5090. 'feature_relationship_idx1' => array (
  5091. 0 => 'subject_id',
  5092. ),
  5093. 'feature_relationship_idx2' => array (
  5094. 0 => 'object_id',
  5095. ),
  5096. 'feature_relationship_idx3' => array (
  5097. 0 => 'type_id',
  5098. ),
  5099. ),
  5100. 'foreign keys' => array (
  5101. 'feature' => array (
  5102. 'table' => 'feature',
  5103. 'columns' => array (
  5104. 'object_id' => 'feature_id',
  5105. 'subject_id' => 'feature_id',
  5106. ),
  5107. ),
  5108. 'cvterm' => array (
  5109. 'table' => 'cvterm',
  5110. 'columns' => array (
  5111. 'type_id' => 'cvterm_id',
  5112. ),
  5113. ),
  5114. ),
  5115. );
  5116. return $description;
  5117. }
  5118. /**
  5119. * Implements hook_chado_schema_v1_11_feature_relationship_pub()
  5120. * Purpose: To describe the structure of 'feature_relationship_pub' to tripal
  5121. * @see tripal_core_chado_insert()
  5122. * @see tripal_core_chado_update()
  5123. * @see tripal_core_chado_select()
  5124. *
  5125. * @return
  5126. * An array describing the 'feature_relationship_pub' table
  5127. *
  5128. * @ingroup tripal_chado_v1.11_schema_api
  5129. *
  5130. */
  5131. function tripal_core_chado_schema_v1_11_feature_relationship_pub() {
  5132. $description = array (
  5133. 'table' => 'feature_relationship_pub',
  5134. 'fields' => array (
  5135. 'feature_relationship_pub_id' => array (
  5136. 'type' => 'serial',
  5137. 'not NULL' => '1',
  5138. ),
  5139. 'feature_relationship_id' => array (
  5140. 'type' => 'int',
  5141. 'not NULL' => '1',
  5142. ),
  5143. 'pub_id' => array (
  5144. 'type' => 'int',
  5145. 'not NULL' => '1',
  5146. ),
  5147. ),
  5148. 'primary key' => array (
  5149. 0 => 'feature_relationship_pub_id',
  5150. ),
  5151. 'unique keys' => array (
  5152. 'feature_relationship_pub_c1' => array (
  5153. 0 => 'feature_relationship_id',
  5154. 1 => 'pub_id',
  5155. ),
  5156. ),
  5157. 'indexes' => array (
  5158. 'feature_relationship_pub_idx1' => array (
  5159. 0 => 'feature_relationship_id',
  5160. ),
  5161. 'feature_relationship_pub_idx2' => array (
  5162. 0 => 'pub_id',
  5163. ),
  5164. ),
  5165. 'foreign keys' => array (
  5166. 'pub' => array (
  5167. 'table' => 'pub',
  5168. 'columns' => array (
  5169. 'pub_id' => 'pub_id',
  5170. ),
  5171. ),
  5172. 'feature_relationship' => array (
  5173. 'table' => 'feature_relationship',
  5174. 'columns' => array (
  5175. 'feature_relationship_id' => 'feature_relationship_id',
  5176. ),
  5177. ),
  5178. ),
  5179. );
  5180. return $description;
  5181. }
  5182. /**
  5183. * Implements hook_chado_schema_v1_11_feature_relationshipprop()
  5184. * Purpose: To describe the structure of 'feature_relationshipprop' to tripal
  5185. * @see tripal_core_chado_insert()
  5186. * @see tripal_core_chado_update()
  5187. * @see tripal_core_chado_select()
  5188. *
  5189. * @return
  5190. * An array describing the 'feature_relationshipprop' table
  5191. *
  5192. * @ingroup tripal_chado_v1.11_schema_api
  5193. *
  5194. */
  5195. function tripal_core_chado_schema_v1_11_feature_relationshipprop() {
  5196. $description = array (
  5197. 'table' => 'feature_relationshipprop',
  5198. 'fields' => array (
  5199. 'feature_relationshipprop_id' => array (
  5200. 'type' => 'serial',
  5201. 'not NULL' => '1',
  5202. ),
  5203. 'feature_relationship_id' => array (
  5204. 'type' => 'int',
  5205. 'not NULL' => '1',
  5206. ),
  5207. 'type_id' => array (
  5208. 'type' => 'int',
  5209. 'not NULL' => '1',
  5210. ),
  5211. 'value' => array (
  5212. 'type' => 'text',
  5213. 'not NULL' => '',
  5214. ),
  5215. 'rank' => array (
  5216. 'type' => 'int',
  5217. 'not NULL' => '1',
  5218. 'default' => '0',
  5219. ),
  5220. ),
  5221. 'primary key' => array (
  5222. 0 => 'feature_relationshipprop_id',
  5223. ),
  5224. 'unique keys' => array (
  5225. 'feature_relationshipprop_c1' => array (
  5226. 0 => 'feature_relationship_id',
  5227. 1 => 'type_id',
  5228. 2 => 'rank',
  5229. ),
  5230. ),
  5231. 'indexes' => array (
  5232. 'feature_relationshipprop_idx1' => array (
  5233. 0 => 'feature_relationship_id',
  5234. ),
  5235. 'feature_relationshipprop_idx2' => array (
  5236. 0 => 'type_id',
  5237. ),
  5238. ),
  5239. 'foreign keys' => array (
  5240. 'cvterm' => array (
  5241. 'table' => 'cvterm',
  5242. 'columns' => array (
  5243. 'type_id' => 'cvterm_id',
  5244. ),
  5245. ),
  5246. 'feature_relationship' => array (
  5247. 'table' => 'feature_relationship',
  5248. 'columns' => array (
  5249. 'feature_relationship_id' => 'feature_relationship_id',
  5250. ),
  5251. ),
  5252. ),
  5253. );
  5254. return $description;
  5255. }
  5256. /**
  5257. * Implements hook_chado_schema_v1_11_feature_relationshipprop_pub()
  5258. * Purpose: To describe the structure of 'feature_relationshipprop_pub' to tripal
  5259. * @see tripal_core_chado_insert()
  5260. * @see tripal_core_chado_update()
  5261. * @see tripal_core_chado_select()
  5262. *
  5263. * @return
  5264. * An array describing the 'feature_relationshipprop_pub' table
  5265. *
  5266. * @ingroup tripal_chado_v1.11_schema_api
  5267. *
  5268. */
  5269. function tripal_core_chado_schema_v1_11_feature_relationshipprop_pub() {
  5270. $description = array (
  5271. 'table' => 'feature_relationshipprop_pub',
  5272. 'fields' => array (
  5273. 'feature_relationshipprop_pub_id' => array (
  5274. 'type' => 'serial',
  5275. 'not NULL' => '1',
  5276. ),
  5277. 'feature_relationshipprop_id' => array (
  5278. 'type' => 'int',
  5279. 'not NULL' => '1',
  5280. ),
  5281. 'pub_id' => array (
  5282. 'type' => 'int',
  5283. 'not NULL' => '1',
  5284. ),
  5285. ),
  5286. 'primary key' => array (
  5287. 0 => 'feature_relationshipprop_pub_id',
  5288. ),
  5289. 'unique keys' => array (
  5290. 'feature_relationshipprop_pub_c1' => array (
  5291. 0 => 'feature_relationshipprop_id',
  5292. 1 => 'pub_id',
  5293. ),
  5294. ),
  5295. 'indexes' => array (
  5296. 'feature_relationshipprop_pub_idx1' => array (
  5297. 0 => 'feature_relationshipprop_id',
  5298. ),
  5299. 'feature_relationshipprop_pub_idx2' => array (
  5300. 0 => 'pub_id',
  5301. ),
  5302. ),
  5303. 'foreign keys' => array (
  5304. 'feature_relationshipprop' => array (
  5305. 'table' => 'feature_relationshipprop',
  5306. 'columns' => array (
  5307. 'feature_relationshipprop_id' => 'feature_relationshipprop_id',
  5308. ),
  5309. ),
  5310. 'pub' => array (
  5311. 'table' => 'pub',
  5312. 'columns' => array (
  5313. 'pub_id' => 'pub_id',
  5314. ),
  5315. ),
  5316. ),
  5317. );
  5318. return $description;
  5319. }
  5320. /**
  5321. * Implements hook_chado_schema_v1_11_feature_synonym()
  5322. * Purpose: To describe the structure of 'feature_synonym' to tripal
  5323. * @see tripal_core_chado_insert()
  5324. * @see tripal_core_chado_update()
  5325. * @see tripal_core_chado_select()
  5326. *
  5327. * @return
  5328. * An array describing the 'feature_synonym' table
  5329. *
  5330. * @ingroup tripal_chado_v1.11_schema_api
  5331. *
  5332. */
  5333. function tripal_core_chado_schema_v1_11_feature_synonym() {
  5334. $description = array (
  5335. 'table' => 'feature_synonym',
  5336. 'fields' => array (
  5337. 'feature_synonym_id' => array (
  5338. 'type' => 'serial',
  5339. 'not NULL' => '1',
  5340. ),
  5341. 'synonym_id' => array (
  5342. 'type' => 'int',
  5343. 'not NULL' => '1',
  5344. ),
  5345. 'feature_id' => array (
  5346. 'type' => 'int',
  5347. 'not NULL' => '1',
  5348. ),
  5349. 'pub_id' => array (
  5350. 'type' => 'int',
  5351. 'not NULL' => '1',
  5352. ),
  5353. 'is_current' => array (
  5354. 'type' => 'boolean',
  5355. 'not NULL' => '1',
  5356. 'default' => 'als',
  5357. ),
  5358. 'is_internal' => array (
  5359. 'type' => 'boolean',
  5360. 'not NULL' => '1',
  5361. 'default' => 'als',
  5362. ),
  5363. ),
  5364. 'primary key' => array (
  5365. 0 => 'feature_synonym_id',
  5366. ),
  5367. 'unique keys' => array (
  5368. 'feature_synonym_c1' => array (
  5369. 0 => 'synonym_id',
  5370. 1 => 'feature_id',
  5371. 2 => 'pub_id',
  5372. ),
  5373. ),
  5374. 'indexes' => array (
  5375. 'feature_synonym_idx1' => array (
  5376. 0 => 'synonym_id',
  5377. ),
  5378. 'feature_synonym_idx2' => array (
  5379. 0 => 'feature_id',
  5380. ),
  5381. 'feature_synonym_idx3' => array (
  5382. 0 => 'pub_id',
  5383. ),
  5384. ),
  5385. 'foreign keys' => array (
  5386. 'feature' => array (
  5387. 'table' => 'feature',
  5388. 'columns' => array (
  5389. 'feature_id' => 'feature_id',
  5390. ),
  5391. ),
  5392. 'synonym' => array (
  5393. 'table' => 'synonym',
  5394. 'columns' => array (
  5395. 'synonym_id' => 'synonym_id',
  5396. ),
  5397. ),
  5398. 'pub' => array (
  5399. 'table' => 'pub',
  5400. 'columns' => array (
  5401. 'pub_id' => 'pub_id',
  5402. ),
  5403. ),
  5404. ),
  5405. );
  5406. return $description;
  5407. }
  5408. /**
  5409. * Implements hook_chado_schema_v1_11_featureloc()
  5410. * Purpose: To describe the structure of 'featureloc' to tripal
  5411. * @see tripal_core_chado_insert()
  5412. * @see tripal_core_chado_update()
  5413. * @see tripal_core_chado_select()
  5414. *
  5415. * @return
  5416. * An array describing the 'featureloc' table
  5417. *
  5418. * @ingroup tripal_chado_v1.11_schema_api
  5419. *
  5420. */
  5421. function tripal_core_chado_schema_v1_11_featureloc() {
  5422. $description = array (
  5423. 'table' => 'featureloc',
  5424. 'fields' => array (
  5425. 'featureloc_id' => array (
  5426. 'type' => 'serial',
  5427. 'not NULL' => '1',
  5428. ),
  5429. 'feature_id' => array (
  5430. 'type' => 'int',
  5431. 'not NULL' => '1',
  5432. ),
  5433. 'srcfeature_id' => array (
  5434. 'type' => 'int',
  5435. 'not NULL' => '',
  5436. ),
  5437. 'fmin' => array (
  5438. 'type' => 'int',
  5439. 'not NULL' => '',
  5440. ),
  5441. 'is_fmin_partial' => array (
  5442. 'type' => 'boolean',
  5443. 'not NULL' => '1',
  5444. 'default' => 'als',
  5445. ),
  5446. 'fmax' => array (
  5447. 'type' => 'int',
  5448. 'not NULL' => '',
  5449. ),
  5450. 'is_fmax_partial' => array (
  5451. 'type' => 'boolean',
  5452. 'not NULL' => '1',
  5453. 'default' => 'als',
  5454. ),
  5455. 'strand' => array (
  5456. 'type' => 'int',
  5457. 'size' => 'small',
  5458. 'not NULL' => '',
  5459. ),
  5460. 'phase' => array (
  5461. 'type' => 'int',
  5462. 'not NULL' => '',
  5463. ),
  5464. 'residue_info' => array (
  5465. 'type' => 'text',
  5466. 'not NULL' => '',
  5467. ),
  5468. 'locgroup' => array (
  5469. 'type' => 'int',
  5470. 'not NULL' => '1',
  5471. 'default' => '0',
  5472. ),
  5473. 'rank' => array (
  5474. 'type' => 'int',
  5475. 'not NULL' => '1',
  5476. 'default' => '0',
  5477. ),
  5478. ),
  5479. 'primary key' => array (
  5480. 0 => 'featureloc_id',
  5481. ),
  5482. 'unique keys' => array (
  5483. 'featureloc_c1' => array (
  5484. 0 => 'feature_id',
  5485. 1 => 'locgroup',
  5486. 2 => 'rank',
  5487. ),
  5488. ),
  5489. 'indexes' => array (
  5490. 'binloc_boxrange' => array (
  5491. 0 => 'fmin',
  5492. ),
  5493. 'binloc_boxrange_src' => array (
  5494. 0 => 'srcfeature_id',
  5495. 1 => 'fmin',
  5496. ),
  5497. 'featureloc_idx1' => array (
  5498. 0 => 'feature_id',
  5499. ),
  5500. 'featureloc_idx2' => array (
  5501. 0 => 'srcfeature_id',
  5502. ),
  5503. 'featureloc_idx3' => array (
  5504. 0 => 'srcfeature_id',
  5505. 1 => 'fmin',
  5506. 2 => 'fmax',
  5507. ),
  5508. ),
  5509. 'foreign keys' => array (
  5510. 'feature' => array (
  5511. 'table' => 'feature',
  5512. 'columns' => array (
  5513. 'feature_id' => 'feature_id',
  5514. 'srcfeature_id' => 'feature_id',
  5515. ),
  5516. ),
  5517. ),
  5518. 'referring_tables' => array (
  5519. 0 => 'analysisfeature',
  5520. 1 => 'featureloc_pub',
  5521. ),
  5522. );
  5523. return $description;
  5524. }
  5525. /**
  5526. * Implements hook_chado_schema_v1_11_featureloc_pub()
  5527. * Purpose: To describe the structure of 'featureloc_pub' to tripal
  5528. * @see tripal_core_chado_insert()
  5529. * @see tripal_core_chado_update()
  5530. * @see tripal_core_chado_select()
  5531. *
  5532. * @return
  5533. * An array describing the 'featureloc_pub' table
  5534. *
  5535. * @ingroup tripal_chado_v1.11_schema_api
  5536. *
  5537. */
  5538. function tripal_core_chado_schema_v1_11_featureloc_pub() {
  5539. $description = array (
  5540. 'table' => 'featureloc_pub',
  5541. 'fields' => array (
  5542. 'featureloc_pub_id' => array (
  5543. 'type' => 'serial',
  5544. 'not NULL' => '1',
  5545. ),
  5546. 'featureloc_id' => array (
  5547. 'type' => 'int',
  5548. 'not NULL' => '1',
  5549. ),
  5550. 'pub_id' => array (
  5551. 'type' => 'int',
  5552. 'not NULL' => '1',
  5553. ),
  5554. ),
  5555. 'primary key' => array (
  5556. 0 => 'featureloc_pub_id',
  5557. ),
  5558. 'unique keys' => array (
  5559. 'featureloc_pub_c1' => array (
  5560. 0 => 'featureloc_id',
  5561. 1 => 'pub_id',
  5562. ),
  5563. ),
  5564. 'indexes' => array (
  5565. 'featureloc_pub_idx1' => array (
  5566. 0 => 'featureloc_id',
  5567. ),
  5568. 'featureloc_pub_idx2' => array (
  5569. 0 => 'pub_id',
  5570. ),
  5571. ),
  5572. 'foreign keys' => array (
  5573. 'pub' => array (
  5574. 'table' => 'pub',
  5575. 'columns' => array (
  5576. 'pub_id' => 'pub_id',
  5577. ),
  5578. ),
  5579. 'featureloc' => array (
  5580. 'table' => 'featureloc',
  5581. 'columns' => array (
  5582. 'featureloc_id' => 'featureloc_id',
  5583. ),
  5584. ),
  5585. ),
  5586. );
  5587. return $description;
  5588. }
  5589. /**
  5590. * Implements hook_chado_schema_v1_11_featuremap()
  5591. * Purpose: To describe the structure of 'featuremap' to tripal
  5592. * @see tripal_core_chado_insert()
  5593. * @see tripal_core_chado_update()
  5594. * @see tripal_core_chado_select()
  5595. *
  5596. * @return
  5597. * An array describing the 'featuremap' table
  5598. *
  5599. * @ingroup tripal_chado_v1.11_schema_api
  5600. *
  5601. */
  5602. function tripal_core_chado_schema_v1_11_featuremap() {
  5603. $description = array (
  5604. 'table' => 'featuremap',
  5605. 'fields' => array (
  5606. 'featuremap_id' => array (
  5607. 'type' => 'serial',
  5608. 'not NULL' => '1',
  5609. ),
  5610. 'name' => array (
  5611. 'type' => 'varchar',
  5612. 'length' => '255',
  5613. 'not NULL' => '',
  5614. ),
  5615. 'description' => array (
  5616. 'type' => 'text',
  5617. 'not NULL' => '',
  5618. ),
  5619. 'unittype_id' => array (
  5620. 'type' => 'int',
  5621. 'not NULL' => '',
  5622. ),
  5623. ),
  5624. 'primary key' => array (
  5625. 0 => 'featuremap_id',
  5626. ),
  5627. 'unique keys' => array (
  5628. 'featuremap_c1' => array (
  5629. 0 => 'name',
  5630. ),
  5631. ),
  5632. 'indexes' => array (
  5633. ),
  5634. 'foreign keys' => array (
  5635. 'cvterm' => array (
  5636. 'table' => 'cvterm',
  5637. 'columns' => array (
  5638. 'unittype_id' => 'cvterm_id',
  5639. ),
  5640. ),
  5641. ),
  5642. );
  5643. return $description;
  5644. }
  5645. /**
  5646. * Implements hook_chado_schema_v1_11_featuremap_pub()
  5647. * Purpose: To describe the structure of 'featuremap_pub' to tripal
  5648. * @see tripal_core_chado_insert()
  5649. * @see tripal_core_chado_update()
  5650. * @see tripal_core_chado_select()
  5651. *
  5652. * @return
  5653. * An array describing the 'featuremap_pub' table
  5654. *
  5655. * @ingroup tripal_chado_v1.11_schema_api
  5656. *
  5657. */
  5658. function tripal_core_chado_schema_v1_11_featuremap_pub() {
  5659. $description = array (
  5660. 'table' => 'featuremap_pub',
  5661. 'fields' => array (
  5662. 'featuremap_pub_id' => array (
  5663. 'type' => 'serial',
  5664. 'not NULL' => '1',
  5665. ),
  5666. 'featuremap_id' => array (
  5667. 'type' => 'int',
  5668. 'not NULL' => '1',
  5669. ),
  5670. 'pub_id' => array (
  5671. 'type' => 'int',
  5672. 'not NULL' => '1',
  5673. ),
  5674. ),
  5675. 'primary key' => array (
  5676. 0 => 'featuremap_pub_id',
  5677. ),
  5678. 'unique keys' => array (
  5679. ),
  5680. 'indexes' => array (
  5681. 'featuremap_pub_idx1' => array (
  5682. 0 => 'featuremap_id',
  5683. ),
  5684. 'featuremap_pub_idx2' => array (
  5685. 0 => 'pub_id',
  5686. ),
  5687. ),
  5688. 'foreign keys' => array (
  5689. 'pub' => array (
  5690. 'table' => 'pub',
  5691. 'columns' => array (
  5692. 'pub_id' => 'pub_id',
  5693. ),
  5694. ),
  5695. 'featuremap' => array (
  5696. 'table' => 'featuremap',
  5697. 'columns' => array (
  5698. 'featuremap_id' => 'featuremap_id',
  5699. ),
  5700. ),
  5701. ),
  5702. );
  5703. return $description;
  5704. }
  5705. /**
  5706. * Implements hook_chado_schema_v1_11_featurepos()
  5707. * Purpose: To describe the structure of 'featurepos' to tripal
  5708. * @see tripal_core_chado_insert()
  5709. * @see tripal_core_chado_update()
  5710. * @see tripal_core_chado_select()
  5711. *
  5712. * @return
  5713. * An array describing the 'featurepos' table
  5714. *
  5715. * @ingroup tripal_chado_v1.11_schema_api
  5716. *
  5717. */
  5718. function tripal_core_chado_schema_v1_11_featurepos() {
  5719. $description = array (
  5720. 'table' => 'featurepos',
  5721. 'fields' => array (
  5722. 'featurepos_id' => array (
  5723. 'type' => 'serial',
  5724. 'not NULL' => '1',
  5725. ),
  5726. 'featuremap_id' => array (
  5727. 'type' => 'serial',
  5728. 'not NULL' => '1',
  5729. ),
  5730. 'feature_id' => array (
  5731. 'type' => 'int',
  5732. 'not NULL' => '1',
  5733. ),
  5734. 'map_feature_id' => array (
  5735. 'type' => 'int',
  5736. 'not NULL' => '1',
  5737. ),
  5738. 'mappos' => array (
  5739. 'type' => 'float',
  5740. 'size' => 'big',
  5741. 'not NULL' => '1',
  5742. ),
  5743. ),
  5744. 'primary key' => array (
  5745. 0 => 'featurepos_id',
  5746. ),
  5747. 'unique keys' => array (
  5748. ),
  5749. 'indexes' => array (
  5750. 'featurepos_idx1' => array (
  5751. 0 => 'featuremap_id',
  5752. ),
  5753. 'featurepos_idx2' => array (
  5754. 0 => 'feature_id',
  5755. ),
  5756. 'featurepos_idx3' => array (
  5757. 0 => 'map_feature_id',
  5758. ),
  5759. ),
  5760. 'foreign keys' => array (
  5761. 'feature' => array (
  5762. 'table' => 'feature',
  5763. 'columns' => array (
  5764. 'feature_id' => 'feature_id',
  5765. 'map_feature_id' => 'feature_id',
  5766. ),
  5767. ),
  5768. 'featuremap' => array (
  5769. 'table' => 'featuremap',
  5770. 'columns' => array (
  5771. 'featuremap_id' => 'featuremap_id',
  5772. ),
  5773. ),
  5774. ),
  5775. );
  5776. return $description;
  5777. }
  5778. /**
  5779. * Implements hook_chado_schema_v1_11_featureprop()
  5780. * Purpose: To describe the structure of 'featureprop' to tripal
  5781. * @see tripal_core_chado_insert()
  5782. * @see tripal_core_chado_update()
  5783. * @see tripal_core_chado_select()
  5784. *
  5785. * @return
  5786. * An array describing the 'featureprop' table
  5787. *
  5788. * @ingroup tripal_chado_v1.11_schema_api
  5789. *
  5790. */
  5791. function tripal_core_chado_schema_v1_11_featureprop() {
  5792. $description = array (
  5793. 'table' => 'featureprop',
  5794. 'fields' => array (
  5795. 'featureprop_id' => array (
  5796. 'type' => 'serial',
  5797. 'not NULL' => '1',
  5798. ),
  5799. 'feature_id' => array (
  5800. 'type' => 'int',
  5801. 'not NULL' => '1',
  5802. ),
  5803. 'type_id' => array (
  5804. 'type' => 'int',
  5805. 'not NULL' => '1',
  5806. ),
  5807. 'value' => array (
  5808. 'type' => 'text',
  5809. 'not NULL' => '',
  5810. ),
  5811. 'rank' => array (
  5812. 'type' => 'int',
  5813. 'not NULL' => '1',
  5814. 'default' => '0',
  5815. ),
  5816. ),
  5817. 'primary key' => array (
  5818. 0 => 'featureprop_id',
  5819. ),
  5820. 'unique keys' => array (
  5821. 'featureprop_c1' => array (
  5822. 0 => 'feature_id',
  5823. 1 => 'type_id',
  5824. 2 => 'rank',
  5825. ),
  5826. ),
  5827. 'indexes' => array (
  5828. 'featureprop_idx1' => array (
  5829. 0 => 'feature_id',
  5830. ),
  5831. 'featureprop_idx2' => array (
  5832. 0 => 'type_id',
  5833. ),
  5834. ),
  5835. 'foreign keys' => array (
  5836. 'feature' => array (
  5837. 'table' => 'feature',
  5838. 'columns' => array (
  5839. 'feature_id' => 'feature_id',
  5840. ),
  5841. ),
  5842. 'cvterm' => array (
  5843. 'table' => 'cvterm',
  5844. 'columns' => array (
  5845. 'type_id' => 'cvterm_id',
  5846. ),
  5847. ),
  5848. ),
  5849. 'referring_tables' => array (
  5850. 0 => 'analysisfeature',
  5851. 1 => 'featureprop_pub',
  5852. ),
  5853. );
  5854. return $description;
  5855. }
  5856. /**
  5857. * Implements hook_chado_schema_v1_11_featureprop_pub()
  5858. * Purpose: To describe the structure of 'featureprop_pub' to tripal
  5859. * @see tripal_core_chado_insert()
  5860. * @see tripal_core_chado_update()
  5861. * @see tripal_core_chado_select()
  5862. *
  5863. * @return
  5864. * An array describing the 'featureprop_pub' table
  5865. *
  5866. * @ingroup tripal_chado_v1.11_schema_api
  5867. *
  5868. */
  5869. function tripal_core_chado_schema_v1_11_featureprop_pub() {
  5870. $description = array (
  5871. 'table' => 'featureprop_pub',
  5872. 'fields' => array (
  5873. 'featureprop_pub_id' => array (
  5874. 'type' => 'serial',
  5875. 'not NULL' => '1',
  5876. ),
  5877. 'featureprop_id' => array (
  5878. 'type' => 'int',
  5879. 'not NULL' => '1',
  5880. ),
  5881. 'pub_id' => array (
  5882. 'type' => 'int',
  5883. 'not NULL' => '1',
  5884. ),
  5885. ),
  5886. 'primary key' => array (
  5887. 0 => 'featureprop_pub_id',
  5888. ),
  5889. 'unique keys' => array (
  5890. 'featureprop_pub_c1' => array (
  5891. 0 => 'featureprop_id',
  5892. 1 => 'pub_id',
  5893. ),
  5894. ),
  5895. 'indexes' => array (
  5896. 'featureprop_pub_idx1' => array (
  5897. 0 => 'featureprop_id',
  5898. ),
  5899. 'featureprop_pub_idx2' => array (
  5900. 0 => 'pub_id',
  5901. ),
  5902. ),
  5903. 'foreign keys' => array (
  5904. 'pub' => array (
  5905. 'table' => 'pub',
  5906. 'columns' => array (
  5907. 'pub_id' => 'pub_id',
  5908. ),
  5909. ),
  5910. 'featureprop' => array (
  5911. 'table' => 'featureprop',
  5912. 'columns' => array (
  5913. 'featureprop_id' => 'featureprop_id',
  5914. ),
  5915. ),
  5916. ),
  5917. );
  5918. return $description;
  5919. }
  5920. /**
  5921. * Implements hook_chado_schema_v1_11_featurerange()
  5922. * Purpose: To describe the structure of 'featurerange' to tripal
  5923. * @see tripal_core_chado_insert()
  5924. * @see tripal_core_chado_update()
  5925. * @see tripal_core_chado_select()
  5926. *
  5927. * @return
  5928. * An array describing the 'featurerange' table
  5929. *
  5930. * @ingroup tripal_chado_v1.11_schema_api
  5931. *
  5932. */
  5933. function tripal_core_chado_schema_v1_11_featurerange() {
  5934. $description = array (
  5935. 'table' => 'featurerange',
  5936. 'fields' => array (
  5937. 'featurerange_id' => array (
  5938. 'type' => 'serial',
  5939. 'not NULL' => '1',
  5940. ),
  5941. 'featuremap_id' => array (
  5942. 'type' => 'int',
  5943. 'not NULL' => '1',
  5944. ),
  5945. 'feature_id' => array (
  5946. 'type' => 'int',
  5947. 'not NULL' => '1',
  5948. ),
  5949. 'leftstartf_id' => array (
  5950. 'type' => 'int',
  5951. 'not NULL' => '1',
  5952. ),
  5953. 'leftendf_id' => array (
  5954. 'type' => 'int',
  5955. 'not NULL' => '',
  5956. ),
  5957. 'rightstartf_id' => array (
  5958. 'type' => 'int',
  5959. 'not NULL' => '',
  5960. ),
  5961. 'rightendf_id' => array (
  5962. 'type' => 'int',
  5963. 'not NULL' => '1',
  5964. ),
  5965. 'rangestr' => array (
  5966. 'type' => 'varchar',
  5967. 'length' => '255',
  5968. 'not NULL' => '',
  5969. ),
  5970. ),
  5971. 'primary key' => array (
  5972. 0 => 'featurerange_id',
  5973. ),
  5974. 'unique keys' => array (
  5975. ),
  5976. 'indexes' => array (
  5977. 'featurerange_idx1' => array (
  5978. 0 => 'featuremap_id',
  5979. ),
  5980. 'featurerange_idx2' => array (
  5981. 0 => 'feature_id',
  5982. ),
  5983. 'featurerange_idx3' => array (
  5984. 0 => 'leftstartf_id',
  5985. ),
  5986. 'featurerange_idx4' => array (
  5987. 0 => 'leftendf_id',
  5988. ),
  5989. 'featurerange_idx5' => array (
  5990. 0 => 'rightstartf_id',
  5991. ),
  5992. 'featurerange_idx6' => array (
  5993. 0 => 'rightendf_id',
  5994. ),
  5995. ),
  5996. 'foreign keys' => array (
  5997. 'feature' => array (
  5998. 'table' => 'feature',
  5999. 'columns' => array (
  6000. 'feature_id' => 'feature_id',
  6001. 'leftstartf_id' => 'feature_id',
  6002. 'leftendf_id' => 'feature_id',
  6003. 'rightstartf_id' => 'feature_id',
  6004. 'rightendf_id' => 'feature_id',
  6005. ),
  6006. ),
  6007. 'featuremap' => array (
  6008. 'table' => 'featuremap',
  6009. 'columns' => array (
  6010. 'featuremap_id' => 'featuremap_id',
  6011. ),
  6012. ),
  6013. ),
  6014. );
  6015. return $description;
  6016. }
  6017. /**
  6018. * Implements hook_chado_schema_v1_11_genotype()
  6019. * Purpose: To describe the structure of 'genotype' to tripal
  6020. * @see tripal_core_chado_insert()
  6021. * @see tripal_core_chado_update()
  6022. * @see tripal_core_chado_select()
  6023. *
  6024. * @return
  6025. * An array describing the 'genotype' table
  6026. *
  6027. * @ingroup tripal_chado_v1.11_schema_api
  6028. *
  6029. */
  6030. function tripal_core_chado_schema_v1_11_genotype() {
  6031. $description = array (
  6032. 'table' => 'genotype',
  6033. 'fields' => array (
  6034. 'genotype_id' => array (
  6035. 'type' => 'serial',
  6036. 'not NULL' => '1',
  6037. ),
  6038. 'name' => array (
  6039. 'type' => 'text',
  6040. 'not NULL' => '',
  6041. ),
  6042. 'uniquename' => array (
  6043. 'type' => 'text',
  6044. 'not NULL' => '1',
  6045. ),
  6046. 'description' => array (
  6047. 'type' => 'varchar',
  6048. 'length' => '255',
  6049. 'not NULL' => '',
  6050. ),
  6051. ),
  6052. 'primary key' => array (
  6053. 0 => 'genotype_id',
  6054. ),
  6055. 'unique keys' => array (
  6056. 'genotype_c1' => array (
  6057. 0 => 'uniquename',
  6058. ),
  6059. ),
  6060. 'indexes' => array (
  6061. 'genotype_idx1' => array (
  6062. 0 => 'uniquename',
  6063. ),
  6064. 'genotype_idx2' => array (
  6065. 0 => 'name',
  6066. ),
  6067. ),
  6068. 'foreign keys' => array (
  6069. ),
  6070. );
  6071. return $description;
  6072. }
  6073. /**
  6074. * Implements hook_chado_schema_v1_11_library()
  6075. * Purpose: To describe the structure of 'library' to tripal
  6076. * @see tripal_core_chado_insert()
  6077. * @see tripal_core_chado_update()
  6078. * @see tripal_core_chado_select()
  6079. *
  6080. * @return
  6081. * An array describing the 'library' table
  6082. *
  6083. * @ingroup tripal_chado_v1.11_schema_api
  6084. *
  6085. */
  6086. function tripal_core_chado_schema_v1_11_library() {
  6087. $description = array (
  6088. 'table' => 'library',
  6089. 'fields' => array (
  6090. 'library_id' => array (
  6091. 'type' => 'serial',
  6092. 'not NULL' => '1',
  6093. ),
  6094. 'organism_id' => array (
  6095. 'type' => 'int',
  6096. 'not NULL' => '1',
  6097. ),
  6098. 'name' => array (
  6099. 'type' => 'varchar',
  6100. 'length' => '255',
  6101. 'not NULL' => '',
  6102. ),
  6103. 'uniquename' => array (
  6104. 'type' => 'text',
  6105. 'not NULL' => '1',
  6106. ),
  6107. 'type_id' => array (
  6108. 'type' => 'int',
  6109. 'not NULL' => '1',
  6110. ),
  6111. 'is_obsolete' => array (
  6112. 'type' => 'int',
  6113. 'not NULL' => '1',
  6114. 'default' => '0',
  6115. ),
  6116. 'timeaccessioned' => array (
  6117. 'type' => 'datetime',
  6118. 'not NULL' => '1',
  6119. 'default' => 'ow(',
  6120. ),
  6121. 'timelastmodified' => array (
  6122. 'type' => 'datetime',
  6123. 'not NULL' => '1',
  6124. 'default' => 'ow(',
  6125. ),
  6126. ),
  6127. 'primary key' => array (
  6128. 0 => 'library_id',
  6129. ),
  6130. 'unique keys' => array (
  6131. 'library_c1' => array (
  6132. 0 => 'organism_id',
  6133. 1 => 'uniquename',
  6134. 2 => 'type_id',
  6135. ),
  6136. ),
  6137. 'indexes' => array (
  6138. 'library_idx1' => array (
  6139. 0 => 'organism_id',
  6140. ),
  6141. 'library_idx2' => array (
  6142. 0 => 'type_id',
  6143. ),
  6144. 'library_idx3' => array (
  6145. 0 => 'uniquename',
  6146. ),
  6147. 'library_name_ind1' => array (
  6148. 0 => 'name',
  6149. ),
  6150. ),
  6151. 'foreign keys' => array (
  6152. 'cvterm' => array (
  6153. 'table' => 'cvterm',
  6154. 'columns' => array (
  6155. 'type_id' => 'cvterm_id',
  6156. ),
  6157. ),
  6158. 'organism' => array (
  6159. 'table' => 'organism',
  6160. 'columns' => array (
  6161. 'organism_id' => 'organism_id',
  6162. ),
  6163. ),
  6164. ),
  6165. );
  6166. return $description;
  6167. }
  6168. /**
  6169. * Implements hook_chado_schema_v1_11_library_cvterm()
  6170. * Purpose: To describe the structure of 'library_cvterm' to tripal
  6171. * @see tripal_core_chado_insert()
  6172. * @see tripal_core_chado_update()
  6173. * @see tripal_core_chado_select()
  6174. *
  6175. * @return
  6176. * An array describing the 'library_cvterm' table
  6177. *
  6178. * @ingroup tripal_chado_v1.11_schema_api
  6179. *
  6180. */
  6181. function tripal_core_chado_schema_v1_11_library_cvterm() {
  6182. $description = array (
  6183. 'table' => 'library_cvterm',
  6184. 'fields' => array (
  6185. 'library_cvterm_id' => array (
  6186. 'type' => 'serial',
  6187. 'not NULL' => '1',
  6188. ),
  6189. 'library_id' => array (
  6190. 'type' => 'int',
  6191. 'not NULL' => '1',
  6192. ),
  6193. 'cvterm_id' => array (
  6194. 'type' => 'int',
  6195. 'not NULL' => '1',
  6196. ),
  6197. 'pub_id' => array (
  6198. 'type' => 'int',
  6199. 'not NULL' => '1',
  6200. ),
  6201. ),
  6202. 'primary key' => array (
  6203. 0 => 'library_cvterm_id',
  6204. ),
  6205. 'unique keys' => array (
  6206. 'library_cvterm_c1' => array (
  6207. 0 => 'library_id',
  6208. 1 => 'cvterm_id',
  6209. 2 => 'pub_id',
  6210. ),
  6211. ),
  6212. 'indexes' => array (
  6213. 'library_cvterm_idx1' => array (
  6214. 0 => 'library_id',
  6215. ),
  6216. 'library_cvterm_idx2' => array (
  6217. 0 => 'cvterm_id',
  6218. ),
  6219. 'library_cvterm_idx3' => array (
  6220. 0 => 'pub_id',
  6221. ),
  6222. ),
  6223. 'foreign keys' => array (
  6224. 'cvterm' => array (
  6225. 'table' => 'cvterm',
  6226. 'columns' => array (
  6227. 'cvterm_id' => 'cvterm_id',
  6228. ),
  6229. ),
  6230. 'pub' => array (
  6231. 'table' => 'pub',
  6232. 'columns' => array (
  6233. 'pub_id' => 'pub_id',
  6234. ),
  6235. ),
  6236. 'library' => array (
  6237. 'table' => 'library',
  6238. 'columns' => array (
  6239. 'library_id' => 'library_id',
  6240. ),
  6241. ),
  6242. ),
  6243. );
  6244. return $description;
  6245. }
  6246. /**
  6247. * Implements hook_chado_schema_v1_11_library_dbxref()
  6248. * Purpose: To describe the structure of 'library_dbxref' to tripal
  6249. * @see tripal_core_chado_insert()
  6250. * @see tripal_core_chado_update()
  6251. * @see tripal_core_chado_select()
  6252. *
  6253. * @return
  6254. * An array describing the 'library_dbxref' table
  6255. *
  6256. * @ingroup tripal_chado_v1.11_schema_api
  6257. *
  6258. */
  6259. function tripal_core_chado_schema_v1_11_library_dbxref() {
  6260. $description = array (
  6261. 'table' => 'library_dbxref',
  6262. 'fields' => array (
  6263. 'library_dbxref_id' => array (
  6264. 'type' => 'serial',
  6265. 'not NULL' => '1',
  6266. ),
  6267. 'library_id' => array (
  6268. 'type' => 'int',
  6269. 'not NULL' => '1',
  6270. ),
  6271. 'dbxref_id' => array (
  6272. 'type' => 'int',
  6273. 'not NULL' => '1',
  6274. ),
  6275. 'is_current' => array (
  6276. 'type' => 'boolean',
  6277. 'not NULL' => '1',
  6278. 'default' => 'ru',
  6279. ),
  6280. ),
  6281. 'primary key' => array (
  6282. 0 => 'library_dbxref_id',
  6283. ),
  6284. 'unique keys' => array (
  6285. 'library_dbxref_c1' => array (
  6286. 0 => 'library_id',
  6287. 1 => 'dbxref_id',
  6288. ),
  6289. ),
  6290. 'indexes' => array (
  6291. 'library_dbxref_idx1' => array (
  6292. 0 => 'library_id',
  6293. ),
  6294. 'library_dbxref_idx2' => array (
  6295. 0 => 'dbxref_id',
  6296. ),
  6297. ),
  6298. 'foreign keys' => array (
  6299. 'dbxref' => array (
  6300. 'table' => 'dbxref',
  6301. 'columns' => array (
  6302. 'dbxref_id' => 'dbxref_id',
  6303. ),
  6304. ),
  6305. 'library' => array (
  6306. 'table' => 'library',
  6307. 'columns' => array (
  6308. 'library_id' => 'library_id',
  6309. ),
  6310. ),
  6311. ),
  6312. );
  6313. return $description;
  6314. }
  6315. /**
  6316. * Implements hook_chado_schema_v1_11_library_feature()
  6317. * Purpose: To describe the structure of 'library_feature' to tripal
  6318. * @see tripal_core_chado_insert()
  6319. * @see tripal_core_chado_update()
  6320. * @see tripal_core_chado_select()
  6321. *
  6322. * @return
  6323. * An array describing the 'library_feature' table
  6324. *
  6325. * @ingroup tripal_chado_v1.11_schema_api
  6326. *
  6327. */
  6328. function tripal_core_chado_schema_v1_11_library_feature() {
  6329. $description = array (
  6330. 'table' => 'library_feature',
  6331. 'fields' => array (
  6332. 'library_feature_id' => array (
  6333. 'type' => 'serial',
  6334. 'not NULL' => '1',
  6335. ),
  6336. 'library_id' => array (
  6337. 'type' => 'int',
  6338. 'not NULL' => '1',
  6339. ),
  6340. 'feature_id' => array (
  6341. 'type' => 'int',
  6342. 'not NULL' => '1',
  6343. ),
  6344. ),
  6345. 'primary key' => array (
  6346. 0 => 'library_feature_id',
  6347. ),
  6348. 'unique keys' => array (
  6349. 'library_feature_c1' => array (
  6350. 0 => 'library_id',
  6351. 1 => 'feature_id',
  6352. ),
  6353. ),
  6354. 'indexes' => array (
  6355. 'library_feature_idx1' => array (
  6356. 0 => 'library_id',
  6357. ),
  6358. 'library_feature_idx2' => array (
  6359. 0 => 'feature_id',
  6360. ),
  6361. ),
  6362. 'foreign keys' => array (
  6363. 'feature' => array (
  6364. 'table' => 'feature',
  6365. 'columns' => array (
  6366. 'feature_id' => 'feature_id',
  6367. ),
  6368. ),
  6369. 'library' => array (
  6370. 'table' => 'library',
  6371. 'columns' => array (
  6372. 'library_id' => 'library_id',
  6373. ),
  6374. ),
  6375. ),
  6376. );
  6377. return $description;
  6378. }
  6379. /**
  6380. * Implements hook_chado_schema_v1_11_library_pub()
  6381. * Purpose: To describe the structure of 'library_pub' to tripal
  6382. * @see tripal_core_chado_insert()
  6383. * @see tripal_core_chado_update()
  6384. * @see tripal_core_chado_select()
  6385. *
  6386. * @return
  6387. * An array describing the 'library_pub' table
  6388. *
  6389. * @ingroup tripal_chado_v1.11_schema_api
  6390. *
  6391. */
  6392. function tripal_core_chado_schema_v1_11_library_pub() {
  6393. $description = array (
  6394. 'table' => 'library_pub',
  6395. 'fields' => array (
  6396. 'library_pub_id' => array (
  6397. 'type' => 'serial',
  6398. 'not NULL' => '1',
  6399. ),
  6400. 'library_id' => array (
  6401. 'type' => 'int',
  6402. 'not NULL' => '1',
  6403. ),
  6404. 'pub_id' => array (
  6405. 'type' => 'int',
  6406. 'not NULL' => '1',
  6407. ),
  6408. ),
  6409. 'primary key' => array (
  6410. 0 => 'library_pub_id',
  6411. ),
  6412. 'unique keys' => array (
  6413. 'library_pub_c1' => array (
  6414. 0 => 'library_id',
  6415. 1 => 'pub_id',
  6416. ),
  6417. ),
  6418. 'indexes' => array (
  6419. 'library_pub_idx1' => array (
  6420. 0 => 'library_id',
  6421. ),
  6422. 'library_pub_idx2' => array (
  6423. 0 => 'pub_id',
  6424. ),
  6425. ),
  6426. 'foreign keys' => array (
  6427. 'pub' => array (
  6428. 'table' => 'pub',
  6429. 'columns' => array (
  6430. 'pub_id' => 'pub_id',
  6431. ),
  6432. ),
  6433. 'library' => array (
  6434. 'table' => 'library',
  6435. 'columns' => array (
  6436. 'library_id' => 'library_id',
  6437. ),
  6438. ),
  6439. ),
  6440. );
  6441. return $description;
  6442. }
  6443. /**
  6444. * Implements hook_chado_schema_v1_11_library_synonym()
  6445. * Purpose: To describe the structure of 'library_synonym' to tripal
  6446. * @see tripal_core_chado_insert()
  6447. * @see tripal_core_chado_update()
  6448. * @see tripal_core_chado_select()
  6449. *
  6450. * @return
  6451. * An array describing the 'library_synonym' table
  6452. *
  6453. * @ingroup tripal_chado_v1.11_schema_api
  6454. *
  6455. */
  6456. function tripal_core_chado_schema_v1_11_library_synonym() {
  6457. $description = array (
  6458. 'table' => 'library_synonym',
  6459. 'fields' => array (
  6460. 'library_synonym_id' => array (
  6461. 'type' => 'serial',
  6462. 'not NULL' => '1',
  6463. ),
  6464. 'synonym_id' => array (
  6465. 'type' => 'int',
  6466. 'not NULL' => '1',
  6467. ),
  6468. 'library_id' => array (
  6469. 'type' => 'int',
  6470. 'not NULL' => '1',
  6471. ),
  6472. 'pub_id' => array (
  6473. 'type' => 'int',
  6474. 'not NULL' => '1',
  6475. ),
  6476. 'is_current' => array (
  6477. 'type' => 'boolean',
  6478. 'not NULL' => '1',
  6479. 'default' => 'ru',
  6480. ),
  6481. 'is_internal' => array (
  6482. 'type' => 'boolean',
  6483. 'not NULL' => '1',
  6484. 'default' => 'als',
  6485. ),
  6486. ),
  6487. 'primary key' => array (
  6488. 0 => 'library_synonym_id',
  6489. ),
  6490. 'unique keys' => array (
  6491. 'library_synonym_c1' => array (
  6492. 0 => 'synonym_id',
  6493. 1 => 'library_id',
  6494. 2 => 'pub_id',
  6495. ),
  6496. ),
  6497. 'indexes' => array (
  6498. 'library_synonym_idx1' => array (
  6499. 0 => 'synonym_id',
  6500. ),
  6501. 'library_synonym_idx2' => array (
  6502. 0 => 'library_id',
  6503. ),
  6504. 'library_synonym_idx3' => array (
  6505. 0 => 'pub_id',
  6506. ),
  6507. ),
  6508. 'foreign keys' => array (
  6509. 'pub' => array (
  6510. 'table' => 'pub',
  6511. 'columns' => array (
  6512. 'pub_id' => 'pub_id',
  6513. ),
  6514. ),
  6515. 'synonym' => array (
  6516. 'table' => 'synonym',
  6517. 'columns' => array (
  6518. 'synonym_id' => 'synonym_id',
  6519. ),
  6520. ),
  6521. 'library' => array (
  6522. 'table' => 'library',
  6523. 'columns' => array (
  6524. 'library_id' => 'library_id',
  6525. ),
  6526. ),
  6527. ),
  6528. );
  6529. return $description;
  6530. }
  6531. /**
  6532. * Implements hook_chado_schema_v1_11_libraryprop()
  6533. * Purpose: To describe the structure of 'libraryprop' to tripal
  6534. * @see tripal_core_chado_insert()
  6535. * @see tripal_core_chado_update()
  6536. * @see tripal_core_chado_select()
  6537. *
  6538. * @return
  6539. * An array describing the 'libraryprop' table
  6540. *
  6541. * @ingroup tripal_chado_v1.11_schema_api
  6542. *
  6543. */
  6544. function tripal_core_chado_schema_v1_11_libraryprop() {
  6545. $description = array (
  6546. 'table' => 'libraryprop',
  6547. 'fields' => array (
  6548. 'libraryprop_id' => array (
  6549. 'type' => 'serial',
  6550. 'not NULL' => '1',
  6551. ),
  6552. 'library_id' => array (
  6553. 'type' => 'int',
  6554. 'not NULL' => '1',
  6555. ),
  6556. 'type_id' => array (
  6557. 'type' => 'int',
  6558. 'not NULL' => '1',
  6559. ),
  6560. 'value' => array (
  6561. 'type' => 'text',
  6562. 'not NULL' => '',
  6563. ),
  6564. 'rank' => array (
  6565. 'type' => 'int',
  6566. 'not NULL' => '1',
  6567. 'default' => '0',
  6568. ),
  6569. ),
  6570. 'primary key' => array (
  6571. 0 => 'libraryprop_id',
  6572. ),
  6573. 'unique keys' => array (
  6574. 'libraryprop_c1' => array (
  6575. 0 => 'library_id',
  6576. 1 => 'type_id',
  6577. 2 => 'rank',
  6578. ),
  6579. ),
  6580. 'indexes' => array (
  6581. 'libraryprop_idx1' => array (
  6582. 0 => 'library_id',
  6583. ),
  6584. 'libraryprop_idx2' => array (
  6585. 0 => 'type_id',
  6586. ),
  6587. ),
  6588. 'foreign keys' => array (
  6589. 'cvterm' => array (
  6590. 'table' => 'cvterm',
  6591. 'columns' => array (
  6592. 'type_id' => 'cvterm_id',
  6593. ),
  6594. ),
  6595. 'library' => array (
  6596. 'table' => 'library',
  6597. 'columns' => array (
  6598. 'library_id' => 'library_id',
  6599. ),
  6600. ),
  6601. ),
  6602. );
  6603. return $description;
  6604. }
  6605. /**
  6606. * Implements hook_chado_schema_v1_11_libraryprop_pub()
  6607. * Purpose: To describe the structure of 'libraryprop_pub' to tripal
  6608. * @see tripal_core_chado_insert()
  6609. * @see tripal_core_chado_update()
  6610. * @see tripal_core_chado_select()
  6611. *
  6612. * @return
  6613. * An array describing the 'libraryprop_pub' table
  6614. *
  6615. * @ingroup tripal_chado_v1.11_schema_api
  6616. *
  6617. */
  6618. function tripal_core_chado_schema_v1_11_libraryprop_pub() {
  6619. $description = array (
  6620. 'table' => 'libraryprop_pub',
  6621. 'fields' => array (
  6622. 'libraryprop_pub_id' => array (
  6623. 'type' => 'serial',
  6624. 'not NULL' => '1',
  6625. ),
  6626. 'libraryprop_id' => array (
  6627. 'type' => 'int',
  6628. 'not NULL' => '1',
  6629. ),
  6630. 'pub_id' => array (
  6631. 'type' => 'int',
  6632. 'not NULL' => '1',
  6633. ),
  6634. ),
  6635. 'primary key' => array (
  6636. 0 => 'libraryprop_pub_id',
  6637. ),
  6638. 'unique keys' => array (
  6639. 'libraryprop_pub_c1' => array (
  6640. 0 => 'libraryprop_id',
  6641. 1 => 'pub_id',
  6642. ),
  6643. ),
  6644. 'indexes' => array (
  6645. 'libraryprop_pub_idx1' => array (
  6646. 0 => 'libraryprop_id',
  6647. ),
  6648. 'libraryprop_pub_idx2' => array (
  6649. 0 => 'pub_id',
  6650. ),
  6651. ),
  6652. 'foreign keys' => array (
  6653. 'pub' => array (
  6654. 'table' => 'pub',
  6655. 'columns' => array (
  6656. 'pub_id' => 'pub_id',
  6657. ),
  6658. ),
  6659. 'libraryprop' => array (
  6660. 'table' => 'libraryprop',
  6661. 'columns' => array (
  6662. 'libraryprop_id' => 'libraryprop_id',
  6663. ),
  6664. ),
  6665. ),
  6666. );
  6667. return $description;
  6668. }
  6669. /**
  6670. * Implements hook_chado_schema_v1_11_magedocumentation()
  6671. * Purpose: To describe the structure of 'magedocumentation' to tripal
  6672. * @see tripal_core_chado_insert()
  6673. * @see tripal_core_chado_update()
  6674. * @see tripal_core_chado_select()
  6675. *
  6676. * @return
  6677. * An array describing the 'magedocumentation' table
  6678. *
  6679. * @ingroup tripal_chado_v1.11_schema_api
  6680. *
  6681. */
  6682. function tripal_core_chado_schema_v1_11_magedocumentation() {
  6683. $description = array (
  6684. 'table' => 'magedocumentation',
  6685. 'fields' => array (
  6686. 'magedocumentation_id' => array (
  6687. 'type' => 'serial',
  6688. 'not NULL' => '1',
  6689. ),
  6690. 'mageml_id' => array (
  6691. 'type' => 'int',
  6692. 'not NULL' => '1',
  6693. ),
  6694. 'tableinfo_id' => array (
  6695. 'type' => 'int',
  6696. 'not NULL' => '1',
  6697. ),
  6698. 'row_id' => array (
  6699. 'type' => 'int',
  6700. 'not NULL' => '1',
  6701. ),
  6702. 'mageidentifier' => array (
  6703. 'type' => 'text',
  6704. 'not NULL' => '1',
  6705. ),
  6706. ),
  6707. 'primary key' => array (
  6708. 0 => 'magedocumentation_id',
  6709. ),
  6710. 'unique keys' => array (
  6711. ),
  6712. 'indexes' => array (
  6713. 'magedocumentation_idx1' => array (
  6714. 0 => 'mageml_id',
  6715. ),
  6716. 'magedocumentation_idx2' => array (
  6717. 0 => 'tableinfo_id',
  6718. ),
  6719. 'magedocumentation_idx3' => array (
  6720. 0 => 'row_id',
  6721. ),
  6722. ),
  6723. 'foreign keys' => array (
  6724. 'tableinfo' => array (
  6725. 'table' => 'tableinfo',
  6726. 'columns' => array (
  6727. 'tableinfo_id' => 'tableinfo_id',
  6728. ),
  6729. ),
  6730. 'mageml' => array (
  6731. 'table' => 'mageml',
  6732. 'columns' => array (
  6733. 'mageml_id' => 'mageml_id',
  6734. ),
  6735. ),
  6736. ),
  6737. );
  6738. return $description;
  6739. }
  6740. /**
  6741. * Implements hook_chado_schema_v1_11_mageml()
  6742. * Purpose: To describe the structure of 'mageml' to tripal
  6743. * @see tripal_core_chado_insert()
  6744. * @see tripal_core_chado_update()
  6745. * @see tripal_core_chado_select()
  6746. *
  6747. * @return
  6748. * An array describing the 'mageml' table
  6749. *
  6750. * @ingroup tripal_chado_v1.11_schema_api
  6751. *
  6752. */
  6753. function tripal_core_chado_schema_v1_11_mageml() {
  6754. $description = array (
  6755. 'table' => 'mageml',
  6756. 'fields' => array (
  6757. 'mageml_id' => array (
  6758. 'type' => 'serial',
  6759. 'not NULL' => '1',
  6760. ),
  6761. 'mage_package' => array (
  6762. 'type' => 'text',
  6763. 'not NULL' => '1',
  6764. ),
  6765. 'mage_ml' => array (
  6766. 'type' => 'text',
  6767. 'not NULL' => '1',
  6768. ),
  6769. ),
  6770. 'primary key' => array (
  6771. 0 => 'mageml_id',
  6772. ),
  6773. 'unique keys' => array (
  6774. ),
  6775. 'indexes' => array (
  6776. ),
  6777. 'foreign keys' => array (
  6778. ),
  6779. );
  6780. return $description;
  6781. }
  6782. /**
  6783. * Implements hook_chado_schema_v1_11_materialized_view()
  6784. * Purpose: To describe the structure of 'materialized_view' to tripal
  6785. * @see tripal_core_chado_insert()
  6786. * @see tripal_core_chado_update()
  6787. * @see tripal_core_chado_select()
  6788. *
  6789. * @return
  6790. * An array describing the 'materialized_view' table
  6791. *
  6792. * @ingroup tripal_chado_v1.11_schema_api
  6793. *
  6794. */
  6795. function tripal_core_chado_schema_v1_11_materialized_view() {
  6796. $description = array (
  6797. 'table' => 'materialized_view',
  6798. 'fields' => array (
  6799. 'materialized_view_id' => array (
  6800. 'type' => 'serial',
  6801. 'not NULL' => '1',
  6802. ),
  6803. 'last_update' => array (
  6804. 'type' => 'datetime',
  6805. 'not NULL' => '',
  6806. ),
  6807. 'refresh_time' => array (
  6808. 'type' => 'int',
  6809. 'not NULL' => '',
  6810. ),
  6811. 'name' => array (
  6812. 'type' => 'varchar',
  6813. 'length' => '64',
  6814. 'not NULL' => '',
  6815. ),
  6816. 'mv_schema' => array (
  6817. 'type' => 'varchar',
  6818. 'length' => '64',
  6819. 'not NULL' => '',
  6820. ),
  6821. 'mv_table' => array (
  6822. 'type' => 'varchar',
  6823. 'length' => '128',
  6824. 'not NULL' => '',
  6825. ),
  6826. 'mv_specs' => array (
  6827. 'type' => 'text',
  6828. 'not NULL' => '',
  6829. ),
  6830. 'indexed' => array (
  6831. 'type' => 'text',
  6832. 'not NULL' => '',
  6833. ),
  6834. 'query' => array (
  6835. 'type' => 'text',
  6836. 'not NULL' => '',
  6837. ),
  6838. 'special_index' => array (
  6839. 'type' => 'text',
  6840. 'not NULL' => '',
  6841. ),
  6842. ),
  6843. 'primary key' => array (
  6844. ),
  6845. 'unique keys' => array (
  6846. 'name' => array (
  6847. 0 => 'name',
  6848. ),
  6849. ),
  6850. 'indexes' => array (
  6851. ),
  6852. 'foreign keys' => array (
  6853. ),
  6854. );
  6855. return $description;
  6856. }
  6857. /**
  6858. * Implements hook_chado_schema_v1_11_organism()
  6859. * Purpose: To describe the structure of 'organism' to tripal
  6860. * @see tripal_core_chado_insert()
  6861. * @see tripal_core_chado_update()
  6862. * @see tripal_core_chado_select()
  6863. *
  6864. * @return
  6865. * An array describing the 'organism' table
  6866. *
  6867. * @ingroup tripal_chado_v1.11_schema_api
  6868. *
  6869. */
  6870. function tripal_core_chado_schema_v1_11_organism() {
  6871. $description = array (
  6872. 'table' => 'organism',
  6873. 'fields' => array (
  6874. 'organism_id' => array (
  6875. 'type' => 'serial',
  6876. 'not NULL' => '1',
  6877. ),
  6878. 'abbreviation' => array (
  6879. 'type' => 'varchar',
  6880. 'length' => '255',
  6881. 'not NULL' => '',
  6882. ),
  6883. 'genus' => array (
  6884. 'type' => 'varchar',
  6885. 'length' => '255',
  6886. 'not NULL' => '1',
  6887. ),
  6888. 'species' => array (
  6889. 'type' => 'varchar',
  6890. 'length' => '255',
  6891. 'not NULL' => '1',
  6892. ),
  6893. 'common_name' => array (
  6894. 'type' => 'varchar',
  6895. 'length' => '255',
  6896. 'not NULL' => '',
  6897. ),
  6898. 'comment' => array (
  6899. 'type' => 'text',
  6900. 'not NULL' => '',
  6901. ),
  6902. ),
  6903. 'primary key' => array (
  6904. 0 => 'organism_id',
  6905. ),
  6906. 'unique keys' => array (
  6907. 'organism_c1' => array (
  6908. 0 => 'genus',
  6909. 1 => 'species',
  6910. ),
  6911. ),
  6912. 'indexes' => array (
  6913. ),
  6914. 'foreign keys' => array (
  6915. ),
  6916. 'referring_tables' => array (
  6917. 0 => 'biomaterial',
  6918. 1 => 'feature',
  6919. 2 => 'library',
  6920. 3 => 'organism_dbxref',
  6921. 4 => 'organismprop',
  6922. 5 => 'phylonode_organism',
  6923. 6 => 'stock',
  6924. 7 => 'wwwuser_organism',
  6925. ),
  6926. );
  6927. return $description;
  6928. }
  6929. /**
  6930. * Implements hook_chado_schema_v1_11_organism_dbxref()
  6931. * Purpose: To describe the structure of 'organism_dbxref' to tripal
  6932. * @see tripal_core_chado_insert()
  6933. * @see tripal_core_chado_update()
  6934. * @see tripal_core_chado_select()
  6935. *
  6936. * @return
  6937. * An array describing the 'organism_dbxref' table
  6938. *
  6939. * @ingroup tripal_chado_v1.11_schema_api
  6940. *
  6941. */
  6942. function tripal_core_chado_schema_v1_11_organism_dbxref() {
  6943. $description = array (
  6944. 'table' => 'organism_dbxref',
  6945. 'fields' => array (
  6946. 'organism_dbxref_id' => array (
  6947. 'type' => 'serial',
  6948. 'not NULL' => '1',
  6949. ),
  6950. 'organism_id' => array (
  6951. 'type' => 'int',
  6952. 'not NULL' => '1',
  6953. ),
  6954. 'dbxref_id' => array (
  6955. 'type' => 'int',
  6956. 'not NULL' => '1',
  6957. ),
  6958. ),
  6959. 'primary key' => array (
  6960. 0 => 'organism_dbxref_id',
  6961. ),
  6962. 'unique keys' => array (
  6963. 'organism_dbxref_c1' => array (
  6964. 0 => 'organism_id',
  6965. 1 => 'dbxref_id',
  6966. ),
  6967. ),
  6968. 'indexes' => array (
  6969. 'organism_dbxref_idx1' => array (
  6970. 0 => 'organism_id',
  6971. ),
  6972. 'organism_dbxref_idx2' => array (
  6973. 0 => 'dbxref_id',
  6974. ),
  6975. ),
  6976. 'foreign keys' => array (
  6977. 'dbxref' => array (
  6978. 'table' => 'dbxref',
  6979. 'columns' => array (
  6980. 'dbxref_id' => 'dbxref_id',
  6981. ),
  6982. ),
  6983. 'organism' => array (
  6984. 'table' => 'organism',
  6985. 'columns' => array (
  6986. 'organism_id' => 'organism_id',
  6987. ),
  6988. ),
  6989. ),
  6990. );
  6991. return $description;
  6992. }
  6993. /**
  6994. * Implements hook_chado_schema_v1_11_organismprop()
  6995. * Purpose: To describe the structure of 'organismprop' to tripal
  6996. * @see tripal_core_chado_insert()
  6997. * @see tripal_core_chado_update()
  6998. * @see tripal_core_chado_select()
  6999. *
  7000. * @return
  7001. * An array describing the 'organismprop' table
  7002. *
  7003. * @ingroup tripal_chado_v1.11_schema_api
  7004. *
  7005. */
  7006. function tripal_core_chado_schema_v1_11_organismprop() {
  7007. $description = array (
  7008. 'table' => 'organismprop',
  7009. 'fields' => array (
  7010. 'organismprop_id' => array (
  7011. 'type' => 'serial',
  7012. 'not NULL' => '1',
  7013. ),
  7014. 'organism_id' => array (
  7015. 'type' => 'int',
  7016. 'not NULL' => '1',
  7017. ),
  7018. 'type_id' => array (
  7019. 'type' => 'int',
  7020. 'not NULL' => '1',
  7021. ),
  7022. 'value' => array (
  7023. 'type' => 'text',
  7024. 'not NULL' => '',
  7025. ),
  7026. 'rank' => array (
  7027. 'type' => 'int',
  7028. 'not NULL' => '1',
  7029. 'default' => '0',
  7030. ),
  7031. ),
  7032. 'primary key' => array (
  7033. 0 => 'organismprop_id',
  7034. ),
  7035. 'unique keys' => array (
  7036. 'organismprop_c1' => array (
  7037. 0 => 'organism_id',
  7038. 1 => 'type_id',
  7039. 2 => 'rank',
  7040. ),
  7041. ),
  7042. 'indexes' => array (
  7043. 'organismprop_idx1' => array (
  7044. 0 => 'organism_id',
  7045. ),
  7046. 'organismprop_idx2' => array (
  7047. 0 => 'type_id',
  7048. ),
  7049. ),
  7050. 'foreign keys' => array (
  7051. 'cvterm' => array (
  7052. 'table' => 'cvterm',
  7053. 'columns' => array (
  7054. 'type_id' => 'cvterm_id',
  7055. ),
  7056. ),
  7057. 'organism' => array (
  7058. 'table' => 'organism',
  7059. 'columns' => array (
  7060. 'organism_id' => 'organism_id',
  7061. ),
  7062. ),
  7063. ),
  7064. );
  7065. return $description;
  7066. }
  7067. /**
  7068. * Implements hook_chado_schema_v1_11_phendesc()
  7069. * Purpose: To describe the structure of 'phendesc' to tripal
  7070. * @see tripal_core_chado_insert()
  7071. * @see tripal_core_chado_update()
  7072. * @see tripal_core_chado_select()
  7073. *
  7074. * @return
  7075. * An array describing the 'phendesc' table
  7076. *
  7077. * @ingroup tripal_chado_v1.11_schema_api
  7078. *
  7079. */
  7080. function tripal_core_chado_schema_v1_11_phendesc() {
  7081. $description = array (
  7082. 'table' => 'phendesc',
  7083. 'fields' => array (
  7084. 'phendesc_id' => array (
  7085. 'type' => 'serial',
  7086. 'not NULL' => '1',
  7087. ),
  7088. 'genotype_id' => array (
  7089. 'type' => 'int',
  7090. 'not NULL' => '1',
  7091. ),
  7092. 'environment_id' => array (
  7093. 'type' => 'int',
  7094. 'not NULL' => '1',
  7095. ),
  7096. 'description' => array (
  7097. 'type' => 'text',
  7098. 'not NULL' => '1',
  7099. ),
  7100. 'type_id' => array (
  7101. 'type' => 'int',
  7102. 'not NULL' => '1',
  7103. ),
  7104. 'pub_id' => array (
  7105. 'type' => 'int',
  7106. 'not NULL' => '1',
  7107. ),
  7108. ),
  7109. 'primary key' => array (
  7110. 0 => 'phendesc_id',
  7111. ),
  7112. 'unique keys' => array (
  7113. 'phendesc_c1' => array (
  7114. 0 => 'genotype_id',
  7115. 1 => 'environment_id',
  7116. 2 => 'type_id',
  7117. 3 => 'pub_id',
  7118. ),
  7119. ),
  7120. 'indexes' => array (
  7121. 'phendesc_idx1' => array (
  7122. 0 => 'genotype_id',
  7123. ),
  7124. 'phendesc_idx2' => array (
  7125. 0 => 'environment_id',
  7126. ),
  7127. 'phendesc_idx3' => array (
  7128. 0 => 'pub_id',
  7129. ),
  7130. ),
  7131. 'foreign keys' => array (
  7132. 'cvterm' => array (
  7133. 'table' => 'cvterm',
  7134. 'columns' => array (
  7135. 'type_id' => 'cvterm_id',
  7136. ),
  7137. ),
  7138. 'pub' => array (
  7139. 'table' => 'pub',
  7140. 'columns' => array (
  7141. 'pub_id' => 'pub_id',
  7142. ),
  7143. ),
  7144. 'genotype' => array (
  7145. 'table' => 'genotype',
  7146. 'columns' => array (
  7147. 'genotype_id' => 'genotype_id',
  7148. ),
  7149. ),
  7150. 'environment' => array (
  7151. 'table' => 'environment',
  7152. 'columns' => array (
  7153. 'environment_id' => 'environment_id',
  7154. ),
  7155. ),
  7156. ),
  7157. );
  7158. return $description;
  7159. }
  7160. /**
  7161. * Implements hook_chado_schema_v1_11_phenotype()
  7162. * Purpose: To describe the structure of 'phenotype' to tripal
  7163. * @see tripal_core_chado_insert()
  7164. * @see tripal_core_chado_update()
  7165. * @see tripal_core_chado_select()
  7166. *
  7167. * @return
  7168. * An array describing the 'phenotype' table
  7169. *
  7170. * @ingroup tripal_chado_v1.11_schema_api
  7171. *
  7172. */
  7173. function tripal_core_chado_schema_v1_11_phenotype() {
  7174. $description = array (
  7175. 'table' => 'phenotype',
  7176. 'fields' => array (
  7177. 'phenotype_id' => array (
  7178. 'type' => 'serial',
  7179. 'not NULL' => '1',
  7180. ),
  7181. 'uniquename' => array (
  7182. 'type' => 'text',
  7183. 'not NULL' => '1',
  7184. ),
  7185. 'observable_id' => array (
  7186. 'type' => 'int',
  7187. 'not NULL' => '',
  7188. ),
  7189. 'attr_id' => array (
  7190. 'type' => 'int',
  7191. 'not NULL' => '',
  7192. ),
  7193. 'value' => array (
  7194. 'type' => 'text',
  7195. 'not NULL' => '',
  7196. ),
  7197. 'cvalue_id' => array (
  7198. 'type' => 'int',
  7199. 'not NULL' => '',
  7200. ),
  7201. 'assay_id' => array (
  7202. 'type' => 'int',
  7203. 'not NULL' => '',
  7204. ),
  7205. ),
  7206. 'primary key' => array (
  7207. 0 => 'phenotype_id',
  7208. ),
  7209. 'unique keys' => array (
  7210. 'phenotype_c1' => array (
  7211. 0 => 'uniquename',
  7212. ),
  7213. ),
  7214. 'indexes' => array (
  7215. 'phenotype_idx1' => array (
  7216. 0 => 'cvalue_id',
  7217. ),
  7218. 'phenotype_idx2' => array (
  7219. 0 => 'observable_id',
  7220. ),
  7221. 'phenotype_idx3' => array (
  7222. 0 => 'attr_id',
  7223. ),
  7224. ),
  7225. 'foreign keys' => array (
  7226. 'cvterm' => array (
  7227. 'table' => 'cvterm',
  7228. 'columns' => array (
  7229. 'observable_id' => 'cvterm_id',
  7230. 'attr_id' => 'cvterm_id',
  7231. 'cvalue_id' => 'cvterm_id',
  7232. 'assay_id' => 'cvterm_id',
  7233. ),
  7234. ),
  7235. ),
  7236. );
  7237. return $description;
  7238. }
  7239. /**
  7240. * Implements hook_chado_schema_v1_11_phenotype_comparison()
  7241. * Purpose: To describe the structure of 'phenotype_comparison' to tripal
  7242. * @see tripal_core_chado_insert()
  7243. * @see tripal_core_chado_update()
  7244. * @see tripal_core_chado_select()
  7245. *
  7246. * @return
  7247. * An array describing the 'phenotype_comparison' table
  7248. *
  7249. * @ingroup tripal_chado_v1.11_schema_api
  7250. *
  7251. */
  7252. function tripal_core_chado_schema_v1_11_phenotype_comparison() {
  7253. $description = array (
  7254. 'table' => 'phenotype_comparison',
  7255. 'fields' => array (
  7256. 'phenotype_comparison_id' => array (
  7257. 'type' => 'serial',
  7258. 'not NULL' => '1',
  7259. ),
  7260. 'genotype1_id' => array (
  7261. 'type' => 'int',
  7262. 'not NULL' => '1',
  7263. ),
  7264. 'environment1_id' => array (
  7265. 'type' => 'int',
  7266. 'not NULL' => '1',
  7267. ),
  7268. 'genotype2_id' => array (
  7269. 'type' => 'int',
  7270. 'not NULL' => '1',
  7271. ),
  7272. 'environment2_id' => array (
  7273. 'type' => 'int',
  7274. 'not NULL' => '1',
  7275. ),
  7276. 'phenotype1_id' => array (
  7277. 'type' => 'int',
  7278. 'not NULL' => '1',
  7279. ),
  7280. 'phenotype2_id' => array (
  7281. 'type' => 'int',
  7282. 'not NULL' => '',
  7283. ),
  7284. 'pub_id' => array (
  7285. 'type' => 'int',
  7286. 'not NULL' => '1',
  7287. ),
  7288. 'organism_id' => array (
  7289. 'type' => 'int',
  7290. 'not NULL' => '1',
  7291. ),
  7292. ),
  7293. 'primary key' => array (
  7294. 0 => 'phenotype_comparison_id',
  7295. ),
  7296. 'unique keys' => array (
  7297. 'phenotype_comparison_c1' => array (
  7298. 0 => 'genotype1_id',
  7299. 1 => 'environment1_id',
  7300. 2 => 'genotype2_id',
  7301. 3 => 'environment2_id',
  7302. 4 => 'phenotype1_id',
  7303. 5 => 'pub_id',
  7304. ),
  7305. ),
  7306. 'indexes' => array (
  7307. 'phenotype_comparison_idx1' => array (
  7308. 0 => 'genotype1_id',
  7309. ),
  7310. 'phenotype_comparison_idx2' => array (
  7311. 0 => 'genotype2_id',
  7312. ),
  7313. 'phenotype_comparison_idx4' => array (
  7314. 0 => 'pub_id',
  7315. ),
  7316. ),
  7317. 'foreign keys' => array (
  7318. 'pub' => array (
  7319. 'table' => 'pub',
  7320. 'columns' => array (
  7321. 'pub_id' => 'pub_id',
  7322. ),
  7323. ),
  7324. 'organism' => array (
  7325. 'table' => 'organism',
  7326. 'columns' => array (
  7327. 'organism_id' => 'organism_id',
  7328. ),
  7329. ),
  7330. 'phenotype' => array (
  7331. 'table' => 'phenotype',
  7332. 'columns' => array (
  7333. 'phenotype1_id' => 'phenotype_id',
  7334. 'phenotype2_id' => 'phenotype_id',
  7335. ),
  7336. ),
  7337. 'genotype' => array (
  7338. 'table' => 'genotype',
  7339. 'columns' => array (
  7340. 'genotype1_id' => 'genotype_id',
  7341. 'genotype2_id' => 'genotype_id',
  7342. ),
  7343. ),
  7344. 'environment' => array (
  7345. 'table' => 'environment',
  7346. 'columns' => array (
  7347. 'environment1_id' => 'environment_id',
  7348. 'environment2_id' => 'environment_id',
  7349. ),
  7350. ),
  7351. ),
  7352. );
  7353. return $description;
  7354. }
  7355. /**
  7356. * Implements hook_chado_schema_v1_11_phenotype_comparison_cvterm()
  7357. * Purpose: To describe the structure of 'phenotype_comparison_cvterm' to tripal
  7358. * @see tripal_core_chado_insert()
  7359. * @see tripal_core_chado_update()
  7360. * @see tripal_core_chado_select()
  7361. *
  7362. * @return
  7363. * An array describing the 'phenotype_comparison_cvterm' table
  7364. *
  7365. * @ingroup tripal_chado_v1.11_schema_api
  7366. *
  7367. */
  7368. function tripal_core_chado_schema_v1_11_phenotype_comparison_cvterm() {
  7369. $description = array (
  7370. 'table' => 'phenotype_comparison_cvterm',
  7371. 'fields' => array (
  7372. 'phenotype_comparison_cvterm_id' => array (
  7373. 'type' => 'serial',
  7374. 'not NULL' => '1',
  7375. ),
  7376. 'phenotype_comparison_id' => array (
  7377. 'type' => 'int',
  7378. 'not NULL' => '1',
  7379. ),
  7380. 'cvterm_id' => array (
  7381. 'type' => 'int',
  7382. 'not NULL' => '1',
  7383. ),
  7384. 'pub_id' => array (
  7385. 'type' => 'int',
  7386. 'not NULL' => '1',
  7387. ),
  7388. 'rank' => array (
  7389. 'type' => 'int',
  7390. 'not NULL' => '1',
  7391. 'default' => '0',
  7392. ),
  7393. ),
  7394. 'primary key' => array (
  7395. 0 => 'phenotype_comparison_cvterm_id',
  7396. ),
  7397. 'unique keys' => array (
  7398. 'phenotype_comparison_cvterm_c1' => array (
  7399. 0 => 'phenotype_comparison_id',
  7400. 1 => 'cvterm_id',
  7401. ),
  7402. ),
  7403. 'indexes' => array (
  7404. 'phenotype_comparison_cvterm_idx1' => array (
  7405. 0 => 'phenotype_comparison_id',
  7406. ),
  7407. 'phenotype_comparison_cvterm_idx2' => array (
  7408. 0 => 'cvterm_id',
  7409. ),
  7410. ),
  7411. 'foreign keys' => array (
  7412. 'cvterm' => array (
  7413. 'table' => 'cvterm',
  7414. 'columns' => array (
  7415. 'cvterm_id' => 'cvterm_id',
  7416. ),
  7417. ),
  7418. 'pub' => array (
  7419. 'table' => 'pub',
  7420. 'columns' => array (
  7421. 'pub_id' => 'pub_id',
  7422. ),
  7423. ),
  7424. 'phenotype_comparison' => array (
  7425. 'table' => 'phenotype_comparison',
  7426. 'columns' => array (
  7427. 'phenotype_comparison_id' => 'phenotype_comparison_id',
  7428. ),
  7429. ),
  7430. ),
  7431. );
  7432. return $description;
  7433. }
  7434. /**
  7435. * Implements hook_chado_schema_v1_11_phenotype_cvterm()
  7436. * Purpose: To describe the structure of 'phenotype_cvterm' to tripal
  7437. * @see tripal_core_chado_insert()
  7438. * @see tripal_core_chado_update()
  7439. * @see tripal_core_chado_select()
  7440. *
  7441. * @return
  7442. * An array describing the 'phenotype_cvterm' table
  7443. *
  7444. * @ingroup tripal_chado_v1.11_schema_api
  7445. *
  7446. */
  7447. function tripal_core_chado_schema_v1_11_phenotype_cvterm() {
  7448. $description = array (
  7449. 'table' => 'phenotype_cvterm',
  7450. 'fields' => array (
  7451. 'phenotype_cvterm_id' => array (
  7452. 'type' => 'serial',
  7453. 'not NULL' => '1',
  7454. ),
  7455. 'phenotype_id' => array (
  7456. 'type' => 'int',
  7457. 'not NULL' => '1',
  7458. ),
  7459. 'cvterm_id' => array (
  7460. 'type' => 'int',
  7461. 'not NULL' => '1',
  7462. ),
  7463. 'rank' => array (
  7464. 'type' => 'int',
  7465. 'not NULL' => '1',
  7466. 'default' => '0',
  7467. ),
  7468. ),
  7469. 'primary key' => array (
  7470. 0 => 'phenotype_cvterm_id',
  7471. ),
  7472. 'unique keys' => array (
  7473. 'phenotype_cvterm_c1' => array (
  7474. 0 => 'phenotype_id',
  7475. 1 => 'cvterm_id',
  7476. 2 => 'rank',
  7477. ),
  7478. ),
  7479. 'indexes' => array (
  7480. 'phenotype_cvterm_idx1' => array (
  7481. 0 => 'phenotype_id',
  7482. ),
  7483. 'phenotype_cvterm_idx2' => array (
  7484. 0 => 'cvterm_id',
  7485. ),
  7486. ),
  7487. 'foreign keys' => array (
  7488. 'cvterm' => array (
  7489. 'table' => 'cvterm',
  7490. 'columns' => array (
  7491. 'cvterm_id' => 'cvterm_id',
  7492. ),
  7493. ),
  7494. 'phenotype' => array (
  7495. 'table' => 'phenotype',
  7496. 'columns' => array (
  7497. 'phenotype_id' => 'phenotype_id',
  7498. ),
  7499. ),
  7500. ),
  7501. );
  7502. return $description;
  7503. }
  7504. /**
  7505. * Implements hook_chado_schema_v1_11_phenstatement()
  7506. * Purpose: To describe the structure of 'phenstatement' to tripal
  7507. * @see tripal_core_chado_insert()
  7508. * @see tripal_core_chado_update()
  7509. * @see tripal_core_chado_select()
  7510. *
  7511. * @return
  7512. * An array describing the 'phenstatement' table
  7513. *
  7514. * @ingroup tripal_chado_v1.11_schema_api
  7515. *
  7516. */
  7517. function tripal_core_chado_schema_v1_11_phenstatement() {
  7518. $description = array (
  7519. 'table' => 'phenstatement',
  7520. 'fields' => array (
  7521. 'phenstatement_id' => array (
  7522. 'type' => 'serial',
  7523. 'not NULL' => '1',
  7524. ),
  7525. 'genotype_id' => array (
  7526. 'type' => 'int',
  7527. 'not NULL' => '1',
  7528. ),
  7529. 'environment_id' => array (
  7530. 'type' => 'int',
  7531. 'not NULL' => '1',
  7532. ),
  7533. 'phenotype_id' => array (
  7534. 'type' => 'int',
  7535. 'not NULL' => '1',
  7536. ),
  7537. 'type_id' => array (
  7538. 'type' => 'int',
  7539. 'not NULL' => '1',
  7540. ),
  7541. 'pub_id' => array (
  7542. 'type' => 'int',
  7543. 'not NULL' => '1',
  7544. ),
  7545. ),
  7546. 'primary key' => array (
  7547. 0 => 'phenstatement_id',
  7548. ),
  7549. 'unique keys' => array (
  7550. 'phenstatement_c1' => array (
  7551. 0 => 'genotype_id',
  7552. 1 => 'phenotype_id',
  7553. 2 => 'environment_id',
  7554. 3 => 'type_id',
  7555. 4 => 'pub_id',
  7556. ),
  7557. ),
  7558. 'indexes' => array (
  7559. 'phenstatement_idx1' => array (
  7560. 0 => 'genotype_id',
  7561. ),
  7562. 'phenstatement_idx2' => array (
  7563. 0 => 'phenotype_id',
  7564. ),
  7565. ),
  7566. 'foreign keys' => array (
  7567. 'cvterm' => array (
  7568. 'table' => 'cvterm',
  7569. 'columns' => array (
  7570. 'type_id' => 'cvterm_id',
  7571. ),
  7572. ),
  7573. 'pub' => array (
  7574. 'table' => 'pub',
  7575. 'columns' => array (
  7576. 'pub_id' => 'pub_id',
  7577. ),
  7578. ),
  7579. 'phenotype' => array (
  7580. 'table' => 'phenotype',
  7581. 'columns' => array (
  7582. 'phenotype_id' => 'phenotype_id',
  7583. ),
  7584. ),
  7585. 'genotype' => array (
  7586. 'table' => 'genotype',
  7587. 'columns' => array (
  7588. 'genotype_id' => 'genotype_id',
  7589. ),
  7590. ),
  7591. 'environment' => array (
  7592. 'table' => 'environment',
  7593. 'columns' => array (
  7594. 'environment_id' => 'environment_id',
  7595. ),
  7596. ),
  7597. ),
  7598. );
  7599. return $description;
  7600. }
  7601. /**
  7602. * Implements hook_chado_schema_v1_11_phylonode()
  7603. * Purpose: To describe the structure of 'phylonode' to tripal
  7604. * @see tripal_core_chado_insert()
  7605. * @see tripal_core_chado_update()
  7606. * @see tripal_core_chado_select()
  7607. *
  7608. * @return
  7609. * An array describing the 'phylonode' table
  7610. *
  7611. * @ingroup tripal_chado_v1.11_schema_api
  7612. *
  7613. */
  7614. function tripal_core_chado_schema_v1_11_phylonode() {
  7615. $description = array (
  7616. 'table' => 'phylonode',
  7617. 'fields' => array (
  7618. 'phylonode_id' => array (
  7619. 'type' => 'serial',
  7620. 'not NULL' => '1',
  7621. ),
  7622. 'phylotree_id' => array (
  7623. 'type' => 'int',
  7624. 'not NULL' => '1',
  7625. ),
  7626. 'parent_phylonode_id' => array (
  7627. 'type' => 'int',
  7628. 'not NULL' => '',
  7629. ),
  7630. 'left_idx' => array (
  7631. 'type' => 'int',
  7632. 'not NULL' => '1',
  7633. ),
  7634. 'right_idx' => array (
  7635. 'type' => 'int',
  7636. 'not NULL' => '1',
  7637. ),
  7638. 'type_id' => array (
  7639. 'type' => 'int',
  7640. 'not NULL' => '',
  7641. ),
  7642. 'feature_id' => array (
  7643. 'type' => 'int',
  7644. 'not NULL' => '',
  7645. ),
  7646. 'label' => array (
  7647. 'type' => 'varchar',
  7648. 'length' => '255',
  7649. 'not NULL' => '',
  7650. ),
  7651. 'distance' => array (
  7652. 'type' => 'float',
  7653. 'size' => 'big',
  7654. 'not NULL' => '',
  7655. ),
  7656. ),
  7657. 'primary key' => array (
  7658. 0 => 'phylonode_id',
  7659. ),
  7660. 'unique keys' => array (
  7661. 'phylotree_id' => array (
  7662. 0 => 'phylotree_id',
  7663. 1 => 'left_idx',
  7664. ),
  7665. 'phylonode_phylotree_id_key1' => array (
  7666. 0 => 'phylotree_id',
  7667. 1 => 'right_idx',
  7668. ),
  7669. ),
  7670. 'indexes' => array (
  7671. ),
  7672. 'foreign keys' => array (
  7673. 'cvterm' => array (
  7674. 'table' => 'cvterm',
  7675. 'columns' => array (
  7676. 'type_id' => 'cvterm_id',
  7677. ),
  7678. ),
  7679. 'feature' => array (
  7680. 'table' => 'feature',
  7681. 'columns' => array (
  7682. 'feature_id' => 'feature_id',
  7683. ),
  7684. ),
  7685. 'phylotree' => array (
  7686. 'table' => 'phylotree',
  7687. 'columns' => array (
  7688. 'phylotree_id' => 'phylotree_id',
  7689. ),
  7690. ),
  7691. 'phylonode' => array (
  7692. 'table' => 'phylonode',
  7693. 'columns' => array (
  7694. 'parent_phylonode_id' => 'phylonode_id',
  7695. ),
  7696. ),
  7697. ),
  7698. );
  7699. return $description;
  7700. }
  7701. /**
  7702. * Implements hook_chado_schema_v1_11_phylonode_dbxref()
  7703. * Purpose: To describe the structure of 'phylonode_dbxref' to tripal
  7704. * @see tripal_core_chado_insert()
  7705. * @see tripal_core_chado_update()
  7706. * @see tripal_core_chado_select()
  7707. *
  7708. * @return
  7709. * An array describing the 'phylonode_dbxref' table
  7710. *
  7711. * @ingroup tripal_chado_v1.11_schema_api
  7712. *
  7713. */
  7714. function tripal_core_chado_schema_v1_11_phylonode_dbxref() {
  7715. $description = array (
  7716. 'table' => 'phylonode_dbxref',
  7717. 'fields' => array (
  7718. 'phylonode_dbxref_id' => array (
  7719. 'type' => 'serial',
  7720. 'not NULL' => '1',
  7721. ),
  7722. 'phylonode_id' => array (
  7723. 'type' => 'int',
  7724. 'not NULL' => '1',
  7725. ),
  7726. 'dbxref_id' => array (
  7727. 'type' => 'int',
  7728. 'not NULL' => '1',
  7729. ),
  7730. ),
  7731. 'primary key' => array (
  7732. 0 => 'phylonode_dbxref_id',
  7733. ),
  7734. 'unique keys' => array (
  7735. 'phylonode_id' => array (
  7736. 0 => 'phylonode_id',
  7737. 1 => 'dbxref_id',
  7738. ),
  7739. ),
  7740. 'indexes' => array (
  7741. 'phylonode_dbxref_idx1' => array (
  7742. 0 => 'phylonode_id',
  7743. ),
  7744. 'phylonode_dbxref_idx2' => array (
  7745. 0 => 'dbxref_id',
  7746. ),
  7747. ),
  7748. 'foreign keys' => array (
  7749. 'dbxref' => array (
  7750. 'table' => 'dbxref',
  7751. 'columns' => array (
  7752. 'dbxref_id' => 'dbxref_id',
  7753. ),
  7754. ),
  7755. 'phylonode' => array (
  7756. 'table' => 'phylonode',
  7757. 'columns' => array (
  7758. 'phylonode_id' => 'phylonode_id',
  7759. ),
  7760. ),
  7761. ),
  7762. );
  7763. return $description;
  7764. }
  7765. /**
  7766. * Implements hook_chado_schema_v1_11_phylonode_organism()
  7767. * Purpose: To describe the structure of 'phylonode_organism' to tripal
  7768. * @see tripal_core_chado_insert()
  7769. * @see tripal_core_chado_update()
  7770. * @see tripal_core_chado_select()
  7771. *
  7772. * @return
  7773. * An array describing the 'phylonode_organism' table
  7774. *
  7775. * @ingroup tripal_chado_v1.11_schema_api
  7776. *
  7777. */
  7778. function tripal_core_chado_schema_v1_11_phylonode_organism() {
  7779. $description = array (
  7780. 'table' => 'phylonode_organism',
  7781. 'fields' => array (
  7782. 'phylonode_organism_id' => array (
  7783. 'type' => 'serial',
  7784. 'not NULL' => '1',
  7785. ),
  7786. 'phylonode_id' => array (
  7787. 'type' => 'int',
  7788. 'not NULL' => '1',
  7789. ),
  7790. 'organism_id' => array (
  7791. 'type' => 'int',
  7792. 'not NULL' => '1',
  7793. ),
  7794. ),
  7795. 'primary key' => array (
  7796. 0 => 'phylonode_organism_id',
  7797. ),
  7798. 'unique keys' => array (
  7799. 'phylonode_id' => array (
  7800. 0 => 'phylonode_id',
  7801. ),
  7802. ),
  7803. 'indexes' => array (
  7804. 'phylonode_organism_idx1' => array (
  7805. 0 => 'phylonode_id',
  7806. ),
  7807. 'phylonode_organism_idx2' => array (
  7808. 0 => 'organism_id',
  7809. ),
  7810. ),
  7811. 'foreign keys' => array (
  7812. 'organism' => array (
  7813. 'table' => 'organism',
  7814. 'columns' => array (
  7815. 'organism_id' => 'organism_id',
  7816. ),
  7817. ),
  7818. 'phylonode' => array (
  7819. 'table' => 'phylonode',
  7820. 'columns' => array (
  7821. 'phylonode_id' => 'phylonode_id',
  7822. ),
  7823. ),
  7824. ),
  7825. );
  7826. return $description;
  7827. }
  7828. /**
  7829. * Implements hook_chado_schema_v1_11_phylonode_pub()
  7830. * Purpose: To describe the structure of 'phylonode_pub' to tripal
  7831. * @see tripal_core_chado_insert()
  7832. * @see tripal_core_chado_update()
  7833. * @see tripal_core_chado_select()
  7834. *
  7835. * @return
  7836. * An array describing the 'phylonode_pub' table
  7837. *
  7838. * @ingroup tripal_chado_v1.11_schema_api
  7839. *
  7840. */
  7841. function tripal_core_chado_schema_v1_11_phylonode_pub() {
  7842. $description = array (
  7843. 'table' => 'phylonode_pub',
  7844. 'fields' => array (
  7845. 'phylonode_pub_id' => array (
  7846. 'type' => 'serial',
  7847. 'not NULL' => '1',
  7848. ),
  7849. 'phylonode_id' => array (
  7850. 'type' => 'int',
  7851. 'not NULL' => '1',
  7852. ),
  7853. 'pub_id' => array (
  7854. 'type' => 'int',
  7855. 'not NULL' => '1',
  7856. ),
  7857. ),
  7858. 'primary key' => array (
  7859. 0 => 'phylonode_pub_id',
  7860. ),
  7861. 'unique keys' => array (
  7862. 'phylonode_id' => array (
  7863. 0 => 'phylonode_id',
  7864. 1 => 'pub_id',
  7865. ),
  7866. ),
  7867. 'indexes' => array (
  7868. 'phylonode_pub_idx1' => array (
  7869. 0 => 'phylonode_id',
  7870. ),
  7871. 'phylonode_pub_idx2' => array (
  7872. 0 => 'pub_id',
  7873. ),
  7874. ),
  7875. 'foreign keys' => array (
  7876. 'pub' => array (
  7877. 'table' => 'pub',
  7878. 'columns' => array (
  7879. 'pub_id' => 'pub_id',
  7880. ),
  7881. ),
  7882. 'phylonode' => array (
  7883. 'table' => 'phylonode',
  7884. 'columns' => array (
  7885. 'phylonode_id' => 'phylonode_id',
  7886. ),
  7887. ),
  7888. ),
  7889. );
  7890. return $description;
  7891. }
  7892. /**
  7893. * Implements hook_chado_schema_v1_11_phylonode_relationship()
  7894. * Purpose: To describe the structure of 'phylonode_relationship' to tripal
  7895. * @see tripal_core_chado_insert()
  7896. * @see tripal_core_chado_update()
  7897. * @see tripal_core_chado_select()
  7898. *
  7899. * @return
  7900. * An array describing the 'phylonode_relationship' table
  7901. *
  7902. * @ingroup tripal_chado_v1.11_schema_api
  7903. *
  7904. */
  7905. function tripal_core_chado_schema_v1_11_phylonode_relationship() {
  7906. $description = array (
  7907. 'table' => 'phylonode_relationship',
  7908. 'fields' => array (
  7909. 'phylonode_relationship_id' => array (
  7910. 'type' => 'serial',
  7911. 'not NULL' => '1',
  7912. ),
  7913. 'subject_id' => array (
  7914. 'type' => 'int',
  7915. 'not NULL' => '1',
  7916. ),
  7917. 'object_id' => array (
  7918. 'type' => 'int',
  7919. 'not NULL' => '1',
  7920. ),
  7921. 'type_id' => array (
  7922. 'type' => 'int',
  7923. 'not NULL' => '1',
  7924. ),
  7925. 'rank' => array (
  7926. 'type' => 'int',
  7927. 'not NULL' => '',
  7928. ),
  7929. 'phylotree_id' => array (
  7930. 'type' => 'int',
  7931. 'not NULL' => '1',
  7932. ),
  7933. ),
  7934. 'primary key' => array (
  7935. 0 => 'phylonode_relationship_id',
  7936. ),
  7937. 'unique keys' => array (
  7938. 'subject_id' => array (
  7939. 0 => 'subject_id',
  7940. 1 => 'object_id',
  7941. 2 => 'type_id',
  7942. ),
  7943. ),
  7944. 'indexes' => array (
  7945. 'phylonode_relationship_idx1' => array (
  7946. 0 => 'subject_id',
  7947. ),
  7948. 'phylonode_relationship_idx2' => array (
  7949. 0 => 'object_id',
  7950. ),
  7951. 'phylonode_relationship_idx3' => array (
  7952. 0 => 'type_id',
  7953. ),
  7954. ),
  7955. 'foreign keys' => array (
  7956. 'cvterm' => array (
  7957. 'table' => 'cvterm',
  7958. 'columns' => array (
  7959. 'type_id' => 'cvterm_id',
  7960. ),
  7961. ),
  7962. 'phylotree' => array (
  7963. 'table' => 'phylotree',
  7964. 'columns' => array (
  7965. 'phylotree_id' => 'phylotree_id',
  7966. ),
  7967. ),
  7968. 'phylonode' => array (
  7969. 'table' => 'phylonode',
  7970. 'columns' => array (
  7971. 'subject_id' => 'phylonode_id',
  7972. 'object_id' => 'phylonode_id',
  7973. ),
  7974. ),
  7975. ),
  7976. );
  7977. return $description;
  7978. }
  7979. /**
  7980. * Implements hook_chado_schema_v1_11_phylonodeprop()
  7981. * Purpose: To describe the structure of 'phylonodeprop' to tripal
  7982. * @see tripal_core_chado_insert()
  7983. * @see tripal_core_chado_update()
  7984. * @see tripal_core_chado_select()
  7985. *
  7986. * @return
  7987. * An array describing the 'phylonodeprop' table
  7988. *
  7989. * @ingroup tripal_chado_v1.11_schema_api
  7990. *
  7991. */
  7992. function tripal_core_chado_schema_v1_11_phylonodeprop() {
  7993. $description = array (
  7994. 'table' => 'phylonodeprop',
  7995. 'fields' => array (
  7996. 'phylonodeprop_id' => array (
  7997. 'type' => 'serial',
  7998. 'not NULL' => '1',
  7999. ),
  8000. 'phylonode_id' => array (
  8001. 'type' => 'int',
  8002. 'not NULL' => '1',
  8003. ),
  8004. 'type_id' => array (
  8005. 'type' => 'int',
  8006. 'not NULL' => '1',
  8007. ),
  8008. 'value' => array (
  8009. 'type' => 'text',
  8010. 'not NULL' => '1',
  8011. 'default' => '',
  8012. ),
  8013. 'rank' => array (
  8014. 'type' => 'int',
  8015. 'not NULL' => '1',
  8016. 'default' => '0',
  8017. ),
  8018. ),
  8019. 'primary key' => array (
  8020. 0 => 'phylonodeprop_id',
  8021. ),
  8022. 'unique keys' => array (
  8023. 'phylonode_id' => array (
  8024. 0 => 'phylonode_id',
  8025. 1 => 'type_id',
  8026. 2 => 'value',
  8027. 3 => 'rank',
  8028. ),
  8029. ),
  8030. 'indexes' => array (
  8031. 'phylonodeprop_idx1' => array (
  8032. 0 => 'phylonode_id',
  8033. ),
  8034. 'phylonodeprop_idx2' => array (
  8035. 0 => 'type_id',
  8036. ),
  8037. ),
  8038. 'foreign keys' => array (
  8039. 'cvterm' => array (
  8040. 'table' => 'cvterm',
  8041. 'columns' => array (
  8042. 'type_id' => 'cvterm_id',
  8043. ),
  8044. ),
  8045. 'phylonode' => array (
  8046. 'table' => 'phylonode',
  8047. 'columns' => array (
  8048. 'phylonode_id' => 'phylonode_id',
  8049. ),
  8050. ),
  8051. ),
  8052. );
  8053. return $description;
  8054. }
  8055. /**
  8056. * Implements hook_chado_schema_v1_11_phylotree()
  8057. * Purpose: To describe the structure of 'phylotree' to tripal
  8058. * @see tripal_core_chado_insert()
  8059. * @see tripal_core_chado_update()
  8060. * @see tripal_core_chado_select()
  8061. *
  8062. * @return
  8063. * An array describing the 'phylotree' table
  8064. *
  8065. * @ingroup tripal_chado_v1.11_schema_api
  8066. *
  8067. */
  8068. function tripal_core_chado_schema_v1_11_phylotree() {
  8069. $description = array (
  8070. 'table' => 'phylotree',
  8071. 'fields' => array (
  8072. 'phylotree_id' => array (
  8073. 'type' => 'serial',
  8074. 'not NULL' => '1',
  8075. ),
  8076. 'dbxref_id' => array (
  8077. 'type' => 'int',
  8078. 'not NULL' => '1',
  8079. ),
  8080. 'name' => array (
  8081. 'type' => 'varchar',
  8082. 'length' => '255',
  8083. 'not NULL' => '',
  8084. ),
  8085. 'type_id' => array (
  8086. 'type' => 'int',
  8087. 'not NULL' => '',
  8088. ),
  8089. 'analysis_id' => array (
  8090. 'type' => 'int',
  8091. 'not NULL' => '',
  8092. ),
  8093. 'comment' => array (
  8094. 'type' => 'text',
  8095. 'not NULL' => '',
  8096. ),
  8097. ),
  8098. 'primary key' => array (
  8099. 0 => 'phylotree_id',
  8100. ),
  8101. 'unique keys' => array (
  8102. ),
  8103. 'indexes' => array (
  8104. 'phylotree_idx1' => array (
  8105. 0 => 'phylotree_id',
  8106. ),
  8107. ),
  8108. 'foreign keys' => array (
  8109. 'dbxref' => array (
  8110. 'table' => 'dbxref',
  8111. 'columns' => array (
  8112. 'dbxref_id' => 'dbxref_id',
  8113. ),
  8114. ),
  8115. 'cvterm' => array (
  8116. 'table' => 'cvterm',
  8117. 'columns' => array (
  8118. 'type_id' => 'cvterm_id',
  8119. ),
  8120. ),
  8121. 'analysis' => array (
  8122. 'table' => 'analysis',
  8123. 'columns' => array (
  8124. 'analysis_id' => 'analysis_id',
  8125. ),
  8126. ),
  8127. ),
  8128. );
  8129. return $description;
  8130. }
  8131. /**
  8132. * Implements hook_chado_schema_v1_11_phylotree_pub()
  8133. * Purpose: To describe the structure of 'phylotree_pub' to tripal
  8134. * @see tripal_core_chado_insert()
  8135. * @see tripal_core_chado_update()
  8136. * @see tripal_core_chado_select()
  8137. *
  8138. * @return
  8139. * An array describing the 'phylotree_pub' table
  8140. *
  8141. * @ingroup tripal_chado_v1.11_schema_api
  8142. *
  8143. */
  8144. function tripal_core_chado_schema_v1_11_phylotree_pub() {
  8145. $description = array (
  8146. 'table' => 'phylotree_pub',
  8147. 'fields' => array (
  8148. 'phylotree_pub_id' => array (
  8149. 'type' => 'serial',
  8150. 'not NULL' => '1',
  8151. ),
  8152. 'phylotree_id' => array (
  8153. 'type' => 'int',
  8154. 'not NULL' => '1',
  8155. ),
  8156. 'pub_id' => array (
  8157. 'type' => 'int',
  8158. 'not NULL' => '1',
  8159. ),
  8160. ),
  8161. 'primary key' => array (
  8162. 0 => 'phylotree_pub_id',
  8163. ),
  8164. 'unique keys' => array (
  8165. 'phylotree_id' => array (
  8166. 0 => 'phylotree_id',
  8167. 1 => 'pub_id',
  8168. ),
  8169. ),
  8170. 'indexes' => array (
  8171. 'phylotree_pub_idx1' => array (
  8172. 0 => 'phylotree_id',
  8173. ),
  8174. 'phylotree_pub_idx2' => array (
  8175. 0 => 'pub_id',
  8176. ),
  8177. ),
  8178. 'foreign keys' => array (
  8179. 'pub' => array (
  8180. 'table' => 'pub',
  8181. 'columns' => array (
  8182. 'pub_id' => 'pub_id',
  8183. ),
  8184. ),
  8185. 'phylotree' => array (
  8186. 'table' => 'phylotree',
  8187. 'columns' => array (
  8188. 'phylotree_id' => 'phylotree_id',
  8189. ),
  8190. ),
  8191. ),
  8192. );
  8193. return $description;
  8194. }
  8195. /**
  8196. * Implements hook_chado_schema_v1_11_project()
  8197. * Purpose: To describe the structure of 'project' to tripal
  8198. * @see tripal_core_chado_insert()
  8199. * @see tripal_core_chado_update()
  8200. * @see tripal_core_chado_select()
  8201. *
  8202. * @return
  8203. * An array describing the 'project' table
  8204. *
  8205. * @ingroup tripal_chado_v1.11_schema_api
  8206. *
  8207. */
  8208. function tripal_core_chado_schema_v1_11_project() {
  8209. $description = array (
  8210. 'table' => 'project',
  8211. 'fields' => array (
  8212. 'project_id' => array (
  8213. 'type' => 'serial',
  8214. 'not NULL' => '1',
  8215. ),
  8216. 'name' => array (
  8217. 'type' => 'varchar',
  8218. 'length' => '255',
  8219. 'not NULL' => '1',
  8220. ),
  8221. 'description' => array (
  8222. 'type' => 'varchar',
  8223. 'length' => '255',
  8224. 'not NULL' => '1',
  8225. ),
  8226. ),
  8227. 'primary key' => array (
  8228. 0 => 'project_id',
  8229. ),
  8230. 'unique keys' => array (
  8231. 'project_c1' => array (
  8232. 0 => 'name',
  8233. ),
  8234. ),
  8235. 'indexes' => array (
  8236. ),
  8237. 'foreign keys' => array (
  8238. ),
  8239. );
  8240. return $description;
  8241. }
  8242. /**
  8243. * Implements hook_chado_schema_v1_11_protocol()
  8244. * Purpose: To describe the structure of 'protocol' to tripal
  8245. * @see tripal_core_chado_insert()
  8246. * @see tripal_core_chado_update()
  8247. * @see tripal_core_chado_select()
  8248. *
  8249. * @return
  8250. * An array describing the 'protocol' table
  8251. *
  8252. * @ingroup tripal_chado_v1.11_schema_api
  8253. *
  8254. */
  8255. function tripal_core_chado_schema_v1_11_protocol() {
  8256. $description = array (
  8257. 'table' => 'protocol',
  8258. 'fields' => array (
  8259. 'protocol_id' => array (
  8260. 'type' => 'serial',
  8261. 'not NULL' => '1',
  8262. ),
  8263. 'type_id' => array (
  8264. 'type' => 'int',
  8265. 'not NULL' => '1',
  8266. ),
  8267. 'pub_id' => array (
  8268. 'type' => 'int',
  8269. 'not NULL' => '',
  8270. ),
  8271. 'dbxref_id' => array (
  8272. 'type' => 'int',
  8273. 'not NULL' => '',
  8274. ),
  8275. 'name' => array (
  8276. 'type' => 'text',
  8277. 'not NULL' => '1',
  8278. ),
  8279. 'uri' => array (
  8280. 'type' => 'text',
  8281. 'not NULL' => '',
  8282. ),
  8283. 'protocoldescription' => array (
  8284. 'type' => 'text',
  8285. 'not NULL' => '',
  8286. ),
  8287. 'hardwaredescription' => array (
  8288. 'type' => 'text',
  8289. 'not NULL' => '',
  8290. ),
  8291. 'softwaredescription' => array (
  8292. 'type' => 'text',
  8293. 'not NULL' => '',
  8294. ),
  8295. ),
  8296. 'primary key' => array (
  8297. 0 => 'protocol_id',
  8298. ),
  8299. 'unique keys' => array (
  8300. 'protocol_c1' => array (
  8301. 0 => 'name',
  8302. ),
  8303. ),
  8304. 'indexes' => array (
  8305. 'protocol_idx1' => array (
  8306. 0 => 'type_id',
  8307. ),
  8308. 'protocol_idx2' => array (
  8309. 0 => 'pub_id',
  8310. ),
  8311. 'protocol_idx3' => array (
  8312. 0 => 'dbxref_id',
  8313. ),
  8314. ),
  8315. 'foreign keys' => array (
  8316. 'dbxref' => array (
  8317. 'table' => 'dbxref',
  8318. 'columns' => array (
  8319. 'dbxref_id' => 'dbxref_id',
  8320. ),
  8321. ),
  8322. 'cvterm' => array (
  8323. 'table' => 'cvterm',
  8324. 'columns' => array (
  8325. 'type_id' => 'cvterm_id',
  8326. ),
  8327. ),
  8328. 'pub' => array (
  8329. 'table' => 'pub',
  8330. 'columns' => array (
  8331. 'pub_id' => 'pub_id',
  8332. ),
  8333. ),
  8334. ),
  8335. );
  8336. return $description;
  8337. }
  8338. /**
  8339. * Implements hook_chado_schema_v1_11_protocolparam()
  8340. * Purpose: To describe the structure of 'protocolparam' to tripal
  8341. * @see tripal_core_chado_insert()
  8342. * @see tripal_core_chado_update()
  8343. * @see tripal_core_chado_select()
  8344. *
  8345. * @return
  8346. * An array describing the 'protocolparam' table
  8347. *
  8348. * @ingroup tripal_chado_v1.11_schema_api
  8349. *
  8350. */
  8351. function tripal_core_chado_schema_v1_11_protocolparam() {
  8352. $description = array (
  8353. 'table' => 'protocolparam',
  8354. 'fields' => array (
  8355. 'protocolparam_id' => array (
  8356. 'type' => 'serial',
  8357. 'not NULL' => '1',
  8358. ),
  8359. 'protocol_id' => array (
  8360. 'type' => 'int',
  8361. 'not NULL' => '1',
  8362. ),
  8363. 'name' => array (
  8364. 'type' => 'text',
  8365. 'not NULL' => '1',
  8366. ),
  8367. 'datatype_id' => array (
  8368. 'type' => 'int',
  8369. 'not NULL' => '',
  8370. ),
  8371. 'unittype_id' => array (
  8372. 'type' => 'int',
  8373. 'not NULL' => '',
  8374. ),
  8375. 'value' => array (
  8376. 'type' => 'text',
  8377. 'not NULL' => '',
  8378. ),
  8379. 'rank' => array (
  8380. 'type' => 'int',
  8381. 'not NULL' => '1',
  8382. 'default' => '0',
  8383. ),
  8384. ),
  8385. 'primary key' => array (
  8386. 0 => 'protocolparam_id',
  8387. ),
  8388. 'unique keys' => array (
  8389. ),
  8390. 'indexes' => array (
  8391. 'protocolparam_idx1' => array (
  8392. 0 => 'protocol_id',
  8393. ),
  8394. 'protocolparam_idx2' => array (
  8395. 0 => 'datatype_id',
  8396. ),
  8397. 'protocolparam_idx3' => array (
  8398. 0 => 'unittype_id',
  8399. ),
  8400. ),
  8401. 'foreign keys' => array (
  8402. 'cvterm' => array (
  8403. 'table' => 'cvterm',
  8404. 'columns' => array (
  8405. 'datatype_id' => 'cvterm_id',
  8406. 'unittype_id' => 'cvterm_id',
  8407. ),
  8408. ),
  8409. 'protocol' => array (
  8410. 'table' => 'protocol',
  8411. 'columns' => array (
  8412. 'protocol_id' => 'protocol_id',
  8413. ),
  8414. ),
  8415. ),
  8416. );
  8417. return $description;
  8418. }
  8419. /**
  8420. * Implements hook_chado_schema_v1_11_pub()
  8421. * Purpose: To describe the structure of 'pub' to tripal
  8422. * @see tripal_core_chado_insert()
  8423. * @see tripal_core_chado_update()
  8424. * @see tripal_core_chado_select()
  8425. *
  8426. * @return
  8427. * An array describing the 'pub' table
  8428. *
  8429. * @ingroup tripal_chado_v1.11_schema_api
  8430. *
  8431. */
  8432. function tripal_core_chado_schema_v1_11_pub() {
  8433. $description = array (
  8434. 'table' => 'pub',
  8435. 'fields' => array (
  8436. 'pub_id' => array (
  8437. 'type' => 'serial',
  8438. 'not NULL' => '1',
  8439. ),
  8440. 'title' => array (
  8441. 'type' => 'text',
  8442. 'not NULL' => '',
  8443. ),
  8444. 'volumetitle' => array (
  8445. 'type' => 'text',
  8446. 'not NULL' => '',
  8447. ),
  8448. 'volume' => array (
  8449. 'type' => 'varchar',
  8450. 'length' => '255',
  8451. 'not NULL' => '',
  8452. ),
  8453. 'series_name' => array (
  8454. 'type' => 'varchar',
  8455. 'length' => '255',
  8456. 'not NULL' => '',
  8457. ),
  8458. 'issue' => array (
  8459. 'type' => 'varchar',
  8460. 'length' => '255',
  8461. 'not NULL' => '',
  8462. ),
  8463. 'pyear' => array (
  8464. 'type' => 'varchar',
  8465. 'length' => '255',
  8466. 'not NULL' => '',
  8467. ),
  8468. 'pages' => array (
  8469. 'type' => 'varchar',
  8470. 'length' => '255',
  8471. 'not NULL' => '',
  8472. ),
  8473. 'miniref' => array (
  8474. 'type' => 'varchar',
  8475. 'length' => '255',
  8476. 'not NULL' => '',
  8477. ),
  8478. 'uniquename' => array (
  8479. 'type' => 'text',
  8480. 'not NULL' => '1',
  8481. ),
  8482. 'type_id' => array (
  8483. 'type' => 'int',
  8484. 'not NULL' => '1',
  8485. ),
  8486. 'is_obsolete' => array (
  8487. 'type' => 'boolean',
  8488. 'not NULL' => '',
  8489. 'default' => 'als',
  8490. ),
  8491. 'publisher' => array (
  8492. 'type' => 'varchar',
  8493. 'length' => '255',
  8494. 'not NULL' => '',
  8495. ),
  8496. 'pubplace' => array (
  8497. 'type' => 'varchar',
  8498. 'length' => '255',
  8499. 'not NULL' => '',
  8500. ),
  8501. ),
  8502. 'primary key' => array (
  8503. 0 => 'pub_id',
  8504. ),
  8505. 'unique keys' => array (
  8506. 'pub_c1' => array (
  8507. 0 => 'uniquename',
  8508. ),
  8509. ),
  8510. 'indexes' => array (
  8511. 'pub_idx1' => array (
  8512. 0 => 'type_id',
  8513. ),
  8514. ),
  8515. 'foreign keys' => array (
  8516. 'cvterm' => array (
  8517. 'table' => 'cvterm',
  8518. 'columns' => array (
  8519. 'type_id' => 'cvterm_id',
  8520. ),
  8521. ),
  8522. ),
  8523. );
  8524. return $description;
  8525. }
  8526. /**
  8527. * Implements hook_chado_schema_v1_11_pub_dbxref()
  8528. * Purpose: To describe the structure of 'pub_dbxref' to tripal
  8529. * @see tripal_core_chado_insert()
  8530. * @see tripal_core_chado_update()
  8531. * @see tripal_core_chado_select()
  8532. *
  8533. * @return
  8534. * An array describing the 'pub_dbxref' table
  8535. *
  8536. * @ingroup tripal_chado_v1.11_schema_api
  8537. *
  8538. */
  8539. function tripal_core_chado_schema_v1_11_pub_dbxref() {
  8540. $description = array (
  8541. 'table' => 'pub_dbxref',
  8542. 'fields' => array (
  8543. 'pub_dbxref_id' => array (
  8544. 'type' => 'serial',
  8545. 'not NULL' => '1',
  8546. ),
  8547. 'pub_id' => array (
  8548. 'type' => 'int',
  8549. 'not NULL' => '1',
  8550. ),
  8551. 'dbxref_id' => array (
  8552. 'type' => 'int',
  8553. 'not NULL' => '1',
  8554. ),
  8555. 'is_current' => array (
  8556. 'type' => 'boolean',
  8557. 'not NULL' => '1',
  8558. 'default' => 'ru',
  8559. ),
  8560. ),
  8561. 'primary key' => array (
  8562. 0 => 'pub_dbxref_id',
  8563. ),
  8564. 'unique keys' => array (
  8565. 'pub_dbxref_c1' => array (
  8566. 0 => 'pub_id',
  8567. 1 => 'dbxref_id',
  8568. ),
  8569. ),
  8570. 'indexes' => array (
  8571. 'pub_dbxref_idx1' => array (
  8572. 0 => 'pub_id',
  8573. ),
  8574. 'pub_dbxref_idx2' => array (
  8575. 0 => 'dbxref_id',
  8576. ),
  8577. ),
  8578. 'foreign keys' => array (
  8579. 'dbxref' => array (
  8580. 'table' => 'dbxref',
  8581. 'columns' => array (
  8582. 'dbxref_id' => 'dbxref_id',
  8583. ),
  8584. ),
  8585. 'pub' => array (
  8586. 'table' => 'pub',
  8587. 'columns' => array (
  8588. 'pub_id' => 'pub_id',
  8589. ),
  8590. ),
  8591. ),
  8592. );
  8593. return $description;
  8594. }
  8595. /**
  8596. * Implements hook_chado_schema_v1_11_pub_relationship()
  8597. * Purpose: To describe the structure of 'pub_relationship' to tripal
  8598. * @see tripal_core_chado_insert()
  8599. * @see tripal_core_chado_update()
  8600. * @see tripal_core_chado_select()
  8601. *
  8602. * @return
  8603. * An array describing the 'pub_relationship' table
  8604. *
  8605. * @ingroup tripal_chado_v1.11_schema_api
  8606. *
  8607. */
  8608. function tripal_core_chado_schema_v1_11_pub_relationship() {
  8609. $description = array (
  8610. 'table' => 'pub_relationship',
  8611. 'fields' => array (
  8612. 'pub_relationship_id' => array (
  8613. 'type' => 'serial',
  8614. 'not NULL' => '1',
  8615. ),
  8616. 'subject_id' => array (
  8617. 'type' => 'int',
  8618. 'not NULL' => '1',
  8619. ),
  8620. 'object_id' => array (
  8621. 'type' => 'int',
  8622. 'not NULL' => '1',
  8623. ),
  8624. 'type_id' => array (
  8625. 'type' => 'int',
  8626. 'not NULL' => '1',
  8627. ),
  8628. ),
  8629. 'primary key' => array (
  8630. 0 => 'pub_relationship_id',
  8631. ),
  8632. 'unique keys' => array (
  8633. 'pub_relationship_c1' => array (
  8634. 0 => 'subject_id',
  8635. 1 => 'object_id',
  8636. 2 => 'type_id',
  8637. ),
  8638. ),
  8639. 'indexes' => array (
  8640. 'pub_relationship_idx1' => array (
  8641. 0 => 'subject_id',
  8642. ),
  8643. 'pub_relationship_idx2' => array (
  8644. 0 => 'object_id',
  8645. ),
  8646. 'pub_relationship_idx3' => array (
  8647. 0 => 'type_id',
  8648. ),
  8649. ),
  8650. 'foreign keys' => array (
  8651. 'cvterm' => array (
  8652. 'table' => 'cvterm',
  8653. 'columns' => array (
  8654. 'type_id' => 'cvterm_id',
  8655. ),
  8656. ),
  8657. 'pub' => array (
  8658. 'table' => 'pub',
  8659. 'columns' => array (
  8660. 'subject_id' => 'pub_id',
  8661. 'object_id' => 'pub_id',
  8662. ),
  8663. ),
  8664. ),
  8665. );
  8666. return $description;
  8667. }
  8668. /**
  8669. * Implements hook_chado_schema_v1_11_pubauthor()
  8670. * Purpose: To describe the structure of 'pubauthor' to tripal
  8671. * @see tripal_core_chado_insert()
  8672. * @see tripal_core_chado_update()
  8673. * @see tripal_core_chado_select()
  8674. *
  8675. * @return
  8676. * An array describing the 'pubauthor' table
  8677. *
  8678. * @ingroup tripal_chado_v1.11_schema_api
  8679. *
  8680. */
  8681. function tripal_core_chado_schema_v1_11_pubauthor() {
  8682. $description = array (
  8683. 'table' => 'pubauthor',
  8684. 'fields' => array (
  8685. 'pubauthor_id' => array (
  8686. 'type' => 'serial',
  8687. 'not NULL' => '1',
  8688. ),
  8689. 'pub_id' => array (
  8690. 'type' => 'int',
  8691. 'not NULL' => '1',
  8692. ),
  8693. 'rank' => array (
  8694. 'type' => 'int',
  8695. 'not NULL' => '1',
  8696. ),
  8697. 'editor' => array (
  8698. 'type' => 'boolean',
  8699. 'not NULL' => '',
  8700. 'default' => 'als',
  8701. ),
  8702. 'surname' => array (
  8703. 'type' => 'varchar',
  8704. 'length' => '100',
  8705. 'not NULL' => '1',
  8706. ),
  8707. 'givennames' => array (
  8708. 'type' => 'varchar',
  8709. 'length' => '100',
  8710. 'not NULL' => '',
  8711. ),
  8712. 'suffix' => array (
  8713. 'type' => 'varchar',
  8714. 'length' => '100',
  8715. 'not NULL' => '',
  8716. ),
  8717. ),
  8718. 'primary key' => array (
  8719. 0 => 'pubauthor_id',
  8720. ),
  8721. 'unique keys' => array (
  8722. 'pubauthor_c1' => array (
  8723. 0 => 'pub_id',
  8724. 1 => 'rank',
  8725. ),
  8726. ),
  8727. 'indexes' => array (
  8728. 'pubauthor_idx2' => array (
  8729. 0 => 'pub_id',
  8730. ),
  8731. ),
  8732. 'foreign keys' => array (
  8733. 'pub' => array (
  8734. 'table' => 'pub',
  8735. 'columns' => array (
  8736. 'pub_id' => 'pub_id',
  8737. ),
  8738. ),
  8739. ),
  8740. );
  8741. return $description;
  8742. }
  8743. /**
  8744. * Implements hook_chado_schema_v1_11_pubprop()
  8745. * Purpose: To describe the structure of 'pubprop' to tripal
  8746. * @see tripal_core_chado_insert()
  8747. * @see tripal_core_chado_update()
  8748. * @see tripal_core_chado_select()
  8749. *
  8750. * @return
  8751. * An array describing the 'pubprop' table
  8752. *
  8753. * @ingroup tripal_chado_v1.11_schema_api
  8754. *
  8755. */
  8756. function tripal_core_chado_schema_v1_11_pubprop() {
  8757. $description = array (
  8758. 'table' => 'pubprop',
  8759. 'fields' => array (
  8760. 'pubprop_id' => array (
  8761. 'type' => 'serial',
  8762. 'not NULL' => '1',
  8763. ),
  8764. 'pub_id' => array (
  8765. 'type' => 'int',
  8766. 'not NULL' => '1',
  8767. ),
  8768. 'type_id' => array (
  8769. 'type' => 'int',
  8770. 'not NULL' => '1',
  8771. ),
  8772. 'value' => array (
  8773. 'type' => 'text',
  8774. 'not NULL' => '1',
  8775. ),
  8776. 'rank' => array (
  8777. 'type' => 'int',
  8778. 'not NULL' => '',
  8779. ),
  8780. ),
  8781. 'primary key' => array (
  8782. 0 => 'pubprop_id',
  8783. ),
  8784. 'unique keys' => array (
  8785. 'pubprop_c1' => array (
  8786. 0 => 'pub_id',
  8787. 1 => 'type_id',
  8788. 2 => 'rank',
  8789. ),
  8790. ),
  8791. 'indexes' => array (
  8792. 'pubprop_idx1' => array (
  8793. 0 => 'pub_id',
  8794. ),
  8795. 'pubprop_idx2' => array (
  8796. 0 => 'type_id',
  8797. ),
  8798. ),
  8799. 'foreign keys' => array (
  8800. 'cvterm' => array (
  8801. 'table' => 'cvterm',
  8802. 'columns' => array (
  8803. 'type_id' => 'cvterm_id',
  8804. ),
  8805. ),
  8806. 'pub' => array (
  8807. 'table' => 'pub',
  8808. 'columns' => array (
  8809. 'pub_id' => 'pub_id',
  8810. ),
  8811. ),
  8812. ),
  8813. );
  8814. return $description;
  8815. }
  8816. /**
  8817. * Implements hook_chado_schema_v1_11_quantification()
  8818. * Purpose: To describe the structure of 'quantification' to tripal
  8819. * @see tripal_core_chado_insert()
  8820. * @see tripal_core_chado_update()
  8821. * @see tripal_core_chado_select()
  8822. *
  8823. * @return
  8824. * An array describing the 'quantification' table
  8825. *
  8826. * @ingroup tripal_chado_v1.11_schema_api
  8827. *
  8828. */
  8829. function tripal_core_chado_schema_v1_11_quantification() {
  8830. $description = array (
  8831. 'table' => 'quantification',
  8832. 'fields' => array (
  8833. 'quantification_id' => array (
  8834. 'type' => 'serial',
  8835. 'not NULL' => '1',
  8836. ),
  8837. 'acquisition_id' => array (
  8838. 'type' => 'int',
  8839. 'not NULL' => '1',
  8840. ),
  8841. 'operator_id' => array (
  8842. 'type' => 'int',
  8843. 'not NULL' => '',
  8844. ),
  8845. 'protocol_id' => array (
  8846. 'type' => 'int',
  8847. 'not NULL' => '',
  8848. ),
  8849. 'analysis_id' => array (
  8850. 'type' => 'int',
  8851. 'not NULL' => '1',
  8852. ),
  8853. 'quantificationdate' => array (
  8854. 'type' => 'datetime',
  8855. 'not NULL' => '',
  8856. 'default' => 'ow(',
  8857. ),
  8858. 'name' => array (
  8859. 'type' => 'text',
  8860. 'not NULL' => '',
  8861. ),
  8862. 'uri' => array (
  8863. 'type' => 'text',
  8864. 'not NULL' => '',
  8865. ),
  8866. ),
  8867. 'primary key' => array (
  8868. 0 => 'quantification_id',
  8869. ),
  8870. 'unique keys' => array (
  8871. 'quantification_c1' => array (
  8872. 0 => 'name',
  8873. 1 => 'analysis_id',
  8874. ),
  8875. ),
  8876. 'indexes' => array (
  8877. 'quantification_idx1' => array (
  8878. 0 => 'acquisition_id',
  8879. ),
  8880. 'quantification_idx2' => array (
  8881. 0 => 'operator_id',
  8882. ),
  8883. 'quantification_idx3' => array (
  8884. 0 => 'protocol_id',
  8885. ),
  8886. 'quantification_idx4' => array (
  8887. 0 => 'analysis_id',
  8888. ),
  8889. ),
  8890. 'foreign keys' => array (
  8891. 'analysis' => array (
  8892. 'table' => 'analysis',
  8893. 'columns' => array (
  8894. 'analysis_id' => 'analysis_id',
  8895. ),
  8896. ),
  8897. 'contact' => array (
  8898. 'table' => 'contact',
  8899. 'columns' => array (
  8900. 'operator_id' => 'contact_id',
  8901. ),
  8902. ),
  8903. 'protocol' => array (
  8904. 'table' => 'protocol',
  8905. 'columns' => array (
  8906. 'protocol_id' => 'protocol_id',
  8907. ),
  8908. ),
  8909. 'acquisition' => array (
  8910. 'table' => 'acquisition',
  8911. 'columns' => array (
  8912. 'acquisition_id' => 'acquisition_id',
  8913. ),
  8914. ),
  8915. ),
  8916. );
  8917. return $description;
  8918. }
  8919. /**
  8920. * Implements hook_chado_schema_v1_11_quantification_relationship()
  8921. * Purpose: To describe the structure of 'quantification_relationship' to tripal
  8922. * @see tripal_core_chado_insert()
  8923. * @see tripal_core_chado_update()
  8924. * @see tripal_core_chado_select()
  8925. *
  8926. * @return
  8927. * An array describing the 'quantification_relationship' table
  8928. *
  8929. * @ingroup tripal_chado_v1.11_schema_api
  8930. *
  8931. */
  8932. function tripal_core_chado_schema_v1_11_quantification_relationship() {
  8933. $description = array (
  8934. 'table' => 'quantification_relationship',
  8935. 'fields' => array (
  8936. 'quantification_relationship_id' => array (
  8937. 'type' => 'serial',
  8938. 'not NULL' => '1',
  8939. ),
  8940. 'subject_id' => array (
  8941. 'type' => 'int',
  8942. 'not NULL' => '1',
  8943. ),
  8944. 'type_id' => array (
  8945. 'type' => 'int',
  8946. 'not NULL' => '1',
  8947. ),
  8948. 'object_id' => array (
  8949. 'type' => 'int',
  8950. 'not NULL' => '1',
  8951. ),
  8952. ),
  8953. 'primary key' => array (
  8954. 0 => 'quantification_relationship_id',
  8955. ),
  8956. 'unique keys' => array (
  8957. 'quantification_relationship_c1' => array (
  8958. 0 => 'subject_id',
  8959. 1 => 'object_id',
  8960. 2 => 'type_id',
  8961. ),
  8962. ),
  8963. 'indexes' => array (
  8964. 'quantification_relationship_idx1' => array (
  8965. 0 => 'subject_id',
  8966. ),
  8967. 'quantification_relationship_idx2' => array (
  8968. 0 => 'type_id',
  8969. ),
  8970. 'quantification_relationship_idx3' => array (
  8971. 0 => 'object_id',
  8972. ),
  8973. ),
  8974. 'foreign keys' => array (
  8975. 'cvterm' => array (
  8976. 'table' => 'cvterm',
  8977. 'columns' => array (
  8978. 'type_id' => 'cvterm_id',
  8979. ),
  8980. ),
  8981. 'quantification' => array (
  8982. 'table' => 'quantification',
  8983. 'columns' => array (
  8984. 'subject_id' => 'quantification_id',
  8985. 'object_id' => 'quantification_id',
  8986. ),
  8987. ),
  8988. ),
  8989. );
  8990. return $description;
  8991. }
  8992. /**
  8993. * Implements hook_chado_schema_v1_11_quantificationprop()
  8994. * Purpose: To describe the structure of 'quantificationprop' to tripal
  8995. * @see tripal_core_chado_insert()
  8996. * @see tripal_core_chado_update()
  8997. * @see tripal_core_chado_select()
  8998. *
  8999. * @return
  9000. * An array describing the 'quantificationprop' table
  9001. *
  9002. * @ingroup tripal_chado_v1.11_schema_api
  9003. *
  9004. */
  9005. function tripal_core_chado_schema_v1_11_quantificationprop() {
  9006. $description = array (
  9007. 'table' => 'quantificationprop',
  9008. 'fields' => array (
  9009. 'quantificationprop_id' => array (
  9010. 'type' => 'serial',
  9011. 'not NULL' => '1',
  9012. ),
  9013. 'quantification_id' => array (
  9014. 'type' => 'int',
  9015. 'not NULL' => '1',
  9016. ),
  9017. 'type_id' => array (
  9018. 'type' => 'int',
  9019. 'not NULL' => '1',
  9020. ),
  9021. 'value' => array (
  9022. 'type' => 'text',
  9023. 'not NULL' => '',
  9024. ),
  9025. 'rank' => array (
  9026. 'type' => 'int',
  9027. 'not NULL' => '1',
  9028. 'default' => '0',
  9029. ),
  9030. ),
  9031. 'primary key' => array (
  9032. 0 => 'quantificationprop_id',
  9033. ),
  9034. 'unique keys' => array (
  9035. 'quantificationprop_c1' => array (
  9036. 0 => 'quantification_id',
  9037. 1 => 'type_id',
  9038. 2 => 'rank',
  9039. ),
  9040. ),
  9041. 'indexes' => array (
  9042. 'quantificationprop_idx1' => array (
  9043. 0 => 'quantification_id',
  9044. ),
  9045. 'quantificationprop_idx2' => array (
  9046. 0 => 'type_id',
  9047. ),
  9048. ),
  9049. 'foreign keys' => array (
  9050. 'cvterm' => array (
  9051. 'table' => 'cvterm',
  9052. 'columns' => array (
  9053. 'type_id' => 'cvterm_id',
  9054. ),
  9055. ),
  9056. 'quantification' => array (
  9057. 'table' => 'quantification',
  9058. 'columns' => array (
  9059. 'quantification_id' => 'quantification_id',
  9060. ),
  9061. ),
  9062. ),
  9063. );
  9064. return $description;
  9065. }
  9066. /**
  9067. * Implements hook_chado_schema_v1_11_stock()
  9068. * Purpose: To describe the structure of 'stock' to tripal
  9069. * @see tripal_core_chado_insert()
  9070. * @see tripal_core_chado_update()
  9071. * @see tripal_core_chado_select()
  9072. *
  9073. * @return
  9074. * An array describing the 'stock' table
  9075. *
  9076. * @ingroup tripal_chado_v1.11_schema_api
  9077. *
  9078. */
  9079. function tripal_core_chado_schema_v1_11_stock() {
  9080. $description = array (
  9081. 'table' => 'stock',
  9082. 'fields' => array (
  9083. 'stock_id' => array (
  9084. 'type' => 'serial',
  9085. 'not NULL' => '1',
  9086. ),
  9087. 'dbxref_id' => array (
  9088. 'type' => 'int',
  9089. 'not NULL' => '',
  9090. ),
  9091. 'organism_id' => array (
  9092. 'type' => 'int',
  9093. 'not NULL' => '1',
  9094. ),
  9095. 'name' => array (
  9096. 'type' => 'varchar',
  9097. 'length' => '255',
  9098. 'not NULL' => '',
  9099. ),
  9100. 'uniquename' => array (
  9101. 'type' => 'text',
  9102. 'not NULL' => '1',
  9103. ),
  9104. 'description' => array (
  9105. 'type' => 'text',
  9106. 'not NULL' => '',
  9107. ),
  9108. 'type_id' => array (
  9109. 'type' => 'int',
  9110. 'not NULL' => '1',
  9111. ),
  9112. 'is_obsolete' => array (
  9113. 'type' => 'boolean',
  9114. 'not NULL' => '1',
  9115. 'default' => 'als',
  9116. ),
  9117. ),
  9118. 'primary key' => array (
  9119. 0 => 'stock_id',
  9120. ),
  9121. 'unique keys' => array (
  9122. 'stock_c1' => array (
  9123. 0 => 'organism_id',
  9124. 1 => 'uniquename',
  9125. 2 => 'type_id',
  9126. ),
  9127. ),
  9128. 'indexes' => array (
  9129. 'stock_idx1' => array (
  9130. 0 => 'dbxref_id',
  9131. ),
  9132. 'stock_idx2' => array (
  9133. 0 => 'organism_id',
  9134. ),
  9135. 'stock_idx3' => array (
  9136. 0 => 'type_id',
  9137. ),
  9138. 'stock_idx4' => array (
  9139. 0 => 'uniquename',
  9140. ),
  9141. 'stock_name_ind1' => array (
  9142. 0 => 'name',
  9143. ),
  9144. ),
  9145. 'foreign keys' => array (
  9146. 'dbxref' => array (
  9147. 'table' => 'dbxref',
  9148. 'columns' => array (
  9149. 'dbxref_id' => 'dbxref_id',
  9150. ),
  9151. ),
  9152. 'cvterm' => array (
  9153. 'table' => 'cvterm',
  9154. 'columns' => array (
  9155. 'type_id' => 'cvterm_id',
  9156. ),
  9157. ),
  9158. 'organism' => array (
  9159. 'table' => 'organism',
  9160. 'columns' => array (
  9161. 'organism_id' => 'organism_id',
  9162. ),
  9163. ),
  9164. ),
  9165. );
  9166. return $description;
  9167. }
  9168. /**
  9169. * Implements hook_chado_schema_v1_11_stock_cvterm()
  9170. * Purpose: To describe the structure of 'stock_cvterm' to tripal
  9171. * @see tripal_core_chado_insert()
  9172. * @see tripal_core_chado_update()
  9173. * @see tripal_core_chado_select()
  9174. *
  9175. * @return
  9176. * An array describing the 'stock_cvterm' table
  9177. *
  9178. * @ingroup tripal_chado_v1.11_schema_api
  9179. *
  9180. */
  9181. function tripal_core_chado_schema_v1_11_stock_cvterm() {
  9182. $description = array (
  9183. 'table' => 'stock_cvterm',
  9184. 'fields' => array (
  9185. 'stock_cvterm_id' => array (
  9186. 'type' => 'serial',
  9187. 'not NULL' => '1',
  9188. ),
  9189. 'stock_id' => array (
  9190. 'type' => 'int',
  9191. 'not NULL' => '1',
  9192. ),
  9193. 'cvterm_id' => array (
  9194. 'type' => 'int',
  9195. 'not NULL' => '1',
  9196. ),
  9197. 'pub_id' => array (
  9198. 'type' => 'int',
  9199. 'not NULL' => '1',
  9200. ),
  9201. ),
  9202. 'primary key' => array (
  9203. 0 => 'stock_cvterm_id',
  9204. ),
  9205. 'unique keys' => array (
  9206. 'stock_cvterm_c1' => array (
  9207. 0 => 'stock_id',
  9208. 1 => 'cvterm_id',
  9209. 2 => 'pub_id',
  9210. ),
  9211. ),
  9212. 'indexes' => array (
  9213. 'stock_cvterm_idx1' => array (
  9214. 0 => 'stock_id',
  9215. ),
  9216. 'stock_cvterm_idx2' => array (
  9217. 0 => 'cvterm_id',
  9218. ),
  9219. 'stock_cvterm_idx3' => array (
  9220. 0 => 'pub_id',
  9221. ),
  9222. ),
  9223. 'foreign keys' => array (
  9224. 'cvterm' => array (
  9225. 'table' => 'cvterm',
  9226. 'columns' => array (
  9227. 'cvterm_id' => 'cvterm_id',
  9228. ),
  9229. ),
  9230. 'pub' => array (
  9231. 'table' => 'pub',
  9232. 'columns' => array (
  9233. 'pub_id' => 'pub_id',
  9234. ),
  9235. ),
  9236. 'stock' => array (
  9237. 'table' => 'stock',
  9238. 'columns' => array (
  9239. 'stock_id' => 'stock_id',
  9240. ),
  9241. ),
  9242. ),
  9243. );
  9244. return $description;
  9245. }
  9246. /**
  9247. * Implements hook_chado_schema_v1_11_stock_dbxref()
  9248. * Purpose: To describe the structure of 'stock_dbxref' to tripal
  9249. * @see tripal_core_chado_insert()
  9250. * @see tripal_core_chado_update()
  9251. * @see tripal_core_chado_select()
  9252. *
  9253. * @return
  9254. * An array describing the 'stock_dbxref' table
  9255. *
  9256. * @ingroup tripal_chado_v1.11_schema_api
  9257. *
  9258. */
  9259. function tripal_core_chado_schema_v1_11_stock_dbxref() {
  9260. $description = array (
  9261. 'table' => 'stock_dbxref',
  9262. 'fields' => array (
  9263. 'stock_dbxref_id' => array (
  9264. 'type' => 'serial',
  9265. 'not NULL' => '1',
  9266. ),
  9267. 'stock_id' => array (
  9268. 'type' => 'int',
  9269. 'not NULL' => '1',
  9270. ),
  9271. 'dbxref_id' => array (
  9272. 'type' => 'int',
  9273. 'not NULL' => '1',
  9274. ),
  9275. 'is_current' => array (
  9276. 'type' => 'boolean',
  9277. 'not NULL' => '1',
  9278. 'default' => 'ru',
  9279. ),
  9280. ),
  9281. 'primary key' => array (
  9282. 0 => 'stock_dbxref_id',
  9283. ),
  9284. 'unique keys' => array (
  9285. 'stock_dbxref_c1' => array (
  9286. 0 => 'stock_id',
  9287. 1 => 'dbxref_id',
  9288. ),
  9289. ),
  9290. 'indexes' => array (
  9291. 'stock_dbxref_idx1' => array (
  9292. 0 => 'stock_id',
  9293. ),
  9294. 'stock_dbxref_idx2' => array (
  9295. 0 => 'dbxref_id',
  9296. ),
  9297. ),
  9298. 'foreign keys' => array (
  9299. 'dbxref' => array (
  9300. 'table' => 'dbxref',
  9301. 'columns' => array (
  9302. 'dbxref_id' => 'dbxref_id',
  9303. ),
  9304. ),
  9305. 'stock' => array (
  9306. 'table' => 'stock',
  9307. 'columns' => array (
  9308. 'stock_id' => 'stock_id',
  9309. ),
  9310. ),
  9311. ),
  9312. );
  9313. return $description;
  9314. }
  9315. /**
  9316. * Implements hook_chado_schema_v1_11_stock_genotype()
  9317. * Purpose: To describe the structure of 'stock_genotype' to tripal
  9318. * @see tripal_core_chado_insert()
  9319. * @see tripal_core_chado_update()
  9320. * @see tripal_core_chado_select()
  9321. *
  9322. * @return
  9323. * An array describing the 'stock_genotype' table
  9324. *
  9325. * @ingroup tripal_chado_v1.11_schema_api
  9326. *
  9327. */
  9328. function tripal_core_chado_schema_v1_11_stock_genotype() {
  9329. $description = array (
  9330. 'table' => 'stock_genotype',
  9331. 'fields' => array (
  9332. 'stock_genotype_id' => array (
  9333. 'type' => 'serial',
  9334. 'not NULL' => '1',
  9335. ),
  9336. 'stock_id' => array (
  9337. 'type' => 'int',
  9338. 'not NULL' => '1',
  9339. ),
  9340. 'genotype_id' => array (
  9341. 'type' => 'int',
  9342. 'not NULL' => '1',
  9343. ),
  9344. ),
  9345. 'primary key' => array (
  9346. 0 => 'stock_genotype_id',
  9347. ),
  9348. 'unique keys' => array (
  9349. 'stock_genotype_c1' => array (
  9350. 0 => 'stock_id',
  9351. 1 => 'genotype_id',
  9352. ),
  9353. ),
  9354. 'indexes' => array (
  9355. 'stock_genotype_idx1' => array (
  9356. 0 => 'stock_id',
  9357. ),
  9358. 'stock_genotype_idx2' => array (
  9359. 0 => 'genotype_id',
  9360. ),
  9361. ),
  9362. 'foreign keys' => array (
  9363. 'genotype' => array (
  9364. 'table' => 'genotype',
  9365. 'columns' => array (
  9366. 'genotype_id' => 'genotype_id',
  9367. ),
  9368. ),
  9369. 'stock' => array (
  9370. 'table' => 'stock',
  9371. 'columns' => array (
  9372. 'stock_id' => 'stock_id',
  9373. ),
  9374. ),
  9375. ),
  9376. );
  9377. return $description;
  9378. }
  9379. /**
  9380. * Implements hook_chado_schema_v1_11_stock_pub()
  9381. * Purpose: To describe the structure of 'stock_pub' to tripal
  9382. * @see tripal_core_chado_insert()
  9383. * @see tripal_core_chado_update()
  9384. * @see tripal_core_chado_select()
  9385. *
  9386. * @return
  9387. * An array describing the 'stock_pub' table
  9388. *
  9389. * @ingroup tripal_chado_v1.11_schema_api
  9390. *
  9391. */
  9392. function tripal_core_chado_schema_v1_11_stock_pub() {
  9393. $description = array (
  9394. 'table' => 'stock_pub',
  9395. 'fields' => array (
  9396. 'stock_pub_id' => array (
  9397. 'type' => 'serial',
  9398. 'not NULL' => '1',
  9399. ),
  9400. 'stock_id' => array (
  9401. 'type' => 'int',
  9402. 'not NULL' => '1',
  9403. ),
  9404. 'pub_id' => array (
  9405. 'type' => 'int',
  9406. 'not NULL' => '1',
  9407. ),
  9408. ),
  9409. 'primary key' => array (
  9410. 0 => 'stock_pub_id',
  9411. ),
  9412. 'unique keys' => array (
  9413. 'stock_pub_c1' => array (
  9414. 0 => 'stock_id',
  9415. 1 => 'pub_id',
  9416. ),
  9417. ),
  9418. 'indexes' => array (
  9419. 'stock_pub_idx1' => array (
  9420. 0 => 'stock_id',
  9421. ),
  9422. 'stock_pub_idx2' => array (
  9423. 0 => 'pub_id',
  9424. ),
  9425. ),
  9426. 'foreign keys' => array (
  9427. 'pub' => array (
  9428. 'table' => 'pub',
  9429. 'columns' => array (
  9430. 'pub_id' => 'pub_id',
  9431. ),
  9432. ),
  9433. 'stock' => array (
  9434. 'table' => 'stock',
  9435. 'columns' => array (
  9436. 'stock_id' => 'stock_id',
  9437. ),
  9438. ),
  9439. ),
  9440. );
  9441. return $description;
  9442. }
  9443. /**
  9444. * Implements hook_chado_schema_v1_11_stock_relationship()
  9445. * Purpose: To describe the structure of 'stock_relationship' to tripal
  9446. * @see tripal_core_chado_insert()
  9447. * @see tripal_core_chado_update()
  9448. * @see tripal_core_chado_select()
  9449. *
  9450. * @return
  9451. * An array describing the 'stock_relationship' table
  9452. *
  9453. * @ingroup tripal_chado_v1.11_schema_api
  9454. *
  9455. */
  9456. function tripal_core_chado_schema_v1_11_stock_relationship() {
  9457. $description = array (
  9458. 'table' => 'stock_relationship',
  9459. 'fields' => array (
  9460. 'stock_relationship_id' => array (
  9461. 'type' => 'serial',
  9462. 'not NULL' => '1',
  9463. ),
  9464. 'subject_id' => array (
  9465. 'type' => 'int',
  9466. 'not NULL' => '1',
  9467. ),
  9468. 'object_id' => array (
  9469. 'type' => 'int',
  9470. 'not NULL' => '1',
  9471. ),
  9472. 'type_id' => array (
  9473. 'type' => 'int',
  9474. 'not NULL' => '1',
  9475. ),
  9476. 'value' => array (
  9477. 'type' => 'text',
  9478. 'not NULL' => '',
  9479. ),
  9480. 'rank' => array (
  9481. 'type' => 'int',
  9482. 'not NULL' => '1',
  9483. 'default' => '0',
  9484. ),
  9485. ),
  9486. 'primary key' => array (
  9487. 0 => 'stock_relationship_id',
  9488. ),
  9489. 'unique keys' => array (
  9490. 'stock_relationship_c1' => array (
  9491. 0 => 'subject_id',
  9492. 1 => 'object_id',
  9493. 2 => 'type_id',
  9494. 3 => 'rank',
  9495. ),
  9496. ),
  9497. 'indexes' => array (
  9498. 'stock_relationship_idx1' => array (
  9499. 0 => 'subject_id',
  9500. ),
  9501. 'stock_relationship_idx2' => array (
  9502. 0 => 'object_id',
  9503. ),
  9504. 'stock_relationship_idx3' => array (
  9505. 0 => 'type_id',
  9506. ),
  9507. ),
  9508. 'foreign keys' => array (
  9509. 'cvterm' => array (
  9510. 'table' => 'cvterm',
  9511. 'columns' => array (
  9512. 'type_id' => 'cvterm_id',
  9513. ),
  9514. ),
  9515. 'stock' => array (
  9516. 'table' => 'stock',
  9517. 'columns' => array (
  9518. 'subject_id' => 'stock_id',
  9519. 'object_id' => 'stock_id',
  9520. ),
  9521. ),
  9522. ),
  9523. );
  9524. return $description;
  9525. }
  9526. /**
  9527. * Implements hook_chado_schema_v1_11_stock_relationship_pub()
  9528. * Purpose: To describe the structure of 'stock_relationship_pub' to tripal
  9529. * @see tripal_core_chado_insert()
  9530. * @see tripal_core_chado_update()
  9531. * @see tripal_core_chado_select()
  9532. *
  9533. * @return
  9534. * An array describing the 'stock_relationship_pub' table
  9535. *
  9536. * @ingroup tripal_chado_v1.11_schema_api
  9537. *
  9538. */
  9539. function tripal_core_chado_schema_v1_11_stock_relationship_pub() {
  9540. $description = array (
  9541. 'table' => 'stock_relationship_pub',
  9542. 'fields' => array (
  9543. 'stock_relationship_pub_id' => array (
  9544. 'type' => 'serial',
  9545. 'not NULL' => '1',
  9546. ),
  9547. 'stock_relationship_id' => array (
  9548. 'type' => 'int',
  9549. 'not NULL' => '1',
  9550. ),
  9551. 'pub_id' => array (
  9552. 'type' => 'int',
  9553. 'not NULL' => '1',
  9554. ),
  9555. ),
  9556. 'primary key' => array (
  9557. 0 => 'stock_relationship_pub_id',
  9558. ),
  9559. 'unique keys' => array (
  9560. 'stock_relationship_pub_c1' => array (
  9561. 0 => 'stock_relationship_id',
  9562. 1 => 'pub_id',
  9563. ),
  9564. ),
  9565. 'indexes' => array (
  9566. 'stock_relationship_pub_idx1' => array (
  9567. 0 => 'stock_relationship_id',
  9568. ),
  9569. 'stock_relationship_pub_idx2' => array (
  9570. 0 => 'pub_id',
  9571. ),
  9572. ),
  9573. 'foreign keys' => array (
  9574. 'pub' => array (
  9575. 'table' => 'pub',
  9576. 'columns' => array (
  9577. 'pub_id' => 'pub_id',
  9578. ),
  9579. ),
  9580. 'stock_relationship' => array (
  9581. 'table' => 'stock_relationship',
  9582. 'columns' => array (
  9583. 'stock_relationship_id' => 'stock_relationship_id',
  9584. ),
  9585. ),
  9586. ),
  9587. );
  9588. return $description;
  9589. }
  9590. /**
  9591. * Implements hook_chado_schema_v1_11_stockcollection()
  9592. * Purpose: To describe the structure of 'stockcollection' to tripal
  9593. * @see tripal_core_chado_insert()
  9594. * @see tripal_core_chado_update()
  9595. * @see tripal_core_chado_select()
  9596. *
  9597. * @return
  9598. * An array describing the 'stockcollection' table
  9599. *
  9600. * @ingroup tripal_chado_v1.11_schema_api
  9601. *
  9602. */
  9603. function tripal_core_chado_schema_v1_11_stockcollection() {
  9604. $description = array (
  9605. 'table' => 'stockcollection',
  9606. 'fields' => array (
  9607. 'stockcollection_id' => array (
  9608. 'type' => 'serial',
  9609. 'not NULL' => '1',
  9610. ),
  9611. 'type_id' => array (
  9612. 'type' => 'int',
  9613. 'not NULL' => '1',
  9614. ),
  9615. 'contact_id' => array (
  9616. 'type' => 'int',
  9617. 'not NULL' => '',
  9618. ),
  9619. 'name' => array (
  9620. 'type' => 'varchar',
  9621. 'length' => '255',
  9622. 'not NULL' => '',
  9623. ),
  9624. 'uniquename' => array (
  9625. 'type' => 'text',
  9626. 'not NULL' => '1',
  9627. ),
  9628. ),
  9629. 'primary key' => array (
  9630. 0 => 'stockcollection_id',
  9631. ),
  9632. 'unique keys' => array (
  9633. 'stockcollection_c1' => array (
  9634. 0 => 'uniquename',
  9635. 1 => 'type_id',
  9636. ),
  9637. ),
  9638. 'indexes' => array (
  9639. 'stockcollection_idx1' => array (
  9640. 0 => 'contact_id',
  9641. ),
  9642. 'stockcollection_idx2' => array (
  9643. 0 => 'type_id',
  9644. ),
  9645. 'stockcollection_idx3' => array (
  9646. 0 => 'uniquename',
  9647. ),
  9648. 'stockcollection_name_ind1' => array (
  9649. 0 => 'name',
  9650. ),
  9651. ),
  9652. 'foreign keys' => array (
  9653. 'cvterm' => array (
  9654. 'table' => 'cvterm',
  9655. 'columns' => array (
  9656. 'type_id' => 'cvterm_id',
  9657. ),
  9658. ),
  9659. 'contact' => array (
  9660. 'table' => 'contact',
  9661. 'columns' => array (
  9662. 'contact_id' => 'contact_id',
  9663. ),
  9664. ),
  9665. ),
  9666. );
  9667. return $description;
  9668. }
  9669. /**
  9670. * Implements hook_chado_schema_v1_11_stockcollection_stock()
  9671. * Purpose: To describe the structure of 'stockcollection_stock' to tripal
  9672. * @see tripal_core_chado_insert()
  9673. * @see tripal_core_chado_update()
  9674. * @see tripal_core_chado_select()
  9675. *
  9676. * @return
  9677. * An array describing the 'stockcollection_stock' table
  9678. *
  9679. * @ingroup tripal_chado_v1.11_schema_api
  9680. *
  9681. */
  9682. function tripal_core_chado_schema_v1_11_stockcollection_stock() {
  9683. $description = array (
  9684. 'table' => 'stockcollection_stock',
  9685. 'fields' => array (
  9686. 'stockcollection_stock_id' => array (
  9687. 'type' => 'serial',
  9688. 'not NULL' => '1',
  9689. ),
  9690. 'stockcollection_id' => array (
  9691. 'type' => 'int',
  9692. 'not NULL' => '1',
  9693. ),
  9694. 'stock_id' => array (
  9695. 'type' => 'int',
  9696. 'not NULL' => '1',
  9697. ),
  9698. ),
  9699. 'primary key' => array (
  9700. 0 => 'stockcollection_stock_id',
  9701. ),
  9702. 'unique keys' => array (
  9703. 'stockcollection_stock_c1' => array (
  9704. 0 => 'stockcollection_id',
  9705. 1 => 'stock_id',
  9706. ),
  9707. ),
  9708. 'indexes' => array (
  9709. 'stockcollection_stock_idx1' => array (
  9710. 0 => 'stockcollection_id',
  9711. ),
  9712. 'stockcollection_stock_idx2' => array (
  9713. 0 => 'stock_id',
  9714. ),
  9715. ),
  9716. 'foreign keys' => array (
  9717. 'stock' => array (
  9718. 'table' => 'stock',
  9719. 'columns' => array (
  9720. 'stock_id' => 'stock_id',
  9721. ),
  9722. ),
  9723. 'stockcollection' => array (
  9724. 'table' => 'stockcollection',
  9725. 'columns' => array (
  9726. 'stockcollection_id' => 'stockcollection_id',
  9727. ),
  9728. ),
  9729. ),
  9730. );
  9731. return $description;
  9732. }
  9733. /**
  9734. * Implements hook_chado_schema_v1_11_stockcollectionprop()
  9735. * Purpose: To describe the structure of 'stockcollectionprop' to tripal
  9736. * @see tripal_core_chado_insert()
  9737. * @see tripal_core_chado_update()
  9738. * @see tripal_core_chado_select()
  9739. *
  9740. * @return
  9741. * An array describing the 'stockcollectionprop' table
  9742. *
  9743. * @ingroup tripal_chado_v1.11_schema_api
  9744. *
  9745. */
  9746. function tripal_core_chado_schema_v1_11_stockcollectionprop() {
  9747. $description = array (
  9748. 'table' => 'stockcollectionprop',
  9749. 'fields' => array (
  9750. 'stockcollectionprop_id' => array (
  9751. 'type' => 'serial',
  9752. 'not NULL' => '1',
  9753. ),
  9754. 'stockcollection_id' => array (
  9755. 'type' => 'int',
  9756. 'not NULL' => '1',
  9757. ),
  9758. 'type_id' => array (
  9759. 'type' => 'int',
  9760. 'not NULL' => '1',
  9761. ),
  9762. 'value' => array (
  9763. 'type' => 'text',
  9764. 'not NULL' => '',
  9765. ),
  9766. 'rank' => array (
  9767. 'type' => 'int',
  9768. 'not NULL' => '1',
  9769. 'default' => '0',
  9770. ),
  9771. ),
  9772. 'primary key' => array (
  9773. 0 => 'stockcollectionprop_id',
  9774. ),
  9775. 'unique keys' => array (
  9776. 'stockcollectionprop_c1' => array (
  9777. 0 => 'stockcollection_id',
  9778. 1 => 'type_id',
  9779. 2 => 'rank',
  9780. ),
  9781. ),
  9782. 'indexes' => array (
  9783. 'stockcollectionprop_idx1' => array (
  9784. 0 => 'stockcollection_id',
  9785. ),
  9786. 'stockcollectionprop_idx2' => array (
  9787. 0 => 'type_id',
  9788. ),
  9789. ),
  9790. 'foreign keys' => array (
  9791. 'cvterm' => array (
  9792. 'table' => 'cvterm',
  9793. 'columns' => array (
  9794. 'type_id' => 'cvterm_id',
  9795. ),
  9796. ),
  9797. 'stockcollection' => array (
  9798. 'table' => 'stockcollection',
  9799. 'columns' => array (
  9800. 'stockcollection_id' => 'stockcollection_id',
  9801. ),
  9802. ),
  9803. ),
  9804. );
  9805. return $description;
  9806. }
  9807. /**
  9808. * Implements hook_chado_schema_v1_11_stockprop()
  9809. * Purpose: To describe the structure of 'stockprop' to tripal
  9810. * @see tripal_core_chado_insert()
  9811. * @see tripal_core_chado_update()
  9812. * @see tripal_core_chado_select()
  9813. *
  9814. * @return
  9815. * An array describing the 'stockprop' table
  9816. *
  9817. * @ingroup tripal_chado_v1.11_schema_api
  9818. *
  9819. */
  9820. function tripal_core_chado_schema_v1_11_stockprop() {
  9821. $description = array (
  9822. 'table' => 'stockprop',
  9823. 'fields' => array (
  9824. 'stockprop_id' => array (
  9825. 'type' => 'serial',
  9826. 'not NULL' => '1',
  9827. ),
  9828. 'stock_id' => array (
  9829. 'type' => 'int',
  9830. 'not NULL' => '1',
  9831. ),
  9832. 'type_id' => array (
  9833. 'type' => 'int',
  9834. 'not NULL' => '1',
  9835. ),
  9836. 'value' => array (
  9837. 'type' => 'text',
  9838. 'not NULL' => '',
  9839. ),
  9840. 'rank' => array (
  9841. 'type' => 'int',
  9842. 'not NULL' => '1',
  9843. 'default' => '0',
  9844. ),
  9845. ),
  9846. 'primary key' => array (
  9847. 0 => 'stockprop_id',
  9848. ),
  9849. 'unique keys' => array (
  9850. 'stockprop_c1' => array (
  9851. 0 => 'stock_id',
  9852. 1 => 'type_id',
  9853. 2 => 'rank',
  9854. ),
  9855. ),
  9856. 'indexes' => array (
  9857. 'stockprop_idx1' => array (
  9858. 0 => 'stock_id',
  9859. ),
  9860. 'stockprop_idx2' => array (
  9861. 0 => 'type_id',
  9862. ),
  9863. ),
  9864. 'foreign keys' => array (
  9865. 'cvterm' => array (
  9866. 'table' => 'cvterm',
  9867. 'columns' => array (
  9868. 'type_id' => 'cvterm_id',
  9869. ),
  9870. ),
  9871. 'stock' => array (
  9872. 'table' => 'stock',
  9873. 'columns' => array (
  9874. 'stock_id' => 'stock_id',
  9875. ),
  9876. ),
  9877. ),
  9878. );
  9879. return $description;
  9880. }
  9881. /**
  9882. * Implements hook_chado_schema_v1_11_stockprop_pub()
  9883. * Purpose: To describe the structure of 'stockprop_pub' to tripal
  9884. * @see tripal_core_chado_insert()
  9885. * @see tripal_core_chado_update()
  9886. * @see tripal_core_chado_select()
  9887. *
  9888. * @return
  9889. * An array describing the 'stockprop_pub' table
  9890. *
  9891. * @ingroup tripal_chado_v1.11_schema_api
  9892. *
  9893. */
  9894. function tripal_core_chado_schema_v1_11_stockprop_pub() {
  9895. $description = array (
  9896. 'table' => 'stockprop_pub',
  9897. 'fields' => array (
  9898. 'stockprop_pub_id' => array (
  9899. 'type' => 'serial',
  9900. 'not NULL' => '1',
  9901. ),
  9902. 'stockprop_id' => array (
  9903. 'type' => 'int',
  9904. 'not NULL' => '1',
  9905. ),
  9906. 'pub_id' => array (
  9907. 'type' => 'int',
  9908. 'not NULL' => '1',
  9909. ),
  9910. ),
  9911. 'primary key' => array (
  9912. 0 => 'stockprop_pub_id',
  9913. ),
  9914. 'unique keys' => array (
  9915. 'stockprop_pub_c1' => array (
  9916. 0 => 'stockprop_id',
  9917. 1 => 'pub_id',
  9918. ),
  9919. ),
  9920. 'indexes' => array (
  9921. 'stockprop_pub_idx1' => array (
  9922. 0 => 'stockprop_id',
  9923. ),
  9924. 'stockprop_pub_idx2' => array (
  9925. 0 => 'pub_id',
  9926. ),
  9927. ),
  9928. 'foreign keys' => array (
  9929. 'pub' => array (
  9930. 'table' => 'pub',
  9931. 'columns' => array (
  9932. 'pub_id' => 'pub_id',
  9933. ),
  9934. ),
  9935. 'stockprop' => array (
  9936. 'table' => 'stockprop',
  9937. 'columns' => array (
  9938. 'stockprop_id' => 'stockprop_id',
  9939. ),
  9940. ),
  9941. ),
  9942. );
  9943. return $description;
  9944. }
  9945. /**
  9946. * Implements hook_chado_schema_v1_11_study()
  9947. * Purpose: To describe the structure of 'study' to tripal
  9948. * @see tripal_core_chado_insert()
  9949. * @see tripal_core_chado_update()
  9950. * @see tripal_core_chado_select()
  9951. *
  9952. * @return
  9953. * An array describing the 'study' table
  9954. *
  9955. * @ingroup tripal_chado_v1.11_schema_api
  9956. *
  9957. */
  9958. function tripal_core_chado_schema_v1_11_study() {
  9959. $description = array (
  9960. 'table' => 'study',
  9961. 'fields' => array (
  9962. 'study_id' => array (
  9963. 'type' => 'serial',
  9964. 'not NULL' => '1',
  9965. ),
  9966. 'contact_id' => array (
  9967. 'type' => 'int',
  9968. 'not NULL' => '1',
  9969. ),
  9970. 'pub_id' => array (
  9971. 'type' => 'int',
  9972. 'not NULL' => '',
  9973. ),
  9974. 'dbxref_id' => array (
  9975. 'type' => 'int',
  9976. 'not NULL' => '',
  9977. ),
  9978. 'name' => array (
  9979. 'type' => 'text',
  9980. 'not NULL' => '1',
  9981. ),
  9982. 'description' => array (
  9983. 'type' => 'text',
  9984. 'not NULL' => '',
  9985. ),
  9986. ),
  9987. 'primary key' => array (
  9988. 0 => 'study_id',
  9989. ),
  9990. 'unique keys' => array (
  9991. 'study_c1' => array (
  9992. 0 => 'name',
  9993. ),
  9994. ),
  9995. 'indexes' => array (
  9996. 'study_idx1' => array (
  9997. 0 => 'contact_id',
  9998. ),
  9999. 'study_idx2' => array (
  10000. 0 => 'pub_id',
  10001. ),
  10002. 'study_idx3' => array (
  10003. 0 => 'dbxref_id',
  10004. ),
  10005. ),
  10006. 'foreign keys' => array (
  10007. 'dbxref' => array (
  10008. 'table' => 'dbxref',
  10009. 'columns' => array (
  10010. 'dbxref_id' => 'dbxref_id',
  10011. ),
  10012. ),
  10013. 'pub' => array (
  10014. 'table' => 'pub',
  10015. 'columns' => array (
  10016. 'pub_id' => 'pub_id',
  10017. ),
  10018. ),
  10019. 'contact' => array (
  10020. 'table' => 'contact',
  10021. 'columns' => array (
  10022. 'contact_id' => 'contact_id',
  10023. ),
  10024. ),
  10025. ),
  10026. );
  10027. return $description;
  10028. }
  10029. /**
  10030. * Implements hook_chado_schema_v1_11_study_assay()
  10031. * Purpose: To describe the structure of 'study_assay' to tripal
  10032. * @see tripal_core_chado_insert()
  10033. * @see tripal_core_chado_update()
  10034. * @see tripal_core_chado_select()
  10035. *
  10036. * @return
  10037. * An array describing the 'study_assay' table
  10038. *
  10039. * @ingroup tripal_chado_v1.11_schema_api
  10040. *
  10041. */
  10042. function tripal_core_chado_schema_v1_11_study_assay() {
  10043. $description = array (
  10044. 'table' => 'study_assay',
  10045. 'fields' => array (
  10046. 'study_assay_id' => array (
  10047. 'type' => 'serial',
  10048. 'not NULL' => '1',
  10049. ),
  10050. 'study_id' => array (
  10051. 'type' => 'int',
  10052. 'not NULL' => '1',
  10053. ),
  10054. 'assay_id' => array (
  10055. 'type' => 'int',
  10056. 'not NULL' => '1',
  10057. ),
  10058. ),
  10059. 'primary key' => array (
  10060. 0 => 'study_assay_id',
  10061. ),
  10062. 'unique keys' => array (
  10063. 'study_assay_c1' => array (
  10064. 0 => 'study_id',
  10065. 1 => 'assay_id',
  10066. ),
  10067. ),
  10068. 'indexes' => array (
  10069. 'study_assay_idx1' => array (
  10070. 0 => 'study_id',
  10071. ),
  10072. 'study_assay_idx2' => array (
  10073. 0 => 'assay_id',
  10074. ),
  10075. ),
  10076. 'foreign keys' => array (
  10077. 'assay' => array (
  10078. 'table' => 'assay',
  10079. 'columns' => array (
  10080. 'assay_id' => 'assay_id',
  10081. ),
  10082. ),
  10083. 'study' => array (
  10084. 'table' => 'study',
  10085. 'columns' => array (
  10086. 'study_id' => 'study_id',
  10087. ),
  10088. ),
  10089. ),
  10090. );
  10091. return $description;
  10092. }
  10093. /**
  10094. * Implements hook_chado_schema_v1_11_studydesign()
  10095. * Purpose: To describe the structure of 'studydesign' to tripal
  10096. * @see tripal_core_chado_insert()
  10097. * @see tripal_core_chado_update()
  10098. * @see tripal_core_chado_select()
  10099. *
  10100. * @return
  10101. * An array describing the 'studydesign' table
  10102. *
  10103. * @ingroup tripal_chado_v1.11_schema_api
  10104. *
  10105. */
  10106. function tripal_core_chado_schema_v1_11_studydesign() {
  10107. $description = array (
  10108. 'table' => 'studydesign',
  10109. 'fields' => array (
  10110. 'studydesign_id' => array (
  10111. 'type' => 'serial',
  10112. 'not NULL' => '1',
  10113. ),
  10114. 'study_id' => array (
  10115. 'type' => 'int',
  10116. 'not NULL' => '1',
  10117. ),
  10118. 'description' => array (
  10119. 'type' => 'text',
  10120. 'not NULL' => '',
  10121. ),
  10122. ),
  10123. 'primary key' => array (
  10124. 0 => 'studydesign_id',
  10125. ),
  10126. 'unique keys' => array (
  10127. ),
  10128. 'indexes' => array (
  10129. 'studydesign_idx1' => array (
  10130. 0 => 'study_id',
  10131. ),
  10132. ),
  10133. 'foreign keys' => array (
  10134. 'study' => array (
  10135. 'table' => 'study',
  10136. 'columns' => array (
  10137. 'study_id' => 'study_id',
  10138. ),
  10139. ),
  10140. ),
  10141. );
  10142. return $description;
  10143. }
  10144. /**
  10145. * Implements hook_chado_schema_v1_11_studydesignprop()
  10146. * Purpose: To describe the structure of 'studydesignprop' to tripal
  10147. * @see tripal_core_chado_insert()
  10148. * @see tripal_core_chado_update()
  10149. * @see tripal_core_chado_select()
  10150. *
  10151. * @return
  10152. * An array describing the 'studydesignprop' table
  10153. *
  10154. * @ingroup tripal_chado_v1.11_schema_api
  10155. *
  10156. */
  10157. function tripal_core_chado_schema_v1_11_studydesignprop() {
  10158. $description = array (
  10159. 'table' => 'studydesignprop',
  10160. 'fields' => array (
  10161. 'studydesignprop_id' => array (
  10162. 'type' => 'serial',
  10163. 'not NULL' => '1',
  10164. ),
  10165. 'studydesign_id' => array (
  10166. 'type' => 'int',
  10167. 'not NULL' => '1',
  10168. ),
  10169. 'type_id' => array (
  10170. 'type' => 'int',
  10171. 'not NULL' => '1',
  10172. ),
  10173. 'value' => array (
  10174. 'type' => 'text',
  10175. 'not NULL' => '',
  10176. ),
  10177. 'rank' => array (
  10178. 'type' => 'int',
  10179. 'not NULL' => '1',
  10180. 'default' => '0',
  10181. ),
  10182. ),
  10183. 'primary key' => array (
  10184. 0 => 'studydesignprop_id',
  10185. ),
  10186. 'unique keys' => array (
  10187. 'studydesignprop_c1' => array (
  10188. 0 => 'studydesign_id',
  10189. 1 => 'type_id',
  10190. 2 => 'rank',
  10191. ),
  10192. ),
  10193. 'indexes' => array (
  10194. 'studydesignprop_idx1' => array (
  10195. 0 => 'studydesign_id',
  10196. ),
  10197. 'studydesignprop_idx2' => array (
  10198. 0 => 'type_id',
  10199. ),
  10200. ),
  10201. 'foreign keys' => array (
  10202. 'cvterm' => array (
  10203. 'table' => 'cvterm',
  10204. 'columns' => array (
  10205. 'type_id' => 'cvterm_id',
  10206. ),
  10207. ),
  10208. 'studydesign' => array (
  10209. 'table' => 'studydesign',
  10210. 'columns' => array (
  10211. 'studydesign_id' => 'studydesign_id',
  10212. ),
  10213. ),
  10214. ),
  10215. );
  10216. return $description;
  10217. }
  10218. /**
  10219. * Implements hook_chado_schema_v1_11_studyfactor()
  10220. * Purpose: To describe the structure of 'studyfactor' to tripal
  10221. * @see tripal_core_chado_insert()
  10222. * @see tripal_core_chado_update()
  10223. * @see tripal_core_chado_select()
  10224. *
  10225. * @return
  10226. * An array describing the 'studyfactor' table
  10227. *
  10228. * @ingroup tripal_chado_v1.11_schema_api
  10229. *
  10230. */
  10231. function tripal_core_chado_schema_v1_11_studyfactor() {
  10232. $description = array (
  10233. 'table' => 'studyfactor',
  10234. 'fields' => array (
  10235. 'studyfactor_id' => array (
  10236. 'type' => 'serial',
  10237. 'not NULL' => '1',
  10238. ),
  10239. 'studydesign_id' => array (
  10240. 'type' => 'int',
  10241. 'not NULL' => '1',
  10242. ),
  10243. 'type_id' => array (
  10244. 'type' => 'int',
  10245. 'not NULL' => '',
  10246. ),
  10247. 'name' => array (
  10248. 'type' => 'text',
  10249. 'not NULL' => '1',
  10250. ),
  10251. 'description' => array (
  10252. 'type' => 'text',
  10253. 'not NULL' => '',
  10254. ),
  10255. ),
  10256. 'primary key' => array (
  10257. 0 => 'studyfactor_id',
  10258. ),
  10259. 'unique keys' => array (
  10260. ),
  10261. 'indexes' => array (
  10262. 'studyfactor_idx1' => array (
  10263. 0 => 'studydesign_id',
  10264. ),
  10265. 'studyfactor_idx2' => array (
  10266. 0 => 'type_id',
  10267. ),
  10268. ),
  10269. 'foreign keys' => array (
  10270. 'cvterm' => array (
  10271. 'table' => 'cvterm',
  10272. 'columns' => array (
  10273. 'type_id' => 'cvterm_id',
  10274. ),
  10275. ),
  10276. 'studydesign' => array (
  10277. 'table' => 'studydesign',
  10278. 'columns' => array (
  10279. 'studydesign_id' => 'studydesign_id',
  10280. ),
  10281. ),
  10282. ),
  10283. );
  10284. return $description;
  10285. }
  10286. /**
  10287. * Implements hook_chado_schema_v1_11_studyfactorvalue()
  10288. * Purpose: To describe the structure of 'studyfactorvalue' to tripal
  10289. * @see tripal_core_chado_insert()
  10290. * @see tripal_core_chado_update()
  10291. * @see tripal_core_chado_select()
  10292. *
  10293. * @return
  10294. * An array describing the 'studyfactorvalue' table
  10295. *
  10296. * @ingroup tripal_chado_v1.11_schema_api
  10297. *
  10298. */
  10299. function tripal_core_chado_schema_v1_11_studyfactorvalue() {
  10300. $description = array (
  10301. 'table' => 'studyfactorvalue',
  10302. 'fields' => array (
  10303. 'studyfactorvalue_id' => array (
  10304. 'type' => 'serial',
  10305. 'not NULL' => '1',
  10306. ),
  10307. 'studyfactor_id' => array (
  10308. 'type' => 'int',
  10309. 'not NULL' => '1',
  10310. ),
  10311. 'assay_id' => array (
  10312. 'type' => 'int',
  10313. 'not NULL' => '1',
  10314. ),
  10315. 'factorvalue' => array (
  10316. 'type' => 'text',
  10317. 'not NULL' => '',
  10318. ),
  10319. 'name' => array (
  10320. 'type' => 'text',
  10321. 'not NULL' => '',
  10322. ),
  10323. 'rank' => array (
  10324. 'type' => 'int',
  10325. 'not NULL' => '1',
  10326. 'default' => '0',
  10327. ),
  10328. ),
  10329. 'primary key' => array (
  10330. 0 => 'studyfactorvalue_id',
  10331. ),
  10332. 'unique keys' => array (
  10333. ),
  10334. 'indexes' => array (
  10335. 'studyfactorvalue_idx1' => array (
  10336. 0 => 'studyfactor_id',
  10337. ),
  10338. 'studyfactorvalue_idx2' => array (
  10339. 0 => 'assay_id',
  10340. ),
  10341. ),
  10342. 'foreign keys' => array (
  10343. 'assay' => array (
  10344. 'table' => 'assay',
  10345. 'columns' => array (
  10346. 'assay_id' => 'assay_id',
  10347. ),
  10348. ),
  10349. 'studyfactor' => array (
  10350. 'table' => 'studyfactor',
  10351. 'columns' => array (
  10352. 'studyfactor_id' => 'studyfactor_id',
  10353. ),
  10354. ),
  10355. ),
  10356. );
  10357. return $description;
  10358. }
  10359. /**
  10360. * Implements hook_chado_schema_v1_11_studyprop()
  10361. * Purpose: To describe the structure of 'studyprop' to tripal
  10362. * @see tripal_core_chado_insert()
  10363. * @see tripal_core_chado_update()
  10364. * @see tripal_core_chado_select()
  10365. *
  10366. * @return
  10367. * An array describing the 'studyprop' table
  10368. *
  10369. * @ingroup tripal_chado_v1.11_schema_api
  10370. *
  10371. */
  10372. function tripal_core_chado_schema_v1_11_studyprop() {
  10373. $description = array (
  10374. 'table' => 'studyprop',
  10375. 'fields' => array (
  10376. 'studyprop_id' => array (
  10377. 'type' => 'serial',
  10378. 'not NULL' => '1',
  10379. ),
  10380. 'study_id' => array (
  10381. 'type' => 'int',
  10382. 'not NULL' => '1',
  10383. ),
  10384. 'type_id' => array (
  10385. 'type' => 'int',
  10386. 'not NULL' => '1',
  10387. ),
  10388. 'value' => array (
  10389. 'type' => 'text',
  10390. 'not NULL' => '',
  10391. ),
  10392. 'rank' => array (
  10393. 'type' => 'int',
  10394. 'not NULL' => '1',
  10395. 'default' => '0',
  10396. ),
  10397. ),
  10398. 'primary key' => array (
  10399. 0 => 'studyprop_id',
  10400. ),
  10401. 'unique keys' => array (
  10402. 'study_id' => array (
  10403. 0 => 'study_id',
  10404. 1 => 'type_id',
  10405. 2 => 'rank',
  10406. ),
  10407. ),
  10408. 'indexes' => array (
  10409. 'studyprop_idx1' => array (
  10410. 0 => 'study_id',
  10411. ),
  10412. 'studyprop_idx2' => array (
  10413. 0 => 'type_id',
  10414. ),
  10415. ),
  10416. 'foreign keys' => array (
  10417. 'cvterm' => array (
  10418. 'table' => 'cvterm',
  10419. 'columns' => array (
  10420. 'type_id' => 'cvterm_id',
  10421. ),
  10422. ),
  10423. 'study' => array (
  10424. 'table' => 'study',
  10425. 'columns' => array (
  10426. 'study_id' => 'study_id',
  10427. ),
  10428. ),
  10429. ),
  10430. );
  10431. return $description;
  10432. }
  10433. /**
  10434. * Implements hook_chado_schema_v1_11_studyprop_feature()
  10435. * Purpose: To describe the structure of 'studyprop_feature' to tripal
  10436. * @see tripal_core_chado_insert()
  10437. * @see tripal_core_chado_update()
  10438. * @see tripal_core_chado_select()
  10439. *
  10440. * @return
  10441. * An array describing the 'studyprop_feature' table
  10442. *
  10443. * @ingroup tripal_chado_v1.11_schema_api
  10444. *
  10445. */
  10446. function tripal_core_chado_schema_v1_11_studyprop_feature() {
  10447. $description = array (
  10448. 'table' => 'studyprop_feature',
  10449. 'fields' => array (
  10450. 'studyprop_feature_id' => array (
  10451. 'type' => 'serial',
  10452. 'not NULL' => '1',
  10453. ),
  10454. 'studyprop_id' => array (
  10455. 'type' => 'int',
  10456. 'not NULL' => '1',
  10457. ),
  10458. 'feature_id' => array (
  10459. 'type' => 'int',
  10460. 'not NULL' => '1',
  10461. ),
  10462. 'type_id' => array (
  10463. 'type' => 'int',
  10464. 'not NULL' => '',
  10465. ),
  10466. ),
  10467. 'primary key' => array (
  10468. 0 => 'studyprop_feature_id',
  10469. ),
  10470. 'unique keys' => array (
  10471. 'studyprop_id' => array (
  10472. 0 => 'studyprop_id',
  10473. 1 => 'feature_id',
  10474. ),
  10475. ),
  10476. 'indexes' => array (
  10477. 'studyprop_feature_idx1' => array (
  10478. 0 => 'studyprop_id',
  10479. ),
  10480. 'studyprop_feature_idx2' => array (
  10481. 0 => 'feature_id',
  10482. ),
  10483. ),
  10484. 'foreign keys' => array (
  10485. 'cvterm' => array (
  10486. 'table' => 'cvterm',
  10487. 'columns' => array (
  10488. 'type_id' => 'cvterm_id',
  10489. ),
  10490. ),
  10491. 'feature' => array (
  10492. 'table' => 'feature',
  10493. 'columns' => array (
  10494. 'feature_id' => 'feature_id',
  10495. ),
  10496. ),
  10497. 'studyprop' => array (
  10498. 'table' => 'studyprop',
  10499. 'columns' => array (
  10500. 'studyprop_id' => 'studyprop_id',
  10501. ),
  10502. ),
  10503. ),
  10504. );
  10505. return $description;
  10506. }
  10507. /**
  10508. * Implements hook_chado_schema_v1_11_synonym()
  10509. * Purpose: To describe the structure of 'synonym' to tripal
  10510. * @see tripal_core_chado_insert()
  10511. * @see tripal_core_chado_update()
  10512. * @see tripal_core_chado_select()
  10513. *
  10514. * @return
  10515. * An array describing the 'synonym' table
  10516. *
  10517. * @ingroup tripal_chado_v1.11_schema_api
  10518. *
  10519. */
  10520. function tripal_core_chado_schema_v1_11_synonym() {
  10521. $description = array (
  10522. 'table' => 'synonym',
  10523. 'fields' => array (
  10524. 'synonym_id' => array (
  10525. 'type' => 'serial',
  10526. 'not NULL' => '1',
  10527. ),
  10528. 'name' => array (
  10529. 'type' => 'varchar',
  10530. 'length' => '255',
  10531. 'not NULL' => '1',
  10532. ),
  10533. 'type_id' => array (
  10534. 'type' => 'int',
  10535. 'not NULL' => '1',
  10536. ),
  10537. 'synonym_sgml' => array (
  10538. 'type' => 'varchar',
  10539. 'length' => '255',
  10540. 'not NULL' => '1',
  10541. ),
  10542. ),
  10543. 'primary key' => array (
  10544. 0 => 'synonym_id',
  10545. ),
  10546. 'unique keys' => array (
  10547. 'synonym_c1' => array (
  10548. 0 => 'name',
  10549. 1 => 'type_id',
  10550. ),
  10551. ),
  10552. 'indexes' => array (
  10553. 'synonym_idx1' => array (
  10554. 0 => 'type_id',
  10555. ),
  10556. ),
  10557. 'foreign keys' => array (
  10558. 'cvterm' => array (
  10559. 'table' => 'cvterm',
  10560. 'columns' => array (
  10561. 'type_id' => 'cvterm_id',
  10562. ),
  10563. ),
  10564. ),
  10565. );
  10566. return $description;
  10567. }
  10568. /**
  10569. * Implements hook_chado_schema_v1_11_tableinfo()
  10570. * Purpose: To describe the structure of 'tableinfo' to tripal
  10571. * @see tripal_core_chado_insert()
  10572. * @see tripal_core_chado_update()
  10573. * @see tripal_core_chado_select()
  10574. *
  10575. * @return
  10576. * An array describing the 'tableinfo' table
  10577. *
  10578. * @ingroup tripal_chado_v1.11_schema_api
  10579. *
  10580. */
  10581. function tripal_core_chado_schema_v1_11_tableinfo() {
  10582. $description = array (
  10583. 'table' => 'tableinfo',
  10584. 'fields' => array (
  10585. 'tableinfo_id' => array (
  10586. 'type' => 'serial',
  10587. 'not NULL' => '1',
  10588. ),
  10589. 'name' => array (
  10590. 'type' => 'varchar',
  10591. 'length' => '30',
  10592. 'not NULL' => '1',
  10593. ),
  10594. 'primary_key_column' => array (
  10595. 'type' => 'varchar',
  10596. 'length' => '30',
  10597. 'not NULL' => '',
  10598. ),
  10599. 'is_view' => array (
  10600. 'type' => 'int',
  10601. 'not NULL' => '1',
  10602. 'default' => '0',
  10603. ),
  10604. 'view_on_table_id' => array (
  10605. 'type' => 'int',
  10606. 'not NULL' => '',
  10607. ),
  10608. 'superclass_table_id' => array (
  10609. 'type' => 'int',
  10610. 'not NULL' => '',
  10611. ),
  10612. 'is_updateable' => array (
  10613. 'type' => 'int',
  10614. 'not NULL' => '1',
  10615. 'default' => '1',
  10616. ),
  10617. 'modification_date' => array (
  10618. 'type' => 'date',
  10619. 'not NULL' => '1',
  10620. 'default' => 'ow(',
  10621. ),
  10622. ),
  10623. 'primary key' => array (
  10624. 0 => 'tableinfo_id',
  10625. ),
  10626. 'unique keys' => array (
  10627. 'tableinfo_c1' => array (
  10628. 0 => 'name',
  10629. ),
  10630. ),
  10631. 'indexes' => array (
  10632. ),
  10633. 'foreign keys' => array (
  10634. ),
  10635. );
  10636. return $description;
  10637. }
  10638. /**
  10639. * Implements hook_chado_schema_v1_11_treatment()
  10640. * Purpose: To describe the structure of 'treatment' to tripal
  10641. * @see tripal_core_chado_insert()
  10642. * @see tripal_core_chado_update()
  10643. * @see tripal_core_chado_select()
  10644. *
  10645. * @return
  10646. * An array describing the 'treatment' table
  10647. *
  10648. * @ingroup tripal_chado_v1.11_schema_api
  10649. *
  10650. */
  10651. function tripal_core_chado_schema_v1_11_treatment() {
  10652. $description = array (
  10653. 'table' => 'treatment',
  10654. 'fields' => array (
  10655. 'treatment_id' => array (
  10656. 'type' => 'serial',
  10657. 'not NULL' => '1',
  10658. ),
  10659. 'rank' => array (
  10660. 'type' => 'int',
  10661. 'not NULL' => '1',
  10662. 'default' => '0',
  10663. ),
  10664. 'biomaterial_id' => array (
  10665. 'type' => 'int',
  10666. 'not NULL' => '1',
  10667. ),
  10668. 'type_id' => array (
  10669. 'type' => 'int',
  10670. 'not NULL' => '1',
  10671. ),
  10672. 'protocol_id' => array (
  10673. 'type' => 'int',
  10674. 'not NULL' => '',
  10675. ),
  10676. 'name' => array (
  10677. 'type' => 'text',
  10678. 'not NULL' => '',
  10679. ),
  10680. ),
  10681. 'primary key' => array (
  10682. 0 => 'treatment_id',
  10683. ),
  10684. 'unique keys' => array (
  10685. ),
  10686. 'indexes' => array (
  10687. 'treatment_idx1' => array (
  10688. 0 => 'biomaterial_id',
  10689. ),
  10690. 'treatment_idx2' => array (
  10691. 0 => 'type_id',
  10692. ),
  10693. 'treatment_idx3' => array (
  10694. 0 => 'protocol_id',
  10695. ),
  10696. ),
  10697. 'foreign keys' => array (
  10698. 'cvterm' => array (
  10699. 'table' => 'cvterm',
  10700. 'columns' => array (
  10701. 'type_id' => 'cvterm_id',
  10702. ),
  10703. ),
  10704. 'protocol' => array (
  10705. 'table' => 'protocol',
  10706. 'columns' => array (
  10707. 'protocol_id' => 'protocol_id',
  10708. ),
  10709. ),
  10710. 'biomaterial' => array (
  10711. 'table' => 'biomaterial',
  10712. 'columns' => array (
  10713. 'biomaterial_id' => 'biomaterial_id',
  10714. ),
  10715. ),
  10716. ),
  10717. );
  10718. return $description;
  10719. }