tripal_core.schema_v1.2.api.inc 370 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183
  1. <?php
  2. /* @file: This file contains default schema definitions for all chado v1.2 tables
  3. * to be used by other function. Specifically these functions are used
  4. * by the tripal_core select/insert/update API functions and by
  5. * the Tripal Views module.
  6. *
  7. * These schema definitions can be augmented by another modules
  8. * (specifically to add missing definitions) by implementing
  9. * hook_chado_schema_v1_2_<table name>().
  10. *
  11. * @defgroup tripal_schema_v1_2_api Chado v1.2 Schema API
  12. * @ingroup tripal_core_api
  13. * @{
  14. * Provides an application programming interface (API) for describing Chado tables.
  15. * This API consists of a set of functions, one for each table in Chado. Each
  16. * function simply returns a Drupal style array that defines the table.
  17. *
  18. * Because Drupal 6 does not handle foreign key (FK) relationships, however FK
  19. * relationships are needed to for Tripal Views. Therefore, FK relationships
  20. * have been added to the schema defintitions below.
  21. *
  22. * The functions provided in this documentation should not be called as is, but if you need
  23. * the Drupal-style array definition for any table, use the following function
  24. * call:
  25. *
  26. * $table_desc = tripal_core_get_chado_table_schema($table)
  27. *
  28. * where the variable $table contains the name of the table you want to
  29. * retireve. The tripal_core_get_chado_table_schema function determines the appropriate version of
  30. * Chado and uses the Drupal hook infrastructure to call the appropriate
  31. * hook function to retrieve the table schema.
  32. *
  33. * @}
  34. */
  35. /**
  36. * Implements hook_chado_schema_v1_2_acquisition()
  37. * Purpose: To describe the structure of 'acquisition' to tripal
  38. * @see tripal_core_chado_insert()
  39. * @see tripal_core_chado_update()
  40. * @see tripal_core_chado_select()
  41. *
  42. * @return
  43. * An array describing the 'acquisition' table
  44. *
  45. * @ingroup tripal_chado_v1.2_schema_api
  46. *
  47. */
  48. function tripal_core_chado_schema_v1_2_acquisition() {
  49. $description = array(
  50. 'description' => 'TODO: please describe this table!',
  51. 'fields' => array(
  52. 'acquisition_id' => array(
  53. 'description' => 'TODO: please describe this field!',
  54. 'type' => 'serial',
  55. 'not null' => TRUE,
  56. ),
  57. 'assay_id' => array(
  58. 'description' => 'TODO: please describe this field!',
  59. 'type' => 'int',
  60. 'not null' => TRUE,
  61. ),
  62. 'protocol_id' => array(
  63. 'description' => 'TODO: please describe this field!',
  64. 'type' => 'int',
  65. 'not null' => FALSE,
  66. ),
  67. 'channel_id' => array(
  68. 'description' => 'TODO: please describe this field!',
  69. 'type' => 'int',
  70. 'not null' => FALSE,
  71. ),
  72. 'acquisitiondate' => array(
  73. 'description' => 'TODO: please describe this field!',
  74. 'type' => 'datetime',
  75. 'not null' => FALSE,
  76. 'default' => 'ow(',
  77. ),
  78. 'name' => array(
  79. 'description' => 'TODO: please describe this field!',
  80. 'type' => 'text',
  81. 'not null' => FALSE,
  82. ),
  83. 'uri' => array(
  84. 'description' => 'TODO: please describe this field!',
  85. 'type' => 'text',
  86. 'not null' => FALSE,
  87. ),
  88. ),
  89. 'primary key' => array(
  90. 0 => 'acquisition_id',
  91. ),
  92. 'unique keys' => array(
  93. 'acquisition_c1' => array(
  94. 0 => 'name',
  95. ),
  96. ),
  97. 'indexes' => array(
  98. 'acquisition_idx1' => array(
  99. 0 => 'assay_id',
  100. ),
  101. 'acquisition_idx2' => array(
  102. 0 => 'protocol_id',
  103. ),
  104. 'acquisition_idx3' => array(
  105. 0 => 'channel_id',
  106. ),
  107. ),
  108. 'foreign keys' => array(
  109. 'protocol' => array(
  110. 'table' => 'protocol',
  111. 'columns' => array(
  112. 'protocol_id' => 'protocol_id',
  113. ),
  114. ),
  115. 'assay' => array(
  116. 'table' => 'assay',
  117. 'columns' => array(
  118. 'assay_id' => 'assay_id',
  119. ),
  120. ),
  121. 'channel' => array(
  122. 'table' => 'channel',
  123. 'columns' => array(
  124. 'channel_id' => 'channel_id',
  125. ),
  126. ),
  127. ),
  128. 'table' => 'acquisition',
  129. 'referring_tables' => array(
  130. 0 => 'acquisition_relationship',
  131. 2 => 'acquisitionprop',
  132. 3 => 'quantification',
  133. ),
  134. );
  135. return $description;
  136. }
  137. /**
  138. * Implements hook_chado_schema_v1_2_acquisition_relationship()
  139. * Purpose: To describe the structure of 'acquisition_relationship' to tripal
  140. * @see tripal_core_chado_insert()
  141. * @see tripal_core_chado_update()
  142. * @see tripal_core_chado_select()
  143. *
  144. * @return
  145. * An array describing the 'acquisition_relationship' table
  146. *
  147. * @ingroup tripal_chado_v1.2_schema_api
  148. *
  149. */
  150. function tripal_core_chado_schema_v1_2_acquisition_relationship() {
  151. $description = array(
  152. 'description' => 'TODO: please describe this table!',
  153. 'fields' => array(
  154. 'acquisition_relationship_id' => array(
  155. 'description' => 'TODO: please describe this field!',
  156. 'type' => 'serial',
  157. 'not null' => TRUE,
  158. ),
  159. 'subject_id' => array(
  160. 'description' => 'TODO: please describe this field!',
  161. 'type' => 'int',
  162. 'not null' => TRUE,
  163. ),
  164. 'type_id' => array(
  165. 'description' => 'TODO: please describe this field!',
  166. 'type' => 'int',
  167. 'not null' => TRUE,
  168. ),
  169. 'object_id' => array(
  170. 'description' => 'TODO: please describe this field!',
  171. 'type' => 'int',
  172. 'not null' => TRUE,
  173. ),
  174. 'value' => array(
  175. 'description' => 'TODO: please describe this field!',
  176. 'type' => 'text',
  177. 'not null' => FALSE,
  178. ),
  179. 'rank' => array(
  180. 'description' => 'TODO: please describe this field!',
  181. 'type' => 'int',
  182. 'not null' => TRUE,
  183. 'default' => 0,
  184. ),
  185. ),
  186. 'primary key' => array(
  187. 0 => 'acquisition_relationship_id',
  188. ),
  189. 'unique keys' => array(
  190. 'acquisition_relationship_c1' => array(
  191. 0 => 'subject_id',
  192. 1 => 'object_id',
  193. 2 => 'type_id',
  194. 3 => 'rank',
  195. ),
  196. ),
  197. 'indexes' => array(
  198. 'acquisition_relationship_idx1' => array(
  199. 0 => 'subject_id',
  200. ),
  201. 'acquisition_relationship_idx2' => array(
  202. 0 => 'type_id',
  203. ),
  204. 'acquisition_relationship_idx3' => array(
  205. 0 => 'object_id',
  206. ),
  207. ),
  208. 'foreign keys' => array(
  209. 'cvterm' => array(
  210. 'table' => 'cvterm',
  211. 'columns' => array(
  212. 'type_id' => 'cvterm_id',
  213. ),
  214. ),
  215. 'acquisition' => array(
  216. 'table' => 'acquisition',
  217. 'columns' => array(
  218. 'subject_id' => 'acquisition_id',
  219. 'object_id' => 'acquisition_id',
  220. ),
  221. ),
  222. ),
  223. 'table' => 'acquisition_relationship',
  224. 'referring_tables' => NULL,
  225. );
  226. return $description;
  227. }
  228. /**
  229. * Implements hook_chado_schema_v1_2_acquisitionprop()
  230. * Purpose: To describe the structure of 'acquisitionprop' to tripal
  231. * @see tripal_core_chado_insert()
  232. * @see tripal_core_chado_update()
  233. * @see tripal_core_chado_select()
  234. *
  235. * @return
  236. * An array describing the 'acquisitionprop' table
  237. *
  238. * @ingroup tripal_chado_v1.2_schema_api
  239. *
  240. */
  241. function tripal_core_chado_schema_v1_2_acquisitionprop() {
  242. $description = array(
  243. 'description' => 'TODO: please describe this table!',
  244. 'fields' => array(
  245. 'acquisitionprop_id' => array(
  246. 'description' => 'TODO: please describe this field!',
  247. 'type' => 'serial',
  248. 'not null' => TRUE,
  249. ),
  250. 'acquisition_id' => array(
  251. 'description' => 'TODO: please describe this field!',
  252. 'type' => 'int',
  253. 'not null' => TRUE,
  254. ),
  255. 'type_id' => array(
  256. 'description' => 'TODO: please describe this field!',
  257. 'type' => 'int',
  258. 'not null' => TRUE,
  259. ),
  260. 'value' => array(
  261. 'description' => 'TODO: please describe this field!',
  262. 'type' => 'text',
  263. 'not null' => FALSE,
  264. ),
  265. 'rank' => array(
  266. 'description' => 'TODO: please describe this field!',
  267. 'type' => 'int',
  268. 'not null' => TRUE,
  269. 'default' => 0,
  270. ),
  271. ),
  272. 'primary key' => array(
  273. 0 => 'acquisitionprop_id',
  274. ),
  275. 'unique keys' => array(
  276. 'acquisitionprop_c1' => array(
  277. 0 => 'acquisition_id',
  278. 1 => 'type_id',
  279. 2 => 'rank',
  280. ),
  281. ),
  282. 'indexes' => array(
  283. 'acquisitionprop_idx1' => array(
  284. 0 => 'acquisition_id',
  285. ),
  286. 'acquisitionprop_idx2' => array(
  287. 0 => 'type_id',
  288. ),
  289. ),
  290. 'foreign keys' => array(
  291. 'cvterm' => array(
  292. 'table' => 'cvterm',
  293. 'columns' => array(
  294. 'type_id' => 'cvterm_id',
  295. ),
  296. ),
  297. 'acquisition' => array(
  298. 'table' => 'acquisition',
  299. 'columns' => array(
  300. 'acquisition_id' => 'acquisition_id',
  301. ),
  302. ),
  303. ),
  304. 'table' => 'acquisitionprop',
  305. 'referring_tables' => NULL,
  306. );
  307. return $description;
  308. }
  309. /**
  310. * Implements hook_chado_schema_v1_2_analysis()
  311. * Purpose: To describe the structure of 'analysis' to tripal
  312. * @see tripal_core_chado_insert()
  313. * @see tripal_core_chado_update()
  314. * @see tripal_core_chado_select()
  315. *
  316. * @return
  317. * An array describing the 'analysis' table
  318. *
  319. * @ingroup tripal_chado_v1.2_schema_api
  320. *
  321. */
  322. function tripal_core_chado_schema_v1_2_analysis() {
  323. $description = array(
  324. 'referring_tables' => array(
  325. 0 => 'analysisfeature',
  326. 1 => 'analysisprop',
  327. 2 => 'phylotree',
  328. 3 => 'quantification',
  329. ),
  330. 'description' => 'TODO: please describe this table!',
  331. 'fields' => array(
  332. 'analysis_id' => array(
  333. 'description' => 'TODO: please describe this field!',
  334. 'type' => 'serial',
  335. 'not null' => TRUE,
  336. ),
  337. 'name' => array(
  338. 'description' => 'TODO: please describe this field!',
  339. 'type' => 'varchar',
  340. 'length' => '255',
  341. 'not null' => FALSE,
  342. ),
  343. 'description' => array(
  344. 'description' => 'TODO: please describe this field!',
  345. 'type' => 'text',
  346. 'not null' => FALSE,
  347. ),
  348. 'program' => array(
  349. 'description' => 'TODO: please describe this field!',
  350. 'type' => 'varchar',
  351. 'length' => '255',
  352. 'not null' => TRUE,
  353. ),
  354. 'programversion' => array(
  355. 'description' => 'TODO: please describe this field!',
  356. 'type' => 'varchar',
  357. 'length' => '255',
  358. 'not null' => TRUE,
  359. ),
  360. 'algorithm' => array(
  361. 'description' => 'TODO: please describe this field!',
  362. 'type' => 'varchar',
  363. 'length' => '255',
  364. 'not null' => FALSE,
  365. ),
  366. 'sourcename' => array(
  367. 'description' => 'TODO: please describe this field!',
  368. 'type' => 'varchar',
  369. 'length' => '255',
  370. 'not null' => FALSE,
  371. ),
  372. 'sourceversion' => array(
  373. 'description' => 'TODO: please describe this field!',
  374. 'type' => 'varchar',
  375. 'length' => '255',
  376. 'not null' => FALSE,
  377. ),
  378. 'sourceuri' => array(
  379. 'description' => 'TODO: please describe this field!',
  380. 'type' => 'text',
  381. 'not null' => FALSE,
  382. ),
  383. 'timeexecuted' => array(
  384. 'description' => 'TODO: please describe this field!',
  385. 'type' => 'datetime',
  386. 'not null' => TRUE,
  387. 'default' => 'ow(',
  388. ),
  389. ),
  390. 'primary key' => array(
  391. 0 => 'analysis_id',
  392. ),
  393. 'unique keys' => array(
  394. 'analysis_c1' => array(
  395. 0 => 'program',
  396. 1 => 'programversion',
  397. 2 => 'sourcename',
  398. ),
  399. ),
  400. 'foreign keys' => array(
  401. ),
  402. 'table' => 'analysis',
  403. );
  404. return $description;
  405. }
  406. /**
  407. * Implements hook_chado_schema_v1_2_analysisfeature()
  408. * Purpose: To describe the structure of 'analysisfeature' to tripal
  409. * @see tripal_core_chado_insert()
  410. * @see tripal_core_chado_update()
  411. * @see tripal_core_chado_select()
  412. *
  413. * @return
  414. * An array describing the 'analysisfeature' table
  415. *
  416. * @ingroup tripal_chado_v1.2_schema_api
  417. *
  418. */
  419. function tripal_core_chado_schema_v1_2_analysisfeature() {
  420. $description = array(
  421. 'description' => 'TODO: please describe this table!',
  422. 'fields' => array(
  423. 'analysisfeature_id' => array(
  424. 'description' => 'TODO: please describe this field!',
  425. 'type' => 'serial',
  426. 'not null' => TRUE,
  427. ),
  428. 'feature_id' => array(
  429. 'description' => 'TODO: please describe this field!',
  430. 'type' => 'int',
  431. 'not null' => TRUE,
  432. ),
  433. 'analysis_id' => array(
  434. 'description' => 'TODO: please describe this field!',
  435. 'type' => 'int',
  436. 'not null' => TRUE,
  437. ),
  438. 'rawscore' => array(
  439. 'description' => 'TODO: please describe this field!',
  440. 'type' => 'float',
  441. 'size' => 'big',
  442. 'not null' => FALSE,
  443. ),
  444. 'normscore' => array(
  445. 'description' => 'TODO: please describe this field!',
  446. 'type' => 'float',
  447. 'size' => 'big',
  448. 'not null' => FALSE,
  449. ),
  450. 'significance' => array(
  451. 'description' => 'TODO: please describe this field!',
  452. 'type' => 'float',
  453. 'size' => 'big',
  454. 'not null' => FALSE,
  455. ),
  456. 'identity' => array(
  457. 'description' => 'TODO: please describe this field!',
  458. 'type' => 'float',
  459. 'size' => 'big',
  460. 'not null' => FALSE,
  461. ),
  462. ),
  463. 'primary key' => array(
  464. 0 => 'analysisfeature_id',
  465. ),
  466. 'unique keys' => array(
  467. 'analysisfeature_c1' => array(
  468. 0 => 'feature_id',
  469. 1 => 'analysis_id',
  470. ),
  471. ),
  472. 'indexes' => array(
  473. 'analysisfeature_idx1' => array(
  474. 0 => 'feature_id',
  475. ),
  476. 'analysisfeature_idx2' => array(
  477. 0 => 'analysis_id',
  478. ),
  479. ),
  480. 'foreign keys' => array(
  481. 'analysis' => array(
  482. 'table' => 'analysis',
  483. 'columns' => array(
  484. 'analysis_id' => 'analysis_id',
  485. ),
  486. ),
  487. 'feature' => array(
  488. 'table' => 'feature',
  489. 'columns' => array(
  490. 'feature_id' => 'feature_id',
  491. ),
  492. ),
  493. ),
  494. 'table' => 'analysisfeature',
  495. 'referring_tables' => array(
  496. 0 => 'analysisfeatureprop',
  497. ),
  498. );
  499. return $description;
  500. }
  501. /**
  502. * Implements hook_chado_schema_v1_2_analysisfeatureprop()
  503. * Purpose: To describe the structure of 'analysisfeatureprop' to tripal
  504. * @see tripal_core_chado_insert()
  505. * @see tripal_core_chado_update()
  506. * @see tripal_core_chado_select()
  507. *
  508. * @return
  509. * An array describing the 'analysisfeatureprop' table
  510. *
  511. * @ingroup tripal_chado_v1.2_schema_api
  512. *
  513. */
  514. function tripal_core_chado_schema_v1_2_analysisfeatureprop() {
  515. $description = array(
  516. 'description' => 'TODO: please describe this table!',
  517. 'fields' => array(
  518. 'analysisfeatureprop_id' => array(
  519. 'description' => 'TODO: please describe this field!',
  520. 'type' => 'serial',
  521. 'not null' => TRUE,
  522. ),
  523. 'analysisfeature_id' => array(
  524. 'description' => 'TODO: please describe this field!',
  525. 'type' => 'int',
  526. 'not null' => TRUE,
  527. ),
  528. 'type_id' => array(
  529. 'description' => 'TODO: please describe this field!',
  530. 'type' => 'int',
  531. 'not null' => TRUE,
  532. ),
  533. 'value' => array(
  534. 'description' => 'TODO: please describe this field!',
  535. 'type' => 'text',
  536. 'not null' => FALSE,
  537. ),
  538. 'rank' => array(
  539. 'description' => 'TODO: please describe this field!',
  540. 'type' => 'int',
  541. 'not null' => TRUE,
  542. ),
  543. ),
  544. 'primary key' => array(
  545. 0 => 'analysisfeatureprop_id',
  546. ),
  547. 'unique keys' => array(
  548. 'analysisfeature_id_type_id_rank' => array(
  549. 0 => 'analysisfeature_id',
  550. 1 => 'type_id',
  551. 2 => 'rank',
  552. ),
  553. ),
  554. 'foreign keys' => array(
  555. 'cvterm' => array(
  556. 'table' => 'cvterm',
  557. 'columns' => array(
  558. 'type_id' => 'cvterm_id',
  559. ),
  560. ),
  561. 'analysisfeature' => array(
  562. 'table' => 'analysisfeature',
  563. 'columns' => array(
  564. 'analysisfeature_id' => 'analysisfeature_id',
  565. ),
  566. ),
  567. ),
  568. 'table' => 'analysisfeatureprop',
  569. 'referring_tables' => NULL,
  570. );
  571. return $description;
  572. }
  573. /**
  574. * Implements hook_chado_schema_v1_2_analysisprop()
  575. * Purpose: To describe the structure of 'analysisprop' to tripal
  576. * @see tripal_core_chado_insert()
  577. * @see tripal_core_chado_update()
  578. * @see tripal_core_chado_select()
  579. *
  580. * @return
  581. * An array describing the 'analysisprop' table
  582. *
  583. * @ingroup tripal_chado_v1.2_schema_api
  584. *
  585. */
  586. function tripal_core_chado_schema_v1_2_analysisprop() {
  587. $description = array(
  588. 'description' => 'TODO: please describe this table!',
  589. 'fields' => array(
  590. 'analysisprop_id' => array(
  591. 'description' => 'TODO: please describe this field!',
  592. 'type' => 'serial',
  593. 'not null' => TRUE,
  594. ),
  595. 'analysis_id' => array(
  596. 'description' => 'TODO: please describe this field!',
  597. 'type' => 'int',
  598. 'not null' => TRUE,
  599. ),
  600. 'type_id' => array(
  601. 'description' => 'TODO: please describe this field!',
  602. 'type' => 'int',
  603. 'not null' => TRUE,
  604. ),
  605. 'value' => array(
  606. 'description' => 'TODO: please describe this field!',
  607. 'type' => 'text',
  608. 'not null' => FALSE,
  609. ),
  610. 'rank' => array(
  611. 'description' => 'TODO: please describe this field!',
  612. 'type' => 'int',
  613. 'not null' => TRUE,
  614. 'default' => 0,
  615. ),
  616. ),
  617. 'primary key' => array(
  618. 0 => 'analysisprop_id',
  619. ),
  620. 'unique keys' => array(
  621. 'analysisprop_c1' => array(
  622. 0 => 'analysis_id',
  623. 1 => 'type_id',
  624. 2 => 'rank',
  625. ),
  626. ),
  627. 'indexes' => array(
  628. 'analysisprop_idx1' => array(
  629. 0 => 'analysis_id',
  630. ),
  631. 'analysisprop_idx2' => array(
  632. 0 => 'type_id',
  633. ),
  634. ),
  635. 'foreign keys' => array(
  636. 'cvterm' => array(
  637. 'table' => 'cvterm',
  638. 'columns' => array(
  639. 'type_id' => 'cvterm_id',
  640. ),
  641. ),
  642. 'analysis' => array(
  643. 'table' => 'analysis',
  644. 'columns' => array(
  645. 'analysis_id' => 'analysis_id',
  646. ),
  647. ),
  648. ),
  649. 'table' => 'analysisprop',
  650. 'referring_tables' => NULL,
  651. );
  652. return $description;
  653. }
  654. /**
  655. * Implements hook_chado_schema_v1_2_arraydesign()
  656. * Purpose: To describe the structure of 'arraydesign' to tripal
  657. * @see tripal_core_chado_insert()
  658. * @see tripal_core_chado_update()
  659. * @see tripal_core_chado_select()
  660. *
  661. * @return
  662. * An array describing the 'arraydesign' table
  663. *
  664. * @ingroup tripal_chado_v1.2_schema_api
  665. *
  666. */
  667. function tripal_core_chado_schema_v1_2_arraydesign() {
  668. $description = array(
  669. 'description' => 'TODO: please describe this table!',
  670. 'fields' => array(
  671. 'arraydesign_id' => array(
  672. 'description' => 'TODO: please describe this field!',
  673. 'type' => 'serial',
  674. 'not null' => TRUE,
  675. ),
  676. 'manufacturer_id' => array(
  677. 'description' => 'TODO: please describe this field!',
  678. 'type' => 'int',
  679. 'not null' => TRUE,
  680. ),
  681. 'platformtype_id' => array(
  682. 'description' => 'TODO: please describe this field!',
  683. 'type' => 'int',
  684. 'not null' => TRUE,
  685. ),
  686. 'substratetype_id' => array(
  687. 'description' => 'TODO: please describe this field!',
  688. 'type' => 'int',
  689. 'not null' => FALSE,
  690. ),
  691. 'protocol_id' => array(
  692. 'description' => 'TODO: please describe this field!',
  693. 'type' => 'int',
  694. 'not null' => FALSE,
  695. ),
  696. 'dbxref_id' => array(
  697. 'description' => 'TODO: please describe this field!',
  698. 'type' => 'int',
  699. 'not null' => FALSE,
  700. ),
  701. 'name' => array(
  702. 'description' => 'TODO: please describe this field!',
  703. 'type' => 'text',
  704. 'not null' => TRUE,
  705. ),
  706. 'version' => array(
  707. 'description' => 'TODO: please describe this field!',
  708. 'type' => 'text',
  709. 'not null' => FALSE,
  710. ),
  711. 'description' => array(
  712. 'description' => 'TODO: please describe this field!',
  713. 'type' => 'text',
  714. 'not null' => FALSE,
  715. ),
  716. 'array_dimensions' => array(
  717. 'description' => 'TODO: please describe this field!',
  718. 'type' => 'text',
  719. 'not null' => FALSE,
  720. ),
  721. 'element_dimensions' => array(
  722. 'description' => 'TODO: please describe this field!',
  723. 'type' => 'text',
  724. 'not null' => FALSE,
  725. ),
  726. 'num_of_elements' => array(
  727. 'description' => 'TODO: please describe this field!',
  728. 'type' => 'int',
  729. 'not null' => FALSE,
  730. ),
  731. 'num_array_columns' => array(
  732. 'description' => 'TODO: please describe this field!',
  733. 'type' => 'int',
  734. 'not null' => FALSE,
  735. ),
  736. 'num_array_rows' => array(
  737. 'description' => 'TODO: please describe this field!',
  738. 'type' => 'int',
  739. 'not null' => FALSE,
  740. ),
  741. 'num_grid_columns' => array(
  742. 'description' => 'TODO: please describe this field!',
  743. 'type' => 'int',
  744. 'not null' => FALSE,
  745. ),
  746. 'num_grid_rows' => array(
  747. 'description' => 'TODO: please describe this field!',
  748. 'type' => 'int',
  749. 'not null' => FALSE,
  750. ),
  751. 'num_sub_columns' => array(
  752. 'description' => 'TODO: please describe this field!',
  753. 'type' => 'int',
  754. 'not null' => FALSE,
  755. ),
  756. 'num_sub_rows' => array(
  757. 'description' => 'TODO: please describe this field!',
  758. 'type' => 'int',
  759. 'not null' => FALSE,
  760. ),
  761. ),
  762. 'primary key' => array(
  763. 0 => 'arraydesign_id',
  764. ),
  765. 'unique keys' => array(
  766. 'arraydesign_c1' => array(
  767. 0 => 'name',
  768. ),
  769. ),
  770. 'indexes' => array(
  771. 'arraydesign_idx1' => array(
  772. 0 => 'manufacturer_id',
  773. ),
  774. 'arraydesign_idx2' => array(
  775. 0 => 'platformtype_id',
  776. ),
  777. 'arraydesign_idx3' => array(
  778. 0 => 'substratetype_id',
  779. ),
  780. 'arraydesign_idx4' => array(
  781. 0 => 'protocol_id',
  782. ),
  783. 'arraydesign_idx5' => array(
  784. 0 => 'dbxref_id',
  785. ),
  786. ),
  787. 'foreign keys' => array(
  788. 'cvterm' => array(
  789. 'table' => 'cvterm',
  790. 'columns' => array(
  791. 'platformtype_id' => 'cvterm_id',
  792. 'substratetype_id' => 'cvterm_id',
  793. ),
  794. ),
  795. 'dbxref' => array(
  796. 'table' => 'dbxref',
  797. 'columns' => array(
  798. 'dbxref_id' => 'dbxref_id',
  799. ),
  800. ),
  801. 'contact' => array(
  802. 'table' => 'contact',
  803. 'columns' => array(
  804. 'manufacturer_id' => 'contact_id',
  805. ),
  806. ),
  807. 'protocol' => array(
  808. 'table' => 'protocol',
  809. 'columns' => array(
  810. 'protocol_id' => 'protocol_id',
  811. ),
  812. ),
  813. ),
  814. 'table' => 'arraydesign',
  815. 'referring_tables' => array(
  816. 0 => 'arraydesignprop',
  817. 1 => 'assay',
  818. 2 => 'element',
  819. ),
  820. );
  821. return $description;
  822. }
  823. /**
  824. * Implements hook_chado_schema_v1_2_arraydesignprop()
  825. * Purpose: To describe the structure of 'arraydesignprop' to tripal
  826. * @see tripal_core_chado_insert()
  827. * @see tripal_core_chado_update()
  828. * @see tripal_core_chado_select()
  829. *
  830. * @return
  831. * An array describing the 'arraydesignprop' table
  832. *
  833. * @ingroup tripal_chado_v1.2_schema_api
  834. *
  835. */
  836. function tripal_core_chado_schema_v1_2_arraydesignprop() {
  837. $description = array(
  838. 'description' => 'TODO: please describe this table!',
  839. 'fields' => array(
  840. 'arraydesignprop_id' => array(
  841. 'description' => 'TODO: please describe this field!',
  842. 'type' => 'serial',
  843. 'not null' => TRUE,
  844. ),
  845. 'arraydesign_id' => array(
  846. 'description' => 'TODO: please describe this field!',
  847. 'type' => 'int',
  848. 'not null' => TRUE,
  849. ),
  850. 'type_id' => array(
  851. 'description' => 'TODO: please describe this field!',
  852. 'type' => 'int',
  853. 'not null' => TRUE,
  854. ),
  855. 'value' => array(
  856. 'description' => 'TODO: please describe this field!',
  857. 'type' => 'text',
  858. 'not null' => FALSE,
  859. ),
  860. 'rank' => array(
  861. 'description' => 'TODO: please describe this field!',
  862. 'type' => 'int',
  863. 'not null' => TRUE,
  864. 'default' => 0,
  865. ),
  866. ),
  867. 'primary key' => array(
  868. 0 => 'arraydesignprop_id',
  869. ),
  870. 'unique keys' => array(
  871. 'arraydesignprop_c1' => array(
  872. 0 => 'arraydesign_id',
  873. 1 => 'type_id',
  874. 2 => 'rank',
  875. ),
  876. ),
  877. 'indexes' => array(
  878. 'arraydesignprop_idx1' => array(
  879. 0 => 'arraydesign_id',
  880. ),
  881. 'arraydesignprop_idx2' => array(
  882. 0 => 'type_id',
  883. ),
  884. ),
  885. 'foreign keys' => array(
  886. 'cvterm' => array(
  887. 'table' => 'cvterm',
  888. 'columns' => array(
  889. 'type_id' => 'cvterm_id',
  890. ),
  891. ),
  892. 'arraydesign' => array(
  893. 'table' => 'arraydesign',
  894. 'columns' => array(
  895. 'arraydesign_id' => 'arraydesign_id',
  896. ),
  897. ),
  898. ),
  899. 'table' => 'arraydesignprop',
  900. 'referring_tables' => NULL,
  901. );
  902. return $description;
  903. }
  904. /**
  905. * Implements hook_chado_schema_v1_2_assay()
  906. * Purpose: To describe the structure of 'assay' to tripal
  907. * @see tripal_core_chado_insert()
  908. * @see tripal_core_chado_update()
  909. * @see tripal_core_chado_select()
  910. *
  911. * @return
  912. * An array describing the 'assay' table
  913. *
  914. * @ingroup tripal_chado_v1.2_schema_api
  915. *
  916. */
  917. function tripal_core_chado_schema_v1_2_assay() {
  918. $description = array(
  919. 'description' => 'TODO: please describe this table!',
  920. 'fields' => array(
  921. 'assay_id' => array(
  922. 'description' => 'TODO: please describe this field!',
  923. 'type' => 'serial',
  924. 'not null' => TRUE,
  925. ),
  926. 'arraydesign_id' => array(
  927. 'description' => 'TODO: please describe this field!',
  928. 'type' => 'int',
  929. 'not null' => TRUE,
  930. ),
  931. 'protocol_id' => array(
  932. 'description' => 'TODO: please describe this field!',
  933. 'type' => 'int',
  934. 'not null' => FALSE,
  935. ),
  936. 'assaydate' => array(
  937. 'description' => 'TODO: please describe this field!',
  938. 'type' => 'datetime',
  939. 'not null' => FALSE,
  940. 'default' => 'ow(',
  941. ),
  942. 'arrayidentifier' => array(
  943. 'description' => 'TODO: please describe this field!',
  944. 'type' => 'text',
  945. 'not null' => FALSE,
  946. ),
  947. 'arraybatchidentifier' => array(
  948. 'description' => 'TODO: please describe this field!',
  949. 'type' => 'text',
  950. 'not null' => FALSE,
  951. ),
  952. 'operator_id' => array(
  953. 'description' => 'TODO: please describe this field!',
  954. 'type' => 'int',
  955. 'not null' => TRUE,
  956. ),
  957. 'dbxref_id' => array(
  958. 'description' => 'TODO: please describe this field!',
  959. 'type' => 'int',
  960. 'not null' => FALSE,
  961. ),
  962. 'name' => array(
  963. 'description' => 'TODO: please describe this field!',
  964. 'type' => 'text',
  965. 'not null' => FALSE,
  966. ),
  967. 'description' => array(
  968. 'description' => 'TODO: please describe this field!',
  969. 'type' => 'text',
  970. 'not null' => FALSE,
  971. ),
  972. ),
  973. 'primary key' => array(
  974. 0 => 'assay_id',
  975. ),
  976. 'unique keys' => array(
  977. 'assay_c1' => array(
  978. 0 => 'name',
  979. ),
  980. ),
  981. 'indexes' => array(
  982. 'assay_idx1' => array(
  983. 0 => 'arraydesign_id',
  984. ),
  985. 'assay_idx2' => array(
  986. 0 => 'protocol_id',
  987. ),
  988. 'assay_idx3' => array(
  989. 0 => 'operator_id',
  990. ),
  991. 'assay_idx4' => array(
  992. 0 => 'dbxref_id',
  993. ),
  994. ),
  995. 'foreign keys' => array(
  996. 'dbxref' => array(
  997. 'table' => 'dbxref',
  998. 'columns' => array(
  999. 'dbxref_id' => 'dbxref_id',
  1000. ),
  1001. ),
  1002. 'contact' => array(
  1003. 'table' => 'contact',
  1004. 'columns' => array(
  1005. 'operator_id' => 'contact_id',
  1006. ),
  1007. ),
  1008. 'arraydesign' => array(
  1009. 'table' => 'arraydesign',
  1010. 'columns' => array(
  1011. 'arraydesign_id' => 'arraydesign_id',
  1012. ),
  1013. ),
  1014. 'protocol' => array(
  1015. 'table' => 'protocol',
  1016. 'columns' => array(
  1017. 'protocol_id' => 'protocol_id',
  1018. ),
  1019. ),
  1020. ),
  1021. 'table' => 'assay',
  1022. 'referring_tables' => array(
  1023. 0 => 'acquisition',
  1024. 1 => 'assay_biomaterial',
  1025. 2 => 'assay_project',
  1026. 3 => 'assayprop',
  1027. 4 => 'control',
  1028. 5 => 'study_assay',
  1029. 6 => 'studyfactorvalue',
  1030. ),
  1031. );
  1032. return $description;
  1033. }
  1034. /**
  1035. * Implements hook_chado_schema_v1_2_assay_biomaterial()
  1036. * Purpose: To describe the structure of 'assay_biomaterial' to tripal
  1037. * @see tripal_core_chado_insert()
  1038. * @see tripal_core_chado_update()
  1039. * @see tripal_core_chado_select()
  1040. *
  1041. * @return
  1042. * An array describing the 'assay_biomaterial' table
  1043. *
  1044. * @ingroup tripal_chado_v1.2_schema_api
  1045. *
  1046. */
  1047. function tripal_core_chado_schema_v1_2_assay_biomaterial() {
  1048. $description = array(
  1049. 'description' => 'TODO: please describe this table!',
  1050. 'fields' => array(
  1051. 'assay_biomaterial_id' => array(
  1052. 'description' => 'TODO: please describe this field!',
  1053. 'type' => 'serial',
  1054. 'not null' => TRUE,
  1055. ),
  1056. 'assay_id' => array(
  1057. 'description' => 'TODO: please describe this field!',
  1058. 'type' => 'int',
  1059. 'not null' => TRUE,
  1060. ),
  1061. 'biomaterial_id' => array(
  1062. 'description' => 'TODO: please describe this field!',
  1063. 'type' => 'int',
  1064. 'not null' => TRUE,
  1065. ),
  1066. 'channel_id' => array(
  1067. 'description' => 'TODO: please describe this field!',
  1068. 'type' => 'int',
  1069. 'not null' => FALSE,
  1070. ),
  1071. 'rank' => array(
  1072. 'description' => 'TODO: please describe this field!',
  1073. 'type' => 'int',
  1074. 'not null' => TRUE,
  1075. 'default' => 0,
  1076. ),
  1077. ),
  1078. 'primary key' => array(
  1079. 0 => 'assay_biomaterial_id',
  1080. ),
  1081. 'unique keys' => array(
  1082. 'assay_biomaterial_c1' => array(
  1083. 0 => 'assay_id',
  1084. 1 => 'biomaterial_id',
  1085. 2 => 'channel_id',
  1086. 3 => 'rank',
  1087. ),
  1088. ),
  1089. 'indexes' => array(
  1090. 'assay_biomaterial_idx1' => array(
  1091. 0 => 'assay_id',
  1092. ),
  1093. 'assay_biomaterial_idx2' => array(
  1094. 0 => 'biomaterial_id',
  1095. ),
  1096. 'assay_biomaterial_idx3' => array(
  1097. 0 => 'channel_id',
  1098. ),
  1099. ),
  1100. 'foreign keys' => array(
  1101. 'assay' => array(
  1102. 'table' => 'assay',
  1103. 'columns' => array(
  1104. 'assay_id' => 'assay_id',
  1105. ),
  1106. ),
  1107. 'biomaterial' => array(
  1108. 'table' => 'biomaterial',
  1109. 'columns' => array(
  1110. 'biomaterial_id' => 'biomaterial_id',
  1111. ),
  1112. ),
  1113. 'channel' => array(
  1114. 'table' => 'channel',
  1115. 'columns' => array(
  1116. 'channel_id' => 'channel_id',
  1117. ),
  1118. ),
  1119. ),
  1120. 'table' => 'assay_biomaterial',
  1121. 'referring_tables' => NULL,
  1122. );
  1123. return $description;
  1124. }
  1125. /**
  1126. * Implements hook_chado_schema_v1_2_assay_project()
  1127. * Purpose: To describe the structure of 'assay_project' to tripal
  1128. * @see tripal_core_chado_insert()
  1129. * @see tripal_core_chado_update()
  1130. * @see tripal_core_chado_select()
  1131. *
  1132. * @return
  1133. * An array describing the 'assay_project' table
  1134. *
  1135. * @ingroup tripal_chado_v1.2_schema_api
  1136. *
  1137. */
  1138. function tripal_core_chado_schema_v1_2_assay_project() {
  1139. $description = array(
  1140. 'description' => 'TODO: please describe this table!',
  1141. 'fields' => array(
  1142. 'assay_project_id' => array(
  1143. 'description' => 'TODO: please describe this field!',
  1144. 'type' => 'serial',
  1145. 'not null' => TRUE,
  1146. ),
  1147. 'assay_id' => array(
  1148. 'description' => 'TODO: please describe this field!',
  1149. 'type' => 'int',
  1150. 'not null' => TRUE,
  1151. ),
  1152. 'project_id' => array(
  1153. 'description' => 'TODO: please describe this field!',
  1154. 'type' => 'int',
  1155. 'not null' => TRUE,
  1156. ),
  1157. ),
  1158. 'primary key' => array(
  1159. 0 => 'assay_project_id',
  1160. ),
  1161. 'unique keys' => array(
  1162. 'assay_project_c1' => array(
  1163. 0 => 'assay_id',
  1164. 1 => 'project_id',
  1165. ),
  1166. ),
  1167. 'indexes' => array(
  1168. 'assay_project_idx1' => array(
  1169. 0 => 'assay_id',
  1170. ),
  1171. 'assay_project_idx2' => array(
  1172. 0 => 'project_id',
  1173. ),
  1174. ),
  1175. 'foreign keys' => array(
  1176. 'project' => array(
  1177. 'table' => 'project',
  1178. 'columns' => array(
  1179. 'project_id' => 'project_id',
  1180. ),
  1181. ),
  1182. 'assay' => array(
  1183. 'table' => 'assay',
  1184. 'columns' => array(
  1185. 'assay_id' => 'assay_id',
  1186. ),
  1187. ),
  1188. ),
  1189. 'table' => 'assay_project',
  1190. 'referring_tables' => NULL,
  1191. );
  1192. return $description;
  1193. }
  1194. /**
  1195. * Implements hook_chado_schema_v1_2_assayprop()
  1196. * Purpose: To describe the structure of 'assayprop' to tripal
  1197. * @see tripal_core_chado_insert()
  1198. * @see tripal_core_chado_update()
  1199. * @see tripal_core_chado_select()
  1200. *
  1201. * @return
  1202. * An array describing the 'assayprop' table
  1203. *
  1204. * @ingroup tripal_chado_v1.2_schema_api
  1205. *
  1206. */
  1207. function tripal_core_chado_schema_v1_2_assayprop() {
  1208. $description = array(
  1209. 'description' => 'TODO: please describe this table!',
  1210. 'fields' => array(
  1211. 'assayprop_id' => array(
  1212. 'description' => 'TODO: please describe this field!',
  1213. 'type' => 'serial',
  1214. 'not null' => TRUE,
  1215. ),
  1216. 'assay_id' => array(
  1217. 'description' => 'TODO: please describe this field!',
  1218. 'type' => 'int',
  1219. 'not null' => TRUE,
  1220. ),
  1221. 'type_id' => array(
  1222. 'description' => 'TODO: please describe this field!',
  1223. 'type' => 'int',
  1224. 'not null' => TRUE,
  1225. ),
  1226. 'value' => array(
  1227. 'description' => 'TODO: please describe this field!',
  1228. 'type' => 'text',
  1229. 'not null' => FALSE,
  1230. ),
  1231. 'rank' => array(
  1232. 'description' => 'TODO: please describe this field!',
  1233. 'type' => 'int',
  1234. 'not null' => TRUE,
  1235. 'default' => 0,
  1236. ),
  1237. ),
  1238. 'primary key' => array(
  1239. 0 => 'assayprop_id',
  1240. ),
  1241. 'unique keys' => array(
  1242. 'assayprop_c1' => array(
  1243. 0 => 'assay_id',
  1244. 1 => 'type_id',
  1245. 2 => 'rank',
  1246. ),
  1247. ),
  1248. 'indexes' => array(
  1249. 'assayprop_idx1' => array(
  1250. 0 => 'assay_id',
  1251. ),
  1252. 'assayprop_idx2' => array(
  1253. 0 => 'type_id',
  1254. ),
  1255. ),
  1256. 'foreign keys' => array(
  1257. 'cvterm' => array(
  1258. 'table' => 'cvterm',
  1259. 'columns' => array(
  1260. 'type_id' => 'cvterm_id',
  1261. ),
  1262. ),
  1263. 'assay' => array(
  1264. 'table' => 'assay',
  1265. 'columns' => array(
  1266. 'assay_id' => 'assay_id',
  1267. ),
  1268. ),
  1269. ),
  1270. 'table' => 'assayprop',
  1271. 'referring_tables' => NULL,
  1272. );
  1273. return $description;
  1274. }
  1275. /**
  1276. * Implements hook_chado_schema_v1_2_biomaterial()
  1277. * Purpose: To describe the structure of 'biomaterial' to tripal
  1278. * @see tripal_core_chado_insert()
  1279. * @see tripal_core_chado_update()
  1280. * @see tripal_core_chado_select()
  1281. *
  1282. * @return
  1283. * An array describing the 'biomaterial' table
  1284. *
  1285. * @ingroup tripal_chado_v1.2_schema_api
  1286. *
  1287. */
  1288. function tripal_core_chado_schema_v1_2_biomaterial() {
  1289. $description = array(
  1290. 'description' => 'TODO: please describe this table!',
  1291. 'fields' => array(
  1292. 'biomaterial_id' => array(
  1293. 'description' => 'TODO: please describe this field!',
  1294. 'type' => 'serial',
  1295. 'not null' => TRUE,
  1296. ),
  1297. 'taxon_id' => array(
  1298. 'description' => 'TODO: please describe this field!',
  1299. 'type' => 'int',
  1300. 'not null' => FALSE,
  1301. ),
  1302. 'biosourceprovider_id' => array(
  1303. 'description' => 'TODO: please describe this field!',
  1304. 'type' => 'int',
  1305. 'not null' => FALSE,
  1306. ),
  1307. 'dbxref_id' => array(
  1308. 'description' => 'TODO: please describe this field!',
  1309. 'type' => 'int',
  1310. 'not null' => FALSE,
  1311. ),
  1312. 'name' => array(
  1313. 'description' => 'TODO: please describe this field!',
  1314. 'type' => 'text',
  1315. 'not null' => FALSE,
  1316. ),
  1317. 'description' => array(
  1318. 'description' => 'TODO: please describe this field!',
  1319. 'type' => 'text',
  1320. 'not null' => FALSE,
  1321. ),
  1322. ),
  1323. 'primary key' => array(
  1324. 0 => 'biomaterial_id',
  1325. ),
  1326. 'unique keys' => array(
  1327. 'biomaterial_c1' => array(
  1328. 0 => 'name',
  1329. ),
  1330. ),
  1331. 'indexes' => array(
  1332. 'biomaterial_idx1' => array(
  1333. 0 => 'taxon_id',
  1334. ),
  1335. 'biomaterial_idx2' => array(
  1336. 0 => 'biosourceprovider_id',
  1337. ),
  1338. 'biomaterial_idx3' => array(
  1339. 0 => 'dbxref_id',
  1340. ),
  1341. ),
  1342. 'foreign keys' => array(
  1343. 'organism' => array(
  1344. 'table' => 'organism',
  1345. 'columns' => array(
  1346. 'taxon_id' => 'organism_id',
  1347. ),
  1348. ),
  1349. 'dbxref' => array(
  1350. 'table' => 'dbxref',
  1351. 'columns' => array(
  1352. 'dbxref_id' => 'dbxref_id',
  1353. ),
  1354. ),
  1355. 'contact' => array(
  1356. 'table' => 'contact',
  1357. 'columns' => array(
  1358. 'biosourceprovider_id' => 'contact_id',
  1359. ),
  1360. ),
  1361. ),
  1362. 'table' => 'biomaterial',
  1363. 'referring_tables' => array(
  1364. 0 => 'assay_biomaterial',
  1365. 1 => 'biomaterial_dbxref',
  1366. 2 => 'biomaterial_relationship',
  1367. 4 => 'biomaterial_treatment',
  1368. 5 => 'biomaterialprop',
  1369. 6 => 'treatment',
  1370. ),
  1371. );
  1372. return $description;
  1373. }
  1374. /**
  1375. * Implements hook_chado_schema_v1_2_biomaterial_dbxref()
  1376. * Purpose: To describe the structure of 'biomaterial_dbxref' to tripal
  1377. * @see tripal_core_chado_insert()
  1378. * @see tripal_core_chado_update()
  1379. * @see tripal_core_chado_select()
  1380. *
  1381. * @return
  1382. * An array describing the 'biomaterial_dbxref' table
  1383. *
  1384. * @ingroup tripal_chado_v1.2_schema_api
  1385. *
  1386. */
  1387. function tripal_core_chado_schema_v1_2_biomaterial_dbxref() {
  1388. $description = array(
  1389. 'description' => 'TODO: please describe this table!',
  1390. 'fields' => array(
  1391. 'biomaterial_dbxref_id' => array(
  1392. 'description' => 'TODO: please describe this field!',
  1393. 'type' => 'serial',
  1394. 'not null' => TRUE,
  1395. ),
  1396. 'biomaterial_id' => array(
  1397. 'description' => 'TODO: please describe this field!',
  1398. 'type' => 'int',
  1399. 'not null' => TRUE,
  1400. ),
  1401. 'dbxref_id' => array(
  1402. 'description' => 'TODO: please describe this field!',
  1403. 'type' => 'int',
  1404. 'not null' => TRUE,
  1405. ),
  1406. ),
  1407. 'primary key' => array(
  1408. 0 => 'biomaterial_dbxref_id',
  1409. ),
  1410. 'unique keys' => array(
  1411. 'biomaterial_dbxref_c1' => array(
  1412. 0 => 'biomaterial_id',
  1413. 1 => 'dbxref_id',
  1414. ),
  1415. ),
  1416. 'indexes' => array(
  1417. 'biomaterial_dbxref_idx1' => array(
  1418. 0 => 'biomaterial_id',
  1419. ),
  1420. 'biomaterial_dbxref_idx2' => array(
  1421. 0 => 'dbxref_id',
  1422. ),
  1423. ),
  1424. 'foreign keys' => array(
  1425. 'dbxref' => array(
  1426. 'table' => 'dbxref',
  1427. 'columns' => array(
  1428. 'dbxref_id' => 'dbxref_id',
  1429. ),
  1430. ),
  1431. 'biomaterial' => array(
  1432. 'table' => 'biomaterial',
  1433. 'columns' => array(
  1434. 'biomaterial_id' => 'biomaterial_id',
  1435. ),
  1436. ),
  1437. ),
  1438. 'table' => 'biomaterial_dbxref',
  1439. 'referring_tables' => NULL,
  1440. );
  1441. return $description;
  1442. }
  1443. /**
  1444. * Implements hook_chado_schema_v1_2_biomaterial_relationship()
  1445. * Purpose: To describe the structure of 'biomaterial_relationship' to tripal
  1446. * @see tripal_core_chado_insert()
  1447. * @see tripal_core_chado_update()
  1448. * @see tripal_core_chado_select()
  1449. *
  1450. * @return
  1451. * An array describing the 'biomaterial_relationship' table
  1452. *
  1453. * @ingroup tripal_chado_v1.2_schema_api
  1454. *
  1455. */
  1456. function tripal_core_chado_schema_v1_2_biomaterial_relationship() {
  1457. $description = array(
  1458. 'description' => 'TODO: please describe this table!',
  1459. 'fields' => array(
  1460. 'biomaterial_relationship_id' => array(
  1461. 'description' => 'TODO: please describe this field!',
  1462. 'type' => 'serial',
  1463. 'not null' => TRUE,
  1464. ),
  1465. 'subject_id' => array(
  1466. 'description' => 'TODO: please describe this field!',
  1467. 'type' => 'int',
  1468. 'not null' => TRUE,
  1469. ),
  1470. 'type_id' => array(
  1471. 'description' => 'TODO: please describe this field!',
  1472. 'type' => 'int',
  1473. 'not null' => TRUE,
  1474. ),
  1475. 'object_id' => array(
  1476. 'description' => 'TODO: please describe this field!',
  1477. 'type' => 'int',
  1478. 'not null' => TRUE,
  1479. ),
  1480. ),
  1481. 'primary key' => array(
  1482. 0 => 'biomaterial_relationship_id',
  1483. ),
  1484. 'unique keys' => array(
  1485. 'biomaterial_relationship_c1' => array(
  1486. 0 => 'subject_id',
  1487. 1 => 'object_id',
  1488. 2 => 'type_id',
  1489. ),
  1490. ),
  1491. 'indexes' => array(
  1492. 'biomaterial_relationship_idx1' => array(
  1493. 0 => 'subject_id',
  1494. ),
  1495. 'biomaterial_relationship_idx2' => array(
  1496. 0 => 'object_id',
  1497. ),
  1498. 'biomaterial_relationship_idx3' => array(
  1499. 0 => 'type_id',
  1500. ),
  1501. ),
  1502. 'foreign keys' => array(
  1503. 'cvterm' => array(
  1504. 'table' => 'cvterm',
  1505. 'columns' => array(
  1506. 'type_id' => 'cvterm_id',
  1507. ),
  1508. ),
  1509. 'biomaterial' => array(
  1510. 'table' => 'biomaterial',
  1511. 'columns' => array(
  1512. 'subject_id' => 'biomaterial_id',
  1513. 'object_id' => 'biomaterial_id',
  1514. ),
  1515. ),
  1516. ),
  1517. 'table' => 'biomaterial_relationship',
  1518. 'referring_tables' => NULL,
  1519. );
  1520. return $description;
  1521. }
  1522. /**
  1523. * Implements hook_chado_schema_v1_2_biomaterial_treatment()
  1524. * Purpose: To describe the structure of 'biomaterial_treatment' to tripal
  1525. * @see tripal_core_chado_insert()
  1526. * @see tripal_core_chado_update()
  1527. * @see tripal_core_chado_select()
  1528. *
  1529. * @return
  1530. * An array describing the 'biomaterial_treatment' table
  1531. *
  1532. * @ingroup tripal_chado_v1.2_schema_api
  1533. *
  1534. */
  1535. function tripal_core_chado_schema_v1_2_biomaterial_treatment() {
  1536. $description = array(
  1537. 'description' => 'TODO: please describe this table!',
  1538. 'fields' => array(
  1539. 'biomaterial_treatment_id' => array(
  1540. 'description' => 'TODO: please describe this field!',
  1541. 'type' => 'serial',
  1542. 'not null' => TRUE,
  1543. ),
  1544. 'biomaterial_id' => array(
  1545. 'description' => 'TODO: please describe this field!',
  1546. 'type' => 'int',
  1547. 'not null' => TRUE,
  1548. ),
  1549. 'treatment_id' => array(
  1550. 'description' => 'TODO: please describe this field!',
  1551. 'type' => 'int',
  1552. 'not null' => TRUE,
  1553. ),
  1554. 'unittype_id' => array(
  1555. 'description' => 'TODO: please describe this field!',
  1556. 'type' => 'int',
  1557. 'not null' => FALSE,
  1558. ),
  1559. 'value' => array(
  1560. 'description' => 'TODO: please describe this field!',
  1561. 'type' => 'float',
  1562. 'not null' => FALSE,
  1563. ),
  1564. 'rank' => array(
  1565. 'description' => 'TODO: please describe this field!',
  1566. 'type' => 'int',
  1567. 'not null' => TRUE,
  1568. 'default' => 0,
  1569. ),
  1570. ),
  1571. 'primary key' => array(
  1572. 0 => 'biomaterial_treatment_id',
  1573. ),
  1574. 'unique keys' => array(
  1575. 'biomaterial_treatment_c1' => array(
  1576. 0 => 'biomaterial_id',
  1577. 1 => 'treatment_id',
  1578. ),
  1579. ),
  1580. 'indexes' => array(
  1581. 'biomaterial_treatment_idx1' => array(
  1582. 0 => 'biomaterial_id',
  1583. ),
  1584. 'biomaterial_treatment_idx2' => array(
  1585. 0 => 'treatment_id',
  1586. ),
  1587. 'biomaterial_treatment_idx3' => array(
  1588. 0 => 'unittype_id',
  1589. ),
  1590. ),
  1591. 'foreign keys' => array(
  1592. 'cvterm' => array(
  1593. 'table' => 'cvterm',
  1594. 'columns' => array(
  1595. 'unittype_id' => 'cvterm_id',
  1596. ),
  1597. ),
  1598. 'biomaterial' => array(
  1599. 'table' => 'biomaterial',
  1600. 'columns' => array(
  1601. 'biomaterial_id' => 'biomaterial_id',
  1602. ),
  1603. ),
  1604. 'treatment' => array(
  1605. 'table' => 'treatment',
  1606. 'columns' => array(
  1607. 'treatment_id' => 'treatment_id',
  1608. ),
  1609. ),
  1610. ),
  1611. 'table' => 'biomaterial_treatment',
  1612. 'referring_tables' => NULL,
  1613. );
  1614. return $description;
  1615. }
  1616. /**
  1617. * Implements hook_chado_schema_v1_2_biomaterialprop()
  1618. * Purpose: To describe the structure of 'biomaterialprop' to tripal
  1619. * @see tripal_core_chado_insert()
  1620. * @see tripal_core_chado_update()
  1621. * @see tripal_core_chado_select()
  1622. *
  1623. * @return
  1624. * An array describing the 'biomaterialprop' table
  1625. *
  1626. * @ingroup tripal_chado_v1.2_schema_api
  1627. *
  1628. */
  1629. function tripal_core_chado_schema_v1_2_biomaterialprop() {
  1630. $description = array(
  1631. 'description' => 'TODO: please describe this table!',
  1632. 'fields' => array(
  1633. 'biomaterialprop_id' => array(
  1634. 'description' => 'TODO: please describe this field!',
  1635. 'type' => 'serial',
  1636. 'not null' => TRUE,
  1637. ),
  1638. 'biomaterial_id' => array(
  1639. 'description' => 'TODO: please describe this field!',
  1640. 'type' => 'int',
  1641. 'not null' => TRUE,
  1642. ),
  1643. 'type_id' => array(
  1644. 'description' => 'TODO: please describe this field!',
  1645. 'type' => 'int',
  1646. 'not null' => TRUE,
  1647. ),
  1648. 'value' => array(
  1649. 'description' => 'TODO: please describe this field!',
  1650. 'type' => 'text',
  1651. 'not null' => FALSE,
  1652. ),
  1653. 'rank' => array(
  1654. 'description' => 'TODO: please describe this field!',
  1655. 'type' => 'int',
  1656. 'not null' => TRUE,
  1657. 'default' => 0,
  1658. ),
  1659. ),
  1660. 'primary key' => array(
  1661. 0 => 'biomaterialprop_id',
  1662. ),
  1663. 'unique keys' => array(
  1664. 'biomaterialprop_c1' => array(
  1665. 0 => 'biomaterial_id',
  1666. 1 => 'type_id',
  1667. 2 => 'rank',
  1668. ),
  1669. ),
  1670. 'indexes' => array(
  1671. 'biomaterialprop_idx1' => array(
  1672. 0 => 'biomaterial_id',
  1673. ),
  1674. 'biomaterialprop_idx2' => array(
  1675. 0 => 'type_id',
  1676. ),
  1677. ),
  1678. 'foreign keys' => array(
  1679. 'cvterm' => array(
  1680. 'table' => 'cvterm',
  1681. 'columns' => array(
  1682. 'type_id' => 'cvterm_id',
  1683. ),
  1684. ),
  1685. 'biomaterial' => array(
  1686. 'table' => 'biomaterial',
  1687. 'columns' => array(
  1688. 'biomaterial_id' => 'biomaterial_id',
  1689. ),
  1690. ),
  1691. ),
  1692. 'table' => 'biomaterialprop',
  1693. 'referring_tables' => NULL,
  1694. );
  1695. return $description;
  1696. }
  1697. /**
  1698. * Implements hook_chado_schema_v1_2_cell_line()
  1699. * Purpose: To describe the structure of 'cell_line' to tripal
  1700. * @see tripal_core_chado_insert()
  1701. * @see tripal_core_chado_update()
  1702. * @see tripal_core_chado_select()
  1703. *
  1704. * @return
  1705. * An array describing the 'cell_line' table
  1706. *
  1707. * @ingroup tripal_chado_v1.2_schema_api
  1708. *
  1709. */
  1710. function tripal_core_chado_schema_v1_2_cell_line() {
  1711. $description = array(
  1712. 'description' => 'TODO: please describe this table!',
  1713. 'fields' => array(
  1714. 'cell_line_id' => array(
  1715. 'description' => 'TODO: please describe this field!',
  1716. 'type' => 'serial',
  1717. 'not null' => TRUE,
  1718. ),
  1719. 'name' => array(
  1720. 'description' => 'TODO: please describe this field!',
  1721. 'type' => 'varchar',
  1722. 'length' => '255',
  1723. 'not null' => FALSE,
  1724. ),
  1725. 'uniquename' => array(
  1726. 'description' => 'TODO: please describe this field!',
  1727. 'type' => 'varchar',
  1728. 'length' => '255',
  1729. 'not null' => TRUE,
  1730. ),
  1731. 'organism_id' => array(
  1732. 'description' => 'TODO: please describe this field!',
  1733. 'type' => 'int',
  1734. 'not null' => TRUE,
  1735. ),
  1736. 'timeaccessioned' => array(
  1737. 'description' => 'TODO: please describe this field!',
  1738. 'type' => 'datetime',
  1739. 'not null' => TRUE,
  1740. 'default' => 'ow(',
  1741. ),
  1742. 'timelastmodified' => array(
  1743. 'description' => 'TODO: please describe this field!',
  1744. 'type' => 'datetime',
  1745. 'not null' => TRUE,
  1746. 'default' => 'ow(',
  1747. ),
  1748. ),
  1749. 'primary key' => array(
  1750. 0 => 'cell_line_id',
  1751. ),
  1752. 'unique keys' => array(
  1753. 'cell_line_c1' => array(
  1754. 0 => 'uniquename',
  1755. 1 => 'organism_id',
  1756. ),
  1757. ),
  1758. 'foreign keys' => array(
  1759. 'organism' => array(
  1760. 'table' => 'organism',
  1761. 'columns' => array(
  1762. 'organism_id' => 'organism_id',
  1763. ),
  1764. ),
  1765. ),
  1766. 'table' => 'cell_line',
  1767. 'referring_tables' => array(
  1768. 0 => 'cell_line_cvterm',
  1769. 1 => 'cell_line_dbxref',
  1770. 2 => 'cell_line_feature',
  1771. 3 => 'cell_line_library',
  1772. 4 => 'cell_line_pub',
  1773. 5 => 'cell_line_relationship',
  1774. 7 => 'cell_line_synonym',
  1775. 8 => 'cell_lineprop',
  1776. ),
  1777. );
  1778. return $description;
  1779. }
  1780. /**
  1781. * Implements hook_chado_schema_v1_2_cell_line_cvterm()
  1782. * Purpose: To describe the structure of 'cell_line_cvterm' to tripal
  1783. * @see tripal_core_chado_insert()
  1784. * @see tripal_core_chado_update()
  1785. * @see tripal_core_chado_select()
  1786. *
  1787. * @return
  1788. * An array describing the 'cell_line_cvterm' table
  1789. *
  1790. * @ingroup tripal_chado_v1.2_schema_api
  1791. *
  1792. */
  1793. function tripal_core_chado_schema_v1_2_cell_line_cvterm() {
  1794. $description = array(
  1795. 'description' => 'TODO: please describe this table!',
  1796. 'fields' => array(
  1797. 'cell_line_cvterm_id' => array(
  1798. 'description' => 'TODO: please describe this field!',
  1799. 'type' => 'serial',
  1800. 'not null' => TRUE,
  1801. ),
  1802. 'cell_line_id' => array(
  1803. 'description' => 'TODO: please describe this field!',
  1804. 'type' => 'int',
  1805. 'not null' => TRUE,
  1806. ),
  1807. 'cvterm_id' => array(
  1808. 'description' => 'TODO: please describe this field!',
  1809. 'type' => 'int',
  1810. 'not null' => TRUE,
  1811. ),
  1812. 'pub_id' => array(
  1813. 'description' => 'TODO: please describe this field!',
  1814. 'type' => 'int',
  1815. 'not null' => TRUE,
  1816. ),
  1817. 'rank' => array(
  1818. 'description' => 'TODO: please describe this field!',
  1819. 'type' => 'int',
  1820. 'not null' => TRUE,
  1821. 'default' => 0,
  1822. ),
  1823. ),
  1824. 'primary key' => array(
  1825. 0 => 'cell_line_cvterm_id',
  1826. ),
  1827. 'unique keys' => array(
  1828. 'cell_line_cvterm_c1' => array(
  1829. 0 => 'cell_line_id',
  1830. 1 => 'cvterm_id',
  1831. 2 => 'pub_id',
  1832. 3 => 'rank',
  1833. ),
  1834. ),
  1835. 'foreign keys' => array(
  1836. 'cvterm' => array(
  1837. 'table' => 'cvterm',
  1838. 'columns' => array(
  1839. 'cvterm_id' => 'cvterm_id',
  1840. ),
  1841. ),
  1842. 'pub' => array(
  1843. 'table' => 'pub',
  1844. 'columns' => array(
  1845. 'pub_id' => 'pub_id',
  1846. ),
  1847. ),
  1848. 'cell_line' => array(
  1849. 'table' => 'cell_line',
  1850. 'columns' => array(
  1851. 'cell_line_id' => 'cell_line_id',
  1852. ),
  1853. ),
  1854. ),
  1855. 'table' => 'cell_line_cvterm',
  1856. 'referring_tables' => array(
  1857. 0 => 'cell_line_cvtermprop',
  1858. ),
  1859. );
  1860. return $description;
  1861. }
  1862. /**
  1863. * Implements hook_chado_schema_v1_2_cell_line_cvtermprop()
  1864. * Purpose: To describe the structure of 'cell_line_cvtermprop' to tripal
  1865. * @see tripal_core_chado_insert()
  1866. * @see tripal_core_chado_update()
  1867. * @see tripal_core_chado_select()
  1868. *
  1869. * @return
  1870. * An array describing the 'cell_line_cvtermprop' table
  1871. *
  1872. * @ingroup tripal_chado_v1.2_schema_api
  1873. *
  1874. */
  1875. function tripal_core_chado_schema_v1_2_cell_line_cvtermprop() {
  1876. $description = array(
  1877. 'description' => 'TODO: please describe this table!',
  1878. 'fields' => array(
  1879. 'cell_line_cvtermprop_id' => array(
  1880. 'description' => 'TODO: please describe this field!',
  1881. 'type' => 'serial',
  1882. 'not null' => TRUE,
  1883. ),
  1884. 'cell_line_cvterm_id' => array(
  1885. 'description' => 'TODO: please describe this field!',
  1886. 'type' => 'int',
  1887. 'not null' => TRUE,
  1888. ),
  1889. 'type_id' => array(
  1890. 'description' => 'TODO: please describe this field!',
  1891. 'type' => 'int',
  1892. 'not null' => TRUE,
  1893. ),
  1894. 'value' => array(
  1895. 'description' => 'TODO: please describe this field!',
  1896. 'type' => 'text',
  1897. 'not null' => FALSE,
  1898. ),
  1899. 'rank' => array(
  1900. 'description' => 'TODO: please describe this field!',
  1901. 'type' => 'int',
  1902. 'not null' => TRUE,
  1903. 'default' => 0,
  1904. ),
  1905. ),
  1906. 'primary key' => array(
  1907. 0 => 'cell_line_cvtermprop_id',
  1908. ),
  1909. 'unique keys' => array(
  1910. 'cell_line_cvtermprop_c1' => array(
  1911. 0 => 'cell_line_cvterm_id',
  1912. 1 => 'type_id',
  1913. 2 => 'rank',
  1914. ),
  1915. ),
  1916. 'foreign keys' => array(
  1917. 'cvterm' => array(
  1918. 'table' => 'cvterm',
  1919. 'columns' => array(
  1920. 'type_id' => 'cvterm_id',
  1921. ),
  1922. ),
  1923. 'cell_line_cvterm' => array(
  1924. 'table' => 'cell_line_cvterm',
  1925. 'columns' => array(
  1926. 'cell_line_cvterm_id' => 'cell_line_cvterm_id',
  1927. ),
  1928. ),
  1929. ),
  1930. 'table' => 'cell_line_cvtermprop',
  1931. 'referring_tables' => NULL,
  1932. );
  1933. return $description;
  1934. }
  1935. /**
  1936. * Implements hook_chado_schema_v1_2_cell_line_dbxref()
  1937. * Purpose: To describe the structure of 'cell_line_dbxref' to tripal
  1938. * @see tripal_core_chado_insert()
  1939. * @see tripal_core_chado_update()
  1940. * @see tripal_core_chado_select()
  1941. *
  1942. * @return
  1943. * An array describing the 'cell_line_dbxref' table
  1944. *
  1945. * @ingroup tripal_chado_v1.2_schema_api
  1946. *
  1947. */
  1948. function tripal_core_chado_schema_v1_2_cell_line_dbxref() {
  1949. $description = array(
  1950. 'description' => 'TODO: please describe this table!',
  1951. 'fields' => array(
  1952. 'cell_line_dbxref_id' => array(
  1953. 'description' => 'TODO: please describe this field!',
  1954. 'type' => 'serial',
  1955. 'not null' => TRUE,
  1956. ),
  1957. 'cell_line_id' => array(
  1958. 'description' => 'TODO: please describe this field!',
  1959. 'type' => 'int',
  1960. 'not null' => TRUE,
  1961. ),
  1962. 'dbxref_id' => array(
  1963. 'description' => 'TODO: please describe this field!',
  1964. 'type' => 'int',
  1965. 'not null' => TRUE,
  1966. ),
  1967. 'is_current' => array(
  1968. 'description' => 'TODO: please describe this field!',
  1969. 'type' => 'boolean',
  1970. 'not null' => TRUE,
  1971. 'default' => 'ru',
  1972. ),
  1973. ),
  1974. 'primary key' => array(
  1975. 0 => 'cell_line_dbxref_id',
  1976. ),
  1977. 'unique keys' => array(
  1978. 'cell_line_dbxref_c1' => array(
  1979. 0 => 'cell_line_id',
  1980. 1 => 'dbxref_id',
  1981. ),
  1982. ),
  1983. 'foreign keys' => array(
  1984. 'dbxref' => array(
  1985. 'table' => 'dbxref',
  1986. 'columns' => array(
  1987. 'dbxref_id' => 'dbxref_id',
  1988. ),
  1989. ),
  1990. 'cell_line' => array(
  1991. 'table' => 'cell_line',
  1992. 'columns' => array(
  1993. 'cell_line_id' => 'cell_line_id',
  1994. ),
  1995. ),
  1996. ),
  1997. 'table' => 'cell_line_dbxref',
  1998. 'referring_tables' => NULL,
  1999. );
  2000. return $description;
  2001. }
  2002. /**
  2003. * Implements hook_chado_schema_v1_2_cell_line_feature()
  2004. * Purpose: To describe the structure of 'cell_line_feature' to tripal
  2005. * @see tripal_core_chado_insert()
  2006. * @see tripal_core_chado_update()
  2007. * @see tripal_core_chado_select()
  2008. *
  2009. * @return
  2010. * An array describing the 'cell_line_feature' table
  2011. *
  2012. * @ingroup tripal_chado_v1.2_schema_api
  2013. *
  2014. */
  2015. function tripal_core_chado_schema_v1_2_cell_line_feature() {
  2016. $description = array(
  2017. 'description' => 'TODO: please describe this table!',
  2018. 'fields' => array(
  2019. 'cell_line_feature_id' => array(
  2020. 'description' => 'TODO: please describe this field!',
  2021. 'type' => 'serial',
  2022. 'not null' => TRUE,
  2023. ),
  2024. 'cell_line_id' => array(
  2025. 'description' => 'TODO: please describe this field!',
  2026. 'type' => 'int',
  2027. 'not null' => TRUE,
  2028. ),
  2029. 'feature_id' => array(
  2030. 'description' => 'TODO: please describe this field!',
  2031. 'type' => 'int',
  2032. 'not null' => TRUE,
  2033. ),
  2034. 'pub_id' => array(
  2035. 'description' => 'TODO: please describe this field!',
  2036. 'type' => 'int',
  2037. 'not null' => TRUE,
  2038. ),
  2039. ),
  2040. 'primary key' => array(
  2041. 0 => 'cell_line_feature_id',
  2042. ),
  2043. 'unique keys' => array(
  2044. 'cell_line_feature_c1' => array(
  2045. 0 => 'cell_line_id',
  2046. 1 => 'feature_id',
  2047. 2 => 'pub_id',
  2048. ),
  2049. ),
  2050. 'foreign keys' => array(
  2051. 'pub' => array(
  2052. 'table' => 'pub',
  2053. 'columns' => array(
  2054. 'pub_id' => 'pub_id',
  2055. ),
  2056. ),
  2057. 'feature' => array(
  2058. 'table' => 'feature',
  2059. 'columns' => array(
  2060. 'feature_id' => 'feature_id',
  2061. ),
  2062. ),
  2063. 'cell_line' => array(
  2064. 'table' => 'cell_line',
  2065. 'columns' => array(
  2066. 'cell_line_id' => 'cell_line_id',
  2067. ),
  2068. ),
  2069. ),
  2070. 'table' => 'cell_line_feature',
  2071. 'referring_tables' => NULL,
  2072. );
  2073. return $description;
  2074. }
  2075. /**
  2076. * Implements hook_chado_schema_v1_2_cell_line_library()
  2077. * Purpose: To describe the structure of 'cell_line_library' to tripal
  2078. * @see tripal_core_chado_insert()
  2079. * @see tripal_core_chado_update()
  2080. * @see tripal_core_chado_select()
  2081. *
  2082. * @return
  2083. * An array describing the 'cell_line_library' table
  2084. *
  2085. * @ingroup tripal_chado_v1.2_schema_api
  2086. *
  2087. */
  2088. function tripal_core_chado_schema_v1_2_cell_line_library() {
  2089. $description = array(
  2090. 'description' => 'TODO: please describe this table!',
  2091. 'fields' => array(
  2092. 'cell_line_library_id' => array(
  2093. 'description' => 'TODO: please describe this field!',
  2094. 'type' => 'serial',
  2095. 'not null' => TRUE,
  2096. ),
  2097. 'cell_line_id' => array(
  2098. 'description' => 'TODO: please describe this field!',
  2099. 'type' => 'int',
  2100. 'not null' => TRUE,
  2101. ),
  2102. 'library_id' => array(
  2103. 'description' => 'TODO: please describe this field!',
  2104. 'type' => 'int',
  2105. 'not null' => TRUE,
  2106. ),
  2107. 'pub_id' => array(
  2108. 'description' => 'TODO: please describe this field!',
  2109. 'type' => 'int',
  2110. 'not null' => TRUE,
  2111. ),
  2112. ),
  2113. 'primary key' => array(
  2114. 0 => 'cell_line_library_id',
  2115. ),
  2116. 'unique keys' => array(
  2117. 'cell_line_library_c1' => array(
  2118. 0 => 'cell_line_id',
  2119. 1 => 'library_id',
  2120. 2 => 'pub_id',
  2121. ),
  2122. ),
  2123. 'foreign keys' => array(
  2124. 'pub' => array(
  2125. 'table' => 'pub',
  2126. 'columns' => array(
  2127. 'pub_id' => 'pub_id',
  2128. ),
  2129. ),
  2130. 'library' => array(
  2131. 'table' => 'library',
  2132. 'columns' => array(
  2133. 'library_id' => 'library_id',
  2134. ),
  2135. ),
  2136. 'cell_line' => array(
  2137. 'table' => 'cell_line',
  2138. 'columns' => array(
  2139. 'cell_line_id' => 'cell_line_id',
  2140. ),
  2141. ),
  2142. ),
  2143. 'table' => 'cell_line_library',
  2144. 'referring_tables' => NULL,
  2145. );
  2146. return $description;
  2147. }
  2148. /**
  2149. * Implements hook_chado_schema_v1_2_cell_line_pub()
  2150. * Purpose: To describe the structure of 'cell_line_pub' to tripal
  2151. * @see tripal_core_chado_insert()
  2152. * @see tripal_core_chado_update()
  2153. * @see tripal_core_chado_select()
  2154. *
  2155. * @return
  2156. * An array describing the 'cell_line_pub' table
  2157. *
  2158. * @ingroup tripal_chado_v1.2_schema_api
  2159. *
  2160. */
  2161. function tripal_core_chado_schema_v1_2_cell_line_pub() {
  2162. $description = array(
  2163. 'description' => 'TODO: please describe this table!',
  2164. 'fields' => array(
  2165. 'cell_line_pub_id' => array(
  2166. 'description' => 'TODO: please describe this field!',
  2167. 'type' => 'serial',
  2168. 'not null' => TRUE,
  2169. ),
  2170. 'cell_line_id' => array(
  2171. 'description' => 'TODO: please describe this field!',
  2172. 'type' => 'int',
  2173. 'not null' => TRUE,
  2174. ),
  2175. 'pub_id' => array(
  2176. 'description' => 'TODO: please describe this field!',
  2177. 'type' => 'int',
  2178. 'not null' => TRUE,
  2179. ),
  2180. ),
  2181. 'primary key' => array(
  2182. 0 => 'cell_line_pub_id',
  2183. ),
  2184. 'unique keys' => array(
  2185. 'cell_line_pub_c1' => array(
  2186. 0 => 'cell_line_id',
  2187. 1 => 'pub_id',
  2188. ),
  2189. ),
  2190. 'foreign keys' => array(
  2191. 'pub' => array(
  2192. 'table' => 'pub',
  2193. 'columns' => array(
  2194. 'pub_id' => 'pub_id',
  2195. ),
  2196. ),
  2197. 'cell_line' => array(
  2198. 'table' => 'cell_line',
  2199. 'columns' => array(
  2200. 'cell_line_id' => 'cell_line_id',
  2201. ),
  2202. ),
  2203. ),
  2204. 'table' => 'cell_line_pub',
  2205. 'referring_tables' => NULL,
  2206. );
  2207. return $description;
  2208. }
  2209. /**
  2210. * Implements hook_chado_schema_v1_2_cell_line_relationship()
  2211. * Purpose: To describe the structure of 'cell_line_relationship' to tripal
  2212. * @see tripal_core_chado_insert()
  2213. * @see tripal_core_chado_update()
  2214. * @see tripal_core_chado_select()
  2215. *
  2216. * @return
  2217. * An array describing the 'cell_line_relationship' table
  2218. *
  2219. * @ingroup tripal_chado_v1.2_schema_api
  2220. *
  2221. */
  2222. function tripal_core_chado_schema_v1_2_cell_line_relationship() {
  2223. $description = array(
  2224. 'description' => 'TODO: please describe this table!',
  2225. 'fields' => array(
  2226. 'cell_line_relationship_id' => array(
  2227. 'description' => 'TODO: please describe this field!',
  2228. 'type' => 'serial',
  2229. 'not null' => TRUE,
  2230. ),
  2231. 'subject_id' => array(
  2232. 'description' => 'TODO: please describe this field!',
  2233. 'type' => 'int',
  2234. 'not null' => TRUE,
  2235. ),
  2236. 'object_id' => array(
  2237. 'description' => 'TODO: please describe this field!',
  2238. 'type' => 'int',
  2239. 'not null' => TRUE,
  2240. ),
  2241. 'type_id' => array(
  2242. 'description' => 'TODO: please describe this field!',
  2243. 'type' => 'int',
  2244. 'not null' => TRUE,
  2245. ),
  2246. ),
  2247. 'primary key' => array(
  2248. 0 => 'cell_line_relationship_id',
  2249. ),
  2250. 'unique keys' => array(
  2251. 'cell_line_relationship_c1' => array(
  2252. 0 => 'subject_id',
  2253. 1 => 'object_id',
  2254. 2 => 'type_id',
  2255. ),
  2256. ),
  2257. 'foreign keys' => array(
  2258. 'cvterm' => array(
  2259. 'table' => 'cvterm',
  2260. 'columns' => array(
  2261. 'type_id' => 'cvterm_id',
  2262. ),
  2263. ),
  2264. 'cell_line' => array(
  2265. 'table' => 'cell_line',
  2266. 'columns' => array(
  2267. 'subject_id' => 'cell_line_id',
  2268. 'object_id' => 'cell_line_id',
  2269. ),
  2270. ),
  2271. ),
  2272. 'table' => 'cell_line_relationship',
  2273. 'referring_tables' => NULL,
  2274. );
  2275. return $description;
  2276. }
  2277. /**
  2278. * Implements hook_chado_schema_v1_2_cell_line_synonym()
  2279. * Purpose: To describe the structure of 'cell_line_synonym' to tripal
  2280. * @see tripal_core_chado_insert()
  2281. * @see tripal_core_chado_update()
  2282. * @see tripal_core_chado_select()
  2283. *
  2284. * @return
  2285. * An array describing the 'cell_line_synonym' table
  2286. *
  2287. * @ingroup tripal_chado_v1.2_schema_api
  2288. *
  2289. */
  2290. function tripal_core_chado_schema_v1_2_cell_line_synonym() {
  2291. $description = array(
  2292. 'description' => 'TODO: please describe this table!',
  2293. 'fields' => array(
  2294. 'cell_line_synonym_id' => array(
  2295. 'description' => 'TODO: please describe this field!',
  2296. 'type' => 'serial',
  2297. 'not null' => TRUE,
  2298. ),
  2299. 'cell_line_id' => array(
  2300. 'description' => 'TODO: please describe this field!',
  2301. 'type' => 'int',
  2302. 'not null' => TRUE,
  2303. ),
  2304. 'synonym_id' => array(
  2305. 'description' => 'TODO: please describe this field!',
  2306. 'type' => 'int',
  2307. 'not null' => TRUE,
  2308. ),
  2309. 'pub_id' => array(
  2310. 'description' => 'TODO: please describe this field!',
  2311. 'type' => 'int',
  2312. 'not null' => TRUE,
  2313. ),
  2314. 'is_current' => array(
  2315. 'description' => 'TODO: please describe this field!',
  2316. 'type' => 'boolean',
  2317. 'not null' => TRUE,
  2318. 'default' => 'als',
  2319. ),
  2320. 'is_internal' => array(
  2321. 'description' => 'TODO: please describe this field!',
  2322. 'type' => 'boolean',
  2323. 'not null' => TRUE,
  2324. 'default' => 'als',
  2325. ),
  2326. ),
  2327. 'primary key' => array(
  2328. 0 => 'cell_line_synonym_id',
  2329. ),
  2330. 'unique keys' => array(
  2331. 'cell_line_synonym_c1' => array(
  2332. 0 => 'synonym_id',
  2333. 1 => 'cell_line_id',
  2334. 2 => 'pub_id',
  2335. ),
  2336. ),
  2337. 'foreign keys' => array(
  2338. 'pub' => array(
  2339. 'table' => 'pub',
  2340. 'columns' => array(
  2341. 'pub_id' => 'pub_id',
  2342. ),
  2343. ),
  2344. 'synonym' => array(
  2345. 'table' => 'synonym',
  2346. 'columns' => array(
  2347. 'synonym_id' => 'synonym_id',
  2348. ),
  2349. ),
  2350. 'cell_line' => array(
  2351. 'table' => 'cell_line',
  2352. 'columns' => array(
  2353. 'cell_line_id' => 'cell_line_id',
  2354. ),
  2355. ),
  2356. ),
  2357. 'table' => 'cell_line_synonym',
  2358. 'referring_tables' => NULL,
  2359. );
  2360. return $description;
  2361. }
  2362. /**
  2363. * Implements hook_chado_schema_v1_2_cell_lineprop()
  2364. * Purpose: To describe the structure of 'cell_lineprop' to tripal
  2365. * @see tripal_core_chado_insert()
  2366. * @see tripal_core_chado_update()
  2367. * @see tripal_core_chado_select()
  2368. *
  2369. * @return
  2370. * An array describing the 'cell_lineprop' table
  2371. *
  2372. * @ingroup tripal_chado_v1.2_schema_api
  2373. *
  2374. */
  2375. function tripal_core_chado_schema_v1_2_cell_lineprop() {
  2376. $description = array(
  2377. 'description' => 'TODO: please describe this table!',
  2378. 'fields' => array(
  2379. 'cell_lineprop_id' => array(
  2380. 'description' => 'TODO: please describe this field!',
  2381. 'type' => 'serial',
  2382. 'not null' => TRUE,
  2383. ),
  2384. 'cell_line_id' => array(
  2385. 'description' => 'TODO: please describe this field!',
  2386. 'type' => 'int',
  2387. 'not null' => TRUE,
  2388. ),
  2389. 'type_id' => array(
  2390. 'description' => 'TODO: please describe this field!',
  2391. 'type' => 'int',
  2392. 'not null' => TRUE,
  2393. ),
  2394. 'value' => array(
  2395. 'description' => 'TODO: please describe this field!',
  2396. 'type' => 'text',
  2397. 'not null' => FALSE,
  2398. ),
  2399. 'rank' => array(
  2400. 'description' => 'TODO: please describe this field!',
  2401. 'type' => 'int',
  2402. 'not null' => TRUE,
  2403. 'default' => 0,
  2404. ),
  2405. ),
  2406. 'primary key' => array(
  2407. 0 => 'cell_lineprop_id',
  2408. ),
  2409. 'unique keys' => array(
  2410. 'cell_lineprop_c1' => array(
  2411. 0 => 'cell_line_id',
  2412. 1 => 'type_id',
  2413. 2 => 'rank',
  2414. ),
  2415. ),
  2416. 'foreign keys' => array(
  2417. 'cvterm' => array(
  2418. 'table' => 'cvterm',
  2419. 'columns' => array(
  2420. 'type_id' => 'cvterm_id',
  2421. ),
  2422. ),
  2423. 'cell_line' => array(
  2424. 'table' => 'cell_line',
  2425. 'columns' => array(
  2426. 'cell_line_id' => 'cell_line_id',
  2427. ),
  2428. ),
  2429. ),
  2430. 'table' => 'cell_lineprop',
  2431. 'referring_tables' => array(
  2432. 0 => 'cell_lineprop_pub',
  2433. ),
  2434. );
  2435. return $description;
  2436. }
  2437. /**
  2438. * Implements hook_chado_schema_v1_2_cell_lineprop_pub()
  2439. * Purpose: To describe the structure of 'cell_lineprop_pub' to tripal
  2440. * @see tripal_core_chado_insert()
  2441. * @see tripal_core_chado_update()
  2442. * @see tripal_core_chado_select()
  2443. *
  2444. * @return
  2445. * An array describing the 'cell_lineprop_pub' table
  2446. *
  2447. * @ingroup tripal_chado_v1.2_schema_api
  2448. *
  2449. */
  2450. function tripal_core_chado_schema_v1_2_cell_lineprop_pub() {
  2451. $description = array(
  2452. 'description' => 'TODO: please describe this table!',
  2453. 'fields' => array(
  2454. 'cell_lineprop_pub_id' => array(
  2455. 'description' => 'TODO: please describe this field!',
  2456. 'type' => 'serial',
  2457. 'not null' => TRUE,
  2458. ),
  2459. 'cell_lineprop_id' => array(
  2460. 'description' => 'TODO: please describe this field!',
  2461. 'type' => 'int',
  2462. 'not null' => TRUE,
  2463. ),
  2464. 'pub_id' => array(
  2465. 'description' => 'TODO: please describe this field!',
  2466. 'type' => 'int',
  2467. 'not null' => TRUE,
  2468. ),
  2469. ),
  2470. 'primary key' => array(
  2471. 0 => 'cell_lineprop_pub_id',
  2472. ),
  2473. 'unique keys' => array(
  2474. 'cell_lineprop_pub_c1' => array(
  2475. 0 => 'cell_lineprop_id',
  2476. 1 => 'pub_id',
  2477. ),
  2478. ),
  2479. 'foreign keys' => array(
  2480. 'pub' => array(
  2481. 'table' => 'pub',
  2482. 'columns' => array(
  2483. 'pub_id' => 'pub_id',
  2484. ),
  2485. ),
  2486. 'cell_lineprop' => array(
  2487. 'table' => 'cell_lineprop',
  2488. 'columns' => array(
  2489. 'cell_lineprop_id' => 'cell_lineprop_id',
  2490. ),
  2491. ),
  2492. ),
  2493. 'table' => 'cell_lineprop_pub',
  2494. 'referring_tables' => NULL,
  2495. );
  2496. return $description;
  2497. }
  2498. /**
  2499. * Implements hook_chado_schema_v1_2_chadoprop()
  2500. * Purpose: To describe the structure of 'chadoprop' to tripal
  2501. * @see tripal_core_chado_insert()
  2502. * @see tripal_core_chado_update()
  2503. * @see tripal_core_chado_select()
  2504. *
  2505. * @return
  2506. * An array describing the 'chadoprop' table
  2507. *
  2508. * @ingroup tripal_chado_v1.2_schema_api
  2509. *
  2510. */
  2511. function tripal_core_chado_schema_v1_2_chadoprop() {
  2512. $description = array(
  2513. 'description' => 'TODO: please describe this table!',
  2514. 'fields' => array(
  2515. 'chadoprop_id' => array(
  2516. 'description' => 'TODO: please describe this field!',
  2517. 'type' => 'serial',
  2518. 'not null' => TRUE,
  2519. ),
  2520. 'type_id' => array(
  2521. 'description' => 'TODO: please describe this field!',
  2522. 'type' => 'int',
  2523. 'not null' => TRUE,
  2524. ),
  2525. 'value' => array(
  2526. 'description' => 'TODO: please describe this field!',
  2527. 'type' => 'text',
  2528. 'not null' => FALSE,
  2529. ),
  2530. 'rank' => array(
  2531. 'description' => 'TODO: please describe this field!',
  2532. 'type' => 'int',
  2533. 'not null' => TRUE,
  2534. 'default' => 0,
  2535. ),
  2536. ),
  2537. 'primary key' => array(
  2538. 0 => 'chadoprop_id',
  2539. ),
  2540. 'unique keys' => array(
  2541. 'chadoprop_c1' => array(
  2542. 0 => 'type_id',
  2543. 1 => 'rank',
  2544. ),
  2545. ),
  2546. 'foreign keys' => array(
  2547. 'cvterm' => array(
  2548. 'table' => 'cvterm',
  2549. 'columns' => array(
  2550. 'type_id' => 'cvterm_id',
  2551. ),
  2552. ),
  2553. ),
  2554. 'table' => 'chadoprop',
  2555. 'referring_tables' => NULL,
  2556. );
  2557. return $description;
  2558. }
  2559. /**
  2560. * Implements hook_chado_schema_v1_2_channel()
  2561. * Purpose: To describe the structure of 'channel' to tripal
  2562. * @see tripal_core_chado_insert()
  2563. * @see tripal_core_chado_update()
  2564. * @see tripal_core_chado_select()
  2565. *
  2566. * @return
  2567. * An array describing the 'channel' table
  2568. *
  2569. * @ingroup tripal_chado_v1.2_schema_api
  2570. *
  2571. */
  2572. function tripal_core_chado_schema_v1_2_channel() {
  2573. $description = array(
  2574. 'description' => 'TODO: please describe this table!',
  2575. 'fields' => array(
  2576. 'channel_id' => array(
  2577. 'description' => 'TODO: please describe this field!',
  2578. 'type' => 'serial',
  2579. 'not null' => TRUE,
  2580. ),
  2581. 'name' => array(
  2582. 'description' => 'TODO: please describe this field!',
  2583. 'type' => 'text',
  2584. 'not null' => TRUE,
  2585. ),
  2586. 'definition' => array(
  2587. 'description' => 'TODO: please describe this field!',
  2588. 'type' => 'text',
  2589. 'not null' => TRUE,
  2590. ),
  2591. ),
  2592. 'primary key' => array(
  2593. 0 => 'channel_id',
  2594. ),
  2595. 'unique keys' => array(
  2596. 'channel_c1' => array(
  2597. 0 => 'name',
  2598. ),
  2599. ),
  2600. 'foreign keys' => array(
  2601. ),
  2602. 'table' => 'channel',
  2603. 'referring_tables' => array(
  2604. 0 => 'acquisition',
  2605. 1 => 'assay_biomaterial',
  2606. ),
  2607. );
  2608. return $description;
  2609. }
  2610. /**
  2611. * Implements hook_chado_schema_v1_2_contact()
  2612. * Purpose: To describe the structure of 'contact' to tripal
  2613. * @see tripal_core_chado_insert()
  2614. * @see tripal_core_chado_update()
  2615. * @see tripal_core_chado_select()
  2616. *
  2617. * @return
  2618. * An array describing the 'contact' table
  2619. *
  2620. * @ingroup tripal_chado_v1.2_schema_api
  2621. *
  2622. */
  2623. function tripal_core_chado_schema_v1_2_contact() {
  2624. $description = array(
  2625. 'description' => 'TODO: please describe this table!',
  2626. 'fields' => array(
  2627. 'contact_id' => array(
  2628. 'description' => 'TODO: please describe this field!',
  2629. 'type' => 'serial',
  2630. 'not null' => TRUE,
  2631. ),
  2632. 'type_id' => array(
  2633. 'description' => 'TODO: please describe this field!',
  2634. 'type' => 'int',
  2635. 'not null' => FALSE,
  2636. ),
  2637. 'name' => array(
  2638. 'description' => 'TODO: please describe this field!',
  2639. 'type' => 'varchar',
  2640. 'length' => '255',
  2641. 'not null' => TRUE,
  2642. ),
  2643. 'description' => array(
  2644. 'description' => 'TODO: please describe this field!',
  2645. 'type' => 'varchar',
  2646. 'length' => '255',
  2647. 'not null' => FALSE,
  2648. ),
  2649. ),
  2650. 'primary key' => array(
  2651. 0 => 'contact_id',
  2652. ),
  2653. 'unique keys' => array(
  2654. 'contact_c1' => array(
  2655. 0 => 'name',
  2656. ),
  2657. ),
  2658. 'foreign keys' => array(
  2659. 'cvterm' => array(
  2660. 'table' => 'cvterm',
  2661. 'columns' => array(
  2662. 'type_id' => 'cvterm_id',
  2663. ),
  2664. ),
  2665. ),
  2666. 'table' => 'contact',
  2667. 'referring_tables' => array(
  2668. 0 => 'arraydesign',
  2669. 1 => 'assay',
  2670. 2 => 'biomaterial',
  2671. 3 => 'contact_relationship',
  2672. 5 => 'nd_experiment_contact',
  2673. 6 => 'project_contact',
  2674. 14 => 'quantification',
  2675. 15 => 'stockcollection',
  2676. 16 => 'study',
  2677. ),
  2678. );
  2679. return $description;
  2680. }
  2681. /**
  2682. * Implements hook_chado_schema_v1_2_contact_relationship()
  2683. * Purpose: To describe the structure of 'contact_relationship' to tripal
  2684. * @see tripal_core_chado_insert()
  2685. * @see tripal_core_chado_update()
  2686. * @see tripal_core_chado_select()
  2687. *
  2688. * @return
  2689. * An array describing the 'contact_relationship' table
  2690. *
  2691. * @ingroup tripal_chado_v1.2_schema_api
  2692. *
  2693. */
  2694. function tripal_core_chado_schema_v1_2_contact_relationship() {
  2695. $description = array(
  2696. 'description' => 'TODO: please describe this table!',
  2697. 'fields' => array(
  2698. 'contact_relationship_id' => array(
  2699. 'description' => 'TODO: please describe this field!',
  2700. 'type' => 'serial',
  2701. 'not null' => TRUE,
  2702. ),
  2703. 'type_id' => array(
  2704. 'description' => 'TODO: please describe this field!',
  2705. 'type' => 'int',
  2706. 'not null' => TRUE,
  2707. ),
  2708. 'subject_id' => array(
  2709. 'description' => 'TODO: please describe this field!',
  2710. 'type' => 'int',
  2711. 'not null' => TRUE,
  2712. ),
  2713. 'object_id' => array(
  2714. 'description' => 'TODO: please describe this field!',
  2715. 'type' => 'int',
  2716. 'not null' => TRUE,
  2717. ),
  2718. ),
  2719. 'primary key' => array(
  2720. 0 => 'contact_relationship_id',
  2721. ),
  2722. 'unique keys' => array(
  2723. 'contact_relationship_c1' => array(
  2724. 0 => 'subject_id',
  2725. 1 => 'object_id',
  2726. 2 => 'type_id',
  2727. ),
  2728. ),
  2729. 'indexes' => array(
  2730. 'contact_relationship_idx1' => array(
  2731. 0 => 'type_id',
  2732. ),
  2733. 'contact_relationship_idx2' => array(
  2734. 0 => 'subject_id',
  2735. ),
  2736. 'contact_relationship_idx3' => array(
  2737. 0 => 'object_id',
  2738. ),
  2739. ),
  2740. 'foreign keys' => array(
  2741. 'cvterm' => array(
  2742. 'table' => 'cvterm',
  2743. 'columns' => array(
  2744. 'type_id' => 'cvterm_id',
  2745. ),
  2746. ),
  2747. 'contact' => array(
  2748. 'table' => 'contact',
  2749. 'columns' => array(
  2750. 'subject_id' => 'contact_id',
  2751. 'object_id' => 'contact_id',
  2752. ),
  2753. ),
  2754. ),
  2755. 'table' => 'contact_relationship',
  2756. 'referring_tables' => NULL,
  2757. );
  2758. return $description;
  2759. }
  2760. /**
  2761. * Implements hook_chado_schema_v1_2_control()
  2762. * Purpose: To describe the structure of 'control' to tripal
  2763. * @see tripal_core_chado_insert()
  2764. * @see tripal_core_chado_update()
  2765. * @see tripal_core_chado_select()
  2766. *
  2767. * @return
  2768. * An array describing the 'control' table
  2769. *
  2770. * @ingroup tripal_chado_v1.2_schema_api
  2771. *
  2772. */
  2773. function tripal_core_chado_schema_v1_2_control() {
  2774. $description = array(
  2775. 'description' => 'TODO: please describe this table!',
  2776. 'fields' => array(
  2777. 'control_id' => array(
  2778. 'description' => 'TODO: please describe this field!',
  2779. 'type' => 'serial',
  2780. 'not null' => TRUE,
  2781. ),
  2782. 'type_id' => array(
  2783. 'description' => 'TODO: please describe this field!',
  2784. 'type' => 'int',
  2785. 'not null' => TRUE,
  2786. ),
  2787. 'assay_id' => array(
  2788. 'description' => 'TODO: please describe this field!',
  2789. 'type' => 'int',
  2790. 'not null' => TRUE,
  2791. ),
  2792. 'tableinfo_id' => array(
  2793. 'description' => 'TODO: please describe this field!',
  2794. 'type' => 'int',
  2795. 'not null' => TRUE,
  2796. ),
  2797. 'row_id' => array(
  2798. 'description' => 'TODO: please describe this field!',
  2799. 'type' => 'int',
  2800. 'not null' => TRUE,
  2801. ),
  2802. 'name' => array(
  2803. 'description' => 'TODO: please describe this field!',
  2804. 'type' => 'text',
  2805. 'not null' => FALSE,
  2806. ),
  2807. 'value' => array(
  2808. 'description' => 'TODO: please describe this field!',
  2809. 'type' => 'text',
  2810. 'not null' => FALSE,
  2811. ),
  2812. 'rank' => array(
  2813. 'description' => 'TODO: please describe this field!',
  2814. 'type' => 'int',
  2815. 'not null' => TRUE,
  2816. 'default' => 0,
  2817. ),
  2818. ),
  2819. 'primary key' => array(
  2820. 0 => 'control_id',
  2821. ),
  2822. 'indexes' => array(
  2823. 'control_idx1' => array(
  2824. 0 => 'type_id',
  2825. ),
  2826. 'control_idx2' => array(
  2827. 0 => 'assay_id',
  2828. ),
  2829. 'control_idx3' => array(
  2830. 0 => 'tableinfo_id',
  2831. ),
  2832. 'control_idx4' => array(
  2833. 0 => 'row_id',
  2834. ),
  2835. ),
  2836. 'foreign keys' => array(
  2837. 'cvterm' => array(
  2838. 'table' => 'cvterm',
  2839. 'columns' => array(
  2840. 'type_id' => 'cvterm_id',
  2841. ),
  2842. ),
  2843. 'tableinfo' => array(
  2844. 'table' => 'tableinfo',
  2845. 'columns' => array(
  2846. 'tableinfo_id' => 'tableinfo_id',
  2847. ),
  2848. ),
  2849. 'assay' => array(
  2850. 'table' => 'assay',
  2851. 'columns' => array(
  2852. 'assay_id' => 'assay_id',
  2853. ),
  2854. ),
  2855. ),
  2856. 'table' => 'control',
  2857. 'referring_tables' => NULL,
  2858. );
  2859. return $description;
  2860. }
  2861. /**
  2862. * Implements hook_chado_schema_v1_2_cv()
  2863. * Purpose: To describe the structure of 'cv' to tripal
  2864. * @see tripal_core_chado_insert()
  2865. * @see tripal_core_chado_update()
  2866. * @see tripal_core_chado_select()
  2867. *
  2868. * @return
  2869. * An array describing the 'cv' table
  2870. *
  2871. * @ingroup tripal_chado_v1.2_schema_api
  2872. *
  2873. */
  2874. function tripal_core_chado_schema_v1_2_cv() {
  2875. $description = array(
  2876. 'description' => 'TODO: please describe this table!',
  2877. 'fields' => array(
  2878. 'cv_id' => array(
  2879. 'description' => 'TODO: please describe this field!',
  2880. 'type' => 'serial',
  2881. 'not null' => TRUE,
  2882. ),
  2883. 'name' => array(
  2884. 'description' => 'TODO: please describe this field!',
  2885. 'type' => 'varchar',
  2886. 'length' => '255',
  2887. 'not null' => TRUE,
  2888. ),
  2889. 'definition' => array(
  2890. 'description' => 'TODO: please describe this field!',
  2891. 'type' => 'text',
  2892. 'not null' => FALSE,
  2893. ),
  2894. ),
  2895. 'primary key' => array(
  2896. 0 => 'cv_id',
  2897. ),
  2898. 'unique keys' => array(
  2899. 'cv_c1' => array(
  2900. 0 => 'name',
  2901. ),
  2902. ),
  2903. 'foreign keys' => array(
  2904. ),
  2905. 'table' => 'cv',
  2906. 'referring_tables' => array(
  2907. 0 => 'cvprop',
  2908. 1 => 'cvterm',
  2909. 2 => 'cvtermpath',
  2910. ),
  2911. );
  2912. return $description;
  2913. }
  2914. /**
  2915. * Implements hook_chado_schema_v1_2_cvprop()
  2916. * Purpose: To describe the structure of 'cvprop' to tripal
  2917. * @see tripal_core_chado_insert()
  2918. * @see tripal_core_chado_update()
  2919. * @see tripal_core_chado_select()
  2920. *
  2921. * @return
  2922. * An array describing the 'cvprop' table
  2923. *
  2924. * @ingroup tripal_chado_v1.2_schema_api
  2925. *
  2926. */
  2927. function tripal_core_chado_schema_v1_2_cvprop() {
  2928. $description = array(
  2929. 'description' => 'TODO: please describe this table!',
  2930. 'fields' => array(
  2931. 'cvprop_id' => array(
  2932. 'description' => 'TODO: please describe this field!',
  2933. 'type' => 'serial',
  2934. 'not null' => TRUE,
  2935. ),
  2936. 'cv_id' => array(
  2937. 'description' => 'TODO: please describe this field!',
  2938. 'type' => 'int',
  2939. 'not null' => TRUE,
  2940. ),
  2941. 'type_id' => array(
  2942. 'description' => 'TODO: please describe this field!',
  2943. 'type' => 'int',
  2944. 'not null' => TRUE,
  2945. ),
  2946. 'value' => array(
  2947. 'description' => 'TODO: please describe this field!',
  2948. 'type' => 'text',
  2949. 'not null' => FALSE,
  2950. ),
  2951. 'rank' => array(
  2952. 'description' => 'TODO: please describe this field!',
  2953. 'type' => 'int',
  2954. 'not null' => TRUE,
  2955. 'default' => 0,
  2956. ),
  2957. ),
  2958. 'primary key' => array(
  2959. 0 => 'cvprop_id',
  2960. ),
  2961. 'unique keys' => array(
  2962. 'cvprop_c1' => array(
  2963. 0 => 'cv_id',
  2964. 1 => 'type_id',
  2965. 2 => 'rank',
  2966. ),
  2967. ),
  2968. 'foreign keys' => array(
  2969. 'cvterm' => array(
  2970. 'table' => 'cvterm',
  2971. 'columns' => array(
  2972. 'type_id' => 'cvterm_id',
  2973. ),
  2974. ),
  2975. 'cv' => array(
  2976. 'table' => 'cv',
  2977. 'columns' => array(
  2978. 'cv_id' => 'cv_id',
  2979. ),
  2980. ),
  2981. ),
  2982. 'table' => 'cvprop',
  2983. 'referring_tables' => NULL,
  2984. );
  2985. return $description;
  2986. }
  2987. /**
  2988. * Implements hook_chado_schema_v1_2_cvterm()
  2989. * Purpose: To describe the structure of 'cvterm' to tripal
  2990. * @see tripal_core_chado_insert()
  2991. * @see tripal_core_chado_update()
  2992. * @see tripal_core_chado_select()
  2993. *
  2994. * @return
  2995. * An array describing the 'cvterm' table
  2996. *
  2997. * @ingroup tripal_chado_v1.2_schema_api
  2998. *
  2999. */
  3000. function tripal_core_chado_schema_v1_2_cvterm() {
  3001. $description = array(
  3002. 'description' => 'TODO: please describe this table!',
  3003. 'fields' => array(
  3004. 'cvterm_id' => array(
  3005. 'description' => 'TODO: please describe this field!',
  3006. 'type' => 'serial',
  3007. 'not null' => TRUE,
  3008. ),
  3009. 'cv_id' => array(
  3010. 'description' => 'TODO: please describe this field!',
  3011. 'type' => 'int',
  3012. 'not null' => TRUE,
  3013. ),
  3014. 'name' => array(
  3015. 'description' => 'TODO: please describe this field!',
  3016. 'type' => 'varchar',
  3017. 'length' => '1024',
  3018. 'not null' => TRUE,
  3019. ),
  3020. 'definition' => array(
  3021. 'description' => 'TODO: please describe this field!',
  3022. 'type' => 'text',
  3023. 'not null' => FALSE,
  3024. ),
  3025. 'dbxref_id' => array(
  3026. 'description' => 'TODO: please describe this field!',
  3027. 'type' => 'int',
  3028. 'not null' => TRUE,
  3029. ),
  3030. 'is_obsolete' => array(
  3031. 'description' => 'TODO: please describe this field!',
  3032. 'type' => 'int',
  3033. 'not null' => TRUE,
  3034. 'default' => 0,
  3035. ),
  3036. 'is_relationshiptype' => array(
  3037. 'description' => 'TODO: please describe this field!',
  3038. 'type' => 'int',
  3039. 'not null' => TRUE,
  3040. 'default' => 0,
  3041. ),
  3042. ),
  3043. 'primary key' => array(
  3044. 0 => 'cvterm_id',
  3045. ),
  3046. 'unique keys' => array(
  3047. 'cvterm_c1' => array(
  3048. 0 => 'name',
  3049. 1 => 'cv_id',
  3050. 2 => 'is_obsolete',
  3051. ),
  3052. 'cvterm_c2' => array(
  3053. 0 => 'dbxref_id',
  3054. ),
  3055. ),
  3056. 'indexes' => array(
  3057. 'cvterm_idx1' => array(
  3058. 0 => 'cv_id',
  3059. ),
  3060. 'cvterm_idx2' => array(
  3061. 0 => 'name',
  3062. ),
  3063. 'cvterm_idx3' => array(
  3064. 0 => 'dbxref_id',
  3065. ),
  3066. ),
  3067. 'foreign keys' => array(
  3068. 'cv' => array(
  3069. 'table' => 'cv',
  3070. 'columns' => array(
  3071. 'cv_id' => 'cv_id',
  3072. ),
  3073. ),
  3074. 'dbxref' => array(
  3075. 'table' => 'dbxref',
  3076. 'columns' => array(
  3077. 'dbxref_id' => 'dbxref_id',
  3078. ),
  3079. ),
  3080. ),
  3081. 'table' => 'cvterm',
  3082. 'referring_tables' => array(
  3083. 0 => 'acquisition_relationship',
  3084. 1 => 'acquisitionprop',
  3085. 2 => 'analysisfeatureprop',
  3086. 3 => 'analysisprop',
  3087. 4 => 'arraydesign',
  3088. 6 => 'arraydesignprop',
  3089. 7 => 'assayprop',
  3090. 8 => 'biomaterial_relationship',
  3091. 9 => 'biomaterial_treatment',
  3092. 10 => 'biomaterialprop',
  3093. 11 => 'cell_line_cvterm',
  3094. 12 => 'cell_line_cvtermprop',
  3095. 13 => 'cell_line_relationship',
  3096. 14 => 'cell_lineprop',
  3097. 15 => 'chadoprop',
  3098. 23 => 'contact',
  3099. 24 => 'contact_relationship',
  3100. 25 => 'control',
  3101. 26 => 'cvprop',
  3102. 27 => 'cvterm_dbxref',
  3103. 28 => 'cvterm_relationship',
  3104. 31 => 'cvtermpath',
  3105. 34 => 'cvtermprop',
  3106. 36 => 'cvtermsynonym',
  3107. 38 => 'dbxrefprop',
  3108. 39 => 'element',
  3109. 40 => 'element_relationship',
  3110. 41 => 'elementresult_relationship',
  3111. 42 => 'environment_cvterm',
  3112. 43 => 'expression_cvterm',
  3113. 45 => 'expression_cvtermprop',
  3114. 46 => 'expressionprop',
  3115. 47 => 'feature',
  3116. 48 => 'feature_cvterm',
  3117. 49 => 'feature_cvtermprop',
  3118. 50 => 'feature_expressionprop',
  3119. 51 => 'feature_genotype',
  3120. 52 => 'feature_pubprop',
  3121. 53 => 'feature_relationship',
  3122. 54 => 'feature_relationshipprop',
  3123. 55 => 'featuremap',
  3124. 56 => 'featureprop',
  3125. 57 => 'genotype',
  3126. 58 => 'genotypeprop',
  3127. 66 => 'library',
  3128. 67 => 'library_cvterm',
  3129. 68 => 'libraryprop',
  3130. 69 => 'nd_experiment',
  3131. 70 => 'nd_experiment_stock',
  3132. 71 => 'nd_experiment_stockprop',
  3133. 72 => 'nd_experimentprop',
  3134. 73 => 'nd_geolocationprop',
  3135. 74 => 'nd_protocol',
  3136. 75 => 'nd_protocol_reagent',
  3137. 76 => 'nd_protocolprop',
  3138. 77 => 'nd_reagent',
  3139. 78 => 'nd_reagent_relationship',
  3140. 79 => 'nd_reagentprop',
  3141. 80 => 'organismprop',
  3142. 81 => 'phendesc',
  3143. 82 => 'phenotype',
  3144. 86 => 'phenotype_comparison_cvterm',
  3145. 87 => 'phenotype_cvterm',
  3146. 88 => 'phenstatement',
  3147. 89 => 'phylonode',
  3148. 90 => 'phylonode_relationship',
  3149. 91 => 'phylonodeprop',
  3150. 92 => 'phylotree',
  3151. 93 => 'project_relationship',
  3152. 101 => 'projectprop',
  3153. 109 => 'protocol',
  3154. 110 => 'protocolparam',
  3155. 112 => 'pub',
  3156. 113 => 'pub_relationship',
  3157. 114 => 'pubprop',
  3158. 115 => 'quantification_relationship',
  3159. 116 => 'quantificationprop',
  3160. 117 => 'stock',
  3161. 118 => 'stock_cvterm',
  3162. 119 => 'stock_cvtermprop',
  3163. 127 => 'stock_dbxrefprop',
  3164. 135 => 'stock_relationship',
  3165. 136 => 'stock_relationship_cvterm',
  3166. 144 => 'stockcollection',
  3167. 145 => 'stockcollectionprop',
  3168. 146 => 'stockprop',
  3169. 147 => 'studydesignprop',
  3170. 148 => 'studyfactor',
  3171. 149 => 'studyprop',
  3172. 150 => 'studyprop_feature',
  3173. 151 => 'synonym',
  3174. 152 => 'treatment',
  3175. ),
  3176. );
  3177. return $description;
  3178. }
  3179. /**
  3180. * Implements hook_chado_schema_v1_2_cvterm_dbxref()
  3181. * Purpose: To describe the structure of 'cvterm_dbxref' to tripal
  3182. * @see tripal_core_chado_insert()
  3183. * @see tripal_core_chado_update()
  3184. * @see tripal_core_chado_select()
  3185. *
  3186. * @return
  3187. * An array describing the 'cvterm_dbxref' table
  3188. *
  3189. * @ingroup tripal_chado_v1.2_schema_api
  3190. *
  3191. */
  3192. function tripal_core_chado_schema_v1_2_cvterm_dbxref() {
  3193. $description = array(
  3194. 'description' => 'TODO: please describe this table!',
  3195. 'fields' => array(
  3196. 'cvterm_dbxref_id' => array(
  3197. 'description' => 'TODO: please describe this field!',
  3198. 'type' => 'serial',
  3199. 'not null' => TRUE,
  3200. ),
  3201. 'cvterm_id' => array(
  3202. 'description' => 'TODO: please describe this field!',
  3203. 'type' => 'int',
  3204. 'not null' => TRUE,
  3205. ),
  3206. 'dbxref_id' => array(
  3207. 'description' => 'TODO: please describe this field!',
  3208. 'type' => 'int',
  3209. 'not null' => TRUE,
  3210. ),
  3211. 'is_for_definition' => array(
  3212. 'description' => 'TODO: please describe this field!',
  3213. 'type' => 'int',
  3214. 'not null' => TRUE,
  3215. 'default' => 0,
  3216. ),
  3217. ),
  3218. 'primary key' => array(
  3219. 0 => 'cvterm_dbxref_id',
  3220. ),
  3221. 'unique keys' => array(
  3222. 'cvterm_dbxref_c1' => array(
  3223. 0 => 'cvterm_id',
  3224. 1 => 'dbxref_id',
  3225. ),
  3226. ),
  3227. 'indexes' => array(
  3228. 'cvterm_dbxref_idx1' => array(
  3229. 0 => 'cvterm_id',
  3230. ),
  3231. 'cvterm_dbxref_idx2' => array(
  3232. 0 => 'dbxref_id',
  3233. ),
  3234. ),
  3235. 'foreign keys' => array(
  3236. 'cvterm' => array(
  3237. 'table' => 'cvterm',
  3238. 'columns' => array(
  3239. 'cvterm_id' => 'cvterm_id',
  3240. ),
  3241. ),
  3242. 'dbxref' => array(
  3243. 'table' => 'dbxref',
  3244. 'columns' => array(
  3245. 'dbxref_id' => 'dbxref_id',
  3246. ),
  3247. ),
  3248. ),
  3249. 'table' => 'cvterm_dbxref',
  3250. 'referring_tables' => NULL,
  3251. );
  3252. return $description;
  3253. }
  3254. /**
  3255. * Implements hook_chado_schema_v1_2_cvterm_relationship()
  3256. * Purpose: To describe the structure of 'cvterm_relationship' to tripal
  3257. * @see tripal_core_chado_insert()
  3258. * @see tripal_core_chado_update()
  3259. * @see tripal_core_chado_select()
  3260. *
  3261. * @return
  3262. * An array describing the 'cvterm_relationship' table
  3263. *
  3264. * @ingroup tripal_chado_v1.2_schema_api
  3265. *
  3266. */
  3267. function tripal_core_chado_schema_v1_2_cvterm_relationship() {
  3268. $description = array(
  3269. 'description' => 'TODO: please describe this table!',
  3270. 'fields' => array(
  3271. 'cvterm_relationship_id' => array(
  3272. 'description' => 'TODO: please describe this field!',
  3273. 'type' => 'serial',
  3274. 'not null' => TRUE,
  3275. ),
  3276. 'type_id' => array(
  3277. 'description' => 'TODO: please describe this field!',
  3278. 'type' => 'int',
  3279. 'not null' => TRUE,
  3280. ),
  3281. 'subject_id' => array(
  3282. 'description' => 'TODO: please describe this field!',
  3283. 'type' => 'int',
  3284. 'not null' => TRUE,
  3285. ),
  3286. 'object_id' => array(
  3287. 'description' => 'TODO: please describe this field!',
  3288. 'type' => 'int',
  3289. 'not null' => TRUE,
  3290. ),
  3291. ),
  3292. 'primary key' => array(
  3293. 0 => 'cvterm_relationship_id',
  3294. ),
  3295. 'unique keys' => array(
  3296. 'cvterm_relationship_c1' => array(
  3297. 0 => 'subject_id',
  3298. 1 => 'object_id',
  3299. 2 => 'type_id',
  3300. ),
  3301. ),
  3302. 'indexes' => array(
  3303. 'cvterm_relationship_idx1' => array(
  3304. 0 => 'type_id',
  3305. ),
  3306. 'cvterm_relationship_idx2' => array(
  3307. 0 => 'subject_id',
  3308. ),
  3309. 'cvterm_relationship_idx3' => array(
  3310. 0 => 'object_id',
  3311. ),
  3312. ),
  3313. 'foreign keys' => array(
  3314. 'cvterm' => array(
  3315. 'table' => 'cvterm',
  3316. 'columns' => array(
  3317. 'type_id' => 'cvterm_id',
  3318. 'subject_id' => 'cvterm_id',
  3319. 'object_id' => 'cvterm_id',
  3320. ),
  3321. ),
  3322. ),
  3323. 'table' => 'cvterm_relationship',
  3324. 'referring_tables' => NULL,
  3325. );
  3326. return $description;
  3327. }
  3328. /**
  3329. * Implements hook_chado_schema_v1_2_cvtermpath()
  3330. * Purpose: To describe the structure of 'cvtermpath' to tripal
  3331. * @see tripal_core_chado_insert()
  3332. * @see tripal_core_chado_update()
  3333. * @see tripal_core_chado_select()
  3334. *
  3335. * @return
  3336. * An array describing the 'cvtermpath' table
  3337. *
  3338. * @ingroup tripal_chado_v1.2_schema_api
  3339. *
  3340. */
  3341. function tripal_core_chado_schema_v1_2_cvtermpath() {
  3342. $description = array(
  3343. 'description' => 'TODO: please describe this table!',
  3344. 'fields' => array(
  3345. 'cvtermpath_id' => array(
  3346. 'description' => 'TODO: please describe this field!',
  3347. 'type' => 'serial',
  3348. 'not null' => TRUE,
  3349. ),
  3350. 'type_id' => array(
  3351. 'description' => 'TODO: please describe this field!',
  3352. 'type' => 'int',
  3353. 'not null' => FALSE,
  3354. ),
  3355. 'subject_id' => array(
  3356. 'description' => 'TODO: please describe this field!',
  3357. 'type' => 'int',
  3358. 'not null' => TRUE,
  3359. ),
  3360. 'object_id' => array(
  3361. 'description' => 'TODO: please describe this field!',
  3362. 'type' => 'int',
  3363. 'not null' => TRUE,
  3364. ),
  3365. 'cv_id' => array(
  3366. 'description' => 'TODO: please describe this field!',
  3367. 'type' => 'int',
  3368. 'not null' => TRUE,
  3369. ),
  3370. 'pathdistance' => array(
  3371. 'description' => 'TODO: please describe this field!',
  3372. 'type' => 'int',
  3373. 'not null' => FALSE,
  3374. ),
  3375. ),
  3376. 'primary key' => array(
  3377. 0 => 'cvtermpath_id',
  3378. ),
  3379. 'unique keys' => array(
  3380. 'cvtermpath_c1' => array(
  3381. 0 => 'subject_id',
  3382. 1 => 'object_id',
  3383. 2 => 'type_id',
  3384. 3 => 'pathdistance',
  3385. ),
  3386. ),
  3387. 'indexes' => array(
  3388. 'cvtermpath_idx1' => array(
  3389. 0 => 'type_id',
  3390. ),
  3391. 'cvtermpath_idx2' => array(
  3392. 0 => 'subject_id',
  3393. ),
  3394. 'cvtermpath_idx3' => array(
  3395. 0 => 'object_id',
  3396. ),
  3397. 'cvtermpath_idx4' => array(
  3398. 0 => 'cv_id',
  3399. ),
  3400. ),
  3401. 'foreign keys' => array(
  3402. 'cvterm' => array(
  3403. 'table' => 'cvterm',
  3404. 'columns' => array(
  3405. 'type_id' => 'cvterm_id',
  3406. 'subject_id' => 'cvterm_id',
  3407. 'object_id' => 'cvterm_id',
  3408. ),
  3409. ),
  3410. 'cv' => array(
  3411. 'table' => 'cv',
  3412. 'columns' => array(
  3413. 'cv_id' => 'cv_id',
  3414. ),
  3415. ),
  3416. ),
  3417. 'table' => 'cvtermpath',
  3418. 'referring_tables' => NULL,
  3419. );
  3420. return $description;
  3421. }
  3422. /**
  3423. * Implements hook_chado_schema_v1_2_cvtermprop()
  3424. * Purpose: To describe the structure of 'cvtermprop' to tripal
  3425. * @see tripal_core_chado_insert()
  3426. * @see tripal_core_chado_update()
  3427. * @see tripal_core_chado_select()
  3428. *
  3429. * @return
  3430. * An array describing the 'cvtermprop' table
  3431. *
  3432. * @ingroup tripal_chado_v1.2_schema_api
  3433. *
  3434. */
  3435. function tripal_core_chado_schema_v1_2_cvtermprop() {
  3436. $description = array(
  3437. 'description' => 'TODO: please describe this table!',
  3438. 'fields' => array(
  3439. 'cvtermprop_id' => array(
  3440. 'description' => 'TODO: please describe this field!',
  3441. 'type' => 'serial',
  3442. 'not null' => TRUE,
  3443. ),
  3444. 'cvterm_id' => array(
  3445. 'description' => 'TODO: please describe this field!',
  3446. 'type' => 'int',
  3447. 'not null' => TRUE,
  3448. ),
  3449. 'type_id' => array(
  3450. 'description' => 'TODO: please describe this field!',
  3451. 'type' => 'int',
  3452. 'not null' => TRUE,
  3453. ),
  3454. 'value' => array(
  3455. 'description' => 'TODO: please describe this field!',
  3456. 'type' => 'text',
  3457. 'not null' => TRUE,
  3458. 'default' => '',
  3459. ),
  3460. 'rank' => array(
  3461. 'description' => 'TODO: please describe this field!',
  3462. 'type' => 'int',
  3463. 'not null' => TRUE,
  3464. 'default' => 0,
  3465. ),
  3466. ),
  3467. 'primary key' => array(
  3468. 0 => 'cvtermprop_id',
  3469. ),
  3470. 'unique keys' => array(
  3471. 'cvterm_id' => array(
  3472. 0 => 'cvterm_id',
  3473. 1 => 'type_id',
  3474. 2 => 'value',
  3475. 3 => 'rank',
  3476. ),
  3477. ),
  3478. 'indexes' => array(
  3479. 'cvtermprop_idx1' => array(
  3480. 0 => 'cvterm_id',
  3481. ),
  3482. 'cvtermprop_idx2' => array(
  3483. 0 => 'type_id',
  3484. ),
  3485. ),
  3486. 'foreign keys' => array(
  3487. 'cvterm' => array(
  3488. 'table' => 'cvterm',
  3489. 'columns' => array(
  3490. 'cvterm_id' => 'cvterm_id',
  3491. 'type_id' => 'cvterm_id',
  3492. ),
  3493. ),
  3494. ),
  3495. 'table' => 'cvtermprop',
  3496. 'referring_tables' => NULL,
  3497. );
  3498. return $description;
  3499. }
  3500. /**
  3501. * Implements hook_chado_schema_v1_2_cvtermsynonym()
  3502. * Purpose: To describe the structure of 'cvtermsynonym' to tripal
  3503. * @see tripal_core_chado_insert()
  3504. * @see tripal_core_chado_update()
  3505. * @see tripal_core_chado_select()
  3506. *
  3507. * @return
  3508. * An array describing the 'cvtermsynonym' table
  3509. *
  3510. * @ingroup tripal_chado_v1.2_schema_api
  3511. *
  3512. */
  3513. function tripal_core_chado_schema_v1_2_cvtermsynonym() {
  3514. $description = array(
  3515. 'description' => 'TODO: please describe this table!',
  3516. 'fields' => array(
  3517. 'cvtermsynonym_id' => array(
  3518. 'description' => 'TODO: please describe this field!',
  3519. 'type' => 'serial',
  3520. 'not null' => TRUE,
  3521. ),
  3522. 'cvterm_id' => array(
  3523. 'description' => 'TODO: please describe this field!',
  3524. 'type' => 'int',
  3525. 'not null' => TRUE,
  3526. ),
  3527. 'synonym' => array(
  3528. 'description' => 'TODO: please describe this field!',
  3529. 'type' => 'varchar',
  3530. 'length' => '1024',
  3531. 'not null' => TRUE,
  3532. ),
  3533. 'type_id' => array(
  3534. 'description' => 'TODO: please describe this field!',
  3535. 'type' => 'int',
  3536. 'not null' => FALSE,
  3537. ),
  3538. ),
  3539. 'primary key' => array(
  3540. 0 => 'cvtermsynonym_id',
  3541. ),
  3542. 'unique keys' => array(
  3543. 'cvtermsynonym_c1' => array(
  3544. 0 => 'cvterm_id',
  3545. 1 => 'synonym',
  3546. ),
  3547. ),
  3548. 'indexes' => array(
  3549. 'cvtermsynonym_idx1' => array(
  3550. 0 => 'cvterm_id',
  3551. ),
  3552. ),
  3553. 'foreign keys' => array(
  3554. 'cvterm' => array(
  3555. 'table' => 'cvterm',
  3556. 'columns' => array(
  3557. 'cvterm_id' => 'cvterm_id',
  3558. 'type_id' => 'cvterm_id',
  3559. ),
  3560. ),
  3561. ),
  3562. 'table' => 'cvtermsynonym',
  3563. 'referring_tables' => NULL,
  3564. );
  3565. return $description;
  3566. }
  3567. /**
  3568. * Implements hook_chado_schema_v1_2_db()
  3569. * Purpose: To describe the structure of 'db' to tripal
  3570. * @see tripal_core_chado_insert()
  3571. * @see tripal_core_chado_update()
  3572. * @see tripal_core_chado_select()
  3573. *
  3574. * @return
  3575. * An array describing the 'db' table
  3576. *
  3577. * @ingroup tripal_chado_v1.2_schema_api
  3578. *
  3579. */
  3580. function tripal_core_chado_schema_v1_2_db() {
  3581. $description = array(
  3582. 'description' => 'TODO: please describe this table!',
  3583. 'fields' => array(
  3584. 'db_id' => array(
  3585. 'description' => 'TODO: please describe this field!',
  3586. 'type' => 'serial',
  3587. 'not null' => TRUE,
  3588. ),
  3589. 'name' => array(
  3590. 'description' => 'TODO: please describe this field!',
  3591. 'type' => 'varchar',
  3592. 'length' => '255',
  3593. 'not null' => TRUE,
  3594. ),
  3595. 'description' => array(
  3596. 'description' => 'TODO: please describe this field!',
  3597. 'type' => 'varchar',
  3598. 'length' => '255',
  3599. 'not null' => FALSE,
  3600. ),
  3601. 'urlprefix' => array(
  3602. 'description' => 'TODO: please describe this field!',
  3603. 'type' => 'varchar',
  3604. 'length' => '255',
  3605. 'not null' => FALSE,
  3606. ),
  3607. 'url' => array(
  3608. 'description' => 'TODO: please describe this field!',
  3609. 'type' => 'varchar',
  3610. 'length' => '255',
  3611. 'not null' => FALSE,
  3612. ),
  3613. ),
  3614. 'primary key' => array(
  3615. 0 => 'db_id',
  3616. ),
  3617. 'unique keys' => array(
  3618. 'db_c1' => array(
  3619. 0 => 'name',
  3620. ),
  3621. ),
  3622. 'foreign keys' => array(
  3623. ),
  3624. 'table' => 'db',
  3625. 'referring_tables' => array(
  3626. 0 => 'dbxref',
  3627. ),
  3628. );
  3629. return $description;
  3630. }
  3631. /**
  3632. * Implements hook_chado_schema_v1_2_dbxref()
  3633. * Purpose: To describe the structure of 'dbxref' to tripal
  3634. * @see tripal_core_chado_insert()
  3635. * @see tripal_core_chado_update()
  3636. * @see tripal_core_chado_select()
  3637. *
  3638. * @return
  3639. * An array describing the 'dbxref' table
  3640. *
  3641. * @ingroup tripal_chado_v1.2_schema_api
  3642. *
  3643. */
  3644. function tripal_core_chado_schema_v1_2_dbxref() {
  3645. $description = array(
  3646. 'description' => 'TODO: please describe this table!',
  3647. 'fields' => array(
  3648. 'dbxref_id' => array(
  3649. 'description' => 'TODO: please describe this field!',
  3650. 'type' => 'serial',
  3651. 'not null' => TRUE,
  3652. ),
  3653. 'db_id' => array(
  3654. 'description' => 'TODO: please describe this field!',
  3655. 'type' => 'int',
  3656. 'not null' => TRUE,
  3657. ),
  3658. 'accession' => array(
  3659. 'description' => 'TODO: please describe this field!',
  3660. 'type' => 'varchar',
  3661. 'length' => '255',
  3662. 'not null' => TRUE,
  3663. ),
  3664. 'version' => array(
  3665. 'description' => 'TODO: please describe this field!',
  3666. 'type' => 'varchar',
  3667. 'length' => '255',
  3668. 'not null' => TRUE,
  3669. 'default' => '',
  3670. ),
  3671. 'description' => array(
  3672. 'description' => 'TODO: please describe this field!',
  3673. 'type' => 'text',
  3674. 'not null' => FALSE,
  3675. ),
  3676. ),
  3677. 'primary key' => array(
  3678. 0 => 'dbxref_id',
  3679. ),
  3680. 'unique keys' => array(
  3681. 'dbxref_c1' => array(
  3682. 0 => 'db_id',
  3683. 1 => 'accession',
  3684. 2 => 'version',
  3685. ),
  3686. ),
  3687. 'indexes' => array(
  3688. 'dbxref_idx1' => array(
  3689. 0 => 'db_id',
  3690. ),
  3691. 'dbxref_idx2' => array(
  3692. 0 => 'accession',
  3693. ),
  3694. 'dbxref_idx3' => array(
  3695. 0 => 'version',
  3696. ),
  3697. ),
  3698. 'foreign keys' => array(
  3699. 'db' => array(
  3700. 'table' => 'db',
  3701. 'columns' => array(
  3702. 'db_id' => 'db_id',
  3703. ),
  3704. ),
  3705. ),
  3706. 'table' => 'dbxref',
  3707. 'referring_tables' => array(
  3708. 0 => 'arraydesign',
  3709. 1 => 'assay',
  3710. 2 => 'biomaterial',
  3711. 3 => 'biomaterial_dbxref',
  3712. 4 => 'cell_line_dbxref',
  3713. 5 => 'cvterm',
  3714. 6 => 'cvterm_dbxref',
  3715. 7 => 'dbxrefprop',
  3716. 8 => 'element',
  3717. 9 => 'feature',
  3718. 10 => 'feature_cvterm_dbxref',
  3719. 11 => 'feature_dbxref',
  3720. 12 => 'library_dbxref',
  3721. 13 => 'nd_experiment_dbxref',
  3722. 14 => 'nd_experiment_stock_dbxref',
  3723. 15 => 'organism_dbxref',
  3724. 16 => 'phylonode_dbxref',
  3725. 17 => 'phylotree',
  3726. 18 => 'protocol',
  3727. 19 => 'pub_dbxref',
  3728. 20 => 'stock',
  3729. 21 => 'stock_dbxref',
  3730. 22 => 'study',
  3731. ),
  3732. );
  3733. return $description;
  3734. }
  3735. /**
  3736. * Implements hook_chado_schema_v1_2_dbxrefprop()
  3737. * Purpose: To describe the structure of 'dbxrefprop' to tripal
  3738. * @see tripal_core_chado_insert()
  3739. * @see tripal_core_chado_update()
  3740. * @see tripal_core_chado_select()
  3741. *
  3742. * @return
  3743. * An array describing the 'dbxrefprop' table
  3744. *
  3745. * @ingroup tripal_chado_v1.2_schema_api
  3746. *
  3747. */
  3748. function tripal_core_chado_schema_v1_2_dbxrefprop() {
  3749. $description = array(
  3750. 'description' => 'TODO: please describe this table!',
  3751. 'fields' => array(
  3752. 'dbxrefprop_id' => array(
  3753. 'description' => 'TODO: please describe this field!',
  3754. 'type' => 'serial',
  3755. 'not null' => TRUE,
  3756. ),
  3757. 'dbxref_id' => array(
  3758. 'description' => 'TODO: please describe this field!',
  3759. 'type' => 'int',
  3760. 'not null' => TRUE,
  3761. ),
  3762. 'type_id' => array(
  3763. 'description' => 'TODO: please describe this field!',
  3764. 'type' => 'int',
  3765. 'not null' => TRUE,
  3766. ),
  3767. 'value' => array(
  3768. 'description' => 'TODO: please describe this field!',
  3769. 'type' => 'text',
  3770. 'not null' => TRUE,
  3771. 'default' => '',
  3772. ),
  3773. 'rank' => array(
  3774. 'description' => 'TODO: please describe this field!',
  3775. 'type' => 'int',
  3776. 'not null' => TRUE,
  3777. 'default' => 0,
  3778. ),
  3779. ),
  3780. 'primary key' => array(
  3781. 0 => 'dbxrefprop_id',
  3782. ),
  3783. 'unique keys' => array(
  3784. 'dbxrefprop_c1' => array(
  3785. 0 => 'dbxref_id',
  3786. 1 => 'type_id',
  3787. 2 => 'rank',
  3788. ),
  3789. ),
  3790. 'indexes' => array(
  3791. 'dbxrefprop_idx1' => array(
  3792. 0 => 'dbxref_id',
  3793. ),
  3794. 'dbxrefprop_idx2' => array(
  3795. 0 => 'type_id',
  3796. ),
  3797. ),
  3798. 'foreign keys' => array(
  3799. 'cvterm' => array(
  3800. 'table' => 'cvterm',
  3801. 'columns' => array(
  3802. 'type_id' => 'cvterm_id',
  3803. ),
  3804. ),
  3805. 'dbxref' => array(
  3806. 'table' => 'dbxref',
  3807. 'columns' => array(
  3808. 'dbxref_id' => 'dbxref_id',
  3809. ),
  3810. ),
  3811. ),
  3812. 'table' => 'dbxrefprop',
  3813. 'referring_tables' => NULL,
  3814. );
  3815. return $description;
  3816. }
  3817. /**
  3818. * Implements hook_chado_schema_v1_2_eimage()
  3819. * Purpose: To describe the structure of 'eimage' to tripal
  3820. * @see tripal_core_chado_insert()
  3821. * @see tripal_core_chado_update()
  3822. * @see tripal_core_chado_select()
  3823. *
  3824. * @return
  3825. * An array describing the 'eimage' table
  3826. *
  3827. * @ingroup tripal_chado_v1.2_schema_api
  3828. *
  3829. */
  3830. function tripal_core_chado_schema_v1_2_eimage() {
  3831. $description = array(
  3832. 'description' => 'TODO: please describe this table!',
  3833. 'fields' => array(
  3834. 'eimage_id' => array(
  3835. 'description' => 'TODO: please describe this field!',
  3836. 'type' => 'serial',
  3837. 'not null' => TRUE,
  3838. ),
  3839. 'eimage_data' => array(
  3840. 'description' => 'TODO: please describe this field!',
  3841. 'type' => 'text',
  3842. 'not null' => FALSE,
  3843. ),
  3844. 'eimage_type' => array(
  3845. 'description' => 'TODO: please describe this field!',
  3846. 'type' => 'varchar',
  3847. 'length' => '255',
  3848. 'not null' => TRUE,
  3849. ),
  3850. 'image_uri' => array(
  3851. 'description' => 'TODO: please describe this field!',
  3852. 'type' => 'varchar',
  3853. 'length' => '255',
  3854. 'not null' => FALSE,
  3855. ),
  3856. ),
  3857. 'primary key' => array(
  3858. 0 => 'eimage_id',
  3859. ),
  3860. 'foreign keys' => array(
  3861. ),
  3862. 'table' => 'eimage',
  3863. 'referring_tables' => array(
  3864. 0 => 'expression_image',
  3865. ),
  3866. );
  3867. return $description;
  3868. }
  3869. /**
  3870. * Implements hook_chado_schema_v1_2_element()
  3871. * Purpose: To describe the structure of 'element' to tripal
  3872. * @see tripal_core_chado_insert()
  3873. * @see tripal_core_chado_update()
  3874. * @see tripal_core_chado_select()
  3875. *
  3876. * @return
  3877. * An array describing the 'element' table
  3878. *
  3879. * @ingroup tripal_chado_v1.2_schema_api
  3880. *
  3881. */
  3882. function tripal_core_chado_schema_v1_2_element() {
  3883. $description = array(
  3884. 'description' => 'TODO: please describe this table!',
  3885. 'fields' => array(
  3886. 'element_id' => array(
  3887. 'description' => 'TODO: please describe this field!',
  3888. 'type' => 'serial',
  3889. 'not null' => TRUE,
  3890. ),
  3891. 'feature_id' => array(
  3892. 'description' => 'TODO: please describe this field!',
  3893. 'type' => 'int',
  3894. 'not null' => FALSE,
  3895. ),
  3896. 'arraydesign_id' => array(
  3897. 'description' => 'TODO: please describe this field!',
  3898. 'type' => 'int',
  3899. 'not null' => TRUE,
  3900. ),
  3901. 'type_id' => array(
  3902. 'description' => 'TODO: please describe this field!',
  3903. 'type' => 'int',
  3904. 'not null' => FALSE,
  3905. ),
  3906. 'dbxref_id' => array(
  3907. 'description' => 'TODO: please describe this field!',
  3908. 'type' => 'int',
  3909. 'not null' => FALSE,
  3910. ),
  3911. ),
  3912. 'primary key' => array(
  3913. 0 => 'element_id',
  3914. ),
  3915. 'unique keys' => array(
  3916. 'element_c1' => array(
  3917. 0 => 'feature_id',
  3918. 1 => 'arraydesign_id',
  3919. ),
  3920. ),
  3921. 'indexes' => array(
  3922. 'element_idx1' => array(
  3923. 0 => 'feature_id',
  3924. ),
  3925. 'element_idx2' => array(
  3926. 0 => 'arraydesign_id',
  3927. ),
  3928. 'element_idx3' => array(
  3929. 0 => 'type_id',
  3930. ),
  3931. 'element_idx4' => array(
  3932. 0 => 'dbxref_id',
  3933. ),
  3934. ),
  3935. 'foreign keys' => array(
  3936. 'cvterm' => array(
  3937. 'table' => 'cvterm',
  3938. 'columns' => array(
  3939. 'type_id' => 'cvterm_id',
  3940. ),
  3941. ),
  3942. 'dbxref' => array(
  3943. 'table' => 'dbxref',
  3944. 'columns' => array(
  3945. 'dbxref_id' => 'dbxref_id',
  3946. ),
  3947. ),
  3948. 'feature' => array(
  3949. 'table' => 'feature',
  3950. 'columns' => array(
  3951. 'feature_id' => 'feature_id',
  3952. ),
  3953. ),
  3954. 'arraydesign' => array(
  3955. 'table' => 'arraydesign',
  3956. 'columns' => array(
  3957. 'arraydesign_id' => 'arraydesign_id',
  3958. ),
  3959. ),
  3960. ),
  3961. 'table' => 'element',
  3962. 'referring_tables' => array(
  3963. 0 => 'element_relationship',
  3964. 2 => 'elementresult',
  3965. ),
  3966. );
  3967. return $description;
  3968. }
  3969. /**
  3970. * Implements hook_chado_schema_v1_2_element_relationship()
  3971. * Purpose: To describe the structure of 'element_relationship' to tripal
  3972. * @see tripal_core_chado_insert()
  3973. * @see tripal_core_chado_update()
  3974. * @see tripal_core_chado_select()
  3975. *
  3976. * @return
  3977. * An array describing the 'element_relationship' table
  3978. *
  3979. * @ingroup tripal_chado_v1.2_schema_api
  3980. *
  3981. */
  3982. function tripal_core_chado_schema_v1_2_element_relationship() {
  3983. $description = array(
  3984. 'description' => 'TODO: please describe this table!',
  3985. 'fields' => array(
  3986. 'element_relationship_id' => array(
  3987. 'description' => 'TODO: please describe this field!',
  3988. 'type' => 'serial',
  3989. 'not null' => TRUE,
  3990. ),
  3991. 'subject_id' => array(
  3992. 'description' => 'TODO: please describe this field!',
  3993. 'type' => 'int',
  3994. 'not null' => TRUE,
  3995. ),
  3996. 'type_id' => array(
  3997. 'description' => 'TODO: please describe this field!',
  3998. 'type' => 'int',
  3999. 'not null' => TRUE,
  4000. ),
  4001. 'object_id' => array(
  4002. 'description' => 'TODO: please describe this field!',
  4003. 'type' => 'int',
  4004. 'not null' => TRUE,
  4005. ),
  4006. 'value' => array(
  4007. 'description' => 'TODO: please describe this field!',
  4008. 'type' => 'text',
  4009. 'not null' => FALSE,
  4010. ),
  4011. 'rank' => array(
  4012. 'description' => 'TODO: please describe this field!',
  4013. 'type' => 'int',
  4014. 'not null' => TRUE,
  4015. 'default' => 0,
  4016. ),
  4017. ),
  4018. 'primary key' => array(
  4019. 0 => 'element_relationship_id',
  4020. ),
  4021. 'unique keys' => array(
  4022. 'element_relationship_c1' => array(
  4023. 0 => 'subject_id',
  4024. 1 => 'object_id',
  4025. 2 => 'type_id',
  4026. 3 => 'rank',
  4027. ),
  4028. ),
  4029. 'indexes' => array(
  4030. 'element_relationship_idx1' => array(
  4031. 0 => 'subject_id',
  4032. ),
  4033. 'element_relationship_idx2' => array(
  4034. 0 => 'type_id',
  4035. ),
  4036. 'element_relationship_idx3' => array(
  4037. 0 => 'object_id',
  4038. ),
  4039. 'element_relationship_idx4' => array(
  4040. 0 => 'value',
  4041. ),
  4042. ),
  4043. 'foreign keys' => array(
  4044. 'cvterm' => array(
  4045. 'table' => 'cvterm',
  4046. 'columns' => array(
  4047. 'type_id' => 'cvterm_id',
  4048. ),
  4049. ),
  4050. 'element' => array(
  4051. 'table' => 'element',
  4052. 'columns' => array(
  4053. 'subject_id' => 'element_id',
  4054. 'object_id' => 'element_id',
  4055. ),
  4056. ),
  4057. ),
  4058. 'table' => 'element_relationship',
  4059. 'referring_tables' => NULL,
  4060. );
  4061. return $description;
  4062. }
  4063. /**
  4064. * Implements hook_chado_schema_v1_2_elementresult()
  4065. * Purpose: To describe the structure of 'elementresult' to tripal
  4066. * @see tripal_core_chado_insert()
  4067. * @see tripal_core_chado_update()
  4068. * @see tripal_core_chado_select()
  4069. *
  4070. * @return
  4071. * An array describing the 'elementresult' table
  4072. *
  4073. * @ingroup tripal_chado_v1.2_schema_api
  4074. *
  4075. */
  4076. function tripal_core_chado_schema_v1_2_elementresult() {
  4077. $description = array(
  4078. 'description' => 'TODO: please describe this table!',
  4079. 'fields' => array(
  4080. 'elementresult_id' => array(
  4081. 'description' => 'TODO: please describe this field!',
  4082. 'type' => 'serial',
  4083. 'not null' => TRUE,
  4084. ),
  4085. 'element_id' => array(
  4086. 'description' => 'TODO: please describe this field!',
  4087. 'type' => 'int',
  4088. 'not null' => TRUE,
  4089. ),
  4090. 'quantification_id' => array(
  4091. 'description' => 'TODO: please describe this field!',
  4092. 'type' => 'int',
  4093. 'not null' => TRUE,
  4094. ),
  4095. 'signal' => array(
  4096. 'description' => 'TODO: please describe this field!',
  4097. 'type' => 'float',
  4098. 'size' => 'big',
  4099. 'not null' => TRUE,
  4100. ),
  4101. ),
  4102. 'primary key' => array(
  4103. 0 => 'elementresult_id',
  4104. ),
  4105. 'unique keys' => array(
  4106. 'elementresult_c1' => array(
  4107. 0 => 'element_id',
  4108. 1 => 'quantification_id',
  4109. ),
  4110. ),
  4111. 'indexes' => array(
  4112. 'elementresult_idx1' => array(
  4113. 0 => 'element_id',
  4114. ),
  4115. 'elementresult_idx2' => array(
  4116. 0 => 'quantification_id',
  4117. ),
  4118. 'elementresult_idx3' => array(
  4119. 0 => 'signal',
  4120. ),
  4121. ),
  4122. 'foreign keys' => array(
  4123. 'quantification' => array(
  4124. 'table' => 'quantification',
  4125. 'columns' => array(
  4126. 'quantification_id' => 'quantification_id',
  4127. ),
  4128. ),
  4129. 'element' => array(
  4130. 'table' => 'element',
  4131. 'columns' => array(
  4132. 'element_id' => 'element_id',
  4133. ),
  4134. ),
  4135. ),
  4136. 'table' => 'elementresult',
  4137. 'referring_tables' => array(
  4138. 0 => 'elementresult_relationship',
  4139. ),
  4140. );
  4141. return $description;
  4142. }
  4143. /**
  4144. * Implements hook_chado_schema_v1_2_elementresult_relationship()
  4145. * Purpose: To describe the structure of 'elementresult_relationship' to tripal
  4146. * @see tripal_core_chado_insert()
  4147. * @see tripal_core_chado_update()
  4148. * @see tripal_core_chado_select()
  4149. *
  4150. * @return
  4151. * An array describing the 'elementresult_relationship' table
  4152. *
  4153. * @ingroup tripal_chado_v1.2_schema_api
  4154. *
  4155. */
  4156. function tripal_core_chado_schema_v1_2_elementresult_relationship() {
  4157. $description = array(
  4158. 'description' => 'TODO: please describe this table!',
  4159. 'fields' => array(
  4160. 'elementresult_relationship_id' => array(
  4161. 'description' => 'TODO: please describe this field!',
  4162. 'type' => 'serial',
  4163. 'not null' => TRUE,
  4164. ),
  4165. 'subject_id' => array(
  4166. 'description' => 'TODO: please describe this field!',
  4167. 'type' => 'int',
  4168. 'not null' => TRUE,
  4169. ),
  4170. 'type_id' => array(
  4171. 'description' => 'TODO: please describe this field!',
  4172. 'type' => 'int',
  4173. 'not null' => TRUE,
  4174. ),
  4175. 'object_id' => array(
  4176. 'description' => 'TODO: please describe this field!',
  4177. 'type' => 'int',
  4178. 'not null' => TRUE,
  4179. ),
  4180. 'value' => array(
  4181. 'description' => 'TODO: please describe this field!',
  4182. 'type' => 'text',
  4183. 'not null' => FALSE,
  4184. ),
  4185. 'rank' => array(
  4186. 'description' => 'TODO: please describe this field!',
  4187. 'type' => 'int',
  4188. 'not null' => TRUE,
  4189. 'default' => 0,
  4190. ),
  4191. ),
  4192. 'primary key' => array(
  4193. 0 => 'elementresult_relationship_id',
  4194. ),
  4195. 'unique keys' => array(
  4196. 'elementresult_relationship_c1' => array(
  4197. 0 => 'subject_id',
  4198. 1 => 'object_id',
  4199. 2 => 'type_id',
  4200. 3 => 'rank',
  4201. ),
  4202. ),
  4203. 'indexes' => array(
  4204. 'elementresult_relationship_idx1' => array(
  4205. 0 => 'subject_id',
  4206. ),
  4207. 'elementresult_relationship_idx2' => array(
  4208. 0 => 'type_id',
  4209. ),
  4210. 'elementresult_relationship_idx3' => array(
  4211. 0 => 'object_id',
  4212. ),
  4213. 'elementresult_relationship_idx4' => array(
  4214. 0 => 'value',
  4215. ),
  4216. ),
  4217. 'foreign keys' => array(
  4218. 'cvterm' => array(
  4219. 'table' => 'cvterm',
  4220. 'columns' => array(
  4221. 'type_id' => 'cvterm_id',
  4222. ),
  4223. ),
  4224. 'elementresult' => array(
  4225. 'table' => 'elementresult',
  4226. 'columns' => array(
  4227. 'subject_id' => 'elementresult_id',
  4228. 'object_id' => 'elementresult_id',
  4229. ),
  4230. ),
  4231. ),
  4232. 'table' => 'elementresult_relationship',
  4233. 'referring_tables' => NULL,
  4234. );
  4235. return $description;
  4236. }
  4237. /**
  4238. * Implements hook_chado_schema_v1_2_environment()
  4239. * Purpose: To describe the structure of 'environment' to tripal
  4240. * @see tripal_core_chado_insert()
  4241. * @see tripal_core_chado_update()
  4242. * @see tripal_core_chado_select()
  4243. *
  4244. * @return
  4245. * An array describing the 'environment' table
  4246. *
  4247. * @ingroup tripal_chado_v1.2_schema_api
  4248. *
  4249. */
  4250. function tripal_core_chado_schema_v1_2_environment() {
  4251. $description = array(
  4252. 'description' => 'TODO: please describe this table!',
  4253. 'fields' => array(
  4254. 'environment_id' => array(
  4255. 'description' => 'TODO: please describe this field!',
  4256. 'type' => 'serial',
  4257. 'not null' => TRUE,
  4258. ),
  4259. 'uniquename' => array(
  4260. 'description' => 'TODO: please describe this field!',
  4261. 'type' => 'text',
  4262. 'not null' => TRUE,
  4263. ),
  4264. 'description' => array(
  4265. 'description' => 'TODO: please describe this field!',
  4266. 'type' => 'text',
  4267. 'not null' => FALSE,
  4268. ),
  4269. ),
  4270. 'primary key' => array(
  4271. 0 => 'environment_id',
  4272. ),
  4273. 'unique keys' => array(
  4274. 'environment_c1' => array(
  4275. 0 => 'uniquename',
  4276. ),
  4277. ),
  4278. 'indexes' => array(
  4279. 'environment_idx1' => array(
  4280. 0 => 'uniquename',
  4281. ),
  4282. ),
  4283. 'foreign keys' => array(
  4284. ),
  4285. 'table' => 'environment',
  4286. 'referring_tables' => array(
  4287. 0 => 'environment_cvterm',
  4288. 1 => 'phendesc',
  4289. 2 => 'phenotype_comparison',
  4290. 4 => 'phenstatement',
  4291. ),
  4292. );
  4293. return $description;
  4294. }
  4295. /**
  4296. * Implements hook_chado_schema_v1_2_environment_cvterm()
  4297. * Purpose: To describe the structure of 'environment_cvterm' to tripal
  4298. * @see tripal_core_chado_insert()
  4299. * @see tripal_core_chado_update()
  4300. * @see tripal_core_chado_select()
  4301. *
  4302. * @return
  4303. * An array describing the 'environment_cvterm' table
  4304. *
  4305. * @ingroup tripal_chado_v1.2_schema_api
  4306. *
  4307. */
  4308. function tripal_core_chado_schema_v1_2_environment_cvterm() {
  4309. $description = array(
  4310. 'description' => 'TODO: please describe this table!',
  4311. 'fields' => array(
  4312. 'environment_cvterm_id' => array(
  4313. 'description' => 'TODO: please describe this field!',
  4314. 'type' => 'serial',
  4315. 'not null' => TRUE,
  4316. ),
  4317. 'environment_id' => array(
  4318. 'description' => 'TODO: please describe this field!',
  4319. 'type' => 'int',
  4320. 'not null' => TRUE,
  4321. ),
  4322. 'cvterm_id' => array(
  4323. 'description' => 'TODO: please describe this field!',
  4324. 'type' => 'int',
  4325. 'not null' => TRUE,
  4326. ),
  4327. ),
  4328. 'primary key' => array(
  4329. 0 => 'environment_cvterm_id',
  4330. ),
  4331. 'unique keys' => array(
  4332. 'environment_cvterm_c1' => array(
  4333. 0 => 'environment_id',
  4334. 1 => 'cvterm_id',
  4335. ),
  4336. ),
  4337. 'indexes' => array(
  4338. 'environment_cvterm_idx1' => array(
  4339. 0 => 'environment_id',
  4340. ),
  4341. 'environment_cvterm_idx2' => array(
  4342. 0 => 'cvterm_id',
  4343. ),
  4344. ),
  4345. 'foreign keys' => array(
  4346. 'cvterm' => array(
  4347. 'table' => 'cvterm',
  4348. 'columns' => array(
  4349. 'cvterm_id' => 'cvterm_id',
  4350. ),
  4351. ),
  4352. 'environment' => array(
  4353. 'table' => 'environment',
  4354. 'columns' => array(
  4355. 'environment_id' => 'environment_id',
  4356. ),
  4357. ),
  4358. ),
  4359. 'table' => 'environment_cvterm',
  4360. 'referring_tables' => NULL,
  4361. );
  4362. return $description;
  4363. }
  4364. /**
  4365. * Implements hook_chado_schema_v1_2_expression()
  4366. * Purpose: To describe the structure of 'expression' to tripal
  4367. * @see tripal_core_chado_insert()
  4368. * @see tripal_core_chado_update()
  4369. * @see tripal_core_chado_select()
  4370. *
  4371. * @return
  4372. * An array describing the 'expression' table
  4373. *
  4374. * @ingroup tripal_chado_v1.2_schema_api
  4375. *
  4376. */
  4377. function tripal_core_chado_schema_v1_2_expression() {
  4378. $description = array(
  4379. 'description' => 'TODO: please describe this table!',
  4380. 'fields' => array(
  4381. 'expression_id' => array(
  4382. 'description' => 'TODO: please describe this field!',
  4383. 'type' => 'serial',
  4384. 'not null' => TRUE,
  4385. ),
  4386. 'uniquename' => array(
  4387. 'description' => 'TODO: please describe this field!',
  4388. 'type' => 'text',
  4389. 'not null' => TRUE,
  4390. ),
  4391. 'md5checksum' => array(
  4392. 'description' => 'TODO: please describe this field!',
  4393. 'type' => 'char',
  4394. 'length' => '32',
  4395. 'not null' => FALSE,
  4396. ),
  4397. 'description' => array(
  4398. 'description' => 'TODO: please describe this field!',
  4399. 'type' => 'text',
  4400. 'not null' => FALSE,
  4401. ),
  4402. ),
  4403. 'primary key' => array(
  4404. 0 => 'expression_id',
  4405. ),
  4406. 'unique keys' => array(
  4407. 'expression_c1' => array(
  4408. 0 => 'uniquename',
  4409. ),
  4410. ),
  4411. 'foreign keys' => array(
  4412. ),
  4413. 'table' => 'expression',
  4414. 'referring_tables' => array(
  4415. 0 => 'expression_cvterm',
  4416. 1 => 'expression_image',
  4417. 2 => 'expression_pub',
  4418. 3 => 'expressionprop',
  4419. 4 => 'feature_expression',
  4420. ),
  4421. );
  4422. return $description;
  4423. }
  4424. /**
  4425. * Implements hook_chado_schema_v1_2_expression_cvterm()
  4426. * Purpose: To describe the structure of 'expression_cvterm' to tripal
  4427. * @see tripal_core_chado_insert()
  4428. * @see tripal_core_chado_update()
  4429. * @see tripal_core_chado_select()
  4430. *
  4431. * @return
  4432. * An array describing the 'expression_cvterm' table
  4433. *
  4434. * @ingroup tripal_chado_v1.2_schema_api
  4435. *
  4436. */
  4437. function tripal_core_chado_schema_v1_2_expression_cvterm() {
  4438. $description = array(
  4439. 'description' => 'TODO: please describe this table!',
  4440. 'fields' => array(
  4441. 'expression_cvterm_id' => array(
  4442. 'description' => 'TODO: please describe this field!',
  4443. 'type' => 'serial',
  4444. 'not null' => TRUE,
  4445. ),
  4446. 'expression_id' => array(
  4447. 'description' => 'TODO: please describe this field!',
  4448. 'type' => 'int',
  4449. 'not null' => TRUE,
  4450. ),
  4451. 'cvterm_id' => array(
  4452. 'description' => 'TODO: please describe this field!',
  4453. 'type' => 'int',
  4454. 'not null' => TRUE,
  4455. ),
  4456. 'rank' => array(
  4457. 'description' => 'TODO: please describe this field!',
  4458. 'type' => 'int',
  4459. 'not null' => TRUE,
  4460. 'default' => 0,
  4461. ),
  4462. 'cvterm_type_id' => array(
  4463. 'description' => 'TODO: please describe this field!',
  4464. 'type' => 'int',
  4465. 'not null' => TRUE,
  4466. ),
  4467. ),
  4468. 'primary key' => array(
  4469. 0 => 'expression_cvterm_id',
  4470. ),
  4471. 'unique keys' => array(
  4472. 'expression_cvterm_c1' => array(
  4473. 0 => 'expression_id',
  4474. 1 => 'cvterm_id',
  4475. 2 => 'cvterm_type_id',
  4476. ),
  4477. ),
  4478. 'indexes' => array(
  4479. 'expression_cvterm_idx1' => array(
  4480. 0 => 'expression_id',
  4481. ),
  4482. 'expression_cvterm_idx2' => array(
  4483. 0 => 'cvterm_id',
  4484. ),
  4485. 'expression_cvterm_idx3' => array(
  4486. 0 => 'cvterm_type_id',
  4487. ),
  4488. ),
  4489. 'foreign keys' => array(
  4490. 'cvterm' => array(
  4491. 'table' => 'cvterm',
  4492. 'columns' => array(
  4493. 'cvterm_id' => 'cvterm_id',
  4494. 'cvterm_type_id' => 'cvterm_id',
  4495. ),
  4496. ),
  4497. 'expression' => array(
  4498. 'table' => 'expression',
  4499. 'columns' => array(
  4500. 'expression_id' => 'expression_id',
  4501. ),
  4502. ),
  4503. ),
  4504. 'table' => 'expression_cvterm',
  4505. 'referring_tables' => array(
  4506. 0 => 'expression_cvtermprop',
  4507. ),
  4508. );
  4509. return $description;
  4510. }
  4511. /**
  4512. * Implements hook_chado_schema_v1_2_expression_cvtermprop()
  4513. * Purpose: To describe the structure of 'expression_cvtermprop' to tripal
  4514. * @see tripal_core_chado_insert()
  4515. * @see tripal_core_chado_update()
  4516. * @see tripal_core_chado_select()
  4517. *
  4518. * @return
  4519. * An array describing the 'expression_cvtermprop' table
  4520. *
  4521. * @ingroup tripal_chado_v1.2_schema_api
  4522. *
  4523. */
  4524. function tripal_core_chado_schema_v1_2_expression_cvtermprop() {
  4525. $description = array(
  4526. 'description' => 'TODO: please describe this table!',
  4527. 'fields' => array(
  4528. 'expression_cvtermprop_id' => array(
  4529. 'description' => 'TODO: please describe this field!',
  4530. 'type' => 'serial',
  4531. 'not null' => TRUE,
  4532. ),
  4533. 'expression_cvterm_id' => array(
  4534. 'description' => 'TODO: please describe this field!',
  4535. 'type' => 'int',
  4536. 'not null' => TRUE,
  4537. ),
  4538. 'type_id' => array(
  4539. 'description' => 'TODO: please describe this field!',
  4540. 'type' => 'int',
  4541. 'not null' => TRUE,
  4542. ),
  4543. 'value' => array(
  4544. 'description' => 'TODO: please describe this field!',
  4545. 'type' => 'text',
  4546. 'not null' => FALSE,
  4547. ),
  4548. 'rank' => array(
  4549. 'description' => 'TODO: please describe this field!',
  4550. 'type' => 'int',
  4551. 'not null' => TRUE,
  4552. 'default' => 0,
  4553. ),
  4554. ),
  4555. 'primary key' => array(
  4556. 0 => 'expression_cvtermprop_id',
  4557. ),
  4558. 'unique keys' => array(
  4559. 'expression_cvtermprop_c1' => array(
  4560. 0 => 'expression_cvterm_id',
  4561. 1 => 'type_id',
  4562. 2 => 'rank',
  4563. ),
  4564. ),
  4565. 'indexes' => array(
  4566. 'expression_cvtermprop_idx1' => array(
  4567. 0 => 'expression_cvterm_id',
  4568. ),
  4569. 'expression_cvtermprop_idx2' => array(
  4570. 0 => 'type_id',
  4571. ),
  4572. ),
  4573. 'foreign keys' => array(
  4574. 'cvterm' => array(
  4575. 'table' => 'cvterm',
  4576. 'columns' => array(
  4577. 'type_id' => 'cvterm_id',
  4578. ),
  4579. ),
  4580. 'expression_cvterm' => array(
  4581. 'table' => 'expression_cvterm',
  4582. 'columns' => array(
  4583. 'expression_cvterm_id' => 'expression_cvterm_id',
  4584. ),
  4585. ),
  4586. ),
  4587. 'table' => 'expression_cvtermprop',
  4588. 'referring_tables' => NULL,
  4589. );
  4590. return $description;
  4591. }
  4592. /**
  4593. * Implements hook_chado_schema_v1_2_expression_image()
  4594. * Purpose: To describe the structure of 'expression_image' to tripal
  4595. * @see tripal_core_chado_insert()
  4596. * @see tripal_core_chado_update()
  4597. * @see tripal_core_chado_select()
  4598. *
  4599. * @return
  4600. * An array describing the 'expression_image' table
  4601. *
  4602. * @ingroup tripal_chado_v1.2_schema_api
  4603. *
  4604. */
  4605. function tripal_core_chado_schema_v1_2_expression_image() {
  4606. $description = array(
  4607. 'description' => 'TODO: please describe this table!',
  4608. 'fields' => array(
  4609. 'expression_image_id' => array(
  4610. 'description' => 'TODO: please describe this field!',
  4611. 'type' => 'serial',
  4612. 'not null' => TRUE,
  4613. ),
  4614. 'expression_id' => array(
  4615. 'description' => 'TODO: please describe this field!',
  4616. 'type' => 'int',
  4617. 'not null' => TRUE,
  4618. ),
  4619. 'eimage_id' => array(
  4620. 'description' => 'TODO: please describe this field!',
  4621. 'type' => 'int',
  4622. 'not null' => TRUE,
  4623. ),
  4624. ),
  4625. 'primary key' => array(
  4626. 0 => 'expression_image_id',
  4627. ),
  4628. 'unique keys' => array(
  4629. 'expression_image_c1' => array(
  4630. 0 => 'expression_id',
  4631. 1 => 'eimage_id',
  4632. ),
  4633. ),
  4634. 'indexes' => array(
  4635. 'expression_image_idx1' => array(
  4636. 0 => 'expression_id',
  4637. ),
  4638. 'expression_image_idx2' => array(
  4639. 0 => 'eimage_id',
  4640. ),
  4641. ),
  4642. 'foreign keys' => array(
  4643. 'expression' => array(
  4644. 'table' => 'expression',
  4645. 'columns' => array(
  4646. 'expression_id' => 'expression_id',
  4647. ),
  4648. ),
  4649. 'eimage' => array(
  4650. 'table' => 'eimage',
  4651. 'columns' => array(
  4652. 'eimage_id' => 'eimage_id',
  4653. ),
  4654. ),
  4655. ),
  4656. 'table' => 'expression_image',
  4657. 'referring_tables' => NULL,
  4658. );
  4659. return $description;
  4660. }
  4661. /**
  4662. * Implements hook_chado_schema_v1_2_expression_pub()
  4663. * Purpose: To describe the structure of 'expression_pub' to tripal
  4664. * @see tripal_core_chado_insert()
  4665. * @see tripal_core_chado_update()
  4666. * @see tripal_core_chado_select()
  4667. *
  4668. * @return
  4669. * An array describing the 'expression_pub' table
  4670. *
  4671. * @ingroup tripal_chado_v1.2_schema_api
  4672. *
  4673. */
  4674. function tripal_core_chado_schema_v1_2_expression_pub() {
  4675. $description = array(
  4676. 'description' => 'TODO: please describe this table!',
  4677. 'fields' => array(
  4678. 'expression_pub_id' => array(
  4679. 'description' => 'TODO: please describe this field!',
  4680. 'type' => 'serial',
  4681. 'not null' => TRUE,
  4682. ),
  4683. 'expression_id' => array(
  4684. 'description' => 'TODO: please describe this field!',
  4685. 'type' => 'int',
  4686. 'not null' => TRUE,
  4687. ),
  4688. 'pub_id' => array(
  4689. 'description' => 'TODO: please describe this field!',
  4690. 'type' => 'int',
  4691. 'not null' => TRUE,
  4692. ),
  4693. ),
  4694. 'primary key' => array(
  4695. 0 => 'expression_pub_id',
  4696. ),
  4697. 'unique keys' => array(
  4698. 'expression_pub_c1' => array(
  4699. 0 => 'expression_id',
  4700. 1 => 'pub_id',
  4701. ),
  4702. ),
  4703. 'indexes' => array(
  4704. 'expression_pub_idx1' => array(
  4705. 0 => 'expression_id',
  4706. ),
  4707. 'expression_pub_idx2' => array(
  4708. 0 => 'pub_id',
  4709. ),
  4710. ),
  4711. 'foreign keys' => array(
  4712. 'pub' => array(
  4713. 'table' => 'pub',
  4714. 'columns' => array(
  4715. 'pub_id' => 'pub_id',
  4716. ),
  4717. ),
  4718. 'expression' => array(
  4719. 'table' => 'expression',
  4720. 'columns' => array(
  4721. 'expression_id' => 'expression_id',
  4722. ),
  4723. ),
  4724. ),
  4725. 'table' => 'expression_pub',
  4726. 'referring_tables' => NULL,
  4727. );
  4728. return $description;
  4729. }
  4730. /**
  4731. * Implements hook_chado_schema_v1_2_expressionprop()
  4732. * Purpose: To describe the structure of 'expressionprop' to tripal
  4733. * @see tripal_core_chado_insert()
  4734. * @see tripal_core_chado_update()
  4735. * @see tripal_core_chado_select()
  4736. *
  4737. * @return
  4738. * An array describing the 'expressionprop' table
  4739. *
  4740. * @ingroup tripal_chado_v1.2_schema_api
  4741. *
  4742. */
  4743. function tripal_core_chado_schema_v1_2_expressionprop() {
  4744. $description = array(
  4745. 'description' => 'TODO: please describe this table!',
  4746. 'fields' => array(
  4747. 'expressionprop_id' => array(
  4748. 'description' => 'TODO: please describe this field!',
  4749. 'type' => 'serial',
  4750. 'not null' => TRUE,
  4751. ),
  4752. 'expression_id' => array(
  4753. 'description' => 'TODO: please describe this field!',
  4754. 'type' => 'int',
  4755. 'not null' => TRUE,
  4756. ),
  4757. 'type_id' => array(
  4758. 'description' => 'TODO: please describe this field!',
  4759. 'type' => 'int',
  4760. 'not null' => TRUE,
  4761. ),
  4762. 'value' => array(
  4763. 'description' => 'TODO: please describe this field!',
  4764. 'type' => 'text',
  4765. 'not null' => FALSE,
  4766. ),
  4767. 'rank' => array(
  4768. 'description' => 'TODO: please describe this field!',
  4769. 'type' => 'int',
  4770. 'not null' => TRUE,
  4771. 'default' => 0,
  4772. ),
  4773. ),
  4774. 'primary key' => array(
  4775. 0 => 'expressionprop_id',
  4776. ),
  4777. 'unique keys' => array(
  4778. 'expressionprop_c1' => array(
  4779. 0 => 'expression_id',
  4780. 1 => 'type_id',
  4781. 2 => 'rank',
  4782. ),
  4783. ),
  4784. 'indexes' => array(
  4785. 'expressionprop_idx1' => array(
  4786. 0 => 'expression_id',
  4787. ),
  4788. 'expressionprop_idx2' => array(
  4789. 0 => 'type_id',
  4790. ),
  4791. ),
  4792. 'foreign keys' => array(
  4793. 'cvterm' => array(
  4794. 'table' => 'cvterm',
  4795. 'columns' => array(
  4796. 'type_id' => 'cvterm_id',
  4797. ),
  4798. ),
  4799. 'expression' => array(
  4800. 'table' => 'expression',
  4801. 'columns' => array(
  4802. 'expression_id' => 'expression_id',
  4803. ),
  4804. ),
  4805. ),
  4806. 'table' => 'expressionprop',
  4807. 'referring_tables' => NULL,
  4808. );
  4809. return $description;
  4810. }
  4811. /**
  4812. * Implements hook_chado_schema_v1_2_feature()
  4813. * Purpose: To describe the structure of 'feature' to tripal
  4814. * @see tripal_core_chado_insert()
  4815. * @see tripal_core_chado_update()
  4816. * @see tripal_core_chado_select()
  4817. *
  4818. * @return
  4819. * An array describing the 'feature' table
  4820. *
  4821. * @ingroup tripal_chado_v1.2_schema_api
  4822. *
  4823. */
  4824. function tripal_core_chado_schema_v1_2_feature() {
  4825. $description = array(
  4826. 'description' => 'TODO: please describe this table!',
  4827. 'fields' => array(
  4828. 'feature_id' => array(
  4829. 'description' => 'TODO: please describe this field!',
  4830. 'type' => 'serial',
  4831. 'not null' => TRUE,
  4832. ),
  4833. 'dbxref_id' => array(
  4834. 'description' => 'TODO: please describe this field!',
  4835. 'type' => 'int',
  4836. 'not null' => FALSE,
  4837. ),
  4838. 'organism_id' => array(
  4839. 'description' => 'TODO: please describe this field!',
  4840. 'type' => 'int',
  4841. 'not null' => TRUE,
  4842. ),
  4843. 'name' => array(
  4844. 'description' => 'TODO: please describe this field!',
  4845. 'type' => 'varchar',
  4846. 'length' => '255',
  4847. 'not null' => FALSE,
  4848. ),
  4849. 'uniquename' => array(
  4850. 'description' => 'TODO: please describe this field!',
  4851. 'type' => 'text',
  4852. 'not null' => TRUE,
  4853. ),
  4854. 'residues' => array(
  4855. 'description' => 'TODO: please describe this field!',
  4856. 'type' => 'text',
  4857. 'not null' => FALSE,
  4858. ),
  4859. 'seqlen' => array(
  4860. 'description' => 'TODO: please describe this field!',
  4861. 'type' => 'int',
  4862. 'not null' => FALSE,
  4863. ),
  4864. 'md5checksum' => array(
  4865. 'description' => 'TODO: please describe this field!',
  4866. 'type' => 'char',
  4867. 'length' => '32',
  4868. 'not null' => FALSE,
  4869. ),
  4870. 'type_id' => array(
  4871. 'description' => 'TODO: please describe this field!',
  4872. 'type' => 'int',
  4873. 'not null' => TRUE,
  4874. ),
  4875. 'is_analysis' => array(
  4876. 'description' => 'TODO: please describe this field!',
  4877. 'type' => 'boolean',
  4878. 'not null' => TRUE,
  4879. 'default' => 'als',
  4880. ),
  4881. 'is_obsolete' => array(
  4882. 'description' => 'TODO: please describe this field!',
  4883. 'type' => 'boolean',
  4884. 'not null' => TRUE,
  4885. 'default' => 'als',
  4886. ),
  4887. 'timeaccessioned' => array(
  4888. 'description' => 'TODO: please describe this field!',
  4889. 'type' => 'datetime',
  4890. 'not null' => TRUE,
  4891. 'default' => 'ow(',
  4892. ),
  4893. 'timelastmodified' => array(
  4894. 'description' => 'TODO: please describe this field!',
  4895. 'type' => 'datetime',
  4896. 'not null' => TRUE,
  4897. 'default' => 'ow(',
  4898. ),
  4899. ),
  4900. 'primary key' => array(
  4901. 0 => 'feature_id',
  4902. ),
  4903. 'unique keys' => array(
  4904. 'feature_c1' => array(
  4905. 0 => 'organism_id',
  4906. 1 => 'uniquename',
  4907. 2 => 'type_id',
  4908. ),
  4909. ),
  4910. 'indexes' => array(
  4911. 'feature_idx1' => array(
  4912. 0 => 'dbxref_id',
  4913. ),
  4914. 'feature_idx2' => array(
  4915. 0 => 'organism_id',
  4916. ),
  4917. 'feature_idx3' => array(
  4918. 0 => 'type_id',
  4919. ),
  4920. 'feature_idx4' => array(
  4921. 0 => 'uniquename',
  4922. ),
  4923. 'feature_name_ind1' => array(
  4924. 0 => 'name',
  4925. ),
  4926. ),
  4927. 'foreign keys' => array(
  4928. 'organism' => array(
  4929. 'table' => 'organism',
  4930. 'columns' => array(
  4931. 'organism_id' => 'organism_id',
  4932. ),
  4933. ),
  4934. 'cvterm' => array(
  4935. 'table' => 'cvterm',
  4936. 'columns' => array(
  4937. 'type_id' => 'cvterm_id',
  4938. ),
  4939. ),
  4940. 'dbxref' => array(
  4941. 'table' => 'dbxref',
  4942. 'columns' => array(
  4943. 'dbxref_id' => 'dbxref_id',
  4944. ),
  4945. ),
  4946. ),
  4947. 'table' => 'feature',
  4948. 'referring_tables' => array(
  4949. 0 => 'analysisfeature',
  4950. 1 => 'cell_line_feature',
  4951. 2 => 'element',
  4952. 3 => 'feature_cvterm',
  4953. 4 => 'feature_dbxref',
  4954. 5 => 'feature_expression',
  4955. 6 => 'feature_genotype',
  4956. 8 => 'feature_phenotype',
  4957. 9 => 'feature_pub',
  4958. 10 => 'feature_relationship',
  4959. 12 => 'feature_synonym',
  4960. 13 => 'featureloc',
  4961. 15 => 'featurepos',
  4962. 17 => 'featureprop',
  4963. 18 => 'featurerange',
  4964. 23 => 'library_feature',
  4965. 24 => 'phylonode',
  4966. 25 => 'studyprop_feature',
  4967. ),
  4968. );
  4969. return $description;
  4970. }
  4971. /**
  4972. * Implements hook_chado_schema_v1_2_feature_cvterm()
  4973. * Purpose: To describe the structure of 'feature_cvterm' to tripal
  4974. * @see tripal_core_chado_insert()
  4975. * @see tripal_core_chado_update()
  4976. * @see tripal_core_chado_select()
  4977. *
  4978. * @return
  4979. * An array describing the 'feature_cvterm' table
  4980. *
  4981. * @ingroup tripal_chado_v1.2_schema_api
  4982. *
  4983. */
  4984. function tripal_core_chado_schema_v1_2_feature_cvterm() {
  4985. $description = array(
  4986. 'description' => 'TODO: please describe this table!',
  4987. 'fields' => array(
  4988. 'feature_cvterm_id' => array(
  4989. 'description' => 'TODO: please describe this field!',
  4990. 'type' => 'serial',
  4991. 'not null' => TRUE,
  4992. ),
  4993. 'feature_id' => array(
  4994. 'description' => 'TODO: please describe this field!',
  4995. 'type' => 'int',
  4996. 'not null' => TRUE,
  4997. ),
  4998. 'cvterm_id' => array(
  4999. 'description' => 'TODO: please describe this field!',
  5000. 'type' => 'int',
  5001. 'not null' => TRUE,
  5002. ),
  5003. 'pub_id' => array(
  5004. 'description' => 'TODO: please describe this field!',
  5005. 'type' => 'int',
  5006. 'not null' => TRUE,
  5007. ),
  5008. 'is_not' => array(
  5009. 'description' => 'TODO: please describe this field!',
  5010. 'type' => 'boolean',
  5011. 'not null' => TRUE,
  5012. 'default' => 'als',
  5013. ),
  5014. 'rank' => array(
  5015. 'description' => 'TODO: please describe this field!',
  5016. 'type' => 'int',
  5017. 'not null' => TRUE,
  5018. 'default' => 0,
  5019. ),
  5020. ),
  5021. 'primary key' => array(
  5022. 0 => 'feature_cvterm_id',
  5023. ),
  5024. 'unique keys' => array(
  5025. 'feature_cvterm_c1' => array(
  5026. 0 => 'feature_id',
  5027. 1 => 'cvterm_id',
  5028. 2 => 'pub_id',
  5029. 3 => 'rank',
  5030. ),
  5031. ),
  5032. 'indexes' => array(
  5033. 'feature_cvterm_idx1' => array(
  5034. 0 => 'feature_id',
  5035. ),
  5036. 'feature_cvterm_idx2' => array(
  5037. 0 => 'cvterm_id',
  5038. ),
  5039. 'feature_cvterm_idx3' => array(
  5040. 0 => 'pub_id',
  5041. ),
  5042. ),
  5043. 'foreign keys' => array(
  5044. 'cvterm' => array(
  5045. 'table' => 'cvterm',
  5046. 'columns' => array(
  5047. 'cvterm_id' => 'cvterm_id',
  5048. ),
  5049. ),
  5050. 'pub' => array(
  5051. 'table' => 'pub',
  5052. 'columns' => array(
  5053. 'pub_id' => 'pub_id',
  5054. ),
  5055. ),
  5056. 'feature' => array(
  5057. 'table' => 'feature',
  5058. 'columns' => array(
  5059. 'feature_id' => 'feature_id',
  5060. ),
  5061. ),
  5062. ),
  5063. 'table' => 'feature_cvterm',
  5064. 'referring_tables' => array(
  5065. 0 => 'feature_cvterm_dbxref',
  5066. 1 => 'feature_cvterm_pub',
  5067. 2 => 'feature_cvtermprop',
  5068. ),
  5069. );
  5070. return $description;
  5071. }
  5072. /**
  5073. * Implements hook_chado_schema_v1_2_feature_cvterm_dbxref()
  5074. * Purpose: To describe the structure of 'feature_cvterm_dbxref' to tripal
  5075. * @see tripal_core_chado_insert()
  5076. * @see tripal_core_chado_update()
  5077. * @see tripal_core_chado_select()
  5078. *
  5079. * @return
  5080. * An array describing the 'feature_cvterm_dbxref' table
  5081. *
  5082. * @ingroup tripal_chado_v1.2_schema_api
  5083. *
  5084. */
  5085. function tripal_core_chado_schema_v1_2_feature_cvterm_dbxref() {
  5086. $description = array(
  5087. 'description' => 'TODO: please describe this table!',
  5088. 'fields' => array(
  5089. 'feature_cvterm_dbxref_id' => array(
  5090. 'description' => 'TODO: please describe this field!',
  5091. 'type' => 'serial',
  5092. 'not null' => TRUE,
  5093. ),
  5094. 'feature_cvterm_id' => array(
  5095. 'description' => 'TODO: please describe this field!',
  5096. 'type' => 'int',
  5097. 'not null' => TRUE,
  5098. ),
  5099. 'dbxref_id' => array(
  5100. 'description' => 'TODO: please describe this field!',
  5101. 'type' => 'int',
  5102. 'not null' => TRUE,
  5103. ),
  5104. ),
  5105. 'primary key' => array(
  5106. 0 => 'feature_cvterm_dbxref_id',
  5107. ),
  5108. 'unique keys' => array(
  5109. 'feature_cvterm_dbxref_c1' => array(
  5110. 0 => 'feature_cvterm_id',
  5111. 1 => 'dbxref_id',
  5112. ),
  5113. ),
  5114. 'indexes' => array(
  5115. 'feature_cvterm_dbxref_idx1' => array(
  5116. 0 => 'feature_cvterm_id',
  5117. ),
  5118. 'feature_cvterm_dbxref_idx2' => array(
  5119. 0 => 'dbxref_id',
  5120. ),
  5121. ),
  5122. 'foreign keys' => array(
  5123. 'feature_cvterm' => array(
  5124. 'table' => 'feature_cvterm',
  5125. 'columns' => array(
  5126. 'feature_cvterm_id' => 'feature_cvterm_id',
  5127. ),
  5128. ),
  5129. 'dbxref' => array(
  5130. 'table' => 'dbxref',
  5131. 'columns' => array(
  5132. 'dbxref_id' => 'dbxref_id',
  5133. ),
  5134. ),
  5135. ),
  5136. 'table' => 'feature_cvterm_dbxref',
  5137. 'referring_tables' => NULL,
  5138. );
  5139. return $description;
  5140. }
  5141. /**
  5142. * Implements hook_chado_schema_v1_2_feature_cvterm_pub()
  5143. * Purpose: To describe the structure of 'feature_cvterm_pub' to tripal
  5144. * @see tripal_core_chado_insert()
  5145. * @see tripal_core_chado_update()
  5146. * @see tripal_core_chado_select()
  5147. *
  5148. * @return
  5149. * An array describing the 'feature_cvterm_pub' table
  5150. *
  5151. * @ingroup tripal_chado_v1.2_schema_api
  5152. *
  5153. */
  5154. function tripal_core_chado_schema_v1_2_feature_cvterm_pub() {
  5155. $description = array(
  5156. 'description' => 'TODO: please describe this table!',
  5157. 'fields' => array(
  5158. 'feature_cvterm_pub_id' => array(
  5159. 'description' => 'TODO: please describe this field!',
  5160. 'type' => 'serial',
  5161. 'not null' => TRUE,
  5162. ),
  5163. 'feature_cvterm_id' => array(
  5164. 'description' => 'TODO: please describe this field!',
  5165. 'type' => 'int',
  5166. 'not null' => TRUE,
  5167. ),
  5168. 'pub_id' => array(
  5169. 'description' => 'TODO: please describe this field!',
  5170. 'type' => 'int',
  5171. 'not null' => TRUE,
  5172. ),
  5173. ),
  5174. 'primary key' => array(
  5175. 0 => 'feature_cvterm_pub_id',
  5176. ),
  5177. 'unique keys' => array(
  5178. 'feature_cvterm_pub_c1' => array(
  5179. 0 => 'feature_cvterm_id',
  5180. 1 => 'pub_id',
  5181. ),
  5182. ),
  5183. 'indexes' => array(
  5184. 'feature_cvterm_pub_idx1' => array(
  5185. 0 => 'feature_cvterm_id',
  5186. ),
  5187. 'feature_cvterm_pub_idx2' => array(
  5188. 0 => 'pub_id',
  5189. ),
  5190. ),
  5191. 'foreign keys' => array(
  5192. 'feature_cvterm' => array(
  5193. 'table' => 'feature_cvterm',
  5194. 'columns' => array(
  5195. 'feature_cvterm_id' => 'feature_cvterm_id',
  5196. ),
  5197. ),
  5198. 'pub' => array(
  5199. 'table' => 'pub',
  5200. 'columns' => array(
  5201. 'pub_id' => 'pub_id',
  5202. ),
  5203. ),
  5204. ),
  5205. 'table' => 'feature_cvterm_pub',
  5206. 'referring_tables' => NULL,
  5207. );
  5208. return $description;
  5209. }
  5210. /**
  5211. * Implements hook_chado_schema_v1_2_feature_cvtermprop()
  5212. * Purpose: To describe the structure of 'feature_cvtermprop' to tripal
  5213. * @see tripal_core_chado_insert()
  5214. * @see tripal_core_chado_update()
  5215. * @see tripal_core_chado_select()
  5216. *
  5217. * @return
  5218. * An array describing the 'feature_cvtermprop' table
  5219. *
  5220. * @ingroup tripal_chado_v1.2_schema_api
  5221. *
  5222. */
  5223. function tripal_core_chado_schema_v1_2_feature_cvtermprop() {
  5224. $description = array(
  5225. 'description' => 'TODO: please describe this table!',
  5226. 'fields' => array(
  5227. 'feature_cvtermprop_id' => array(
  5228. 'description' => 'TODO: please describe this field!',
  5229. 'type' => 'serial',
  5230. 'not null' => TRUE,
  5231. ),
  5232. 'feature_cvterm_id' => array(
  5233. 'description' => 'TODO: please describe this field!',
  5234. 'type' => 'int',
  5235. 'not null' => TRUE,
  5236. ),
  5237. 'type_id' => array(
  5238. 'description' => 'TODO: please describe this field!',
  5239. 'type' => 'int',
  5240. 'not null' => TRUE,
  5241. ),
  5242. 'value' => array(
  5243. 'description' => 'TODO: please describe this field!',
  5244. 'type' => 'text',
  5245. 'not null' => FALSE,
  5246. ),
  5247. 'rank' => array(
  5248. 'description' => 'TODO: please describe this field!',
  5249. 'type' => 'int',
  5250. 'not null' => TRUE,
  5251. 'default' => 0,
  5252. ),
  5253. ),
  5254. 'primary key' => array(
  5255. 0 => 'feature_cvtermprop_id',
  5256. ),
  5257. 'unique keys' => array(
  5258. 'feature_cvtermprop_c1' => array(
  5259. 0 => 'feature_cvterm_id',
  5260. 1 => 'type_id',
  5261. 2 => 'rank',
  5262. ),
  5263. ),
  5264. 'indexes' => array(
  5265. 'feature_cvtermprop_idx1' => array(
  5266. 0 => 'feature_cvterm_id',
  5267. ),
  5268. 'feature_cvtermprop_idx2' => array(
  5269. 0 => 'type_id',
  5270. ),
  5271. ),
  5272. 'foreign keys' => array(
  5273. 'cvterm' => array(
  5274. 'table' => 'cvterm',
  5275. 'columns' => array(
  5276. 'type_id' => 'cvterm_id',
  5277. ),
  5278. ),
  5279. 'feature_cvterm' => array(
  5280. 'table' => 'feature_cvterm',
  5281. 'columns' => array(
  5282. 'feature_cvterm_id' => 'feature_cvterm_id',
  5283. ),
  5284. ),
  5285. ),
  5286. 'table' => 'feature_cvtermprop',
  5287. 'referring_tables' => NULL,
  5288. );
  5289. return $description;
  5290. }
  5291. /**
  5292. * Implements hook_chado_schema_v1_2_feature_dbxref()
  5293. * Purpose: To describe the structure of 'feature_dbxref' to tripal
  5294. * @see tripal_core_chado_insert()
  5295. * @see tripal_core_chado_update()
  5296. * @see tripal_core_chado_select()
  5297. *
  5298. * @return
  5299. * An array describing the 'feature_dbxref' table
  5300. *
  5301. * @ingroup tripal_chado_v1.2_schema_api
  5302. *
  5303. */
  5304. function tripal_core_chado_schema_v1_2_feature_dbxref() {
  5305. $description = array(
  5306. 'description' => 'TODO: please describe this table!',
  5307. 'fields' => array(
  5308. 'feature_dbxref_id' => array(
  5309. 'description' => 'TODO: please describe this field!',
  5310. 'type' => 'serial',
  5311. 'not null' => TRUE,
  5312. ),
  5313. 'feature_id' => array(
  5314. 'description' => 'TODO: please describe this field!',
  5315. 'type' => 'int',
  5316. 'not null' => TRUE,
  5317. ),
  5318. 'dbxref_id' => array(
  5319. 'description' => 'TODO: please describe this field!',
  5320. 'type' => 'int',
  5321. 'not null' => TRUE,
  5322. ),
  5323. 'is_current' => array(
  5324. 'description' => 'TODO: please describe this field!',
  5325. 'type' => 'boolean',
  5326. 'not null' => TRUE,
  5327. 'default' => 'ru',
  5328. ),
  5329. ),
  5330. 'primary key' => array(
  5331. 0 => 'feature_dbxref_id',
  5332. ),
  5333. 'unique keys' => array(
  5334. 'feature_dbxref_c1' => array(
  5335. 0 => 'feature_id',
  5336. 1 => 'dbxref_id',
  5337. ),
  5338. ),
  5339. 'indexes' => array(
  5340. 'feature_dbxref_idx1' => array(
  5341. 0 => 'feature_id',
  5342. ),
  5343. 'feature_dbxref_idx2' => array(
  5344. 0 => 'dbxref_id',
  5345. ),
  5346. ),
  5347. 'foreign keys' => array(
  5348. 'dbxref' => array(
  5349. 'table' => 'dbxref',
  5350. 'columns' => array(
  5351. 'dbxref_id' => 'dbxref_id',
  5352. ),
  5353. ),
  5354. 'feature' => array(
  5355. 'table' => 'feature',
  5356. 'columns' => array(
  5357. 'feature_id' => 'feature_id',
  5358. ),
  5359. ),
  5360. ),
  5361. 'table' => 'feature_dbxref',
  5362. 'referring_tables' => NULL,
  5363. );
  5364. return $description;
  5365. }
  5366. /**
  5367. * Implements hook_chado_schema_v1_2_feature_expression()
  5368. * Purpose: To describe the structure of 'feature_expression' to tripal
  5369. * @see tripal_core_chado_insert()
  5370. * @see tripal_core_chado_update()
  5371. * @see tripal_core_chado_select()
  5372. *
  5373. * @return
  5374. * An array describing the 'feature_expression' table
  5375. *
  5376. * @ingroup tripal_chado_v1.2_schema_api
  5377. *
  5378. */
  5379. function tripal_core_chado_schema_v1_2_feature_expression() {
  5380. $description = array(
  5381. 'description' => 'TODO: please describe this table!',
  5382. 'fields' => array(
  5383. 'feature_expression_id' => array(
  5384. 'description' => 'TODO: please describe this field!',
  5385. 'type' => 'serial',
  5386. 'not null' => TRUE,
  5387. ),
  5388. 'expression_id' => array(
  5389. 'description' => 'TODO: please describe this field!',
  5390. 'type' => 'int',
  5391. 'not null' => TRUE,
  5392. ),
  5393. 'feature_id' => array(
  5394. 'description' => 'TODO: please describe this field!',
  5395. 'type' => 'int',
  5396. 'not null' => TRUE,
  5397. ),
  5398. 'pub_id' => array(
  5399. 'description' => 'TODO: please describe this field!',
  5400. 'type' => 'int',
  5401. 'not null' => TRUE,
  5402. ),
  5403. ),
  5404. 'primary key' => array(
  5405. 0 => 'feature_expression_id',
  5406. ),
  5407. 'unique keys' => array(
  5408. 'feature_expression_c1' => array(
  5409. 0 => 'expression_id',
  5410. 1 => 'feature_id',
  5411. 2 => 'pub_id',
  5412. ),
  5413. ),
  5414. 'indexes' => array(
  5415. 'feature_expression_idx1' => array(
  5416. 0 => 'expression_id',
  5417. ),
  5418. 'feature_expression_idx2' => array(
  5419. 0 => 'feature_id',
  5420. ),
  5421. 'feature_expression_idx3' => array(
  5422. 0 => 'pub_id',
  5423. ),
  5424. ),
  5425. 'foreign keys' => array(
  5426. 'pub' => array(
  5427. 'table' => 'pub',
  5428. 'columns' => array(
  5429. 'pub_id' => 'pub_id',
  5430. ),
  5431. ),
  5432. 'feature' => array(
  5433. 'table' => 'feature',
  5434. 'columns' => array(
  5435. 'feature_id' => 'feature_id',
  5436. ),
  5437. ),
  5438. 'expression' => array(
  5439. 'table' => 'expression',
  5440. 'columns' => array(
  5441. 'expression_id' => 'expression_id',
  5442. ),
  5443. ),
  5444. ),
  5445. 'table' => 'feature_expression',
  5446. 'referring_tables' => array(
  5447. 0 => 'feature_expressionprop',
  5448. ),
  5449. );
  5450. return $description;
  5451. }
  5452. /**
  5453. * Implements hook_chado_schema_v1_2_feature_expressionprop()
  5454. * Purpose: To describe the structure of 'feature_expressionprop' to tripal
  5455. * @see tripal_core_chado_insert()
  5456. * @see tripal_core_chado_update()
  5457. * @see tripal_core_chado_select()
  5458. *
  5459. * @return
  5460. * An array describing the 'feature_expressionprop' table
  5461. *
  5462. * @ingroup tripal_chado_v1.2_schema_api
  5463. *
  5464. */
  5465. function tripal_core_chado_schema_v1_2_feature_expressionprop() {
  5466. $description = array(
  5467. 'description' => 'TODO: please describe this table!',
  5468. 'fields' => array(
  5469. 'feature_expressionprop_id' => array(
  5470. 'description' => 'TODO: please describe this field!',
  5471. 'type' => 'serial',
  5472. 'not null' => TRUE,
  5473. ),
  5474. 'feature_expression_id' => array(
  5475. 'description' => 'TODO: please describe this field!',
  5476. 'type' => 'int',
  5477. 'not null' => TRUE,
  5478. ),
  5479. 'type_id' => array(
  5480. 'description' => 'TODO: please describe this field!',
  5481. 'type' => 'int',
  5482. 'not null' => TRUE,
  5483. ),
  5484. 'value' => array(
  5485. 'description' => 'TODO: please describe this field!',
  5486. 'type' => 'text',
  5487. 'not null' => FALSE,
  5488. ),
  5489. 'rank' => array(
  5490. 'description' => 'TODO: please describe this field!',
  5491. 'type' => 'int',
  5492. 'not null' => TRUE,
  5493. 'default' => 0,
  5494. ),
  5495. ),
  5496. 'primary key' => array(
  5497. 0 => 'feature_expressionprop_id',
  5498. ),
  5499. 'unique keys' => array(
  5500. 'feature_expressionprop_c1' => array(
  5501. 0 => 'feature_expression_id',
  5502. 1 => 'type_id',
  5503. 2 => 'rank',
  5504. ),
  5505. ),
  5506. 'indexes' => array(
  5507. 'feature_expressionprop_idx1' => array(
  5508. 0 => 'feature_expression_id',
  5509. ),
  5510. 'feature_expressionprop_idx2' => array(
  5511. 0 => 'type_id',
  5512. ),
  5513. ),
  5514. 'foreign keys' => array(
  5515. 'cvterm' => array(
  5516. 'table' => 'cvterm',
  5517. 'columns' => array(
  5518. 'type_id' => 'cvterm_id',
  5519. ),
  5520. ),
  5521. 'feature_expression' => array(
  5522. 'table' => 'feature_expression',
  5523. 'columns' => array(
  5524. 'feature_expression_id' => 'feature_expression_id',
  5525. ),
  5526. ),
  5527. ),
  5528. 'table' => 'feature_expressionprop',
  5529. 'referring_tables' => NULL,
  5530. );
  5531. return $description;
  5532. }
  5533. /**
  5534. * Implements hook_chado_schema_v1_2_feature_genotype()
  5535. * Purpose: To describe the structure of 'feature_genotype' to tripal
  5536. * @see tripal_core_chado_insert()
  5537. * @see tripal_core_chado_update()
  5538. * @see tripal_core_chado_select()
  5539. *
  5540. * @return
  5541. * An array describing the 'feature_genotype' table
  5542. *
  5543. * @ingroup tripal_chado_v1.2_schema_api
  5544. *
  5545. */
  5546. function tripal_core_chado_schema_v1_2_feature_genotype() {
  5547. $description = array(
  5548. 'description' => 'TODO: please describe this table!',
  5549. 'fields' => array(
  5550. 'feature_genotype_id' => array(
  5551. 'description' => 'TODO: please describe this field!',
  5552. 'type' => 'serial',
  5553. 'not null' => TRUE,
  5554. ),
  5555. 'feature_id' => array(
  5556. 'description' => 'TODO: please describe this field!',
  5557. 'type' => 'int',
  5558. 'not null' => TRUE,
  5559. ),
  5560. 'genotype_id' => array(
  5561. 'description' => 'TODO: please describe this field!',
  5562. 'type' => 'int',
  5563. 'not null' => TRUE,
  5564. ),
  5565. 'chromosome_id' => array(
  5566. 'description' => 'TODO: please describe this field!',
  5567. 'type' => 'int',
  5568. 'not null' => FALSE,
  5569. ),
  5570. 'rank' => array(
  5571. 'description' => 'TODO: please describe this field!',
  5572. 'type' => 'int',
  5573. 'not null' => TRUE,
  5574. ),
  5575. 'cgroup' => array(
  5576. 'description' => 'TODO: please describe this field!',
  5577. 'type' => 'int',
  5578. 'not null' => TRUE,
  5579. ),
  5580. 'cvterm_id' => array(
  5581. 'description' => 'TODO: please describe this field!',
  5582. 'type' => 'int',
  5583. 'not null' => TRUE,
  5584. ),
  5585. ),
  5586. 'primary key' => array(
  5587. 0 => 'feature_genotype_id',
  5588. ),
  5589. 'unique keys' => array(
  5590. 'feature_genotype_c1' => array(
  5591. 0 => 'feature_id',
  5592. 1 => 'genotype_id',
  5593. 2 => 'cvterm_id',
  5594. 3 => 'chromosome_id',
  5595. 4 => 'rank',
  5596. 5 => 'cgroup',
  5597. ),
  5598. ),
  5599. 'indexes' => array(
  5600. 'feature_genotype_idx1' => array(
  5601. 0 => 'feature_id',
  5602. ),
  5603. 'feature_genotype_idx2' => array(
  5604. 0 => 'genotype_id',
  5605. ),
  5606. ),
  5607. 'foreign keys' => array(
  5608. 'cvterm' => array(
  5609. 'table' => 'cvterm',
  5610. 'columns' => array(
  5611. 'cvterm_id' => 'cvterm_id',
  5612. ),
  5613. ),
  5614. 'feature' => array(
  5615. 'table' => 'feature',
  5616. 'columns' => array(
  5617. 'feature_id' => 'feature_id',
  5618. 'chromosome_id' => 'feature_id',
  5619. ),
  5620. ),
  5621. 'genotype' => array(
  5622. 'table' => 'genotype',
  5623. 'columns' => array(
  5624. 'genotype_id' => 'genotype_id',
  5625. ),
  5626. ),
  5627. ),
  5628. 'table' => 'feature_genotype',
  5629. 'referring_tables' => NULL,
  5630. );
  5631. return $description;
  5632. }
  5633. /**
  5634. * Implements hook_chado_schema_v1_2_feature_phenotype()
  5635. * Purpose: To describe the structure of 'feature_phenotype' to tripal
  5636. * @see tripal_core_chado_insert()
  5637. * @see tripal_core_chado_update()
  5638. * @see tripal_core_chado_select()
  5639. *
  5640. * @return
  5641. * An array describing the 'feature_phenotype' table
  5642. *
  5643. * @ingroup tripal_chado_v1.2_schema_api
  5644. *
  5645. */
  5646. function tripal_core_chado_schema_v1_2_feature_phenotype() {
  5647. $description = array(
  5648. 'description' => 'TODO: please describe this table!',
  5649. 'fields' => array(
  5650. 'feature_phenotype_id' => array(
  5651. 'description' => 'TODO: please describe this field!',
  5652. 'type' => 'serial',
  5653. 'not null' => TRUE,
  5654. ),
  5655. 'feature_id' => array(
  5656. 'description' => 'TODO: please describe this field!',
  5657. 'type' => 'int',
  5658. 'not null' => TRUE,
  5659. ),
  5660. 'phenotype_id' => array(
  5661. 'description' => 'TODO: please describe this field!',
  5662. 'type' => 'int',
  5663. 'not null' => TRUE,
  5664. ),
  5665. ),
  5666. 'primary key' => array(
  5667. 0 => 'feature_phenotype_id',
  5668. ),
  5669. 'unique keys' => array(
  5670. 'feature_phenotype_c1' => array(
  5671. 0 => 'feature_id',
  5672. 1 => 'phenotype_id',
  5673. ),
  5674. ),
  5675. 'indexes' => array(
  5676. 'feature_phenotype_idx1' => array(
  5677. 0 => 'feature_id',
  5678. ),
  5679. 'feature_phenotype_idx2' => array(
  5680. 0 => 'phenotype_id',
  5681. ),
  5682. ),
  5683. 'foreign keys' => array(
  5684. 'feature' => array(
  5685. 'table' => 'feature',
  5686. 'columns' => array(
  5687. 'feature_id' => 'feature_id',
  5688. ),
  5689. ),
  5690. 'phenotype' => array(
  5691. 'table' => 'phenotype',
  5692. 'columns' => array(
  5693. 'phenotype_id' => 'phenotype_id',
  5694. ),
  5695. ),
  5696. ),
  5697. 'table' => 'feature_phenotype',
  5698. 'referring_tables' => NULL,
  5699. );
  5700. return $description;
  5701. }
  5702. /**
  5703. * Implements hook_chado_schema_v1_2_feature_pub()
  5704. * Purpose: To describe the structure of 'feature_pub' to tripal
  5705. * @see tripal_core_chado_insert()
  5706. * @see tripal_core_chado_update()
  5707. * @see tripal_core_chado_select()
  5708. *
  5709. * @return
  5710. * An array describing the 'feature_pub' table
  5711. *
  5712. * @ingroup tripal_chado_v1.2_schema_api
  5713. *
  5714. */
  5715. function tripal_core_chado_schema_v1_2_feature_pub() {
  5716. $description = array(
  5717. 'description' => 'TODO: please describe this table!',
  5718. 'fields' => array(
  5719. 'feature_pub_id' => array(
  5720. 'description' => 'TODO: please describe this field!',
  5721. 'type' => 'serial',
  5722. 'not null' => TRUE,
  5723. ),
  5724. 'feature_id' => array(
  5725. 'description' => 'TODO: please describe this field!',
  5726. 'type' => 'int',
  5727. 'not null' => TRUE,
  5728. ),
  5729. 'pub_id' => array(
  5730. 'description' => 'TODO: please describe this field!',
  5731. 'type' => 'int',
  5732. 'not null' => TRUE,
  5733. ),
  5734. ),
  5735. 'primary key' => array(
  5736. 0 => 'feature_pub_id',
  5737. ),
  5738. 'unique keys' => array(
  5739. 'feature_pub_c1' => array(
  5740. 0 => 'feature_id',
  5741. 1 => 'pub_id',
  5742. ),
  5743. ),
  5744. 'indexes' => array(
  5745. 'feature_pub_idx1' => array(
  5746. 0 => 'feature_id',
  5747. ),
  5748. 'feature_pub_idx2' => array(
  5749. 0 => 'pub_id',
  5750. ),
  5751. ),
  5752. 'foreign keys' => array(
  5753. 'pub' => array(
  5754. 'table' => 'pub',
  5755. 'columns' => array(
  5756. 'pub_id' => 'pub_id',
  5757. ),
  5758. ),
  5759. 'feature' => array(
  5760. 'table' => 'feature',
  5761. 'columns' => array(
  5762. 'feature_id' => 'feature_id',
  5763. ),
  5764. ),
  5765. ),
  5766. 'table' => 'feature_pub',
  5767. 'referring_tables' => array(
  5768. 0 => 'feature_pubprop',
  5769. ),
  5770. );
  5771. return $description;
  5772. }
  5773. /**
  5774. * Implements hook_chado_schema_v1_2_feature_pubprop()
  5775. * Purpose: To describe the structure of 'feature_pubprop' to tripal
  5776. * @see tripal_core_chado_insert()
  5777. * @see tripal_core_chado_update()
  5778. * @see tripal_core_chado_select()
  5779. *
  5780. * @return
  5781. * An array describing the 'feature_pubprop' table
  5782. *
  5783. * @ingroup tripal_chado_v1.2_schema_api
  5784. *
  5785. */
  5786. function tripal_core_chado_schema_v1_2_feature_pubprop() {
  5787. $description = array(
  5788. 'description' => 'TODO: please describe this table!',
  5789. 'fields' => array(
  5790. 'feature_pubprop_id' => array(
  5791. 'description' => 'TODO: please describe this field!',
  5792. 'type' => 'serial',
  5793. 'not null' => TRUE,
  5794. ),
  5795. 'feature_pub_id' => array(
  5796. 'description' => 'TODO: please describe this field!',
  5797. 'type' => 'int',
  5798. 'not null' => TRUE,
  5799. ),
  5800. 'type_id' => array(
  5801. 'description' => 'TODO: please describe this field!',
  5802. 'type' => 'int',
  5803. 'not null' => TRUE,
  5804. ),
  5805. 'value' => array(
  5806. 'description' => 'TODO: please describe this field!',
  5807. 'type' => 'text',
  5808. 'not null' => FALSE,
  5809. ),
  5810. 'rank' => array(
  5811. 'description' => 'TODO: please describe this field!',
  5812. 'type' => 'int',
  5813. 'not null' => TRUE,
  5814. 'default' => 0,
  5815. ),
  5816. ),
  5817. 'primary key' => array(
  5818. 0 => 'feature_pubprop_id',
  5819. ),
  5820. 'unique keys' => array(
  5821. 'feature_pubprop_c1' => array(
  5822. 0 => 'feature_pub_id',
  5823. 1 => 'type_id',
  5824. 2 => 'rank',
  5825. ),
  5826. ),
  5827. 'indexes' => array(
  5828. 'feature_pubprop_idx1' => array(
  5829. 0 => 'feature_pub_id',
  5830. ),
  5831. ),
  5832. 'foreign keys' => array(
  5833. 'cvterm' => array(
  5834. 'table' => 'cvterm',
  5835. 'columns' => array(
  5836. 'type_id' => 'cvterm_id',
  5837. ),
  5838. ),
  5839. 'feature_pub' => array(
  5840. 'table' => 'feature_pub',
  5841. 'columns' => array(
  5842. 'feature_pub_id' => 'feature_pub_id',
  5843. ),
  5844. ),
  5845. ),
  5846. 'table' => 'feature_pubprop',
  5847. 'referring_tables' => NULL,
  5848. );
  5849. return $description;
  5850. }
  5851. /**
  5852. * Implements hook_chado_schema_v1_2_feature_relationship()
  5853. * Purpose: To describe the structure of 'feature_relationship' to tripal
  5854. * @see tripal_core_chado_insert()
  5855. * @see tripal_core_chado_update()
  5856. * @see tripal_core_chado_select()
  5857. *
  5858. * @return
  5859. * An array describing the 'feature_relationship' table
  5860. *
  5861. * @ingroup tripal_chado_v1.2_schema_api
  5862. *
  5863. */
  5864. function tripal_core_chado_schema_v1_2_feature_relationship() {
  5865. $description = array(
  5866. 'description' => 'TODO: please describe this table!',
  5867. 'fields' => array(
  5868. 'feature_relationship_id' => array(
  5869. 'description' => 'TODO: please describe this field!',
  5870. 'type' => 'serial',
  5871. 'not null' => TRUE,
  5872. ),
  5873. 'subject_id' => array(
  5874. 'description' => 'TODO: please describe this field!',
  5875. 'type' => 'int',
  5876. 'not null' => TRUE,
  5877. ),
  5878. 'object_id' => array(
  5879. 'description' => 'TODO: please describe this field!',
  5880. 'type' => 'int',
  5881. 'not null' => TRUE,
  5882. ),
  5883. 'type_id' => array(
  5884. 'description' => 'TODO: please describe this field!',
  5885. 'type' => 'int',
  5886. 'not null' => TRUE,
  5887. ),
  5888. 'value' => array(
  5889. 'description' => 'TODO: please describe this field!',
  5890. 'type' => 'text',
  5891. 'not null' => FALSE,
  5892. ),
  5893. 'rank' => array(
  5894. 'description' => 'TODO: please describe this field!',
  5895. 'type' => 'int',
  5896. 'not null' => TRUE,
  5897. 'default' => 0,
  5898. ),
  5899. ),
  5900. 'primary key' => array(
  5901. 0 => 'feature_relationship_id',
  5902. ),
  5903. 'unique keys' => array(
  5904. 'feature_relationship_c1' => array(
  5905. 0 => 'subject_id',
  5906. 1 => 'object_id',
  5907. 2 => 'type_id',
  5908. 3 => 'rank',
  5909. ),
  5910. ),
  5911. 'indexes' => array(
  5912. 'feature_relationship_idx1' => array(
  5913. 0 => 'subject_id',
  5914. ),
  5915. 'feature_relationship_idx2' => array(
  5916. 0 => 'object_id',
  5917. ),
  5918. 'feature_relationship_idx3' => array(
  5919. 0 => 'type_id',
  5920. ),
  5921. ),
  5922. 'foreign keys' => array(
  5923. 'cvterm' => array(
  5924. 'table' => 'cvterm',
  5925. 'columns' => array(
  5926. 'type_id' => 'cvterm_id',
  5927. ),
  5928. ),
  5929. 'feature' => array(
  5930. 'table' => 'feature',
  5931. 'columns' => array(
  5932. 'subject_id' => 'feature_id',
  5933. 'object_id' => 'feature_id',
  5934. ),
  5935. ),
  5936. ),
  5937. 'table' => 'feature_relationship',
  5938. 'referring_tables' => array(
  5939. 0 => 'feature_relationship_pub',
  5940. 1 => 'feature_relationshipprop',
  5941. ),
  5942. );
  5943. return $description;
  5944. }
  5945. /**
  5946. * Implements hook_chado_schema_v1_2_feature_relationship_pub()
  5947. * Purpose: To describe the structure of 'feature_relationship_pub' to tripal
  5948. * @see tripal_core_chado_insert()
  5949. * @see tripal_core_chado_update()
  5950. * @see tripal_core_chado_select()
  5951. *
  5952. * @return
  5953. * An array describing the 'feature_relationship_pub' table
  5954. *
  5955. * @ingroup tripal_chado_v1.2_schema_api
  5956. *
  5957. */
  5958. function tripal_core_chado_schema_v1_2_feature_relationship_pub() {
  5959. $description = array(
  5960. 'description' => 'TODO: please describe this table!',
  5961. 'fields' => array(
  5962. 'feature_relationship_pub_id' => array(
  5963. 'description' => 'TODO: please describe this field!',
  5964. 'type' => 'serial',
  5965. 'not null' => TRUE,
  5966. ),
  5967. 'feature_relationship_id' => array(
  5968. 'description' => 'TODO: please describe this field!',
  5969. 'type' => 'int',
  5970. 'not null' => TRUE,
  5971. ),
  5972. 'pub_id' => array(
  5973. 'description' => 'TODO: please describe this field!',
  5974. 'type' => 'int',
  5975. 'not null' => TRUE,
  5976. ),
  5977. ),
  5978. 'primary key' => array(
  5979. 0 => 'feature_relationship_pub_id',
  5980. ),
  5981. 'unique keys' => array(
  5982. 'feature_relationship_pub_c1' => array(
  5983. 0 => 'feature_relationship_id',
  5984. 1 => 'pub_id',
  5985. ),
  5986. ),
  5987. 'indexes' => array(
  5988. 'feature_relationship_pub_idx1' => array(
  5989. 0 => 'feature_relationship_id',
  5990. ),
  5991. 'feature_relationship_pub_idx2' => array(
  5992. 0 => 'pub_id',
  5993. ),
  5994. ),
  5995. 'foreign keys' => array(
  5996. 'feature_relationship' => array(
  5997. 'table' => 'feature_relationship',
  5998. 'columns' => array(
  5999. 'feature_relationship_id' => 'feature_relationship_id',
  6000. ),
  6001. ),
  6002. 'pub' => array(
  6003. 'table' => 'pub',
  6004. 'columns' => array(
  6005. 'pub_id' => 'pub_id',
  6006. ),
  6007. ),
  6008. ),
  6009. 'table' => 'feature_relationship_pub',
  6010. 'referring_tables' => NULL,
  6011. );
  6012. return $description;
  6013. }
  6014. /**
  6015. * Implements hook_chado_schema_v1_2_feature_relationshipprop()
  6016. * Purpose: To describe the structure of 'feature_relationshipprop' to tripal
  6017. * @see tripal_core_chado_insert()
  6018. * @see tripal_core_chado_update()
  6019. * @see tripal_core_chado_select()
  6020. *
  6021. * @return
  6022. * An array describing the 'feature_relationshipprop' table
  6023. *
  6024. * @ingroup tripal_chado_v1.2_schema_api
  6025. *
  6026. */
  6027. function tripal_core_chado_schema_v1_2_feature_relationshipprop() {
  6028. $description = array(
  6029. 'description' => 'TODO: please describe this table!',
  6030. 'fields' => array(
  6031. 'feature_relationshipprop_id' => array(
  6032. 'description' => 'TODO: please describe this field!',
  6033. 'type' => 'serial',
  6034. 'not null' => TRUE,
  6035. ),
  6036. 'feature_relationship_id' => array(
  6037. 'description' => 'TODO: please describe this field!',
  6038. 'type' => 'int',
  6039. 'not null' => TRUE,
  6040. ),
  6041. 'type_id' => array(
  6042. 'description' => 'TODO: please describe this field!',
  6043. 'type' => 'int',
  6044. 'not null' => TRUE,
  6045. ),
  6046. 'value' => array(
  6047. 'description' => 'TODO: please describe this field!',
  6048. 'type' => 'text',
  6049. 'not null' => FALSE,
  6050. ),
  6051. 'rank' => array(
  6052. 'description' => 'TODO: please describe this field!',
  6053. 'type' => 'int',
  6054. 'not null' => TRUE,
  6055. 'default' => 0,
  6056. ),
  6057. ),
  6058. 'primary key' => array(
  6059. 0 => 'feature_relationshipprop_id',
  6060. ),
  6061. 'unique keys' => array(
  6062. 'feature_relationshipprop_c1' => array(
  6063. 0 => 'feature_relationship_id',
  6064. 1 => 'type_id',
  6065. 2 => 'rank',
  6066. ),
  6067. ),
  6068. 'indexes' => array(
  6069. 'feature_relationshipprop_idx1' => array(
  6070. 0 => 'feature_relationship_id',
  6071. ),
  6072. 'feature_relationshipprop_idx2' => array(
  6073. 0 => 'type_id',
  6074. ),
  6075. ),
  6076. 'foreign keys' => array(
  6077. 'cvterm' => array(
  6078. 'table' => 'cvterm',
  6079. 'columns' => array(
  6080. 'type_id' => 'cvterm_id',
  6081. ),
  6082. ),
  6083. 'feature_relationship' => array(
  6084. 'table' => 'feature_relationship',
  6085. 'columns' => array(
  6086. 'feature_relationship_id' => 'feature_relationship_id',
  6087. ),
  6088. ),
  6089. ),
  6090. 'table' => 'feature_relationshipprop',
  6091. 'referring_tables' => array(
  6092. 0 => 'feature_relationshipprop_pub',
  6093. ),
  6094. );
  6095. return $description;
  6096. }
  6097. /**
  6098. * Implements hook_chado_schema_v1_2_feature_relationshipprop_pub()
  6099. * Purpose: To describe the structure of 'feature_relationshipprop_pub' to tripal
  6100. * @see tripal_core_chado_insert()
  6101. * @see tripal_core_chado_update()
  6102. * @see tripal_core_chado_select()
  6103. *
  6104. * @return
  6105. * An array describing the 'feature_relationshipprop_pub' table
  6106. *
  6107. * @ingroup tripal_chado_v1.2_schema_api
  6108. *
  6109. */
  6110. function tripal_core_chado_schema_v1_2_feature_relationshipprop_pub() {
  6111. $description = array(
  6112. 'description' => 'TODO: please describe this table!',
  6113. 'fields' => array(
  6114. 'feature_relationshipprop_pub_id' => array(
  6115. 'description' => 'TODO: please describe this field!',
  6116. 'type' => 'serial',
  6117. 'not null' => TRUE,
  6118. ),
  6119. 'feature_relationshipprop_id' => array(
  6120. 'description' => 'TODO: please describe this field!',
  6121. 'type' => 'int',
  6122. 'not null' => TRUE,
  6123. ),
  6124. 'pub_id' => array(
  6125. 'description' => 'TODO: please describe this field!',
  6126. 'type' => 'int',
  6127. 'not null' => TRUE,
  6128. ),
  6129. ),
  6130. 'primary key' => array(
  6131. 0 => 'feature_relationshipprop_pub_id',
  6132. ),
  6133. 'unique keys' => array(
  6134. 'feature_relationshipprop_pub_c1' => array(
  6135. 0 => 'feature_relationshipprop_id',
  6136. 1 => 'pub_id',
  6137. ),
  6138. ),
  6139. 'indexes' => array(
  6140. 'feature_relationshipprop_pub_idx1' => array(
  6141. 0 => 'feature_relationshipprop_id',
  6142. ),
  6143. 'feature_relationshipprop_pub_idx2' => array(
  6144. 0 => 'pub_id',
  6145. ),
  6146. ),
  6147. 'foreign keys' => array(
  6148. 'feature_relationshipprop' => array(
  6149. 'table' => 'feature_relationshipprop',
  6150. 'columns' => array(
  6151. 'feature_relationshipprop_id' => 'feature_relationshipprop_id',
  6152. ),
  6153. ),
  6154. 'pub' => array(
  6155. 'table' => 'pub',
  6156. 'columns' => array(
  6157. 'pub_id' => 'pub_id',
  6158. ),
  6159. ),
  6160. ),
  6161. 'table' => 'feature_relationshipprop_pub',
  6162. 'referring_tables' => NULL,
  6163. );
  6164. return $description;
  6165. }
  6166. /**
  6167. * Implements hook_chado_schema_v1_2_feature_synonym()
  6168. * Purpose: To describe the structure of 'feature_synonym' to tripal
  6169. * @see tripal_core_chado_insert()
  6170. * @see tripal_core_chado_update()
  6171. * @see tripal_core_chado_select()
  6172. *
  6173. * @return
  6174. * An array describing the 'feature_synonym' table
  6175. *
  6176. * @ingroup tripal_chado_v1.2_schema_api
  6177. *
  6178. */
  6179. function tripal_core_chado_schema_v1_2_feature_synonym() {
  6180. $description = array(
  6181. 'description' => 'TODO: please describe this table!',
  6182. 'fields' => array(
  6183. 'feature_synonym_id' => array(
  6184. 'description' => 'TODO: please describe this field!',
  6185. 'type' => 'serial',
  6186. 'not null' => TRUE,
  6187. ),
  6188. 'synonym_id' => array(
  6189. 'description' => 'TODO: please describe this field!',
  6190. 'type' => 'int',
  6191. 'not null' => TRUE,
  6192. ),
  6193. 'feature_id' => array(
  6194. 'description' => 'TODO: please describe this field!',
  6195. 'type' => 'int',
  6196. 'not null' => TRUE,
  6197. ),
  6198. 'pub_id' => array(
  6199. 'description' => 'TODO: please describe this field!',
  6200. 'type' => 'int',
  6201. 'not null' => TRUE,
  6202. ),
  6203. 'is_current' => array(
  6204. 'description' => 'TODO: please describe this field!',
  6205. 'type' => 'boolean',
  6206. 'not null' => TRUE,
  6207. 'default' => 'als',
  6208. ),
  6209. 'is_internal' => array(
  6210. 'description' => 'TODO: please describe this field!',
  6211. 'type' => 'boolean',
  6212. 'not null' => TRUE,
  6213. 'default' => 'als',
  6214. ),
  6215. ),
  6216. 'primary key' => array(
  6217. 0 => 'feature_synonym_id',
  6218. ),
  6219. 'unique keys' => array(
  6220. 'feature_synonym_c1' => array(
  6221. 0 => 'synonym_id',
  6222. 1 => 'feature_id',
  6223. 2 => 'pub_id',
  6224. ),
  6225. ),
  6226. 'indexes' => array(
  6227. 'feature_synonym_idx1' => array(
  6228. 0 => 'synonym_id',
  6229. ),
  6230. 'feature_synonym_idx2' => array(
  6231. 0 => 'feature_id',
  6232. ),
  6233. 'feature_synonym_idx3' => array(
  6234. 0 => 'pub_id',
  6235. ),
  6236. ),
  6237. 'foreign keys' => array(
  6238. 'pub' => array(
  6239. 'table' => 'pub',
  6240. 'columns' => array(
  6241. 'pub_id' => 'pub_id',
  6242. ),
  6243. ),
  6244. 'feature' => array(
  6245. 'table' => 'feature',
  6246. 'columns' => array(
  6247. 'feature_id' => 'feature_id',
  6248. ),
  6249. ),
  6250. 'synonym' => array(
  6251. 'table' => 'synonym',
  6252. 'columns' => array(
  6253. 'synonym_id' => 'synonym_id',
  6254. ),
  6255. ),
  6256. ),
  6257. 'table' => 'feature_synonym',
  6258. 'referring_tables' => NULL,
  6259. );
  6260. return $description;
  6261. }
  6262. /**
  6263. * Implements hook_chado_schema_v1_2_featureloc()
  6264. * Purpose: To describe the structure of 'featureloc' to tripal
  6265. * @see tripal_core_chado_insert()
  6266. * @see tripal_core_chado_update()
  6267. * @see tripal_core_chado_select()
  6268. *
  6269. * @return
  6270. * An array describing the 'featureloc' table
  6271. *
  6272. * @ingroup tripal_chado_v1.2_schema_api
  6273. *
  6274. */
  6275. function tripal_core_chado_schema_v1_2_featureloc() {
  6276. $description = array(
  6277. 'description' => 'TODO: please describe this table!',
  6278. 'fields' => array(
  6279. 'featureloc_id' => array(
  6280. 'description' => 'TODO: please describe this field!',
  6281. 'type' => 'serial',
  6282. 'not null' => TRUE,
  6283. ),
  6284. 'feature_id' => array(
  6285. 'description' => 'TODO: please describe this field!',
  6286. 'type' => 'int',
  6287. 'not null' => TRUE,
  6288. ),
  6289. 'srcfeature_id' => array(
  6290. 'description' => 'TODO: please describe this field!',
  6291. 'type' => 'int',
  6292. 'not null' => FALSE,
  6293. ),
  6294. 'fmin' => array(
  6295. 'description' => 'TODO: please describe this field!',
  6296. 'type' => 'int',
  6297. 'not null' => FALSE,
  6298. ),
  6299. 'is_fmin_partial' => array(
  6300. 'description' => 'TODO: please describe this field!',
  6301. 'type' => 'boolean',
  6302. 'not null' => TRUE,
  6303. 'default' => 'als',
  6304. ),
  6305. 'fmax' => array(
  6306. 'description' => 'TODO: please describe this field!',
  6307. 'type' => 'int',
  6308. 'not null' => FALSE,
  6309. ),
  6310. 'is_fmax_partial' => array(
  6311. 'description' => 'TODO: please describe this field!',
  6312. 'type' => 'boolean',
  6313. 'not null' => TRUE,
  6314. 'default' => 'als',
  6315. ),
  6316. 'strand' => array(
  6317. 'description' => 'TODO: please describe this field!',
  6318. 'type' => 'int',
  6319. 'size' => 'small',
  6320. 'not null' => FALSE,
  6321. ),
  6322. 'phase' => array(
  6323. 'description' => 'TODO: please describe this field!',
  6324. 'type' => 'int',
  6325. 'not null' => FALSE,
  6326. ),
  6327. 'residue_info' => array(
  6328. 'description' => 'TODO: please describe this field!',
  6329. 'type' => 'text',
  6330. 'not null' => FALSE,
  6331. ),
  6332. 'locgroup' => array(
  6333. 'description' => 'TODO: please describe this field!',
  6334. 'type' => 'int',
  6335. 'not null' => TRUE,
  6336. 'default' => 0,
  6337. ),
  6338. 'rank' => array(
  6339. 'description' => 'TODO: please describe this field!',
  6340. 'type' => 'int',
  6341. 'not null' => TRUE,
  6342. 'default' => 0,
  6343. ),
  6344. ),
  6345. 'primary key' => array(
  6346. 0 => 'featureloc_id',
  6347. ),
  6348. 'unique keys' => array(
  6349. 'featureloc_c1' => array(
  6350. 0 => 'feature_id',
  6351. 1 => 'locgroup',
  6352. 2 => 'rank',
  6353. ),
  6354. ),
  6355. 'indexes' => array(
  6356. 'binloc_boxrange' => array(
  6357. 0 => 'fmin',
  6358. ),
  6359. 'binloc_boxrange_src' => array(
  6360. 0 => 'srcfeature_id',
  6361. 1 => 'fmin',
  6362. ),
  6363. 'featureloc_idx1' => array(
  6364. 0 => 'feature_id',
  6365. ),
  6366. 'featureloc_idx2' => array(
  6367. 0 => 'srcfeature_id',
  6368. ),
  6369. 'featureloc_idx3' => array(
  6370. 0 => 'srcfeature_id',
  6371. 1 => 'fmin',
  6372. 2 => 'fmax',
  6373. ),
  6374. ),
  6375. 'foreign keys' => array(
  6376. 'feature' => array(
  6377. 'table' => 'feature',
  6378. 'columns' => array(
  6379. 'feature_id' => 'feature_id',
  6380. 'srcfeature_id' => 'feature_id',
  6381. ),
  6382. ),
  6383. ),
  6384. 'referring_tables' => array(
  6385. 0 => 'featureloc_pub',
  6386. ),
  6387. 'table' => 'featureloc',
  6388. );
  6389. return $description;
  6390. }
  6391. /**
  6392. * Implements hook_chado_schema_v1_2_featureloc_pub()
  6393. * Purpose: To describe the structure of 'featureloc_pub' to tripal
  6394. * @see tripal_core_chado_insert()
  6395. * @see tripal_core_chado_update()
  6396. * @see tripal_core_chado_select()
  6397. *
  6398. * @return
  6399. * An array describing the 'featureloc_pub' table
  6400. *
  6401. * @ingroup tripal_chado_v1.2_schema_api
  6402. *
  6403. */
  6404. function tripal_core_chado_schema_v1_2_featureloc_pub() {
  6405. $description = array(
  6406. 'description' => 'TODO: please describe this table!',
  6407. 'fields' => array(
  6408. 'featureloc_pub_id' => array(
  6409. 'description' => 'TODO: please describe this field!',
  6410. 'type' => 'serial',
  6411. 'not null' => TRUE,
  6412. ),
  6413. 'featureloc_id' => array(
  6414. 'description' => 'TODO: please describe this field!',
  6415. 'type' => 'int',
  6416. 'not null' => TRUE,
  6417. ),
  6418. 'pub_id' => array(
  6419. 'description' => 'TODO: please describe this field!',
  6420. 'type' => 'int',
  6421. 'not null' => TRUE,
  6422. ),
  6423. ),
  6424. 'primary key' => array(
  6425. 0 => 'featureloc_pub_id',
  6426. ),
  6427. 'unique keys' => array(
  6428. 'featureloc_pub_c1' => array(
  6429. 0 => 'featureloc_id',
  6430. 1 => 'pub_id',
  6431. ),
  6432. ),
  6433. 'indexes' => array(
  6434. 'featureloc_pub_idx1' => array(
  6435. 0 => 'featureloc_id',
  6436. ),
  6437. 'featureloc_pub_idx2' => array(
  6438. 0 => 'pub_id',
  6439. ),
  6440. ),
  6441. 'foreign keys' => array(
  6442. 'featureloc' => array(
  6443. 'table' => 'featureloc',
  6444. 'columns' => array(
  6445. 'featureloc_id' => 'featureloc_id',
  6446. ),
  6447. ),
  6448. 'pub' => array(
  6449. 'table' => 'pub',
  6450. 'columns' => array(
  6451. 'pub_id' => 'pub_id',
  6452. ),
  6453. ),
  6454. ),
  6455. 'table' => 'featureloc_pub',
  6456. 'referring_tables' => NULL,
  6457. );
  6458. return $description;
  6459. }
  6460. /**
  6461. * Implements hook_chado_schema_v1_2_featuremap()
  6462. * Purpose: To describe the structure of 'featuremap' to tripal
  6463. * @see tripal_core_chado_insert()
  6464. * @see tripal_core_chado_update()
  6465. * @see tripal_core_chado_select()
  6466. *
  6467. * @return
  6468. * An array describing the 'featuremap' table
  6469. *
  6470. * @ingroup tripal_chado_v1.2_schema_api
  6471. *
  6472. */
  6473. function tripal_core_chado_schema_v1_2_featuremap() {
  6474. $description = array(
  6475. 'description' => 'TODO: please describe this table!',
  6476. 'fields' => array(
  6477. 'featuremap_id' => array(
  6478. 'description' => 'TODO: please describe this field!',
  6479. 'type' => 'serial',
  6480. 'not null' => TRUE,
  6481. ),
  6482. 'name' => array(
  6483. 'description' => 'TODO: please describe this field!',
  6484. 'type' => 'varchar',
  6485. 'length' => '255',
  6486. 'not null' => FALSE,
  6487. ),
  6488. 'description' => array(
  6489. 'description' => 'TODO: please describe this field!',
  6490. 'type' => 'text',
  6491. 'not null' => FALSE,
  6492. ),
  6493. 'unittype_id' => array(
  6494. 'description' => 'TODO: please describe this field!',
  6495. 'type' => 'int',
  6496. 'not null' => FALSE,
  6497. ),
  6498. ),
  6499. 'primary key' => array(
  6500. 0 => 'featuremap_id',
  6501. ),
  6502. 'unique keys' => array(
  6503. 'featuremap_c1' => array(
  6504. 0 => 'name',
  6505. ),
  6506. ),
  6507. 'foreign keys' => array(
  6508. 'cvterm' => array(
  6509. 'table' => 'cvterm',
  6510. 'columns' => array(
  6511. 'unittype_id' => 'cvterm_id',
  6512. ),
  6513. ),
  6514. ),
  6515. 'table' => 'featuremap',
  6516. 'referring_tables' => array(
  6517. 0 => 'featuremap_pub',
  6518. 1 => 'featurepos',
  6519. 2 => 'featurerange',
  6520. ),
  6521. );
  6522. return $description;
  6523. }
  6524. /**
  6525. * Implements hook_chado_schema_v1_2_featuremap_pub()
  6526. * Purpose: To describe the structure of 'featuremap_pub' to tripal
  6527. * @see tripal_core_chado_insert()
  6528. * @see tripal_core_chado_update()
  6529. * @see tripal_core_chado_select()
  6530. *
  6531. * @return
  6532. * An array describing the 'featuremap_pub' table
  6533. *
  6534. * @ingroup tripal_chado_v1.2_schema_api
  6535. *
  6536. */
  6537. function tripal_core_chado_schema_v1_2_featuremap_pub() {
  6538. $description = array(
  6539. 'description' => 'TODO: please describe this table!',
  6540. 'fields' => array(
  6541. 'featuremap_pub_id' => array(
  6542. 'description' => 'TODO: please describe this field!',
  6543. 'type' => 'serial',
  6544. 'not null' => TRUE,
  6545. ),
  6546. 'featuremap_id' => array(
  6547. 'description' => 'TODO: please describe this field!',
  6548. 'type' => 'int',
  6549. 'not null' => TRUE,
  6550. ),
  6551. 'pub_id' => array(
  6552. 'description' => 'TODO: please describe this field!',
  6553. 'type' => 'int',
  6554. 'not null' => TRUE,
  6555. ),
  6556. ),
  6557. 'primary key' => array(
  6558. 0 => 'featuremap_pub_id',
  6559. ),
  6560. 'indexes' => array(
  6561. 'featuremap_pub_idx1' => array(
  6562. 0 => 'featuremap_id',
  6563. ),
  6564. 'featuremap_pub_idx2' => array(
  6565. 0 => 'pub_id',
  6566. ),
  6567. ),
  6568. 'foreign keys' => array(
  6569. 'pub' => array(
  6570. 'table' => 'pub',
  6571. 'columns' => array(
  6572. 'pub_id' => 'pub_id',
  6573. ),
  6574. ),
  6575. 'featuremap' => array(
  6576. 'table' => 'featuremap',
  6577. 'columns' => array(
  6578. 'featuremap_id' => 'featuremap_id',
  6579. ),
  6580. ),
  6581. ),
  6582. 'table' => 'featuremap_pub',
  6583. 'referring_tables' => NULL,
  6584. );
  6585. return $description;
  6586. }
  6587. /**
  6588. * Implements hook_chado_schema_v1_2_featurepos()
  6589. * Purpose: To describe the structure of 'featurepos' to tripal
  6590. * @see tripal_core_chado_insert()
  6591. * @see tripal_core_chado_update()
  6592. * @see tripal_core_chado_select()
  6593. *
  6594. * @return
  6595. * An array describing the 'featurepos' table
  6596. *
  6597. * @ingroup tripal_chado_v1.2_schema_api
  6598. *
  6599. */
  6600. function tripal_core_chado_schema_v1_2_featurepos() {
  6601. $description = array(
  6602. 'description' => 'TODO: please describe this table!',
  6603. 'fields' => array(
  6604. 'featurepos_id' => array(
  6605. 'description' => 'TODO: please describe this field!',
  6606. 'type' => 'serial',
  6607. 'not null' => TRUE,
  6608. ),
  6609. 'featuremap_id' => array(
  6610. 'description' => 'TODO: please describe this field!',
  6611. 'type' => 'serial',
  6612. 'not null' => TRUE,
  6613. ),
  6614. 'feature_id' => array(
  6615. 'description' => 'TODO: please describe this field!',
  6616. 'type' => 'int',
  6617. 'not null' => TRUE,
  6618. ),
  6619. 'map_feature_id' => array(
  6620. 'description' => 'TODO: please describe this field!',
  6621. 'type' => 'int',
  6622. 'not null' => TRUE,
  6623. ),
  6624. 'mappos' => array(
  6625. 'description' => 'TODO: please describe this field!',
  6626. 'type' => 'float',
  6627. 'size' => 'big',
  6628. 'not null' => TRUE,
  6629. ),
  6630. ),
  6631. 'primary key' => array(
  6632. 0 => 'featurepos_id',
  6633. ),
  6634. 'indexes' => array(
  6635. 'featurepos_idx1' => array(
  6636. 0 => 'featuremap_id',
  6637. ),
  6638. 'featurepos_idx2' => array(
  6639. 0 => 'feature_id',
  6640. ),
  6641. 'featurepos_idx3' => array(
  6642. 0 => 'map_feature_id',
  6643. ),
  6644. ),
  6645. 'foreign keys' => array(
  6646. 'feature' => array(
  6647. 'table' => 'feature',
  6648. 'columns' => array(
  6649. 'feature_id' => 'feature_id',
  6650. 'map_feature_id' => 'feature_id',
  6651. ),
  6652. ),
  6653. 'featuremap' => array(
  6654. 'table' => 'featuremap',
  6655. 'columns' => array(
  6656. 'featuremap_id' => 'featuremap_id',
  6657. ),
  6658. ),
  6659. ),
  6660. 'table' => 'featurepos',
  6661. 'referring_tables' => NULL,
  6662. );
  6663. return $description;
  6664. }
  6665. /**
  6666. * Implements hook_chado_schema_v1_2_featureprop()
  6667. * Purpose: To describe the structure of 'featureprop' to tripal
  6668. * @see tripal_core_chado_insert()
  6669. * @see tripal_core_chado_update()
  6670. * @see tripal_core_chado_select()
  6671. *
  6672. * @return
  6673. * An array describing the 'featureprop' table
  6674. *
  6675. * @ingroup tripal_chado_v1.2_schema_api
  6676. *
  6677. */
  6678. function tripal_core_chado_schema_v1_2_featureprop() {
  6679. $description = array(
  6680. 'description' => 'TODO: please describe this table!',
  6681. 'fields' => array(
  6682. 'featureprop_id' => array(
  6683. 'description' => 'TODO: please describe this field!',
  6684. 'type' => 'serial',
  6685. 'not null' => TRUE,
  6686. ),
  6687. 'feature_id' => array(
  6688. 'description' => 'TODO: please describe this field!',
  6689. 'type' => 'int',
  6690. 'not null' => TRUE,
  6691. ),
  6692. 'type_id' => array(
  6693. 'description' => 'TODO: please describe this field!',
  6694. 'type' => 'int',
  6695. 'not null' => TRUE,
  6696. ),
  6697. 'value' => array(
  6698. 'description' => 'TODO: please describe this field!',
  6699. 'type' => 'text',
  6700. 'not null' => FALSE,
  6701. ),
  6702. 'rank' => array(
  6703. 'description' => 'TODO: please describe this field!',
  6704. 'type' => 'int',
  6705. 'not null' => TRUE,
  6706. 'default' => 0,
  6707. ),
  6708. ),
  6709. 'primary key' => array(
  6710. 0 => 'featureprop_id',
  6711. ),
  6712. 'unique keys' => array(
  6713. 'featureprop_c1' => array(
  6714. 0 => 'feature_id',
  6715. 1 => 'type_id',
  6716. 2 => 'rank',
  6717. ),
  6718. ),
  6719. 'indexes' => array(
  6720. 'featureprop_idx1' => array(
  6721. 0 => 'feature_id',
  6722. ),
  6723. 'featureprop_idx2' => array(
  6724. 0 => 'type_id',
  6725. ),
  6726. ),
  6727. 'foreign keys' => array(
  6728. 'cvterm' => array(
  6729. 'table' => 'cvterm',
  6730. 'columns' => array(
  6731. 'type_id' => 'cvterm_id',
  6732. ),
  6733. ),
  6734. 'feature' => array(
  6735. 'table' => 'feature',
  6736. 'columns' => array(
  6737. 'feature_id' => 'feature_id',
  6738. ),
  6739. ),
  6740. ),
  6741. 'table' => 'featureprop',
  6742. 'referring_tables' => array(
  6743. 0 => 'featureprop_pub',
  6744. ),
  6745. );
  6746. return $description;
  6747. }
  6748. /**
  6749. * Implements hook_chado_schema_v1_2_featureprop_pub()
  6750. * Purpose: To describe the structure of 'featureprop_pub' to tripal
  6751. * @see tripal_core_chado_insert()
  6752. * @see tripal_core_chado_update()
  6753. * @see tripal_core_chado_select()
  6754. *
  6755. * @return
  6756. * An array describing the 'featureprop_pub' table
  6757. *
  6758. * @ingroup tripal_chado_v1.2_schema_api
  6759. *
  6760. */
  6761. function tripal_core_chado_schema_v1_2_featureprop_pub() {
  6762. $description = array(
  6763. 'description' => 'TODO: please describe this table!',
  6764. 'fields' => array(
  6765. 'featureprop_pub_id' => array(
  6766. 'description' => 'TODO: please describe this field!',
  6767. 'type' => 'serial',
  6768. 'not null' => TRUE,
  6769. ),
  6770. 'featureprop_id' => array(
  6771. 'description' => 'TODO: please describe this field!',
  6772. 'type' => 'int',
  6773. 'not null' => TRUE,
  6774. ),
  6775. 'pub_id' => array(
  6776. 'description' => 'TODO: please describe this field!',
  6777. 'type' => 'int',
  6778. 'not null' => TRUE,
  6779. ),
  6780. ),
  6781. 'primary key' => array(
  6782. 0 => 'featureprop_pub_id',
  6783. ),
  6784. 'unique keys' => array(
  6785. 'featureprop_pub_c1' => array(
  6786. 0 => 'featureprop_id',
  6787. 1 => 'pub_id',
  6788. ),
  6789. ),
  6790. 'indexes' => array(
  6791. 'featureprop_pub_idx1' => array(
  6792. 0 => 'featureprop_id',
  6793. ),
  6794. 'featureprop_pub_idx2' => array(
  6795. 0 => 'pub_id',
  6796. ),
  6797. ),
  6798. 'foreign keys' => array(
  6799. 'featureprop' => array(
  6800. 'table' => 'featureprop',
  6801. 'columns' => array(
  6802. 'featureprop_id' => 'featureprop_id',
  6803. ),
  6804. ),
  6805. 'pub' => array(
  6806. 'table' => 'pub',
  6807. 'columns' => array(
  6808. 'pub_id' => 'pub_id',
  6809. ),
  6810. ),
  6811. ),
  6812. 'table' => 'featureprop_pub',
  6813. 'referring_tables' => NULL,
  6814. );
  6815. return $description;
  6816. }
  6817. /**
  6818. * Implements hook_chado_schema_v1_2_featurerange()
  6819. * Purpose: To describe the structure of 'featurerange' to tripal
  6820. * @see tripal_core_chado_insert()
  6821. * @see tripal_core_chado_update()
  6822. * @see tripal_core_chado_select()
  6823. *
  6824. * @return
  6825. * An array describing the 'featurerange' table
  6826. *
  6827. * @ingroup tripal_chado_v1.2_schema_api
  6828. *
  6829. */
  6830. function tripal_core_chado_schema_v1_2_featurerange() {
  6831. $description = array(
  6832. 'description' => 'TODO: please describe this table!',
  6833. 'fields' => array(
  6834. 'featurerange_id' => array(
  6835. 'description' => 'TODO: please describe this field!',
  6836. 'type' => 'serial',
  6837. 'not null' => TRUE,
  6838. ),
  6839. 'featuremap_id' => array(
  6840. 'description' => 'TODO: please describe this field!',
  6841. 'type' => 'int',
  6842. 'not null' => TRUE,
  6843. ),
  6844. 'feature_id' => array(
  6845. 'description' => 'TODO: please describe this field!',
  6846. 'type' => 'int',
  6847. 'not null' => TRUE,
  6848. ),
  6849. 'leftstartf_id' => array(
  6850. 'description' => 'TODO: please describe this field!',
  6851. 'type' => 'int',
  6852. 'not null' => TRUE,
  6853. ),
  6854. 'leftendf_id' => array(
  6855. 'description' => 'TODO: please describe this field!',
  6856. 'type' => 'int',
  6857. 'not null' => FALSE,
  6858. ),
  6859. 'rightstartf_id' => array(
  6860. 'description' => 'TODO: please describe this field!',
  6861. 'type' => 'int',
  6862. 'not null' => FALSE,
  6863. ),
  6864. 'rightendf_id' => array(
  6865. 'description' => 'TODO: please describe this field!',
  6866. 'type' => 'int',
  6867. 'not null' => TRUE,
  6868. ),
  6869. 'rangestr' => array(
  6870. 'description' => 'TODO: please describe this field!',
  6871. 'type' => 'varchar',
  6872. 'length' => '255',
  6873. 'not null' => FALSE,
  6874. ),
  6875. ),
  6876. 'primary key' => array(
  6877. 0 => 'featurerange_id',
  6878. ),
  6879. 'indexes' => array(
  6880. 'featurerange_idx1' => array(
  6881. 0 => 'featuremap_id',
  6882. ),
  6883. 'featurerange_idx2' => array(
  6884. 0 => 'feature_id',
  6885. ),
  6886. 'featurerange_idx3' => array(
  6887. 0 => 'leftstartf_id',
  6888. ),
  6889. 'featurerange_idx4' => array(
  6890. 0 => 'leftendf_id',
  6891. ),
  6892. 'featurerange_idx5' => array(
  6893. 0 => 'rightstartf_id',
  6894. ),
  6895. 'featurerange_idx6' => array(
  6896. 0 => 'rightendf_id',
  6897. ),
  6898. ),
  6899. 'foreign keys' => array(
  6900. 'feature' => array(
  6901. 'table' => 'feature',
  6902. 'columns' => array(
  6903. 'feature_id' => 'feature_id',
  6904. 'leftstartf_id' => 'feature_id',
  6905. 'leftendf_id' => 'feature_id',
  6906. 'rightstartf_id' => 'feature_id',
  6907. 'rightendf_id' => 'feature_id',
  6908. ),
  6909. ),
  6910. 'featuremap' => array(
  6911. 'table' => 'featuremap',
  6912. 'columns' => array(
  6913. 'featuremap_id' => 'featuremap_id',
  6914. ),
  6915. ),
  6916. ),
  6917. 'table' => 'featurerange',
  6918. 'referring_tables' => NULL,
  6919. );
  6920. return $description;
  6921. }
  6922. /**
  6923. * Implements hook_chado_schema_v1_2_genotype()
  6924. * Purpose: To describe the structure of 'genotype' to tripal
  6925. * @see tripal_core_chado_insert()
  6926. * @see tripal_core_chado_update()
  6927. * @see tripal_core_chado_select()
  6928. *
  6929. * @return
  6930. * An array describing the 'genotype' table
  6931. *
  6932. * @ingroup tripal_chado_v1.2_schema_api
  6933. *
  6934. */
  6935. function tripal_core_chado_schema_v1_2_genotype() {
  6936. $description = array(
  6937. 'description' => 'TODO: please describe this table!',
  6938. 'fields' => array(
  6939. 'genotype_id' => array(
  6940. 'description' => 'TODO: please describe this field!',
  6941. 'type' => 'serial',
  6942. 'not null' => TRUE,
  6943. ),
  6944. 'name' => array(
  6945. 'description' => 'TODO: please describe this field!',
  6946. 'type' => 'text',
  6947. 'not null' => FALSE,
  6948. ),
  6949. 'uniquename' => array(
  6950. 'description' => 'TODO: please describe this field!',
  6951. 'type' => 'text',
  6952. 'not null' => TRUE,
  6953. ),
  6954. 'description' => array(
  6955. 'description' => 'TODO: please describe this field!',
  6956. 'type' => 'varchar',
  6957. 'length' => '255',
  6958. 'not null' => FALSE,
  6959. ),
  6960. 'type_id' => array(
  6961. 'description' => 'TODO: please describe this field!',
  6962. 'type' => 'int',
  6963. 'not null' => TRUE,
  6964. ),
  6965. ),
  6966. 'primary key' => array(
  6967. 0 => 'genotype_id',
  6968. ),
  6969. 'unique keys' => array(
  6970. 'genotype_c1' => array(
  6971. 0 => 'uniquename',
  6972. ),
  6973. ),
  6974. 'indexes' => array(
  6975. 'genotype_idx1' => array(
  6976. 0 => 'uniquename',
  6977. ),
  6978. 'genotype_idx2' => array(
  6979. 0 => 'name',
  6980. ),
  6981. ),
  6982. 'foreign keys' => array(
  6983. 'cvterm' => array(
  6984. 'table' => 'cvterm',
  6985. 'columns' => array(
  6986. 'type_id' => 'cvterm_id',
  6987. ),
  6988. ),
  6989. ),
  6990. 'table' => 'genotype',
  6991. 'referring_tables' => array(
  6992. 0 => 'feature_genotype',
  6993. 1 => 'genotypeprop',
  6994. 9 => 'nd_experiment_genotype',
  6995. 10 => 'phendesc',
  6996. 11 => 'phenotype_comparison',
  6997. 13 => 'phenstatement',
  6998. 14 => 'stock_genotype',
  6999. ),
  7000. );
  7001. return $description;
  7002. }
  7003. /**
  7004. * Implements hook_chado_schema_v1_2_genotypeprop()
  7005. * Purpose: To describe the structure of 'genotypeprop' to tripal
  7006. * @see tripal_core_chado_insert()
  7007. * @see tripal_core_chado_update()
  7008. * @see tripal_core_chado_select()
  7009. *
  7010. * @return
  7011. * An array describing the 'genotypeprop' table
  7012. *
  7013. * @ingroup tripal_chado_v1.2_schema_api
  7014. *
  7015. */
  7016. function tripal_core_chado_schema_v1_2_genotypeprop() {
  7017. $description = array(
  7018. 'description' => 'TODO: please describe this table!',
  7019. 'fields' => array(
  7020. 'genotypeprop_id' => array(
  7021. 'description' => 'TODO: please describe this field!',
  7022. 'type' => 'serial',
  7023. 'not null' => TRUE,
  7024. ),
  7025. 'genotype_id' => array(
  7026. 'description' => 'TODO: please describe this field!',
  7027. 'type' => 'int',
  7028. 'not null' => TRUE,
  7029. ),
  7030. 'type_id' => array(
  7031. 'description' => 'TODO: please describe this field!',
  7032. 'type' => 'int',
  7033. 'not null' => TRUE,
  7034. ),
  7035. 'value' => array(
  7036. 'description' => 'TODO: please describe this field!',
  7037. 'type' => 'text',
  7038. 'not null' => FALSE,
  7039. ),
  7040. 'rank' => array(
  7041. 'description' => 'TODO: please describe this field!',
  7042. 'type' => 'int',
  7043. 'not null' => TRUE,
  7044. 'default' => 0,
  7045. ),
  7046. ),
  7047. 'primary key' => array(
  7048. 0 => 'genotypeprop_id',
  7049. ),
  7050. 'unique keys' => array(
  7051. 'genotypeprop_c1' => array(
  7052. 0 => 'genotype_id',
  7053. 1 => 'type_id',
  7054. 2 => 'rank',
  7055. ),
  7056. ),
  7057. 'indexes' => array(
  7058. 'genotypeprop_idx1' => array(
  7059. 0 => 'genotype_id',
  7060. ),
  7061. 'genotypeprop_idx2' => array(
  7062. 0 => 'type_id',
  7063. ),
  7064. ),
  7065. 'foreign keys' => array(
  7066. 'cvterm' => array(
  7067. 'table' => 'cvterm',
  7068. 'columns' => array(
  7069. 'type_id' => 'cvterm_id',
  7070. ),
  7071. ),
  7072. 'genotype' => array(
  7073. 'table' => 'genotype',
  7074. 'columns' => array(
  7075. 'genotype_id' => 'genotype_id',
  7076. ),
  7077. ),
  7078. ),
  7079. 'table' => 'genotypeprop',
  7080. 'referring_tables' => NULL,
  7081. );
  7082. return $description;
  7083. }
  7084. /**
  7085. * Implements hook_chado_schema_v1_2_library()
  7086. * Purpose: To describe the structure of 'library' to tripal
  7087. * @see tripal_core_chado_insert()
  7088. * @see tripal_core_chado_update()
  7089. * @see tripal_core_chado_select()
  7090. *
  7091. * @return
  7092. * An array describing the 'library' table
  7093. *
  7094. * @ingroup tripal_chado_v1.2_schema_api
  7095. *
  7096. */
  7097. function tripal_core_chado_schema_v1_2_library() {
  7098. $description = array(
  7099. 'description' => 'TODO: please describe this table!',
  7100. 'fields' => array(
  7101. 'library_id' => array(
  7102. 'description' => 'TODO: please describe this field!',
  7103. 'type' => 'serial',
  7104. 'not null' => TRUE,
  7105. ),
  7106. 'organism_id' => array(
  7107. 'description' => 'TODO: please describe this field!',
  7108. 'type' => 'int',
  7109. 'not null' => TRUE,
  7110. ),
  7111. 'name' => array(
  7112. 'description' => 'TODO: please describe this field!',
  7113. 'type' => 'varchar',
  7114. 'length' => '255',
  7115. 'not null' => FALSE,
  7116. ),
  7117. 'uniquename' => array(
  7118. 'description' => 'TODO: please describe this field!',
  7119. 'type' => 'text',
  7120. 'not null' => TRUE,
  7121. ),
  7122. 'type_id' => array(
  7123. 'description' => 'TODO: please describe this field!',
  7124. 'type' => 'int',
  7125. 'not null' => TRUE,
  7126. ),
  7127. 'is_obsolete' => array(
  7128. 'description' => 'TODO: please describe this field!',
  7129. 'type' => 'int',
  7130. 'not null' => TRUE,
  7131. 'default' => 0,
  7132. ),
  7133. 'timeaccessioned' => array(
  7134. 'description' => 'TODO: please describe this field!',
  7135. 'type' => 'datetime',
  7136. 'not null' => TRUE,
  7137. 'default' => 'ow(',
  7138. ),
  7139. 'timelastmodified' => array(
  7140. 'description' => 'TODO: please describe this field!',
  7141. 'type' => 'datetime',
  7142. 'not null' => TRUE,
  7143. 'default' => 'ow(',
  7144. ),
  7145. ),
  7146. 'primary key' => array(
  7147. 0 => 'library_id',
  7148. ),
  7149. 'unique keys' => array(
  7150. 'library_c1' => array(
  7151. 0 => 'organism_id',
  7152. 1 => 'uniquename',
  7153. 2 => 'type_id',
  7154. ),
  7155. ),
  7156. 'indexes' => array(
  7157. 'library_idx1' => array(
  7158. 0 => 'organism_id',
  7159. ),
  7160. 'library_idx2' => array(
  7161. 0 => 'type_id',
  7162. ),
  7163. 'library_idx3' => array(
  7164. 0 => 'uniquename',
  7165. ),
  7166. 'library_name_ind1' => array(
  7167. 0 => 'name',
  7168. ),
  7169. ),
  7170. 'foreign keys' => array(
  7171. 'organism' => array(
  7172. 'table' => 'organism',
  7173. 'columns' => array(
  7174. 'organism_id' => 'organism_id',
  7175. ),
  7176. ),
  7177. 'cvterm' => array(
  7178. 'table' => 'cvterm',
  7179. 'columns' => array(
  7180. 'type_id' => 'cvterm_id',
  7181. ),
  7182. ),
  7183. ),
  7184. 'referring_tables' => array(
  7185. 0 => 'cell_line_library',
  7186. 1 => 'library_cvterm',
  7187. 2 => 'library_dbxref',
  7188. 3 => 'library_feature',
  7189. 4 => 'library_pub',
  7190. 5 => 'library_synonym',
  7191. 6 => 'libraryprop',
  7192. ),
  7193. 'table' => 'library',
  7194. );
  7195. return $description;
  7196. }
  7197. /**
  7198. * Implements hook_chado_schema_v1_2_library_cvterm()
  7199. * Purpose: To describe the structure of 'library_cvterm' to tripal
  7200. * @see tripal_core_chado_insert()
  7201. * @see tripal_core_chado_update()
  7202. * @see tripal_core_chado_select()
  7203. *
  7204. * @return
  7205. * An array describing the 'library_cvterm' table
  7206. *
  7207. * @ingroup tripal_chado_v1.2_schema_api
  7208. *
  7209. */
  7210. function tripal_core_chado_schema_v1_2_library_cvterm() {
  7211. $description = array(
  7212. 'description' => 'TODO: please describe this table!',
  7213. 'fields' => array(
  7214. 'library_cvterm_id' => array(
  7215. 'description' => 'TODO: please describe this field!',
  7216. 'type' => 'serial',
  7217. 'not null' => TRUE,
  7218. ),
  7219. 'library_id' => array(
  7220. 'description' => 'TODO: please describe this field!',
  7221. 'type' => 'int',
  7222. 'not null' => TRUE,
  7223. ),
  7224. 'cvterm_id' => array(
  7225. 'description' => 'TODO: please describe this field!',
  7226. 'type' => 'int',
  7227. 'not null' => TRUE,
  7228. ),
  7229. 'pub_id' => array(
  7230. 'description' => 'TODO: please describe this field!',
  7231. 'type' => 'int',
  7232. 'not null' => TRUE,
  7233. ),
  7234. ),
  7235. 'primary key' => array(
  7236. 0 => 'library_cvterm_id',
  7237. ),
  7238. 'unique keys' => array(
  7239. 'library_cvterm_c1' => array(
  7240. 0 => 'library_id',
  7241. 1 => 'cvterm_id',
  7242. 2 => 'pub_id',
  7243. ),
  7244. ),
  7245. 'indexes' => array(
  7246. 'library_cvterm_idx1' => array(
  7247. 0 => 'library_id',
  7248. ),
  7249. 'library_cvterm_idx2' => array(
  7250. 0 => 'cvterm_id',
  7251. ),
  7252. 'library_cvterm_idx3' => array(
  7253. 0 => 'pub_id',
  7254. ),
  7255. ),
  7256. 'foreign keys' => array(
  7257. 'cvterm' => array(
  7258. 'table' => 'cvterm',
  7259. 'columns' => array(
  7260. 'cvterm_id' => 'cvterm_id',
  7261. ),
  7262. ),
  7263. 'pub' => array(
  7264. 'table' => 'pub',
  7265. 'columns' => array(
  7266. 'pub_id' => 'pub_id',
  7267. ),
  7268. ),
  7269. 'library' => array(
  7270. 'table' => 'library',
  7271. 'columns' => array(
  7272. 'library_id' => 'library_id',
  7273. ),
  7274. ),
  7275. ),
  7276. 'table' => 'library_cvterm',
  7277. 'referring_tables' => NULL,
  7278. );
  7279. return $description;
  7280. }
  7281. /**
  7282. * Implements hook_chado_schema_v1_2_library_dbxref()
  7283. * Purpose: To describe the structure of 'library_dbxref' to tripal
  7284. * @see tripal_core_chado_insert()
  7285. * @see tripal_core_chado_update()
  7286. * @see tripal_core_chado_select()
  7287. *
  7288. * @return
  7289. * An array describing the 'library_dbxref' table
  7290. *
  7291. * @ingroup tripal_chado_v1.2_schema_api
  7292. *
  7293. */
  7294. function tripal_core_chado_schema_v1_2_library_dbxref() {
  7295. $description = array(
  7296. 'description' => 'TODO: please describe this table!',
  7297. 'fields' => array(
  7298. 'library_dbxref_id' => array(
  7299. 'description' => 'TODO: please describe this field!',
  7300. 'type' => 'serial',
  7301. 'not null' => TRUE,
  7302. ),
  7303. 'library_id' => array(
  7304. 'description' => 'TODO: please describe this field!',
  7305. 'type' => 'int',
  7306. 'not null' => TRUE,
  7307. ),
  7308. 'dbxref_id' => array(
  7309. 'description' => 'TODO: please describe this field!',
  7310. 'type' => 'int',
  7311. 'not null' => TRUE,
  7312. ),
  7313. 'is_current' => array(
  7314. 'description' => 'TODO: please describe this field!',
  7315. 'type' => 'boolean',
  7316. 'not null' => TRUE,
  7317. 'default' => 'ru',
  7318. ),
  7319. ),
  7320. 'primary key' => array(
  7321. 0 => 'library_dbxref_id',
  7322. ),
  7323. 'unique keys' => array(
  7324. 'library_dbxref_c1' => array(
  7325. 0 => 'library_id',
  7326. 1 => 'dbxref_id',
  7327. ),
  7328. ),
  7329. 'indexes' => array(
  7330. 'library_dbxref_idx1' => array(
  7331. 0 => 'library_id',
  7332. ),
  7333. 'library_dbxref_idx2' => array(
  7334. 0 => 'dbxref_id',
  7335. ),
  7336. ),
  7337. 'foreign keys' => array(
  7338. 'dbxref' => array(
  7339. 'table' => 'dbxref',
  7340. 'columns' => array(
  7341. 'dbxref_id' => 'dbxref_id',
  7342. ),
  7343. ),
  7344. 'library' => array(
  7345. 'table' => 'library',
  7346. 'columns' => array(
  7347. 'library_id' => 'library_id',
  7348. ),
  7349. ),
  7350. ),
  7351. 'table' => 'library_dbxref',
  7352. 'referring_tables' => NULL,
  7353. );
  7354. return $description;
  7355. }
  7356. /**
  7357. * Implements hook_chado_schema_v1_2_library_feature()
  7358. * Purpose: To describe the structure of 'library_feature' to tripal
  7359. * @see tripal_core_chado_insert()
  7360. * @see tripal_core_chado_update()
  7361. * @see tripal_core_chado_select()
  7362. *
  7363. * @return
  7364. * An array describing the 'library_feature' table
  7365. *
  7366. * @ingroup tripal_chado_v1.2_schema_api
  7367. *
  7368. */
  7369. function tripal_core_chado_schema_v1_2_library_feature() {
  7370. $description = array(
  7371. 'description' => 'TODO: please describe this table!',
  7372. 'fields' => array(
  7373. 'library_feature_id' => array(
  7374. 'description' => 'TODO: please describe this field!',
  7375. 'type' => 'serial',
  7376. 'not null' => TRUE,
  7377. ),
  7378. 'library_id' => array(
  7379. 'description' => 'TODO: please describe this field!',
  7380. 'type' => 'int',
  7381. 'not null' => TRUE,
  7382. ),
  7383. 'feature_id' => array(
  7384. 'description' => 'TODO: please describe this field!',
  7385. 'type' => 'int',
  7386. 'not null' => TRUE,
  7387. ),
  7388. ),
  7389. 'primary key' => array(
  7390. 0 => 'library_feature_id',
  7391. ),
  7392. 'unique keys' => array(
  7393. 'library_feature_c1' => array(
  7394. 0 => 'library_id',
  7395. 1 => 'feature_id',
  7396. ),
  7397. ),
  7398. 'indexes' => array(
  7399. 'library_feature_idx1' => array(
  7400. 0 => 'library_id',
  7401. ),
  7402. 'library_feature_idx2' => array(
  7403. 0 => 'feature_id',
  7404. ),
  7405. ),
  7406. 'foreign keys' => array(
  7407. 'feature' => array(
  7408. 'table' => 'feature',
  7409. 'columns' => array(
  7410. 'feature_id' => 'feature_id',
  7411. ),
  7412. ),
  7413. 'library' => array(
  7414. 'table' => 'library',
  7415. 'columns' => array(
  7416. 'library_id' => 'library_id',
  7417. ),
  7418. ),
  7419. ),
  7420. 'table' => 'library_feature',
  7421. 'referring_tables' => NULL,
  7422. );
  7423. return $description;
  7424. }
  7425. /**
  7426. * Implements hook_chado_schema_v1_2_library_pub()
  7427. * Purpose: To describe the structure of 'library_pub' to tripal
  7428. * @see tripal_core_chado_insert()
  7429. * @see tripal_core_chado_update()
  7430. * @see tripal_core_chado_select()
  7431. *
  7432. * @return
  7433. * An array describing the 'library_pub' table
  7434. *
  7435. * @ingroup tripal_chado_v1.2_schema_api
  7436. *
  7437. */
  7438. function tripal_core_chado_schema_v1_2_library_pub() {
  7439. $description = array(
  7440. 'description' => 'TODO: please describe this table!',
  7441. 'fields' => array(
  7442. 'library_pub_id' => array(
  7443. 'description' => 'TODO: please describe this field!',
  7444. 'type' => 'serial',
  7445. 'not null' => TRUE,
  7446. ),
  7447. 'library_id' => array(
  7448. 'description' => 'TODO: please describe this field!',
  7449. 'type' => 'int',
  7450. 'not null' => TRUE,
  7451. ),
  7452. 'pub_id' => array(
  7453. 'description' => 'TODO: please describe this field!',
  7454. 'type' => 'int',
  7455. 'not null' => TRUE,
  7456. ),
  7457. ),
  7458. 'primary key' => array(
  7459. 0 => 'library_pub_id',
  7460. ),
  7461. 'unique keys' => array(
  7462. 'library_pub_c1' => array(
  7463. 0 => 'library_id',
  7464. 1 => 'pub_id',
  7465. ),
  7466. ),
  7467. 'indexes' => array(
  7468. 'library_pub_idx1' => array(
  7469. 0 => 'library_id',
  7470. ),
  7471. 'library_pub_idx2' => array(
  7472. 0 => 'pub_id',
  7473. ),
  7474. ),
  7475. 'foreign keys' => array(
  7476. 'pub' => array(
  7477. 'table' => 'pub',
  7478. 'columns' => array(
  7479. 'pub_id' => 'pub_id',
  7480. ),
  7481. ),
  7482. 'library' => array(
  7483. 'table' => 'library',
  7484. 'columns' => array(
  7485. 'library_id' => 'library_id',
  7486. ),
  7487. ),
  7488. ),
  7489. 'table' => 'library_pub',
  7490. 'referring_tables' => NULL,
  7491. );
  7492. return $description;
  7493. }
  7494. /**
  7495. * Implements hook_chado_schema_v1_2_library_synonym()
  7496. * Purpose: To describe the structure of 'library_synonym' to tripal
  7497. * @see tripal_core_chado_insert()
  7498. * @see tripal_core_chado_update()
  7499. * @see tripal_core_chado_select()
  7500. *
  7501. * @return
  7502. * An array describing the 'library_synonym' table
  7503. *
  7504. * @ingroup tripal_chado_v1.2_schema_api
  7505. *
  7506. */
  7507. function tripal_core_chado_schema_v1_2_library_synonym() {
  7508. $description = array(
  7509. 'description' => 'TODO: please describe this table!',
  7510. 'fields' => array(
  7511. 'library_synonym_id' => array(
  7512. 'description' => 'TODO: please describe this field!',
  7513. 'type' => 'serial',
  7514. 'not null' => TRUE,
  7515. ),
  7516. 'synonym_id' => array(
  7517. 'description' => 'TODO: please describe this field!',
  7518. 'type' => 'int',
  7519. 'not null' => TRUE,
  7520. ),
  7521. 'library_id' => array(
  7522. 'description' => 'TODO: please describe this field!',
  7523. 'type' => 'int',
  7524. 'not null' => TRUE,
  7525. ),
  7526. 'pub_id' => array(
  7527. 'description' => 'TODO: please describe this field!',
  7528. 'type' => 'int',
  7529. 'not null' => TRUE,
  7530. ),
  7531. 'is_current' => array(
  7532. 'description' => 'TODO: please describe this field!',
  7533. 'type' => 'boolean',
  7534. 'not null' => TRUE,
  7535. 'default' => 'ru',
  7536. ),
  7537. 'is_internal' => array(
  7538. 'description' => 'TODO: please describe this field!',
  7539. 'type' => 'boolean',
  7540. 'not null' => TRUE,
  7541. 'default' => 'als',
  7542. ),
  7543. ),
  7544. 'primary key' => array(
  7545. 0 => 'library_synonym_id',
  7546. ),
  7547. 'unique keys' => array(
  7548. 'library_synonym_c1' => array(
  7549. 0 => 'synonym_id',
  7550. 1 => 'library_id',
  7551. 2 => 'pub_id',
  7552. ),
  7553. ),
  7554. 'indexes' => array(
  7555. 'library_synonym_idx1' => array(
  7556. 0 => 'synonym_id',
  7557. ),
  7558. 'library_synonym_idx2' => array(
  7559. 0 => 'library_id',
  7560. ),
  7561. 'library_synonym_idx3' => array(
  7562. 0 => 'pub_id',
  7563. ),
  7564. ),
  7565. 'foreign keys' => array(
  7566. 'pub' => array(
  7567. 'table' => 'pub',
  7568. 'columns' => array(
  7569. 'pub_id' => 'pub_id',
  7570. ),
  7571. ),
  7572. 'synonym' => array(
  7573. 'table' => 'synonym',
  7574. 'columns' => array(
  7575. 'synonym_id' => 'synonym_id',
  7576. ),
  7577. ),
  7578. 'library' => array(
  7579. 'table' => 'library',
  7580. 'columns' => array(
  7581. 'library_id' => 'library_id',
  7582. ),
  7583. ),
  7584. ),
  7585. 'table' => 'library_synonym',
  7586. 'referring_tables' => NULL,
  7587. );
  7588. return $description;
  7589. }
  7590. /**
  7591. * Implements hook_chado_schema_v1_2_libraryprop()
  7592. * Purpose: To describe the structure of 'libraryprop' to tripal
  7593. * @see tripal_core_chado_insert()
  7594. * @see tripal_core_chado_update()
  7595. * @see tripal_core_chado_select()
  7596. *
  7597. * @return
  7598. * An array describing the 'libraryprop' table
  7599. *
  7600. * @ingroup tripal_chado_v1.2_schema_api
  7601. *
  7602. */
  7603. function tripal_core_chado_schema_v1_2_libraryprop() {
  7604. $description = array(
  7605. 'description' => 'TODO: please describe this table!',
  7606. 'fields' => array(
  7607. 'libraryprop_id' => array(
  7608. 'description' => 'TODO: please describe this field!',
  7609. 'type' => 'serial',
  7610. 'not null' => TRUE,
  7611. ),
  7612. 'library_id' => array(
  7613. 'description' => 'TODO: please describe this field!',
  7614. 'type' => 'int',
  7615. 'not null' => TRUE,
  7616. ),
  7617. 'type_id' => array(
  7618. 'description' => 'TODO: please describe this field!',
  7619. 'type' => 'int',
  7620. 'not null' => TRUE,
  7621. ),
  7622. 'value' => array(
  7623. 'description' => 'TODO: please describe this field!',
  7624. 'type' => 'text',
  7625. 'not null' => FALSE,
  7626. ),
  7627. 'rank' => array(
  7628. 'description' => 'TODO: please describe this field!',
  7629. 'type' => 'int',
  7630. 'not null' => TRUE,
  7631. 'default' => 0,
  7632. ),
  7633. ),
  7634. 'primary key' => array(
  7635. 0 => 'libraryprop_id',
  7636. ),
  7637. 'unique keys' => array(
  7638. 'libraryprop_c1' => array(
  7639. 0 => 'library_id',
  7640. 1 => 'type_id',
  7641. 2 => 'rank',
  7642. ),
  7643. ),
  7644. 'indexes' => array(
  7645. 'libraryprop_idx1' => array(
  7646. 0 => 'library_id',
  7647. ),
  7648. 'libraryprop_idx2' => array(
  7649. 0 => 'type_id',
  7650. ),
  7651. ),
  7652. 'foreign keys' => array(
  7653. 'cvterm' => array(
  7654. 'table' => 'cvterm',
  7655. 'columns' => array(
  7656. 'type_id' => 'cvterm_id',
  7657. ),
  7658. ),
  7659. 'library' => array(
  7660. 'table' => 'library',
  7661. 'columns' => array(
  7662. 'library_id' => 'library_id',
  7663. ),
  7664. ),
  7665. ),
  7666. 'table' => 'libraryprop',
  7667. 'referring_tables' => array(
  7668. 0 => 'libraryprop_pub',
  7669. ),
  7670. );
  7671. return $description;
  7672. }
  7673. /**
  7674. * Implements hook_chado_schema_v1_2_libraryprop_pub()
  7675. * Purpose: To describe the structure of 'libraryprop_pub' to tripal
  7676. * @see tripal_core_chado_insert()
  7677. * @see tripal_core_chado_update()
  7678. * @see tripal_core_chado_select()
  7679. *
  7680. * @return
  7681. * An array describing the 'libraryprop_pub' table
  7682. *
  7683. * @ingroup tripal_chado_v1.2_schema_api
  7684. *
  7685. */
  7686. function tripal_core_chado_schema_v1_2_libraryprop_pub() {
  7687. $description = array(
  7688. 'description' => 'TODO: please describe this table!',
  7689. 'fields' => array(
  7690. 'libraryprop_pub_id' => array(
  7691. 'description' => 'TODO: please describe this field!',
  7692. 'type' => 'serial',
  7693. 'not null' => TRUE,
  7694. ),
  7695. 'libraryprop_id' => array(
  7696. 'description' => 'TODO: please describe this field!',
  7697. 'type' => 'int',
  7698. 'not null' => TRUE,
  7699. ),
  7700. 'pub_id' => array(
  7701. 'description' => 'TODO: please describe this field!',
  7702. 'type' => 'int',
  7703. 'not null' => TRUE,
  7704. ),
  7705. ),
  7706. 'primary key' => array(
  7707. 0 => 'libraryprop_pub_id',
  7708. ),
  7709. 'unique keys' => array(
  7710. 'libraryprop_pub_c1' => array(
  7711. 0 => 'libraryprop_id',
  7712. 1 => 'pub_id',
  7713. ),
  7714. ),
  7715. 'indexes' => array(
  7716. 'libraryprop_pub_idx1' => array(
  7717. 0 => 'libraryprop_id',
  7718. ),
  7719. 'libraryprop_pub_idx2' => array(
  7720. 0 => 'pub_id',
  7721. ),
  7722. ),
  7723. 'foreign keys' => array(
  7724. 'pub' => array(
  7725. 'table' => 'pub',
  7726. 'columns' => array(
  7727. 'pub_id' => 'pub_id',
  7728. ),
  7729. ),
  7730. 'libraryprop' => array(
  7731. 'table' => 'libraryprop',
  7732. 'columns' => array(
  7733. 'libraryprop_id' => 'libraryprop_id',
  7734. ),
  7735. ),
  7736. ),
  7737. 'table' => 'libraryprop_pub',
  7738. 'referring_tables' => NULL,
  7739. );
  7740. return $description;
  7741. }
  7742. /**
  7743. * Implements hook_chado_schema_v1_2_magedocumentation()
  7744. * Purpose: To describe the structure of 'magedocumentation' to tripal
  7745. * @see tripal_core_chado_insert()
  7746. * @see tripal_core_chado_update()
  7747. * @see tripal_core_chado_select()
  7748. *
  7749. * @return
  7750. * An array describing the 'magedocumentation' table
  7751. *
  7752. * @ingroup tripal_chado_v1.2_schema_api
  7753. *
  7754. */
  7755. function tripal_core_chado_schema_v1_2_magedocumentation() {
  7756. $description = array(
  7757. 'description' => 'TODO: please describe this table!',
  7758. 'fields' => array(
  7759. 'magedocumentation_id' => array(
  7760. 'description' => 'TODO: please describe this field!',
  7761. 'type' => 'serial',
  7762. 'not null' => TRUE,
  7763. ),
  7764. 'mageml_id' => array(
  7765. 'description' => 'TODO: please describe this field!',
  7766. 'type' => 'int',
  7767. 'not null' => TRUE,
  7768. ),
  7769. 'tableinfo_id' => array(
  7770. 'description' => 'TODO: please describe this field!',
  7771. 'type' => 'int',
  7772. 'not null' => TRUE,
  7773. ),
  7774. 'row_id' => array(
  7775. 'description' => 'TODO: please describe this field!',
  7776. 'type' => 'int',
  7777. 'not null' => TRUE,
  7778. ),
  7779. 'mageidentifier' => array(
  7780. 'description' => 'TODO: please describe this field!',
  7781. 'type' => 'text',
  7782. 'not null' => TRUE,
  7783. ),
  7784. ),
  7785. 'primary key' => array(
  7786. 0 => 'magedocumentation_id',
  7787. ),
  7788. 'indexes' => array(
  7789. 'magedocumentation_idx1' => array(
  7790. 0 => 'mageml_id',
  7791. ),
  7792. 'magedocumentation_idx2' => array(
  7793. 0 => 'tableinfo_id',
  7794. ),
  7795. 'magedocumentation_idx3' => array(
  7796. 0 => 'row_id',
  7797. ),
  7798. ),
  7799. 'foreign keys' => array(
  7800. 'tableinfo' => array(
  7801. 'table' => 'tableinfo',
  7802. 'columns' => array(
  7803. 'tableinfo_id' => 'tableinfo_id',
  7804. ),
  7805. ),
  7806. 'mageml' => array(
  7807. 'table' => 'mageml',
  7808. 'columns' => array(
  7809. 'mageml_id' => 'mageml_id',
  7810. ),
  7811. ),
  7812. ),
  7813. 'table' => 'magedocumentation',
  7814. 'referring_tables' => NULL,
  7815. );
  7816. return $description;
  7817. }
  7818. /**
  7819. * Implements hook_chado_schema_v1_2_mageml()
  7820. * Purpose: To describe the structure of 'mageml' to tripal
  7821. * @see tripal_core_chado_insert()
  7822. * @see tripal_core_chado_update()
  7823. * @see tripal_core_chado_select()
  7824. *
  7825. * @return
  7826. * An array describing the 'mageml' table
  7827. *
  7828. * @ingroup tripal_chado_v1.2_schema_api
  7829. *
  7830. */
  7831. function tripal_core_chado_schema_v1_2_mageml() {
  7832. $description = array(
  7833. 'description' => 'TODO: please describe this table!',
  7834. 'fields' => array(
  7835. 'mageml_id' => array(
  7836. 'description' => 'TODO: please describe this field!',
  7837. 'type' => 'serial',
  7838. 'not null' => TRUE,
  7839. ),
  7840. 'mage_package' => array(
  7841. 'description' => 'TODO: please describe this field!',
  7842. 'type' => 'text',
  7843. 'not null' => TRUE,
  7844. ),
  7845. 'mage_ml' => array(
  7846. 'description' => 'TODO: please describe this field!',
  7847. 'type' => 'text',
  7848. 'not null' => TRUE,
  7849. ),
  7850. ),
  7851. 'primary key' => array(
  7852. 0 => 'mageml_id',
  7853. ),
  7854. 'foreign keys' => array(
  7855. ),
  7856. 'table' => 'mageml',
  7857. 'referring_tables' => array(
  7858. 0 => 'magedocumentation',
  7859. ),
  7860. );
  7861. return $description;
  7862. }
  7863. /**
  7864. * Implements hook_chado_schema_v1_2_nd_experiment()
  7865. * Purpose: To describe the structure of 'nd_experiment' to tripal
  7866. * @see tripal_core_chado_insert()
  7867. * @see tripal_core_chado_update()
  7868. * @see tripal_core_chado_select()
  7869. *
  7870. * @return
  7871. * An array describing the 'nd_experiment' table
  7872. *
  7873. * @ingroup tripal_chado_v1.2_schema_api
  7874. *
  7875. */
  7876. function tripal_core_chado_schema_v1_2_nd_experiment() {
  7877. $description = array(
  7878. 'description' => 'TODO: please describe this table!',
  7879. 'fields' => array(
  7880. 'nd_experiment_id' => array(
  7881. 'description' => 'TODO: please describe this field!',
  7882. 'type' => 'serial',
  7883. 'not null' => TRUE,
  7884. ),
  7885. 'nd_geolocation_id' => array(
  7886. 'description' => 'TODO: please describe this field!',
  7887. 'type' => 'int',
  7888. 'not null' => TRUE,
  7889. ),
  7890. 'type_id' => array(
  7891. 'description' => 'TODO: please describe this field!',
  7892. 'type' => 'int',
  7893. 'not null' => TRUE,
  7894. ),
  7895. ),
  7896. 'primary key' => array(
  7897. 0 => 'nd_experiment_id',
  7898. ),
  7899. 'foreign keys' => array(
  7900. 'cvterm' => array(
  7901. 'table' => 'cvterm',
  7902. 'columns' => array(
  7903. 'type_id' => 'cvterm_id',
  7904. ),
  7905. ),
  7906. 'nd_geolocation' => array(
  7907. 'table' => 'nd_geolocation',
  7908. 'columns' => array(
  7909. 'nd_geolocation_id' => 'nd_geolocation_id',
  7910. ),
  7911. ),
  7912. ),
  7913. 'table' => 'nd_experiment',
  7914. 'referring_tables' => array(
  7915. 0 => 'nd_experiment_contact',
  7916. 1 => 'nd_experiment_dbxref',
  7917. 2 => 'nd_experiment_genotype',
  7918. 3 => 'nd_experiment_phenotype',
  7919. 4 => 'nd_experiment_project',
  7920. 5 => 'nd_experiment_protocol',
  7921. 6 => 'nd_experiment_pub',
  7922. 7 => 'nd_experiment_stock',
  7923. 8 => 'nd_experimentprop',
  7924. ),
  7925. );
  7926. return $description;
  7927. }
  7928. /**
  7929. * Implements hook_chado_schema_v1_2_nd_experiment_contact()
  7930. * Purpose: To describe the structure of 'nd_experiment_contact' to tripal
  7931. * @see tripal_core_chado_insert()
  7932. * @see tripal_core_chado_update()
  7933. * @see tripal_core_chado_select()
  7934. *
  7935. * @return
  7936. * An array describing the 'nd_experiment_contact' table
  7937. *
  7938. * @ingroup tripal_chado_v1.2_schema_api
  7939. *
  7940. */
  7941. function tripal_core_chado_schema_v1_2_nd_experiment_contact() {
  7942. $description = array(
  7943. 'description' => 'TODO: please describe this table!',
  7944. 'fields' => array(
  7945. 'nd_experiment_contact_id' => array(
  7946. 'description' => 'TODO: please describe this field!',
  7947. 'type' => 'serial',
  7948. 'not null' => TRUE,
  7949. ),
  7950. 'nd_experiment_id' => array(
  7951. 'description' => 'TODO: please describe this field!',
  7952. 'type' => 'int',
  7953. 'not null' => TRUE,
  7954. ),
  7955. 'contact_id' => array(
  7956. 'description' => 'TODO: please describe this field!',
  7957. 'type' => 'int',
  7958. 'not null' => TRUE,
  7959. ),
  7960. ),
  7961. 'primary key' => array(
  7962. 0 => 'nd_experiment_contact_id',
  7963. ),
  7964. 'foreign keys' => array(
  7965. 'contact' => array(
  7966. 'table' => 'contact',
  7967. 'columns' => array(
  7968. 'contact_id' => 'contact_id',
  7969. ),
  7970. ),
  7971. 'nd_experiment' => array(
  7972. 'table' => 'nd_experiment',
  7973. 'columns' => array(
  7974. 'nd_experiment_id' => 'nd_experiment_id',
  7975. ),
  7976. ),
  7977. ),
  7978. 'table' => 'nd_experiment_contact',
  7979. 'referring_tables' => NULL,
  7980. );
  7981. return $description;
  7982. }
  7983. /**
  7984. * Implements hook_chado_schema_v1_2_nd_experiment_dbxref()
  7985. * Purpose: To describe the structure of 'nd_experiment_dbxref' to tripal
  7986. * @see tripal_core_chado_insert()
  7987. * @see tripal_core_chado_update()
  7988. * @see tripal_core_chado_select()
  7989. *
  7990. * @return
  7991. * An array describing the 'nd_experiment_dbxref' table
  7992. *
  7993. * @ingroup tripal_chado_v1.2_schema_api
  7994. *
  7995. */
  7996. function tripal_core_chado_schema_v1_2_nd_experiment_dbxref() {
  7997. $description = array(
  7998. 'description' => 'TODO: please describe this table!',
  7999. 'fields' => array(
  8000. 'nd_experiment_dbxref_id' => array(
  8001. 'description' => 'TODO: please describe this field!',
  8002. 'type' => 'serial',
  8003. 'not null' => TRUE,
  8004. ),
  8005. 'nd_experiment_id' => array(
  8006. 'description' => 'TODO: please describe this field!',
  8007. 'type' => 'int',
  8008. 'not null' => TRUE,
  8009. ),
  8010. 'dbxref_id' => array(
  8011. 'description' => 'TODO: please describe this field!',
  8012. 'type' => 'int',
  8013. 'not null' => TRUE,
  8014. ),
  8015. ),
  8016. 'primary key' => array(
  8017. 0 => 'nd_experiment_dbxref_id',
  8018. ),
  8019. 'foreign keys' => array(
  8020. 'dbxref' => array(
  8021. 'table' => 'dbxref',
  8022. 'columns' => array(
  8023. 'dbxref_id' => 'dbxref_id',
  8024. ),
  8025. ),
  8026. 'nd_experiment' => array(
  8027. 'table' => 'nd_experiment',
  8028. 'columns' => array(
  8029. 'nd_experiment_id' => 'nd_experiment_id',
  8030. ),
  8031. ),
  8032. ),
  8033. 'table' => 'nd_experiment_dbxref',
  8034. 'referring_tables' => NULL,
  8035. );
  8036. return $description;
  8037. }
  8038. /**
  8039. * Implements hook_chado_schema_v1_2_nd_experiment_genotype()
  8040. * Purpose: To describe the structure of 'nd_experiment_genotype' to tripal
  8041. * @see tripal_core_chado_insert()
  8042. * @see tripal_core_chado_update()
  8043. * @see tripal_core_chado_select()
  8044. *
  8045. * @return
  8046. * An array describing the 'nd_experiment_genotype' table
  8047. *
  8048. * @ingroup tripal_chado_v1.2_schema_api
  8049. *
  8050. */
  8051. function tripal_core_chado_schema_v1_2_nd_experiment_genotype() {
  8052. $description = array(
  8053. 'description' => 'TODO: please describe this table!',
  8054. 'fields' => array(
  8055. 'nd_experiment_genotype_id' => array(
  8056. 'description' => 'TODO: please describe this field!',
  8057. 'type' => 'serial',
  8058. 'not null' => TRUE,
  8059. ),
  8060. 'nd_experiment_id' => array(
  8061. 'description' => 'TODO: please describe this field!',
  8062. 'type' => 'int',
  8063. 'not null' => TRUE,
  8064. ),
  8065. 'genotype_id' => array(
  8066. 'description' => 'TODO: please describe this field!',
  8067. 'type' => 'int',
  8068. 'not null' => TRUE,
  8069. ),
  8070. ),
  8071. 'primary key' => array(
  8072. 0 => 'nd_experiment_genotype_id',
  8073. ),
  8074. 'unique keys' => array(
  8075. 'nd_experiment_genotype_c1' => array(
  8076. 0 => 'nd_experiment_id',
  8077. 1 => 'genotype_id',
  8078. ),
  8079. ),
  8080. 'foreign keys' => array(
  8081. 'genotype' => array(
  8082. 'table' => 'genotype',
  8083. 'columns' => array(
  8084. 'genotype_id' => 'genotype_id',
  8085. ),
  8086. ),
  8087. 'nd_experiment' => array(
  8088. 'table' => 'nd_experiment',
  8089. 'columns' => array(
  8090. 'nd_experiment_id' => 'nd_experiment_id',
  8091. ),
  8092. ),
  8093. ),
  8094. 'table' => 'nd_experiment_genotype',
  8095. 'referring_tables' => NULL,
  8096. );
  8097. return $description;
  8098. }
  8099. /**
  8100. * Implements hook_chado_schema_v1_2_nd_experiment_phenotype()
  8101. * Purpose: To describe the structure of 'nd_experiment_phenotype' to tripal
  8102. * @see tripal_core_chado_insert()
  8103. * @see tripal_core_chado_update()
  8104. * @see tripal_core_chado_select()
  8105. *
  8106. * @return
  8107. * An array describing the 'nd_experiment_phenotype' table
  8108. *
  8109. * @ingroup tripal_chado_v1.2_schema_api
  8110. *
  8111. */
  8112. function tripal_core_chado_schema_v1_2_nd_experiment_phenotype() {
  8113. $description = array(
  8114. 'description' => 'TODO: please describe this table!',
  8115. 'fields' => array(
  8116. 'nd_experiment_phenotype_id' => array(
  8117. 'description' => 'TODO: please describe this field!',
  8118. 'type' => 'serial',
  8119. 'not null' => TRUE,
  8120. ),
  8121. 'nd_experiment_id' => array(
  8122. 'description' => 'TODO: please describe this field!',
  8123. 'type' => 'int',
  8124. 'not null' => TRUE,
  8125. ),
  8126. 'phenotype_id' => array(
  8127. 'description' => 'TODO: please describe this field!',
  8128. 'type' => 'int',
  8129. 'not null' => TRUE,
  8130. ),
  8131. ),
  8132. 'primary key' => array(
  8133. 0 => 'nd_experiment_phenotype_id',
  8134. ),
  8135. 'unique keys' => array(
  8136. 'nd_experiment_phenotype_c1' => array(
  8137. 0 => 'nd_experiment_id',
  8138. 1 => 'phenotype_id',
  8139. ),
  8140. ),
  8141. 'foreign keys' => array(
  8142. 'phenotype' => array(
  8143. 'table' => 'phenotype',
  8144. 'columns' => array(
  8145. 'phenotype_id' => 'phenotype_id',
  8146. ),
  8147. ),
  8148. 'nd_experiment' => array(
  8149. 'table' => 'nd_experiment',
  8150. 'columns' => array(
  8151. 'nd_experiment_id' => 'nd_experiment_id',
  8152. ),
  8153. ),
  8154. ),
  8155. 'table' => 'nd_experiment_phenotype',
  8156. 'referring_tables' => NULL,
  8157. );
  8158. return $description;
  8159. }
  8160. /**
  8161. * Implements hook_chado_schema_v1_2_nd_experiment_project()
  8162. * Purpose: To describe the structure of 'nd_experiment_project' to tripal
  8163. * @see tripal_core_chado_insert()
  8164. * @see tripal_core_chado_update()
  8165. * @see tripal_core_chado_select()
  8166. *
  8167. * @return
  8168. * An array describing the 'nd_experiment_project' table
  8169. *
  8170. * @ingroup tripal_chado_v1.2_schema_api
  8171. *
  8172. */
  8173. function tripal_core_chado_schema_v1_2_nd_experiment_project() {
  8174. $description = array(
  8175. 'description' => 'TODO: please describe this table!',
  8176. 'fields' => array(
  8177. 'nd_experiment_project_id' => array(
  8178. 'description' => 'TODO: please describe this field!',
  8179. 'type' => 'serial',
  8180. 'not null' => TRUE,
  8181. ),
  8182. 'project_id' => array(
  8183. 'description' => 'TODO: please describe this field!',
  8184. 'type' => 'int',
  8185. 'not null' => TRUE,
  8186. ),
  8187. 'nd_experiment_id' => array(
  8188. 'description' => 'TODO: please describe this field!',
  8189. 'type' => 'int',
  8190. 'not null' => TRUE,
  8191. ),
  8192. ),
  8193. 'primary key' => array(
  8194. 0 => 'nd_experiment_project_id',
  8195. ),
  8196. 'foreign keys' => array(
  8197. 'project' => array(
  8198. 'table' => 'project',
  8199. 'columns' => array(
  8200. 'project_id' => 'project_id',
  8201. ),
  8202. ),
  8203. 'nd_experiment' => array(
  8204. 'table' => 'nd_experiment',
  8205. 'columns' => array(
  8206. 'nd_experiment_id' => 'nd_experiment_id',
  8207. ),
  8208. ),
  8209. ),
  8210. 'table' => 'nd_experiment_project',
  8211. 'referring_tables' => NULL,
  8212. );
  8213. return $description;
  8214. }
  8215. /**
  8216. * Implements hook_chado_schema_v1_2_nd_experiment_protocol()
  8217. * Purpose: To describe the structure of 'nd_experiment_protocol' to tripal
  8218. * @see tripal_core_chado_insert()
  8219. * @see tripal_core_chado_update()
  8220. * @see tripal_core_chado_select()
  8221. *
  8222. * @return
  8223. * An array describing the 'nd_experiment_protocol' table
  8224. *
  8225. * @ingroup tripal_chado_v1.2_schema_api
  8226. *
  8227. */
  8228. function tripal_core_chado_schema_v1_2_nd_experiment_protocol() {
  8229. $description = array(
  8230. 'description' => 'TODO: please describe this table!',
  8231. 'fields' => array(
  8232. 'nd_experiment_protocol_id' => array(
  8233. 'description' => 'TODO: please describe this field!',
  8234. 'type' => 'serial',
  8235. 'not null' => TRUE,
  8236. ),
  8237. 'nd_experiment_id' => array(
  8238. 'description' => 'TODO: please describe this field!',
  8239. 'type' => 'int',
  8240. 'not null' => TRUE,
  8241. ),
  8242. 'nd_protocol_id' => array(
  8243. 'description' => 'TODO: please describe this field!',
  8244. 'type' => 'int',
  8245. 'not null' => TRUE,
  8246. ),
  8247. ),
  8248. 'primary key' => array(
  8249. 0 => 'nd_experiment_protocol_id',
  8250. ),
  8251. 'foreign keys' => array(
  8252. 'nd_experiment' => array(
  8253. 'table' => 'nd_experiment',
  8254. 'columns' => array(
  8255. 'nd_experiment_id' => 'nd_experiment_id',
  8256. ),
  8257. ),
  8258. 'nd_protocol' => array(
  8259. 'table' => 'nd_protocol',
  8260. 'columns' => array(
  8261. 'nd_protocol_id' => 'nd_protocol_id',
  8262. ),
  8263. ),
  8264. ),
  8265. 'table' => 'nd_experiment_protocol',
  8266. 'referring_tables' => NULL,
  8267. );
  8268. return $description;
  8269. }
  8270. /**
  8271. * Implements hook_chado_schema_v1_2_nd_experiment_pub()
  8272. * Purpose: To describe the structure of 'nd_experiment_pub' to tripal
  8273. * @see tripal_core_chado_insert()
  8274. * @see tripal_core_chado_update()
  8275. * @see tripal_core_chado_select()
  8276. *
  8277. * @return
  8278. * An array describing the 'nd_experiment_pub' table
  8279. *
  8280. * @ingroup tripal_chado_v1.2_schema_api
  8281. *
  8282. */
  8283. function tripal_core_chado_schema_v1_2_nd_experiment_pub() {
  8284. $description = array(
  8285. 'description' => 'TODO: please describe this table!',
  8286. 'fields' => array(
  8287. 'nd_experiment_pub_id' => array(
  8288. 'description' => 'TODO: please describe this field!',
  8289. 'type' => 'serial',
  8290. 'not null' => TRUE,
  8291. ),
  8292. 'nd_experiment_id' => array(
  8293. 'description' => 'TODO: please describe this field!',
  8294. 'type' => 'int',
  8295. 'not null' => TRUE,
  8296. ),
  8297. 'pub_id' => array(
  8298. 'description' => 'TODO: please describe this field!',
  8299. 'type' => 'int',
  8300. 'not null' => TRUE,
  8301. ),
  8302. ),
  8303. 'primary key' => array(
  8304. 0 => 'nd_experiment_pub_id',
  8305. ),
  8306. 'unique keys' => array(
  8307. 'nd_experiment_pub_c1' => array(
  8308. 0 => 'nd_experiment_id',
  8309. 1 => 'pub_id',
  8310. ),
  8311. ),
  8312. 'indexes' => array(
  8313. 'nd_experiment_pub_idx1' => array(
  8314. 0 => 'nd_experiment_id',
  8315. ),
  8316. 'nd_experiment_pub_idx2' => array(
  8317. 0 => 'pub_id',
  8318. ),
  8319. ),
  8320. 'foreign keys' => array(
  8321. 'pub' => array(
  8322. 'table' => 'pub',
  8323. 'columns' => array(
  8324. 'pub_id' => 'pub_id',
  8325. ),
  8326. ),
  8327. 'nd_experiment' => array(
  8328. 'table' => 'nd_experiment',
  8329. 'columns' => array(
  8330. 'nd_experiment_id' => 'nd_experiment_id',
  8331. ),
  8332. ),
  8333. ),
  8334. 'table' => 'nd_experiment_pub',
  8335. 'referring_tables' => NULL,
  8336. );
  8337. return $description;
  8338. }
  8339. /**
  8340. * Implements hook_chado_schema_v1_2_nd_experiment_stock()
  8341. * Purpose: To describe the structure of 'nd_experiment_stock' to tripal
  8342. * @see tripal_core_chado_insert()
  8343. * @see tripal_core_chado_update()
  8344. * @see tripal_core_chado_select()
  8345. *
  8346. * @return
  8347. * An array describing the 'nd_experiment_stock' table
  8348. *
  8349. * @ingroup tripal_chado_v1.2_schema_api
  8350. *
  8351. */
  8352. function tripal_core_chado_schema_v1_2_nd_experiment_stock() {
  8353. $description = array(
  8354. 'description' => 'TODO: please describe this table!',
  8355. 'fields' => array(
  8356. 'nd_experiment_stock_id' => array(
  8357. 'description' => 'TODO: please describe this field!',
  8358. 'type' => 'serial',
  8359. 'not null' => TRUE,
  8360. ),
  8361. 'nd_experiment_id' => array(
  8362. 'description' => 'TODO: please describe this field!',
  8363. 'type' => 'int',
  8364. 'not null' => TRUE,
  8365. ),
  8366. 'stock_id' => array(
  8367. 'description' => 'TODO: please describe this field!',
  8368. 'type' => 'int',
  8369. 'not null' => TRUE,
  8370. ),
  8371. 'type_id' => array(
  8372. 'description' => 'TODO: please describe this field!',
  8373. 'type' => 'int',
  8374. 'not null' => TRUE,
  8375. ),
  8376. ),
  8377. 'primary key' => array(
  8378. 0 => 'nd_experiment_stock_id',
  8379. ),
  8380. 'foreign keys' => array(
  8381. 'cvterm' => array(
  8382. 'table' => 'cvterm',
  8383. 'columns' => array(
  8384. 'type_id' => 'cvterm_id',
  8385. ),
  8386. ),
  8387. 'stock' => array(
  8388. 'table' => 'stock',
  8389. 'columns' => array(
  8390. 'stock_id' => 'stock_id',
  8391. ),
  8392. ),
  8393. 'nd_experiment' => array(
  8394. 'table' => 'nd_experiment',
  8395. 'columns' => array(
  8396. 'nd_experiment_id' => 'nd_experiment_id',
  8397. ),
  8398. ),
  8399. ),
  8400. 'table' => 'nd_experiment_stock',
  8401. 'referring_tables' => array(
  8402. 0 => 'nd_experiment_stock_dbxref',
  8403. 1 => 'nd_experiment_stockprop',
  8404. ),
  8405. );
  8406. return $description;
  8407. }
  8408. /**
  8409. * Implements hook_chado_schema_v1_2_nd_experiment_stock_dbxref()
  8410. * Purpose: To describe the structure of 'nd_experiment_stock_dbxref' to tripal
  8411. * @see tripal_core_chado_insert()
  8412. * @see tripal_core_chado_update()
  8413. * @see tripal_core_chado_select()
  8414. *
  8415. * @return
  8416. * An array describing the 'nd_experiment_stock_dbxref' table
  8417. *
  8418. * @ingroup tripal_chado_v1.2_schema_api
  8419. *
  8420. */
  8421. function tripal_core_chado_schema_v1_2_nd_experiment_stock_dbxref() {
  8422. $description = array(
  8423. 'description' => 'TODO: please describe this table!',
  8424. 'fields' => array(
  8425. 'nd_experiment_stock_dbxref_id' => array(
  8426. 'description' => 'TODO: please describe this field!',
  8427. 'type' => 'serial',
  8428. 'not null' => TRUE,
  8429. ),
  8430. 'nd_experiment_stock_id' => array(
  8431. 'description' => 'TODO: please describe this field!',
  8432. 'type' => 'int',
  8433. 'not null' => TRUE,
  8434. ),
  8435. 'dbxref_id' => array(
  8436. 'description' => 'TODO: please describe this field!',
  8437. 'type' => 'int',
  8438. 'not null' => TRUE,
  8439. ),
  8440. ),
  8441. 'primary key' => array(
  8442. 0 => 'nd_experiment_stock_dbxref_id',
  8443. ),
  8444. 'foreign keys' => array(
  8445. 'dbxref' => array(
  8446. 'table' => 'dbxref',
  8447. 'columns' => array(
  8448. 'dbxref_id' => 'dbxref_id',
  8449. ),
  8450. ),
  8451. 'nd_experiment_stock' => array(
  8452. 'table' => 'nd_experiment_stock',
  8453. 'columns' => array(
  8454. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  8455. ),
  8456. ),
  8457. ),
  8458. 'table' => 'nd_experiment_stock_dbxref',
  8459. 'referring_tables' => NULL,
  8460. );
  8461. return $description;
  8462. }
  8463. /**
  8464. * Implements hook_chado_schema_v1_2_nd_experiment_stockprop()
  8465. * Purpose: To describe the structure of 'nd_experiment_stockprop' to tripal
  8466. * @see tripal_core_chado_insert()
  8467. * @see tripal_core_chado_update()
  8468. * @see tripal_core_chado_select()
  8469. *
  8470. * @return
  8471. * An array describing the 'nd_experiment_stockprop' table
  8472. *
  8473. * @ingroup tripal_chado_v1.2_schema_api
  8474. *
  8475. */
  8476. function tripal_core_chado_schema_v1_2_nd_experiment_stockprop() {
  8477. $description = array(
  8478. 'description' => 'TODO: please describe this table!',
  8479. 'fields' => array(
  8480. 'nd_experiment_stockprop_id' => array(
  8481. 'description' => 'TODO: please describe this field!',
  8482. 'type' => 'serial',
  8483. 'not null' => TRUE,
  8484. ),
  8485. 'nd_experiment_stock_id' => array(
  8486. 'description' => 'TODO: please describe this field!',
  8487. 'type' => 'int',
  8488. 'not null' => TRUE,
  8489. ),
  8490. 'type_id' => array(
  8491. 'description' => 'TODO: please describe this field!',
  8492. 'type' => 'int',
  8493. 'not null' => TRUE,
  8494. ),
  8495. 'value' => array(
  8496. 'description' => 'TODO: please describe this field!',
  8497. 'type' => 'text',
  8498. 'not null' => FALSE,
  8499. ),
  8500. 'rank' => array(
  8501. 'description' => 'TODO: please describe this field!',
  8502. 'type' => 'int',
  8503. 'not null' => TRUE,
  8504. 'default' => 0,
  8505. ),
  8506. ),
  8507. 'primary key' => array(
  8508. 0 => 'nd_experiment_stockprop_id',
  8509. ),
  8510. 'unique keys' => array(
  8511. 'nd_experiment_stockprop_c1' => array(
  8512. 0 => 'nd_experiment_stock_id',
  8513. 1 => 'type_id',
  8514. 2 => 'rank',
  8515. ),
  8516. ),
  8517. 'foreign keys' => array(
  8518. 'cvterm' => array(
  8519. 'table' => 'cvterm',
  8520. 'columns' => array(
  8521. 'type_id' => 'cvterm_id',
  8522. ),
  8523. ),
  8524. 'nd_experiment_stock' => array(
  8525. 'table' => 'nd_experiment_stock',
  8526. 'columns' => array(
  8527. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  8528. ),
  8529. ),
  8530. ),
  8531. 'table' => 'nd_experiment_stockprop',
  8532. 'referring_tables' => NULL,
  8533. );
  8534. return $description;
  8535. }
  8536. /**
  8537. * Implements hook_chado_schema_v1_2_nd_experimentprop()
  8538. * Purpose: To describe the structure of 'nd_experimentprop' to tripal
  8539. * @see tripal_core_chado_insert()
  8540. * @see tripal_core_chado_update()
  8541. * @see tripal_core_chado_select()
  8542. *
  8543. * @return
  8544. * An array describing the 'nd_experimentprop' table
  8545. *
  8546. * @ingroup tripal_chado_v1.2_schema_api
  8547. *
  8548. */
  8549. function tripal_core_chado_schema_v1_2_nd_experimentprop() {
  8550. $description = array(
  8551. 'description' => 'TODO: please describe this table!',
  8552. 'fields' => array(
  8553. 'nd_experimentprop_id' => array(
  8554. 'description' => 'TODO: please describe this field!',
  8555. 'type' => 'serial',
  8556. 'not null' => TRUE,
  8557. ),
  8558. 'nd_experiment_id' => array(
  8559. 'description' => 'TODO: please describe this field!',
  8560. 'type' => 'int',
  8561. 'not null' => TRUE,
  8562. ),
  8563. 'type_id' => array(
  8564. 'description' => 'TODO: please describe this field!',
  8565. 'type' => 'int',
  8566. 'not null' => TRUE,
  8567. ),
  8568. 'value' => array(
  8569. 'description' => 'TODO: please describe this field!',
  8570. 'type' => 'text',
  8571. 'not null' => FALSE,
  8572. ),
  8573. 'rank' => array(
  8574. 'description' => 'TODO: please describe this field!',
  8575. 'type' => 'int',
  8576. 'not null' => TRUE,
  8577. 'default' => 0,
  8578. ),
  8579. ),
  8580. 'primary key' => array(
  8581. 0 => 'nd_experimentprop_id',
  8582. ),
  8583. 'unique keys' => array(
  8584. 'nd_experimentprop_c1' => array(
  8585. 0 => 'nd_experiment_id',
  8586. 1 => 'type_id',
  8587. 2 => 'rank',
  8588. ),
  8589. ),
  8590. 'foreign keys' => array(
  8591. 'cvterm' => array(
  8592. 'table' => 'cvterm',
  8593. 'columns' => array(
  8594. 'type_id' => 'cvterm_id',
  8595. ),
  8596. ),
  8597. 'nd_experiment' => array(
  8598. 'table' => 'nd_experiment',
  8599. 'columns' => array(
  8600. 'nd_experiment_id' => 'nd_experiment_id',
  8601. ),
  8602. ),
  8603. ),
  8604. 'table' => 'nd_experimentprop',
  8605. 'referring_tables' => NULL,
  8606. );
  8607. return $description;
  8608. }
  8609. /**
  8610. * Implements hook_chado_schema_v1_2_nd_geolocation()
  8611. * Purpose: To describe the structure of 'nd_geolocation' to tripal
  8612. * @see tripal_core_chado_insert()
  8613. * @see tripal_core_chado_update()
  8614. * @see tripal_core_chado_select()
  8615. *
  8616. * @return
  8617. * An array describing the 'nd_geolocation' table
  8618. *
  8619. * @ingroup tripal_chado_v1.2_schema_api
  8620. *
  8621. */
  8622. function tripal_core_chado_schema_v1_2_nd_geolocation() {
  8623. $description = array(
  8624. 'description' => 'TODO: please describe this table!',
  8625. 'fields' => array(
  8626. 'nd_geolocation_id' => array(
  8627. 'description' => 'TODO: please describe this field!',
  8628. 'type' => 'serial',
  8629. 'not null' => TRUE,
  8630. ),
  8631. 'description' => array(
  8632. 'description' => 'TODO: please describe this field!',
  8633. 'type' => 'varchar',
  8634. 'length' => '255',
  8635. 'not null' => FALSE,
  8636. ),
  8637. 'latitude' => array(
  8638. 'description' => 'TODO: please describe this field!',
  8639. 'type' => 'float',
  8640. 'not null' => FALSE,
  8641. ),
  8642. 'longitude' => array(
  8643. 'description' => 'TODO: please describe this field!',
  8644. 'type' => 'float',
  8645. 'not null' => FALSE,
  8646. ),
  8647. 'geodetic_datum' => array(
  8648. 'description' => 'TODO: please describe this field!',
  8649. 'type' => 'varchar',
  8650. 'length' => '32',
  8651. 'not null' => FALSE,
  8652. ),
  8653. 'altitude' => array(
  8654. 'description' => 'TODO: please describe this field!',
  8655. 'type' => 'float',
  8656. 'not null' => FALSE,
  8657. ),
  8658. ),
  8659. 'primary key' => array(
  8660. 0 => 'nd_geolocation_id',
  8661. ),
  8662. 'foreign keys' => array(
  8663. ),
  8664. 'table' => 'nd_geolocation',
  8665. 'referring_tables' => array(
  8666. 0 => 'nd_experiment',
  8667. 1 => 'nd_geolocationprop',
  8668. ),
  8669. );
  8670. return $description;
  8671. }
  8672. /**
  8673. * Implements hook_chado_schema_v1_2_nd_geolocationprop()
  8674. * Purpose: To describe the structure of 'nd_geolocationprop' to tripal
  8675. * @see tripal_core_chado_insert()
  8676. * @see tripal_core_chado_update()
  8677. * @see tripal_core_chado_select()
  8678. *
  8679. * @return
  8680. * An array describing the 'nd_geolocationprop' table
  8681. *
  8682. * @ingroup tripal_chado_v1.2_schema_api
  8683. *
  8684. */
  8685. function tripal_core_chado_schema_v1_2_nd_geolocationprop() {
  8686. $description = array(
  8687. 'description' => 'TODO: please describe this table!',
  8688. 'fields' => array(
  8689. 'nd_geolocationprop_id' => array(
  8690. 'description' => 'TODO: please describe this field!',
  8691. 'type' => 'serial',
  8692. 'not null' => TRUE,
  8693. ),
  8694. 'nd_geolocation_id' => array(
  8695. 'description' => 'TODO: please describe this field!',
  8696. 'type' => 'int',
  8697. 'not null' => TRUE,
  8698. ),
  8699. 'type_id' => array(
  8700. 'description' => 'TODO: please describe this field!',
  8701. 'type' => 'int',
  8702. 'not null' => TRUE,
  8703. ),
  8704. 'value' => array(
  8705. 'description' => 'TODO: please describe this field!',
  8706. 'type' => 'text',
  8707. 'not null' => FALSE,
  8708. ),
  8709. 'rank' => array(
  8710. 'description' => 'TODO: please describe this field!',
  8711. 'type' => 'int',
  8712. 'not null' => TRUE,
  8713. 'default' => 0,
  8714. ),
  8715. ),
  8716. 'primary key' => array(
  8717. 0 => 'nd_geolocationprop_id',
  8718. ),
  8719. 'unique keys' => array(
  8720. 'nd_geolocationprop_c1' => array(
  8721. 0 => 'nd_geolocation_id',
  8722. 1 => 'type_id',
  8723. 2 => 'rank',
  8724. ),
  8725. ),
  8726. 'foreign keys' => array(
  8727. 'cvterm' => array(
  8728. 'table' => 'cvterm',
  8729. 'columns' => array(
  8730. 'type_id' => 'cvterm_id',
  8731. ),
  8732. ),
  8733. 'nd_geolocation' => array(
  8734. 'table' => 'nd_geolocation',
  8735. 'columns' => array(
  8736. 'nd_geolocation_id' => 'nd_geolocation_id',
  8737. ),
  8738. ),
  8739. ),
  8740. 'table' => 'nd_geolocationprop',
  8741. 'referring_tables' => NULL,
  8742. );
  8743. return $description;
  8744. }
  8745. /**
  8746. * Implements hook_chado_schema_v1_2_nd_protocol()
  8747. * Purpose: To describe the structure of 'nd_protocol' to tripal
  8748. * @see tripal_core_chado_insert()
  8749. * @see tripal_core_chado_update()
  8750. * @see tripal_core_chado_select()
  8751. *
  8752. * @return
  8753. * An array describing the 'nd_protocol' table
  8754. *
  8755. * @ingroup tripal_chado_v1.2_schema_api
  8756. *
  8757. */
  8758. function tripal_core_chado_schema_v1_2_nd_protocol() {
  8759. $description = array(
  8760. 'description' => 'TODO: please describe this table!',
  8761. 'fields' => array(
  8762. 'nd_protocol_id' => array(
  8763. 'description' => 'TODO: please describe this field!',
  8764. 'type' => 'serial',
  8765. 'not null' => TRUE,
  8766. ),
  8767. 'name' => array(
  8768. 'description' => 'TODO: please describe this field!',
  8769. 'type' => 'varchar',
  8770. 'length' => '255',
  8771. 'not null' => TRUE,
  8772. ),
  8773. 'type_id' => array(
  8774. 'description' => 'TODO: please describe this field!',
  8775. 'type' => 'int',
  8776. 'not null' => TRUE,
  8777. ),
  8778. ),
  8779. 'primary key' => array(
  8780. 0 => 'nd_protocol_id',
  8781. ),
  8782. 'unique keys' => array(
  8783. 'name' => array(
  8784. 0 => 'name',
  8785. ),
  8786. ),
  8787. 'foreign keys' => array(
  8788. 'cvterm' => array(
  8789. 'table' => 'cvterm',
  8790. 'columns' => array(
  8791. 'type_id' => 'cvterm_id',
  8792. ),
  8793. ),
  8794. ),
  8795. 'table' => 'nd_protocol',
  8796. 'referring_tables' => array(
  8797. 0 => 'nd_experiment_protocol',
  8798. 1 => 'nd_protocol_reagent',
  8799. 2 => 'nd_protocolprop',
  8800. ),
  8801. );
  8802. return $description;
  8803. }
  8804. /**
  8805. * Implements hook_chado_schema_v1_2_nd_protocol_reagent()
  8806. * Purpose: To describe the structure of 'nd_protocol_reagent' to tripal
  8807. * @see tripal_core_chado_insert()
  8808. * @see tripal_core_chado_update()
  8809. * @see tripal_core_chado_select()
  8810. *
  8811. * @return
  8812. * An array describing the 'nd_protocol_reagent' table
  8813. *
  8814. * @ingroup tripal_chado_v1.2_schema_api
  8815. *
  8816. */
  8817. function tripal_core_chado_schema_v1_2_nd_protocol_reagent() {
  8818. $description = array(
  8819. 'description' => 'TODO: please describe this table!',
  8820. 'fields' => array(
  8821. 'nd_protocol_reagent_id' => array(
  8822. 'description' => 'TODO: please describe this field!',
  8823. 'type' => 'serial',
  8824. 'not null' => TRUE,
  8825. ),
  8826. 'nd_protocol_id' => array(
  8827. 'description' => 'TODO: please describe this field!',
  8828. 'type' => 'int',
  8829. 'not null' => TRUE,
  8830. ),
  8831. 'reagent_id' => array(
  8832. 'description' => 'TODO: please describe this field!',
  8833. 'type' => 'int',
  8834. 'not null' => TRUE,
  8835. ),
  8836. 'type_id' => array(
  8837. 'description' => 'TODO: please describe this field!',
  8838. 'type' => 'int',
  8839. 'not null' => TRUE,
  8840. ),
  8841. ),
  8842. 'primary key' => array(
  8843. 0 => 'nd_protocol_reagent_id',
  8844. ),
  8845. 'foreign keys' => array(
  8846. 'cvterm' => array(
  8847. 'table' => 'cvterm',
  8848. 'columns' => array(
  8849. 'type_id' => 'cvterm_id',
  8850. ),
  8851. ),
  8852. 'nd_protocol' => array(
  8853. 'table' => 'nd_protocol',
  8854. 'columns' => array(
  8855. 'nd_protocol_id' => 'nd_protocol_id',
  8856. ),
  8857. ),
  8858. 'nd_reagent' => array(
  8859. 'table' => 'nd_reagent',
  8860. 'columns' => array(
  8861. 'reagent_id' => 'nd_reagent_id',
  8862. ),
  8863. ),
  8864. ),
  8865. 'table' => 'nd_protocol_reagent',
  8866. 'referring_tables' => NULL,
  8867. );
  8868. return $description;
  8869. }
  8870. /**
  8871. * Implements hook_chado_schema_v1_2_nd_protocolprop()
  8872. * Purpose: To describe the structure of 'nd_protocolprop' to tripal
  8873. * @see tripal_core_chado_insert()
  8874. * @see tripal_core_chado_update()
  8875. * @see tripal_core_chado_select()
  8876. *
  8877. * @return
  8878. * An array describing the 'nd_protocolprop' table
  8879. *
  8880. * @ingroup tripal_chado_v1.2_schema_api
  8881. *
  8882. */
  8883. function tripal_core_chado_schema_v1_2_nd_protocolprop() {
  8884. $description = array(
  8885. 'description' => 'TODO: please describe this table!',
  8886. 'fields' => array(
  8887. 'nd_protocolprop_id' => array(
  8888. 'description' => 'TODO: please describe this field!',
  8889. 'type' => 'serial',
  8890. 'not null' => TRUE,
  8891. ),
  8892. 'nd_protocol_id' => array(
  8893. 'description' => 'TODO: please describe this field!',
  8894. 'type' => 'int',
  8895. 'not null' => TRUE,
  8896. ),
  8897. 'type_id' => array(
  8898. 'description' => 'TODO: please describe this field!',
  8899. 'type' => 'int',
  8900. 'not null' => TRUE,
  8901. ),
  8902. 'value' => array(
  8903. 'description' => 'TODO: please describe this field!',
  8904. 'type' => 'text',
  8905. 'not null' => FALSE,
  8906. ),
  8907. 'rank' => array(
  8908. 'description' => 'TODO: please describe this field!',
  8909. 'type' => 'int',
  8910. 'not null' => TRUE,
  8911. 'default' => 0,
  8912. ),
  8913. ),
  8914. 'primary key' => array(
  8915. 0 => 'nd_protocolprop_id',
  8916. ),
  8917. 'unique keys' => array(
  8918. 'nd_protocolprop_c1' => array(
  8919. 0 => 'nd_protocol_id',
  8920. 1 => 'type_id',
  8921. 2 => 'rank',
  8922. ),
  8923. ),
  8924. 'foreign keys' => array(
  8925. 'cvterm' => array(
  8926. 'table' => 'cvterm',
  8927. 'columns' => array(
  8928. 'type_id' => 'cvterm_id',
  8929. ),
  8930. ),
  8931. 'nd_protocol' => array(
  8932. 'table' => 'nd_protocol',
  8933. 'columns' => array(
  8934. 'nd_protocol_id' => 'nd_protocol_id',
  8935. ),
  8936. ),
  8937. ),
  8938. 'table' => 'nd_protocolprop',
  8939. 'referring_tables' => NULL,
  8940. );
  8941. return $description;
  8942. }
  8943. /**
  8944. * Implements hook_chado_schema_v1_2_nd_reagent()
  8945. * Purpose: To describe the structure of 'nd_reagent' to tripal
  8946. * @see tripal_core_chado_insert()
  8947. * @see tripal_core_chado_update()
  8948. * @see tripal_core_chado_select()
  8949. *
  8950. * @return
  8951. * An array describing the 'nd_reagent' table
  8952. *
  8953. * @ingroup tripal_chado_v1.2_schema_api
  8954. *
  8955. */
  8956. function tripal_core_chado_schema_v1_2_nd_reagent() {
  8957. $description = array(
  8958. 'description' => 'TODO: please describe this table!',
  8959. 'fields' => array(
  8960. 'nd_reagent_id' => array(
  8961. 'description' => 'TODO: please describe this field!',
  8962. 'type' => 'serial',
  8963. 'not null' => TRUE,
  8964. ),
  8965. 'name' => array(
  8966. 'description' => 'TODO: please describe this field!',
  8967. 'type' => 'varchar',
  8968. 'length' => '80',
  8969. 'not null' => TRUE,
  8970. ),
  8971. 'type_id' => array(
  8972. 'description' => 'TODO: please describe this field!',
  8973. 'type' => 'int',
  8974. 'not null' => TRUE,
  8975. ),
  8976. 'feature_id' => array(
  8977. 'description' => 'TODO: please describe this field!',
  8978. 'type' => 'int',
  8979. 'not null' => FALSE,
  8980. ),
  8981. ),
  8982. 'primary key' => array(
  8983. 0 => 'nd_reagent_id',
  8984. ),
  8985. 'foreign keys' => array(
  8986. 'cvterm' => array(
  8987. 'table' => 'cvterm',
  8988. 'columns' => array(
  8989. 'type_id' => 'cvterm_id',
  8990. ),
  8991. ),
  8992. ),
  8993. 'table' => 'nd_reagent',
  8994. 'referring_tables' => array(
  8995. 0 => 'nd_protocol_reagent',
  8996. 1 => 'nd_reagent_relationship',
  8997. 3 => 'nd_reagentprop',
  8998. ),
  8999. );
  9000. return $description;
  9001. }
  9002. /**
  9003. * Implements hook_chado_schema_v1_2_nd_reagent_relationship()
  9004. * Purpose: To describe the structure of 'nd_reagent_relationship' to tripal
  9005. * @see tripal_core_chado_insert()
  9006. * @see tripal_core_chado_update()
  9007. * @see tripal_core_chado_select()
  9008. *
  9009. * @return
  9010. * An array describing the 'nd_reagent_relationship' table
  9011. *
  9012. * @ingroup tripal_chado_v1.2_schema_api
  9013. *
  9014. */
  9015. function tripal_core_chado_schema_v1_2_nd_reagent_relationship() {
  9016. $description = array(
  9017. 'description' => 'TODO: please describe this table!',
  9018. 'fields' => array(
  9019. 'nd_reagent_relationship_id' => array(
  9020. 'description' => 'TODO: please describe this field!',
  9021. 'type' => 'serial',
  9022. 'not null' => TRUE,
  9023. ),
  9024. 'subject_reagent_id' => array(
  9025. 'description' => 'TODO: please describe this field!',
  9026. 'type' => 'int',
  9027. 'not null' => TRUE,
  9028. ),
  9029. 'object_reagent_id' => array(
  9030. 'description' => 'TODO: please describe this field!',
  9031. 'type' => 'int',
  9032. 'not null' => TRUE,
  9033. ),
  9034. 'type_id' => array(
  9035. 'description' => 'TODO: please describe this field!',
  9036. 'type' => 'int',
  9037. 'not null' => TRUE,
  9038. ),
  9039. ),
  9040. 'primary key' => array(
  9041. 0 => 'nd_reagent_relationship_id',
  9042. ),
  9043. 'foreign keys' => array(
  9044. 'cvterm' => array(
  9045. 'table' => 'cvterm',
  9046. 'columns' => array(
  9047. 'type_id' => 'cvterm_id',
  9048. ),
  9049. ),
  9050. 'nd_reagent' => array(
  9051. 'table' => 'nd_reagent',
  9052. 'columns' => array(
  9053. 'subject_reagent_id' => 'nd_reagent_id',
  9054. 'object_reagent_id' => 'nd_reagent_id',
  9055. ),
  9056. ),
  9057. ),
  9058. 'table' => 'nd_reagent_relationship',
  9059. 'referring_tables' => NULL,
  9060. );
  9061. return $description;
  9062. }
  9063. /**
  9064. * Implements hook_chado_schema_v1_2_nd_reagentprop()
  9065. * Purpose: To describe the structure of 'nd_reagentprop' to tripal
  9066. * @see tripal_core_chado_insert()
  9067. * @see tripal_core_chado_update()
  9068. * @see tripal_core_chado_select()
  9069. *
  9070. * @return
  9071. * An array describing the 'nd_reagentprop' table
  9072. *
  9073. * @ingroup tripal_chado_v1.2_schema_api
  9074. *
  9075. */
  9076. function tripal_core_chado_schema_v1_2_nd_reagentprop() {
  9077. $description = array(
  9078. 'description' => 'TODO: please describe this table!',
  9079. 'fields' => array(
  9080. 'nd_reagentprop_id' => array(
  9081. 'description' => 'TODO: please describe this field!',
  9082. 'type' => 'serial',
  9083. 'not null' => TRUE,
  9084. ),
  9085. 'nd_reagent_id' => array(
  9086. 'description' => 'TODO: please describe this field!',
  9087. 'type' => 'int',
  9088. 'not null' => TRUE,
  9089. ),
  9090. 'type_id' => array(
  9091. 'description' => 'TODO: please describe this field!',
  9092. 'type' => 'int',
  9093. 'not null' => TRUE,
  9094. ),
  9095. 'value' => array(
  9096. 'description' => 'TODO: please describe this field!',
  9097. 'type' => 'text',
  9098. 'not null' => FALSE,
  9099. ),
  9100. 'rank' => array(
  9101. 'description' => 'TODO: please describe this field!',
  9102. 'type' => 'int',
  9103. 'not null' => TRUE,
  9104. 'default' => 0,
  9105. ),
  9106. ),
  9107. 'primary key' => array(
  9108. 0 => 'nd_reagentprop_id',
  9109. ),
  9110. 'unique keys' => array(
  9111. 'nd_reagentprop_c1' => array(
  9112. 0 => 'nd_reagent_id',
  9113. 1 => 'type_id',
  9114. 2 => 'rank',
  9115. ),
  9116. ),
  9117. 'foreign keys' => array(
  9118. 'cvterm' => array(
  9119. 'table' => 'cvterm',
  9120. 'columns' => array(
  9121. 'type_id' => 'cvterm_id',
  9122. ),
  9123. ),
  9124. 'nd_reagent' => array(
  9125. 'table' => 'nd_reagent',
  9126. 'columns' => array(
  9127. 'nd_reagent_id' => 'nd_reagent_id',
  9128. ),
  9129. ),
  9130. ),
  9131. 'table' => 'nd_reagentprop',
  9132. 'referring_tables' => NULL,
  9133. );
  9134. return $description;
  9135. }
  9136. /**
  9137. * Implements hook_chado_schema_v1_2_organism()
  9138. * Purpose: To describe the structure of 'organism' to tripal
  9139. * @see tripal_core_chado_insert()
  9140. * @see tripal_core_chado_update()
  9141. * @see tripal_core_chado_select()
  9142. *
  9143. * @return
  9144. * An array describing the 'organism' table
  9145. *
  9146. * @ingroup tripal_chado_v1.2_schema_api
  9147. *
  9148. */
  9149. function tripal_core_chado_schema_v1_2_organism() {
  9150. $description = array(
  9151. 'description' => 'TODO: please describe this table!',
  9152. 'fields' => array(
  9153. 'organism_id' => array(
  9154. 'description' => 'TODO: please describe this field!',
  9155. 'type' => 'serial',
  9156. 'not null' => TRUE,
  9157. ),
  9158. 'abbreviation' => array(
  9159. 'description' => 'TODO: please describe this field!',
  9160. 'type' => 'varchar',
  9161. 'length' => '255',
  9162. 'not null' => FALSE,
  9163. ),
  9164. 'genus' => array(
  9165. 'description' => 'TODO: please describe this field!',
  9166. 'type' => 'varchar',
  9167. 'length' => '255',
  9168. 'not null' => TRUE,
  9169. ),
  9170. 'species' => array(
  9171. 'description' => 'TODO: please describe this field!',
  9172. 'type' => 'varchar',
  9173. 'length' => '255',
  9174. 'not null' => TRUE,
  9175. ),
  9176. 'common_name' => array(
  9177. 'description' => 'TODO: please describe this field!',
  9178. 'type' => 'varchar',
  9179. 'length' => '255',
  9180. 'not null' => FALSE,
  9181. ),
  9182. 'comment' => array(
  9183. 'description' => 'TODO: please describe this field!',
  9184. 'type' => 'text',
  9185. 'not null' => FALSE,
  9186. ),
  9187. ),
  9188. 'primary key' => array(
  9189. 0 => 'organism_id',
  9190. ),
  9191. 'unique keys' => array(
  9192. 'organism_c1' => array(
  9193. 0 => 'genus',
  9194. 1 => 'species',
  9195. ),
  9196. ),
  9197. 'foreign keys' => array(
  9198. ),
  9199. 'referring_tables' => array(
  9200. 0 => 'biomaterial',
  9201. 1 => 'cell_line',
  9202. 2 => 'feature',
  9203. 3 => 'library',
  9204. 4 => 'organism_dbxref',
  9205. 5 => 'organismprop',
  9206. 6 => 'phenotype_comparison',
  9207. 7 => 'phylonode_organism',
  9208. 8 => 'stock',
  9209. ),
  9210. 'table' => 'organism',
  9211. );
  9212. return $description;
  9213. }
  9214. /**
  9215. * Implements hook_chado_schema_v1_2_organism_dbxref()
  9216. * Purpose: To describe the structure of 'organism_dbxref' to tripal
  9217. * @see tripal_core_chado_insert()
  9218. * @see tripal_core_chado_update()
  9219. * @see tripal_core_chado_select()
  9220. *
  9221. * @return
  9222. * An array describing the 'organism_dbxref' table
  9223. *
  9224. * @ingroup tripal_chado_v1.2_schema_api
  9225. *
  9226. */
  9227. function tripal_core_chado_schema_v1_2_organism_dbxref() {
  9228. $description = array(
  9229. 'description' => 'TODO: please describe this table!',
  9230. 'fields' => array(
  9231. 'organism_dbxref_id' => array(
  9232. 'description' => 'TODO: please describe this field!',
  9233. 'type' => 'serial',
  9234. 'not null' => TRUE,
  9235. ),
  9236. 'organism_id' => array(
  9237. 'description' => 'TODO: please describe this field!',
  9238. 'type' => 'int',
  9239. 'not null' => TRUE,
  9240. ),
  9241. 'dbxref_id' => array(
  9242. 'description' => 'TODO: please describe this field!',
  9243. 'type' => 'int',
  9244. 'not null' => TRUE,
  9245. ),
  9246. ),
  9247. 'primary key' => array(
  9248. 0 => 'organism_dbxref_id',
  9249. ),
  9250. 'unique keys' => array(
  9251. 'organism_dbxref_c1' => array(
  9252. 0 => 'organism_id',
  9253. 1 => 'dbxref_id',
  9254. ),
  9255. ),
  9256. 'indexes' => array(
  9257. 'organism_dbxref_idx1' => array(
  9258. 0 => 'organism_id',
  9259. ),
  9260. 'organism_dbxref_idx2' => array(
  9261. 0 => 'dbxref_id',
  9262. ),
  9263. ),
  9264. 'foreign keys' => array(
  9265. 'organism' => array(
  9266. 'table' => 'organism',
  9267. 'columns' => array(
  9268. 'organism_id' => 'organism_id',
  9269. ),
  9270. ),
  9271. 'dbxref' => array(
  9272. 'table' => 'dbxref',
  9273. 'columns' => array(
  9274. 'dbxref_id' => 'dbxref_id',
  9275. ),
  9276. ),
  9277. ),
  9278. 'table' => 'organism_dbxref',
  9279. 'referring_tables' => NULL,
  9280. );
  9281. return $description;
  9282. }
  9283. /**
  9284. * Implements hook_chado_schema_v1_2_organismprop()
  9285. * Purpose: To describe the structure of 'organismprop' to tripal
  9286. * @see tripal_core_chado_insert()
  9287. * @see tripal_core_chado_update()
  9288. * @see tripal_core_chado_select()
  9289. *
  9290. * @return
  9291. * An array describing the 'organismprop' table
  9292. *
  9293. * @ingroup tripal_chado_v1.2_schema_api
  9294. *
  9295. */
  9296. function tripal_core_chado_schema_v1_2_organismprop() {
  9297. $description = array(
  9298. 'description' => 'TODO: please describe this table!',
  9299. 'fields' => array(
  9300. 'organismprop_id' => array(
  9301. 'description' => 'TODO: please describe this field!',
  9302. 'type' => 'serial',
  9303. 'not null' => TRUE,
  9304. ),
  9305. 'organism_id' => array(
  9306. 'description' => 'TODO: please describe this field!',
  9307. 'type' => 'int',
  9308. 'not null' => TRUE,
  9309. ),
  9310. 'type_id' => array(
  9311. 'description' => 'TODO: please describe this field!',
  9312. 'type' => 'int',
  9313. 'not null' => TRUE,
  9314. ),
  9315. 'value' => array(
  9316. 'description' => 'TODO: please describe this field!',
  9317. 'type' => 'text',
  9318. 'not null' => FALSE,
  9319. ),
  9320. 'rank' => array(
  9321. 'description' => 'TODO: please describe this field!',
  9322. 'type' => 'int',
  9323. 'not null' => TRUE,
  9324. 'default' => 0,
  9325. ),
  9326. ),
  9327. 'primary key' => array(
  9328. 0 => 'organismprop_id',
  9329. ),
  9330. 'unique keys' => array(
  9331. 'organismprop_c1' => array(
  9332. 0 => 'organism_id',
  9333. 1 => 'type_id',
  9334. 2 => 'rank',
  9335. ),
  9336. ),
  9337. 'indexes' => array(
  9338. 'organismprop_idx1' => array(
  9339. 0 => 'organism_id',
  9340. ),
  9341. 'organismprop_idx2' => array(
  9342. 0 => 'type_id',
  9343. ),
  9344. ),
  9345. 'foreign keys' => array(
  9346. 'organism' => array(
  9347. 'table' => 'organism',
  9348. 'columns' => array(
  9349. 'organism_id' => 'organism_id',
  9350. ),
  9351. ),
  9352. 'cvterm' => array(
  9353. 'table' => 'cvterm',
  9354. 'columns' => array(
  9355. 'type_id' => 'cvterm_id',
  9356. ),
  9357. ),
  9358. ),
  9359. 'table' => 'organismprop',
  9360. 'referring_tables' => NULL,
  9361. );
  9362. return $description;
  9363. }
  9364. /**
  9365. * Implements hook_chado_schema_v1_2_phendesc()
  9366. * Purpose: To describe the structure of 'phendesc' to tripal
  9367. * @see tripal_core_chado_insert()
  9368. * @see tripal_core_chado_update()
  9369. * @see tripal_core_chado_select()
  9370. *
  9371. * @return
  9372. * An array describing the 'phendesc' table
  9373. *
  9374. * @ingroup tripal_chado_v1.2_schema_api
  9375. *
  9376. */
  9377. function tripal_core_chado_schema_v1_2_phendesc() {
  9378. $description = array(
  9379. 'description' => 'TODO: please describe this table!',
  9380. 'fields' => array(
  9381. 'phendesc_id' => array(
  9382. 'description' => 'TODO: please describe this field!',
  9383. 'type' => 'serial',
  9384. 'not null' => TRUE,
  9385. ),
  9386. 'genotype_id' => array(
  9387. 'description' => 'TODO: please describe this field!',
  9388. 'type' => 'int',
  9389. 'not null' => TRUE,
  9390. ),
  9391. 'environment_id' => array(
  9392. 'description' => 'TODO: please describe this field!',
  9393. 'type' => 'int',
  9394. 'not null' => TRUE,
  9395. ),
  9396. 'description' => array(
  9397. 'description' => 'TODO: please describe this field!',
  9398. 'type' => 'text',
  9399. 'not null' => TRUE,
  9400. ),
  9401. 'type_id' => array(
  9402. 'description' => 'TODO: please describe this field!',
  9403. 'type' => 'int',
  9404. 'not null' => TRUE,
  9405. ),
  9406. 'pub_id' => array(
  9407. 'description' => 'TODO: please describe this field!',
  9408. 'type' => 'int',
  9409. 'not null' => TRUE,
  9410. ),
  9411. ),
  9412. 'primary key' => array(
  9413. 0 => 'phendesc_id',
  9414. ),
  9415. 'unique keys' => array(
  9416. 'phendesc_c1' => array(
  9417. 0 => 'genotype_id',
  9418. 1 => 'environment_id',
  9419. 2 => 'type_id',
  9420. 3 => 'pub_id',
  9421. ),
  9422. ),
  9423. 'indexes' => array(
  9424. 'phendesc_idx1' => array(
  9425. 0 => 'genotype_id',
  9426. ),
  9427. 'phendesc_idx2' => array(
  9428. 0 => 'environment_id',
  9429. ),
  9430. 'phendesc_idx3' => array(
  9431. 0 => 'pub_id',
  9432. ),
  9433. ),
  9434. 'foreign keys' => array(
  9435. 'cvterm' => array(
  9436. 'table' => 'cvterm',
  9437. 'columns' => array(
  9438. 'type_id' => 'cvterm_id',
  9439. ),
  9440. ),
  9441. 'pub' => array(
  9442. 'table' => 'pub',
  9443. 'columns' => array(
  9444. 'pub_id' => 'pub_id',
  9445. ),
  9446. ),
  9447. 'genotype' => array(
  9448. 'table' => 'genotype',
  9449. 'columns' => array(
  9450. 'genotype_id' => 'genotype_id',
  9451. ),
  9452. ),
  9453. 'environment' => array(
  9454. 'table' => 'environment',
  9455. 'columns' => array(
  9456. 'environment_id' => 'environment_id',
  9457. ),
  9458. ),
  9459. ),
  9460. 'table' => 'phendesc',
  9461. 'referring_tables' => NULL,
  9462. );
  9463. return $description;
  9464. }
  9465. /**
  9466. * Implements hook_chado_schema_v1_2_phenotype()
  9467. * Purpose: To describe the structure of 'phenotype' to tripal
  9468. * @see tripal_core_chado_insert()
  9469. * @see tripal_core_chado_update()
  9470. * @see tripal_core_chado_select()
  9471. *
  9472. * @return
  9473. * An array describing the 'phenotype' table
  9474. *
  9475. * @ingroup tripal_chado_v1.2_schema_api
  9476. *
  9477. */
  9478. function tripal_core_chado_schema_v1_2_phenotype() {
  9479. $description = array(
  9480. 'description' => 'TODO: please describe this table!',
  9481. 'fields' => array(
  9482. 'phenotype_id' => array(
  9483. 'description' => 'TODO: please describe this field!',
  9484. 'type' => 'serial',
  9485. 'not null' => TRUE,
  9486. ),
  9487. 'uniquename' => array(
  9488. 'description' => 'TODO: please describe this field!',
  9489. 'type' => 'text',
  9490. 'not null' => TRUE,
  9491. ),
  9492. 'name' => array(
  9493. 'description' => 'TODO: please describe this field!',
  9494. 'type' => 'text',
  9495. 'not null' => FALSE,
  9496. ),
  9497. 'observable_id' => array(
  9498. 'description' => 'TODO: please describe this field!',
  9499. 'type' => 'int',
  9500. 'not null' => FALSE,
  9501. ),
  9502. 'attr_id' => array(
  9503. 'description' => 'TODO: please describe this field!',
  9504. 'type' => 'int',
  9505. 'not null' => FALSE,
  9506. ),
  9507. 'value' => array(
  9508. 'description' => 'TODO: please describe this field!',
  9509. 'type' => 'text',
  9510. 'not null' => FALSE,
  9511. ),
  9512. 'cvalue_id' => array(
  9513. 'description' => 'TODO: please describe this field!',
  9514. 'type' => 'int',
  9515. 'not null' => FALSE,
  9516. ),
  9517. 'assay_id' => array(
  9518. 'description' => 'TODO: please describe this field!',
  9519. 'type' => 'int',
  9520. 'not null' => FALSE,
  9521. ),
  9522. ),
  9523. 'primary key' => array(
  9524. 0 => 'phenotype_id',
  9525. ),
  9526. 'unique keys' => array(
  9527. 'phenotype_c1' => array(
  9528. 0 => 'uniquename',
  9529. ),
  9530. ),
  9531. 'indexes' => array(
  9532. 'phenotype_idx1' => array(
  9533. 0 => 'cvalue_id',
  9534. ),
  9535. 'phenotype_idx2' => array(
  9536. 0 => 'observable_id',
  9537. ),
  9538. 'phenotype_idx3' => array(
  9539. 0 => 'attr_id',
  9540. ),
  9541. ),
  9542. 'foreign keys' => array(
  9543. 'cvterm' => array(
  9544. 'table' => 'cvterm',
  9545. 'columns' => array(
  9546. 'observable_id' => 'cvterm_id',
  9547. 'attr_id' => 'cvterm_id',
  9548. 'cvalue_id' => 'cvterm_id',
  9549. 'assay_id' => 'cvterm_id',
  9550. ),
  9551. ),
  9552. ),
  9553. 'table' => 'phenotype',
  9554. 'referring_tables' => array(
  9555. 0 => 'feature_phenotype',
  9556. 1 => 'nd_experiment_phenotype',
  9557. 2 => 'phenotype_comparison',
  9558. 4 => 'phenotype_cvterm',
  9559. 5 => 'phenstatement',
  9560. ),
  9561. );
  9562. return $description;
  9563. }
  9564. /**
  9565. * Implements hook_chado_schema_v1_2_phenotype_comparison()
  9566. * Purpose: To describe the structure of 'phenotype_comparison' to tripal
  9567. * @see tripal_core_chado_insert()
  9568. * @see tripal_core_chado_update()
  9569. * @see tripal_core_chado_select()
  9570. *
  9571. * @return
  9572. * An array describing the 'phenotype_comparison' table
  9573. *
  9574. * @ingroup tripal_chado_v1.2_schema_api
  9575. *
  9576. */
  9577. function tripal_core_chado_schema_v1_2_phenotype_comparison() {
  9578. $description = array(
  9579. 'description' => 'TODO: please describe this table!',
  9580. 'fields' => array(
  9581. 'phenotype_comparison_id' => array(
  9582. 'description' => 'TODO: please describe this field!',
  9583. 'type' => 'serial',
  9584. 'not null' => TRUE,
  9585. ),
  9586. 'genotype1_id' => array(
  9587. 'description' => 'TODO: please describe this field!',
  9588. 'type' => 'int',
  9589. 'not null' => TRUE,
  9590. ),
  9591. 'environment1_id' => array(
  9592. 'description' => 'TODO: please describe this field!',
  9593. 'type' => 'int',
  9594. 'not null' => TRUE,
  9595. ),
  9596. 'genotype2_id' => array(
  9597. 'description' => 'TODO: please describe this field!',
  9598. 'type' => 'int',
  9599. 'not null' => TRUE,
  9600. ),
  9601. 'environment2_id' => array(
  9602. 'description' => 'TODO: please describe this field!',
  9603. 'type' => 'int',
  9604. 'not null' => TRUE,
  9605. ),
  9606. 'phenotype1_id' => array(
  9607. 'description' => 'TODO: please describe this field!',
  9608. 'type' => 'int',
  9609. 'not null' => TRUE,
  9610. ),
  9611. 'phenotype2_id' => array(
  9612. 'description' => 'TODO: please describe this field!',
  9613. 'type' => 'int',
  9614. 'not null' => FALSE,
  9615. ),
  9616. 'pub_id' => array(
  9617. 'description' => 'TODO: please describe this field!',
  9618. 'type' => 'int',
  9619. 'not null' => TRUE,
  9620. ),
  9621. 'organism_id' => array(
  9622. 'description' => 'TODO: please describe this field!',
  9623. 'type' => 'int',
  9624. 'not null' => TRUE,
  9625. ),
  9626. ),
  9627. 'primary key' => array(
  9628. 0 => 'phenotype_comparison_id',
  9629. ),
  9630. 'unique keys' => array(
  9631. 'phenotype_comparison_c1' => array(
  9632. 0 => 'genotype1_id',
  9633. 1 => 'environment1_id',
  9634. 2 => 'genotype2_id',
  9635. 3 => 'environment2_id',
  9636. 4 => 'phenotype1_id',
  9637. 5 => 'pub_id',
  9638. ),
  9639. ),
  9640. 'indexes' => array(
  9641. 'phenotype_comparison_idx1' => array(
  9642. 0 => 'genotype1_id',
  9643. ),
  9644. 'phenotype_comparison_idx2' => array(
  9645. 0 => 'genotype2_id',
  9646. ),
  9647. 'phenotype_comparison_idx4' => array(
  9648. 0 => 'pub_id',
  9649. ),
  9650. ),
  9651. 'foreign keys' => array(
  9652. 'organism' => array(
  9653. 'table' => 'organism',
  9654. 'columns' => array(
  9655. 'organism_id' => 'organism_id',
  9656. ),
  9657. ),
  9658. 'pub' => array(
  9659. 'table' => 'pub',
  9660. 'columns' => array(
  9661. 'pub_id' => 'pub_id',
  9662. ),
  9663. ),
  9664. 'genotype' => array(
  9665. 'table' => 'genotype',
  9666. 'columns' => array(
  9667. 'genotype1_id' => 'genotype_id',
  9668. 'genotype2_id' => 'genotype_id',
  9669. ),
  9670. ),
  9671. 'environment' => array(
  9672. 'table' => 'environment',
  9673. 'columns' => array(
  9674. 'environment1_id' => 'environment_id',
  9675. 'environment2_id' => 'environment_id',
  9676. ),
  9677. ),
  9678. 'phenotype' => array(
  9679. 'table' => 'phenotype',
  9680. 'columns' => array(
  9681. 'phenotype1_id' => 'phenotype_id',
  9682. 'phenotype2_id' => 'phenotype_id',
  9683. ),
  9684. ),
  9685. ),
  9686. 'table' => 'phenotype_comparison',
  9687. 'referring_tables' => array(
  9688. 0 => 'phenotype_comparison_cvterm',
  9689. ),
  9690. );
  9691. return $description;
  9692. }
  9693. /**
  9694. * Implements hook_chado_schema_v1_2_phenotype_comparison_cvterm()
  9695. * Purpose: To describe the structure of 'phenotype_comparison_cvterm' to tripal
  9696. * @see tripal_core_chado_insert()
  9697. * @see tripal_core_chado_update()
  9698. * @see tripal_core_chado_select()
  9699. *
  9700. * @return
  9701. * An array describing the 'phenotype_comparison_cvterm' table
  9702. *
  9703. * @ingroup tripal_chado_v1.2_schema_api
  9704. *
  9705. */
  9706. function tripal_core_chado_schema_v1_2_phenotype_comparison_cvterm() {
  9707. $description = array(
  9708. 'description' => 'TODO: please describe this table!',
  9709. 'fields' => array(
  9710. 'phenotype_comparison_cvterm_id' => array(
  9711. 'description' => 'TODO: please describe this field!',
  9712. 'type' => 'serial',
  9713. 'not null' => TRUE,
  9714. ),
  9715. 'phenotype_comparison_id' => array(
  9716. 'description' => 'TODO: please describe this field!',
  9717. 'type' => 'int',
  9718. 'not null' => TRUE,
  9719. ),
  9720. 'cvterm_id' => array(
  9721. 'description' => 'TODO: please describe this field!',
  9722. 'type' => 'int',
  9723. 'not null' => TRUE,
  9724. ),
  9725. 'pub_id' => array(
  9726. 'description' => 'TODO: please describe this field!',
  9727. 'type' => 'int',
  9728. 'not null' => TRUE,
  9729. ),
  9730. 'rank' => array(
  9731. 'description' => 'TODO: please describe this field!',
  9732. 'type' => 'int',
  9733. 'not null' => TRUE,
  9734. 'default' => 0,
  9735. ),
  9736. ),
  9737. 'primary key' => array(
  9738. 0 => 'phenotype_comparison_cvterm_id',
  9739. ),
  9740. 'unique keys' => array(
  9741. 'phenotype_comparison_cvterm_c1' => array(
  9742. 0 => 'phenotype_comparison_id',
  9743. 1 => 'cvterm_id',
  9744. ),
  9745. ),
  9746. 'indexes' => array(
  9747. 'phenotype_comparison_cvterm_idx1' => array(
  9748. 0 => 'phenotype_comparison_id',
  9749. ),
  9750. 'phenotype_comparison_cvterm_idx2' => array(
  9751. 0 => 'cvterm_id',
  9752. ),
  9753. ),
  9754. 'foreign keys' => array(
  9755. 'cvterm' => array(
  9756. 'table' => 'cvterm',
  9757. 'columns' => array(
  9758. 'cvterm_id' => 'cvterm_id',
  9759. ),
  9760. ),
  9761. 'pub' => array(
  9762. 'table' => 'pub',
  9763. 'columns' => array(
  9764. 'pub_id' => 'pub_id',
  9765. ),
  9766. ),
  9767. 'phenotype_comparison' => array(
  9768. 'table' => 'phenotype_comparison',
  9769. 'columns' => array(
  9770. 'phenotype_comparison_id' => 'phenotype_comparison_id',
  9771. ),
  9772. ),
  9773. ),
  9774. 'table' => 'phenotype_comparison_cvterm',
  9775. 'referring_tables' => NULL,
  9776. );
  9777. return $description;
  9778. }
  9779. /**
  9780. * Implements hook_chado_schema_v1_2_phenotype_cvterm()
  9781. * Purpose: To describe the structure of 'phenotype_cvterm' to tripal
  9782. * @see tripal_core_chado_insert()
  9783. * @see tripal_core_chado_update()
  9784. * @see tripal_core_chado_select()
  9785. *
  9786. * @return
  9787. * An array describing the 'phenotype_cvterm' table
  9788. *
  9789. * @ingroup tripal_chado_v1.2_schema_api
  9790. *
  9791. */
  9792. function tripal_core_chado_schema_v1_2_phenotype_cvterm() {
  9793. $description = array(
  9794. 'description' => 'TODO: please describe this table!',
  9795. 'fields' => array(
  9796. 'phenotype_cvterm_id' => array(
  9797. 'description' => 'TODO: please describe this field!',
  9798. 'type' => 'serial',
  9799. 'not null' => TRUE,
  9800. ),
  9801. 'phenotype_id' => array(
  9802. 'description' => 'TODO: please describe this field!',
  9803. 'type' => 'int',
  9804. 'not null' => TRUE,
  9805. ),
  9806. 'cvterm_id' => array(
  9807. 'description' => 'TODO: please describe this field!',
  9808. 'type' => 'int',
  9809. 'not null' => TRUE,
  9810. ),
  9811. 'rank' => array(
  9812. 'description' => 'TODO: please describe this field!',
  9813. 'type' => 'int',
  9814. 'not null' => TRUE,
  9815. 'default' => 0,
  9816. ),
  9817. ),
  9818. 'primary key' => array(
  9819. 0 => 'phenotype_cvterm_id',
  9820. ),
  9821. 'unique keys' => array(
  9822. 'phenotype_cvterm_c1' => array(
  9823. 0 => 'phenotype_id',
  9824. 1 => 'cvterm_id',
  9825. 2 => 'rank',
  9826. ),
  9827. ),
  9828. 'indexes' => array(
  9829. 'phenotype_cvterm_idx1' => array(
  9830. 0 => 'phenotype_id',
  9831. ),
  9832. 'phenotype_cvterm_idx2' => array(
  9833. 0 => 'cvterm_id',
  9834. ),
  9835. ),
  9836. 'foreign keys' => array(
  9837. 'cvterm' => array(
  9838. 'table' => 'cvterm',
  9839. 'columns' => array(
  9840. 'cvterm_id' => 'cvterm_id',
  9841. ),
  9842. ),
  9843. 'phenotype' => array(
  9844. 'table' => 'phenotype',
  9845. 'columns' => array(
  9846. 'phenotype_id' => 'phenotype_id',
  9847. ),
  9848. ),
  9849. ),
  9850. 'table' => 'phenotype_cvterm',
  9851. 'referring_tables' => NULL,
  9852. );
  9853. return $description;
  9854. }
  9855. /**
  9856. * Implements hook_chado_schema_v1_2_phenstatement()
  9857. * Purpose: To describe the structure of 'phenstatement' to tripal
  9858. * @see tripal_core_chado_insert()
  9859. * @see tripal_core_chado_update()
  9860. * @see tripal_core_chado_select()
  9861. *
  9862. * @return
  9863. * An array describing the 'phenstatement' table
  9864. *
  9865. * @ingroup tripal_chado_v1.2_schema_api
  9866. *
  9867. */
  9868. function tripal_core_chado_schema_v1_2_phenstatement() {
  9869. $description = array(
  9870. 'description' => 'TODO: please describe this table!',
  9871. 'fields' => array(
  9872. 'phenstatement_id' => array(
  9873. 'description' => 'TODO: please describe this field!',
  9874. 'type' => 'serial',
  9875. 'not null' => TRUE,
  9876. ),
  9877. 'genotype_id' => array(
  9878. 'description' => 'TODO: please describe this field!',
  9879. 'type' => 'int',
  9880. 'not null' => TRUE,
  9881. ),
  9882. 'environment_id' => array(
  9883. 'description' => 'TODO: please describe this field!',
  9884. 'type' => 'int',
  9885. 'not null' => TRUE,
  9886. ),
  9887. 'phenotype_id' => array(
  9888. 'description' => 'TODO: please describe this field!',
  9889. 'type' => 'int',
  9890. 'not null' => TRUE,
  9891. ),
  9892. 'type_id' => array(
  9893. 'description' => 'TODO: please describe this field!',
  9894. 'type' => 'int',
  9895. 'not null' => TRUE,
  9896. ),
  9897. 'pub_id' => array(
  9898. 'description' => 'TODO: please describe this field!',
  9899. 'type' => 'int',
  9900. 'not null' => TRUE,
  9901. ),
  9902. ),
  9903. 'primary key' => array(
  9904. 0 => 'phenstatement_id',
  9905. ),
  9906. 'unique keys' => array(
  9907. 'phenstatement_c1' => array(
  9908. 0 => 'genotype_id',
  9909. 1 => 'phenotype_id',
  9910. 2 => 'environment_id',
  9911. 3 => 'type_id',
  9912. 4 => 'pub_id',
  9913. ),
  9914. ),
  9915. 'indexes' => array(
  9916. 'phenstatement_idx1' => array(
  9917. 0 => 'genotype_id',
  9918. ),
  9919. 'phenstatement_idx2' => array(
  9920. 0 => 'phenotype_id',
  9921. ),
  9922. ),
  9923. 'foreign keys' => array(
  9924. 'cvterm' => array(
  9925. 'table' => 'cvterm',
  9926. 'columns' => array(
  9927. 'type_id' => 'cvterm_id',
  9928. ),
  9929. ),
  9930. 'pub' => array(
  9931. 'table' => 'pub',
  9932. 'columns' => array(
  9933. 'pub_id' => 'pub_id',
  9934. ),
  9935. ),
  9936. 'genotype' => array(
  9937. 'table' => 'genotype',
  9938. 'columns' => array(
  9939. 'genotype_id' => 'genotype_id',
  9940. ),
  9941. ),
  9942. 'environment' => array(
  9943. 'table' => 'environment',
  9944. 'columns' => array(
  9945. 'environment_id' => 'environment_id',
  9946. ),
  9947. ),
  9948. 'phenotype' => array(
  9949. 'table' => 'phenotype',
  9950. 'columns' => array(
  9951. 'phenotype_id' => 'phenotype_id',
  9952. ),
  9953. ),
  9954. ),
  9955. 'table' => 'phenstatement',
  9956. 'referring_tables' => NULL,
  9957. );
  9958. return $description;
  9959. }
  9960. /**
  9961. * Implements hook_chado_schema_v1_2_phylonode()
  9962. * Purpose: To describe the structure of 'phylonode' to tripal
  9963. * @see tripal_core_chado_insert()
  9964. * @see tripal_core_chado_update()
  9965. * @see tripal_core_chado_select()
  9966. *
  9967. * @return
  9968. * An array describing the 'phylonode' table
  9969. *
  9970. * @ingroup tripal_chado_v1.2_schema_api
  9971. *
  9972. */
  9973. function tripal_core_chado_schema_v1_2_phylonode() {
  9974. $description = array(
  9975. 'description' => 'TODO: please describe this table!',
  9976. 'fields' => array(
  9977. 'phylonode_id' => array(
  9978. 'description' => 'TODO: please describe this field!',
  9979. 'type' => 'serial',
  9980. 'not null' => TRUE,
  9981. ),
  9982. 'phylotree_id' => array(
  9983. 'description' => 'TODO: please describe this field!',
  9984. 'type' => 'int',
  9985. 'not null' => TRUE,
  9986. ),
  9987. 'parent_phylonode_id' => array(
  9988. 'description' => 'TODO: please describe this field!',
  9989. 'type' => 'int',
  9990. 'not null' => FALSE,
  9991. ),
  9992. 'left_idx' => array(
  9993. 'description' => 'TODO: please describe this field!',
  9994. 'type' => 'int',
  9995. 'not null' => TRUE,
  9996. ),
  9997. 'right_idx' => array(
  9998. 'description' => 'TODO: please describe this field!',
  9999. 'type' => 'int',
  10000. 'not null' => TRUE,
  10001. ),
  10002. 'type_id' => array(
  10003. 'description' => 'TODO: please describe this field!',
  10004. 'type' => 'int',
  10005. 'not null' => FALSE,
  10006. ),
  10007. 'feature_id' => array(
  10008. 'description' => 'TODO: please describe this field!',
  10009. 'type' => 'int',
  10010. 'not null' => FALSE,
  10011. ),
  10012. 'label' => array(
  10013. 'description' => 'TODO: please describe this field!',
  10014. 'type' => 'varchar',
  10015. 'length' => '255',
  10016. 'not null' => FALSE,
  10017. ),
  10018. 'distance' => array(
  10019. 'description' => 'TODO: please describe this field!',
  10020. 'type' => 'float',
  10021. 'size' => 'big',
  10022. 'not null' => FALSE,
  10023. ),
  10024. ),
  10025. 'primary key' => array(
  10026. 0 => 'phylonode_id',
  10027. ),
  10028. 'unique keys' => array(
  10029. 'phylotree_id' => array(
  10030. 0 => 'phylotree_id',
  10031. 1 => 'left_idx',
  10032. ),
  10033. 'phylonode_phylotree_id_key1' => array(
  10034. 0 => 'phylotree_id',
  10035. 1 => 'right_idx',
  10036. ),
  10037. ),
  10038. 'foreign keys' => array(
  10039. 'cvterm' => array(
  10040. 'table' => 'cvterm',
  10041. 'columns' => array(
  10042. 'type_id' => 'cvterm_id',
  10043. ),
  10044. ),
  10045. 'feature' => array(
  10046. 'table' => 'feature',
  10047. 'columns' => array(
  10048. 'feature_id' => 'feature_id',
  10049. ),
  10050. ),
  10051. 'phylonode' => array(
  10052. 'table' => 'phylonode',
  10053. 'columns' => array(
  10054. 'parent_phylonode_id' => 'phylonode_id',
  10055. ),
  10056. ),
  10057. 'phylotree' => array(
  10058. 'table' => 'phylotree',
  10059. 'columns' => array(
  10060. 'phylotree_id' => 'phylotree_id',
  10061. ),
  10062. ),
  10063. ),
  10064. 'table' => 'phylonode',
  10065. 'referring_tables' => array(
  10066. 0 => 'phylonode',
  10067. 1 => 'phylonode_dbxref',
  10068. 2 => 'phylonode_organism',
  10069. 3 => 'phylonode_pub',
  10070. 4 => 'phylonode_relationship',
  10071. 6 => 'phylonodeprop',
  10072. ),
  10073. );
  10074. return $description;
  10075. }
  10076. /**
  10077. * Implements hook_chado_schema_v1_2_phylonode_dbxref()
  10078. * Purpose: To describe the structure of 'phylonode_dbxref' to tripal
  10079. * @see tripal_core_chado_insert()
  10080. * @see tripal_core_chado_update()
  10081. * @see tripal_core_chado_select()
  10082. *
  10083. * @return
  10084. * An array describing the 'phylonode_dbxref' table
  10085. *
  10086. * @ingroup tripal_chado_v1.2_schema_api
  10087. *
  10088. */
  10089. function tripal_core_chado_schema_v1_2_phylonode_dbxref() {
  10090. $description = array(
  10091. 'description' => 'TODO: please describe this table!',
  10092. 'fields' => array(
  10093. 'phylonode_dbxref_id' => array(
  10094. 'description' => 'TODO: please describe this field!',
  10095. 'type' => 'serial',
  10096. 'not null' => TRUE,
  10097. ),
  10098. 'phylonode_id' => array(
  10099. 'description' => 'TODO: please describe this field!',
  10100. 'type' => 'int',
  10101. 'not null' => TRUE,
  10102. ),
  10103. 'dbxref_id' => array(
  10104. 'description' => 'TODO: please describe this field!',
  10105. 'type' => 'int',
  10106. 'not null' => TRUE,
  10107. ),
  10108. ),
  10109. 'primary key' => array(
  10110. 0 => 'phylonode_dbxref_id',
  10111. ),
  10112. 'unique keys' => array(
  10113. 'phylonode_id' => array(
  10114. 0 => 'phylonode_id',
  10115. 1 => 'dbxref_id',
  10116. ),
  10117. ),
  10118. 'indexes' => array(
  10119. 'phylonode_dbxref_idx1' => array(
  10120. 0 => 'phylonode_id',
  10121. ),
  10122. 'phylonode_dbxref_idx2' => array(
  10123. 0 => 'dbxref_id',
  10124. ),
  10125. ),
  10126. 'foreign keys' => array(
  10127. 'dbxref' => array(
  10128. 'table' => 'dbxref',
  10129. 'columns' => array(
  10130. 'dbxref_id' => 'dbxref_id',
  10131. ),
  10132. ),
  10133. 'phylonode' => array(
  10134. 'table' => 'phylonode',
  10135. 'columns' => array(
  10136. 'phylonode_id' => 'phylonode_id',
  10137. ),
  10138. ),
  10139. ),
  10140. 'table' => 'phylonode_dbxref',
  10141. 'referring_tables' => NULL,
  10142. );
  10143. return $description;
  10144. }
  10145. /**
  10146. * Implements hook_chado_schema_v1_2_phylonode_organism()
  10147. * Purpose: To describe the structure of 'phylonode_organism' to tripal
  10148. * @see tripal_core_chado_insert()
  10149. * @see tripal_core_chado_update()
  10150. * @see tripal_core_chado_select()
  10151. *
  10152. * @return
  10153. * An array describing the 'phylonode_organism' table
  10154. *
  10155. * @ingroup tripal_chado_v1.2_schema_api
  10156. *
  10157. */
  10158. function tripal_core_chado_schema_v1_2_phylonode_organism() {
  10159. $description = array(
  10160. 'description' => 'TODO: please describe this table!',
  10161. 'fields' => array(
  10162. 'phylonode_organism_id' => array(
  10163. 'description' => 'TODO: please describe this field!',
  10164. 'type' => 'serial',
  10165. 'not null' => TRUE,
  10166. ),
  10167. 'phylonode_id' => array(
  10168. 'description' => 'TODO: please describe this field!',
  10169. 'type' => 'int',
  10170. 'not null' => TRUE,
  10171. ),
  10172. 'organism_id' => array(
  10173. 'description' => 'TODO: please describe this field!',
  10174. 'type' => 'int',
  10175. 'not null' => TRUE,
  10176. ),
  10177. ),
  10178. 'primary key' => array(
  10179. 0 => 'phylonode_organism_id',
  10180. ),
  10181. 'unique keys' => array(
  10182. 'phylonode_id' => array(
  10183. 0 => 'phylonode_id',
  10184. ),
  10185. ),
  10186. 'indexes' => array(
  10187. 'phylonode_organism_idx1' => array(
  10188. 0 => 'phylonode_id',
  10189. ),
  10190. 'phylonode_organism_idx2' => array(
  10191. 0 => 'organism_id',
  10192. ),
  10193. ),
  10194. 'foreign keys' => array(
  10195. 'organism' => array(
  10196. 'table' => 'organism',
  10197. 'columns' => array(
  10198. 'organism_id' => 'organism_id',
  10199. ),
  10200. ),
  10201. 'phylonode' => array(
  10202. 'table' => 'phylonode',
  10203. 'columns' => array(
  10204. 'phylonode_id' => 'phylonode_id',
  10205. ),
  10206. ),
  10207. ),
  10208. 'table' => 'phylonode_organism',
  10209. 'referring_tables' => NULL,
  10210. );
  10211. return $description;
  10212. }
  10213. /**
  10214. * Implements hook_chado_schema_v1_2_phylonode_pub()
  10215. * Purpose: To describe the structure of 'phylonode_pub' to tripal
  10216. * @see tripal_core_chado_insert()
  10217. * @see tripal_core_chado_update()
  10218. * @see tripal_core_chado_select()
  10219. *
  10220. * @return
  10221. * An array describing the 'phylonode_pub' table
  10222. *
  10223. * @ingroup tripal_chado_v1.2_schema_api
  10224. *
  10225. */
  10226. function tripal_core_chado_schema_v1_2_phylonode_pub() {
  10227. $description = array(
  10228. 'description' => 'TODO: please describe this table!',
  10229. 'fields' => array(
  10230. 'phylonode_pub_id' => array(
  10231. 'description' => 'TODO: please describe this field!',
  10232. 'type' => 'serial',
  10233. 'not null' => TRUE,
  10234. ),
  10235. 'phylonode_id' => array(
  10236. 'description' => 'TODO: please describe this field!',
  10237. 'type' => 'int',
  10238. 'not null' => TRUE,
  10239. ),
  10240. 'pub_id' => array(
  10241. 'description' => 'TODO: please describe this field!',
  10242. 'type' => 'int',
  10243. 'not null' => TRUE,
  10244. ),
  10245. ),
  10246. 'primary key' => array(
  10247. 0 => 'phylonode_pub_id',
  10248. ),
  10249. 'unique keys' => array(
  10250. 'phylonode_id' => array(
  10251. 0 => 'phylonode_id',
  10252. 1 => 'pub_id',
  10253. ),
  10254. ),
  10255. 'indexes' => array(
  10256. 'phylonode_pub_idx1' => array(
  10257. 0 => 'phylonode_id',
  10258. ),
  10259. 'phylonode_pub_idx2' => array(
  10260. 0 => 'pub_id',
  10261. ),
  10262. ),
  10263. 'foreign keys' => array(
  10264. 'pub' => array(
  10265. 'table' => 'pub',
  10266. 'columns' => array(
  10267. 'pub_id' => 'pub_id',
  10268. ),
  10269. ),
  10270. 'phylonode' => array(
  10271. 'table' => 'phylonode',
  10272. 'columns' => array(
  10273. 'phylonode_id' => 'phylonode_id',
  10274. ),
  10275. ),
  10276. ),
  10277. 'table' => 'phylonode_pub',
  10278. 'referring_tables' => NULL,
  10279. );
  10280. return $description;
  10281. }
  10282. /**
  10283. * Implements hook_chado_schema_v1_2_phylonode_relationship()
  10284. * Purpose: To describe the structure of 'phylonode_relationship' to tripal
  10285. * @see tripal_core_chado_insert()
  10286. * @see tripal_core_chado_update()
  10287. * @see tripal_core_chado_select()
  10288. *
  10289. * @return
  10290. * An array describing the 'phylonode_relationship' table
  10291. *
  10292. * @ingroup tripal_chado_v1.2_schema_api
  10293. *
  10294. */
  10295. function tripal_core_chado_schema_v1_2_phylonode_relationship() {
  10296. $description = array(
  10297. 'description' => 'TODO: please describe this table!',
  10298. 'fields' => array(
  10299. 'phylonode_relationship_id' => array(
  10300. 'description' => 'TODO: please describe this field!',
  10301. 'type' => 'serial',
  10302. 'not null' => TRUE,
  10303. ),
  10304. 'subject_id' => array(
  10305. 'description' => 'TODO: please describe this field!',
  10306. 'type' => 'int',
  10307. 'not null' => TRUE,
  10308. ),
  10309. 'object_id' => array(
  10310. 'description' => 'TODO: please describe this field!',
  10311. 'type' => 'int',
  10312. 'not null' => TRUE,
  10313. ),
  10314. 'type_id' => array(
  10315. 'description' => 'TODO: please describe this field!',
  10316. 'type' => 'int',
  10317. 'not null' => TRUE,
  10318. ),
  10319. 'rank' => array(
  10320. 'description' => 'TODO: please describe this field!',
  10321. 'type' => 'int',
  10322. 'not null' => FALSE,
  10323. ),
  10324. 'phylotree_id' => array(
  10325. 'description' => 'TODO: please describe this field!',
  10326. 'type' => 'int',
  10327. 'not null' => TRUE,
  10328. ),
  10329. ),
  10330. 'primary key' => array(
  10331. 0 => 'phylonode_relationship_id',
  10332. ),
  10333. 'unique keys' => array(
  10334. 'subject_id' => array(
  10335. 0 => 'subject_id',
  10336. 1 => 'object_id',
  10337. 2 => 'type_id',
  10338. ),
  10339. ),
  10340. 'indexes' => array(
  10341. 'phylonode_relationship_idx1' => array(
  10342. 0 => 'subject_id',
  10343. ),
  10344. 'phylonode_relationship_idx2' => array(
  10345. 0 => 'object_id',
  10346. ),
  10347. 'phylonode_relationship_idx3' => array(
  10348. 0 => 'type_id',
  10349. ),
  10350. ),
  10351. 'foreign keys' => array(
  10352. 'cvterm' => array(
  10353. 'table' => 'cvterm',
  10354. 'columns' => array(
  10355. 'type_id' => 'cvterm_id',
  10356. ),
  10357. ),
  10358. 'phylonode' => array(
  10359. 'table' => 'phylonode',
  10360. 'columns' => array(
  10361. 'subject_id' => 'phylonode_id',
  10362. 'object_id' => 'phylonode_id',
  10363. ),
  10364. ),
  10365. 'phylotree' => array(
  10366. 'table' => 'phylotree',
  10367. 'columns' => array(
  10368. 'phylotree_id' => 'phylotree_id',
  10369. ),
  10370. ),
  10371. ),
  10372. 'table' => 'phylonode_relationship',
  10373. 'referring_tables' => NULL,
  10374. );
  10375. return $description;
  10376. }
  10377. /**
  10378. * Implements hook_chado_schema_v1_2_phylonodeprop()
  10379. * Purpose: To describe the structure of 'phylonodeprop' to tripal
  10380. * @see tripal_core_chado_insert()
  10381. * @see tripal_core_chado_update()
  10382. * @see tripal_core_chado_select()
  10383. *
  10384. * @return
  10385. * An array describing the 'phylonodeprop' table
  10386. *
  10387. * @ingroup tripal_chado_v1.2_schema_api
  10388. *
  10389. */
  10390. function tripal_core_chado_schema_v1_2_phylonodeprop() {
  10391. $description = array(
  10392. 'description' => 'TODO: please describe this table!',
  10393. 'fields' => array(
  10394. 'phylonodeprop_id' => array(
  10395. 'description' => 'TODO: please describe this field!',
  10396. 'type' => 'serial',
  10397. 'not null' => TRUE,
  10398. ),
  10399. 'phylonode_id' => array(
  10400. 'description' => 'TODO: please describe this field!',
  10401. 'type' => 'int',
  10402. 'not null' => TRUE,
  10403. ),
  10404. 'type_id' => array(
  10405. 'description' => 'TODO: please describe this field!',
  10406. 'type' => 'int',
  10407. 'not null' => TRUE,
  10408. ),
  10409. 'value' => array(
  10410. 'description' => 'TODO: please describe this field!',
  10411. 'type' => 'text',
  10412. 'not null' => TRUE,
  10413. 'default' => '',
  10414. ),
  10415. 'rank' => array(
  10416. 'description' => 'TODO: please describe this field!',
  10417. 'type' => 'int',
  10418. 'not null' => TRUE,
  10419. 'default' => 0,
  10420. ),
  10421. ),
  10422. 'primary key' => array(
  10423. 0 => 'phylonodeprop_id',
  10424. ),
  10425. 'unique keys' => array(
  10426. 'phylonode_id' => array(
  10427. 0 => 'phylonode_id',
  10428. 1 => 'type_id',
  10429. 2 => 'value',
  10430. 3 => 'rank',
  10431. ),
  10432. ),
  10433. 'indexes' => array(
  10434. 'phylonodeprop_idx1' => array(
  10435. 0 => 'phylonode_id',
  10436. ),
  10437. 'phylonodeprop_idx2' => array(
  10438. 0 => 'type_id',
  10439. ),
  10440. ),
  10441. 'foreign keys' => array(
  10442. 'cvterm' => array(
  10443. 'table' => 'cvterm',
  10444. 'columns' => array(
  10445. 'type_id' => 'cvterm_id',
  10446. ),
  10447. ),
  10448. 'phylonode' => array(
  10449. 'table' => 'phylonode',
  10450. 'columns' => array(
  10451. 'phylonode_id' => 'phylonode_id',
  10452. ),
  10453. ),
  10454. ),
  10455. 'table' => 'phylonodeprop',
  10456. 'referring_tables' => NULL,
  10457. );
  10458. return $description;
  10459. }
  10460. /**
  10461. * Implements hook_chado_schema_v1_2_phylotree()
  10462. * Purpose: To describe the structure of 'phylotree' to tripal
  10463. * @see tripal_core_chado_insert()
  10464. * @see tripal_core_chado_update()
  10465. * @see tripal_core_chado_select()
  10466. *
  10467. * @return
  10468. * An array describing the 'phylotree' table
  10469. *
  10470. * @ingroup tripal_chado_v1.2_schema_api
  10471. *
  10472. */
  10473. function tripal_core_chado_schema_v1_2_phylotree() {
  10474. $description = array(
  10475. 'description' => 'TODO: please describe this table!',
  10476. 'fields' => array(
  10477. 'phylotree_id' => array(
  10478. 'description' => 'TODO: please describe this field!',
  10479. 'type' => 'serial',
  10480. 'not null' => TRUE,
  10481. ),
  10482. 'dbxref_id' => array(
  10483. 'description' => 'TODO: please describe this field!',
  10484. 'type' => 'int',
  10485. 'not null' => TRUE,
  10486. ),
  10487. 'name' => array(
  10488. 'description' => 'TODO: please describe this field!',
  10489. 'type' => 'varchar',
  10490. 'length' => '255',
  10491. 'not null' => FALSE,
  10492. ),
  10493. 'type_id' => array(
  10494. 'description' => 'TODO: please describe this field!',
  10495. 'type' => 'int',
  10496. 'not null' => FALSE,
  10497. ),
  10498. 'analysis_id' => array(
  10499. 'description' => 'TODO: please describe this field!',
  10500. 'type' => 'int',
  10501. 'not null' => FALSE,
  10502. ),
  10503. 'comment' => array(
  10504. 'description' => 'TODO: please describe this field!',
  10505. 'type' => 'text',
  10506. 'not null' => FALSE,
  10507. ),
  10508. ),
  10509. 'primary key' => array(
  10510. 0 => 'phylotree_id',
  10511. ),
  10512. 'indexes' => array(
  10513. 'phylotree_idx1' => array(
  10514. 0 => 'phylotree_id',
  10515. ),
  10516. ),
  10517. 'foreign keys' => array(
  10518. 'cvterm' => array(
  10519. 'table' => 'cvterm',
  10520. 'columns' => array(
  10521. 'type_id' => 'cvterm_id',
  10522. ),
  10523. ),
  10524. 'dbxref' => array(
  10525. 'table' => 'dbxref',
  10526. 'columns' => array(
  10527. 'dbxref_id' => 'dbxref_id',
  10528. ),
  10529. ),
  10530. 'analysis' => array(
  10531. 'table' => 'analysis',
  10532. 'columns' => array(
  10533. 'analysis_id' => 'analysis_id',
  10534. ),
  10535. ),
  10536. ),
  10537. 'table' => 'phylotree',
  10538. 'referring_tables' => array(
  10539. 0 => 'phylonode',
  10540. 1 => 'phylonode_relationship',
  10541. 2 => 'phylotree_pub',
  10542. ),
  10543. );
  10544. return $description;
  10545. }
  10546. /**
  10547. * Implements hook_chado_schema_v1_2_phylotree_pub()
  10548. * Purpose: To describe the structure of 'phylotree_pub' to tripal
  10549. * @see tripal_core_chado_insert()
  10550. * @see tripal_core_chado_update()
  10551. * @see tripal_core_chado_select()
  10552. *
  10553. * @return
  10554. * An array describing the 'phylotree_pub' table
  10555. *
  10556. * @ingroup tripal_chado_v1.2_schema_api
  10557. *
  10558. */
  10559. function tripal_core_chado_schema_v1_2_phylotree_pub() {
  10560. $description = array(
  10561. 'description' => 'TODO: please describe this table!',
  10562. 'fields' => array(
  10563. 'phylotree_pub_id' => array(
  10564. 'description' => 'TODO: please describe this field!',
  10565. 'type' => 'serial',
  10566. 'not null' => TRUE,
  10567. ),
  10568. 'phylotree_id' => array(
  10569. 'description' => 'TODO: please describe this field!',
  10570. 'type' => 'int',
  10571. 'not null' => TRUE,
  10572. ),
  10573. 'pub_id' => array(
  10574. 'description' => 'TODO: please describe this field!',
  10575. 'type' => 'int',
  10576. 'not null' => TRUE,
  10577. ),
  10578. ),
  10579. 'primary key' => array(
  10580. 0 => 'phylotree_pub_id',
  10581. ),
  10582. 'unique keys' => array(
  10583. 'phylotree_id' => array(
  10584. 0 => 'phylotree_id',
  10585. 1 => 'pub_id',
  10586. ),
  10587. ),
  10588. 'indexes' => array(
  10589. 'phylotree_pub_idx1' => array(
  10590. 0 => 'phylotree_id',
  10591. ),
  10592. 'phylotree_pub_idx2' => array(
  10593. 0 => 'pub_id',
  10594. ),
  10595. ),
  10596. 'foreign keys' => array(
  10597. 'pub' => array(
  10598. 'table' => 'pub',
  10599. 'columns' => array(
  10600. 'pub_id' => 'pub_id',
  10601. ),
  10602. ),
  10603. 'phylotree' => array(
  10604. 'table' => 'phylotree',
  10605. 'columns' => array(
  10606. 'phylotree_id' => 'phylotree_id',
  10607. ),
  10608. ),
  10609. ),
  10610. 'table' => 'phylotree_pub',
  10611. 'referring_tables' => NULL,
  10612. );
  10613. return $description;
  10614. }
  10615. /**
  10616. * Implements hook_chado_schema_v1_2_project()
  10617. * Purpose: To describe the structure of 'project' to tripal
  10618. * @see tripal_core_chado_insert()
  10619. * @see tripal_core_chado_update()
  10620. * @see tripal_core_chado_select()
  10621. *
  10622. * @return
  10623. * An array describing the 'project' table
  10624. *
  10625. * @ingroup tripal_chado_v1.2_schema_api
  10626. *
  10627. */
  10628. function tripal_core_chado_schema_v1_2_project() {
  10629. $description = array(
  10630. 'description' => 'TODO: please describe this table!',
  10631. 'fields' => array(
  10632. 'project_id' => array(
  10633. 'description' => 'TODO: please describe this field!',
  10634. 'type' => 'serial',
  10635. 'not null' => TRUE,
  10636. ),
  10637. 'name' => array(
  10638. 'description' => 'TODO: please describe this field!',
  10639. 'type' => 'varchar',
  10640. 'length' => '255',
  10641. 'not null' => TRUE,
  10642. ),
  10643. 'description' => array(
  10644. 'description' => 'TODO: please describe this field!',
  10645. 'type' => 'varchar',
  10646. 'length' => '255',
  10647. 'not null' => TRUE,
  10648. ),
  10649. ),
  10650. 'primary key' => array(
  10651. 0 => 'project_id',
  10652. ),
  10653. 'unique keys' => array(
  10654. 'project_c1' => array(
  10655. 0 => 'name',
  10656. ),
  10657. ),
  10658. 'foreign keys' => array(
  10659. ),
  10660. 'table' => 'project',
  10661. 'referring_tables' => array(
  10662. 0 => 'assay_project',
  10663. 1 => 'nd_experiment_project',
  10664. 2 => 'project_contact',
  10665. 10 => 'project_pub',
  10666. 18 => 'project_relationship',
  10667. 34 => 'projectprop',
  10668. ),
  10669. );
  10670. return $description;
  10671. }
  10672. /**
  10673. * Implements hook_chado_schema_v1_2_project_contact()
  10674. * Purpose: To describe the structure of 'project_contact' to tripal
  10675. * @see tripal_core_chado_insert()
  10676. * @see tripal_core_chado_update()
  10677. * @see tripal_core_chado_select()
  10678. *
  10679. * @return
  10680. * An array describing the 'project_contact' table
  10681. *
  10682. * @ingroup tripal_chado_v1.2_schema_api
  10683. *
  10684. */
  10685. function tripal_core_chado_schema_v1_2_project_contact() {
  10686. $description = array(
  10687. 'description' => 'TODO: please describe this table!',
  10688. 'fields' => array(
  10689. 'project_contact_id' => array(
  10690. 'description' => 'TODO: please describe this field!',
  10691. 'type' => 'serial',
  10692. 'not null' => TRUE,
  10693. ),
  10694. 'project_id' => array(
  10695. 'description' => 'TODO: please describe this field!',
  10696. 'type' => 'int',
  10697. 'not null' => TRUE,
  10698. ),
  10699. 'contact_id' => array(
  10700. 'description' => 'TODO: please describe this field!',
  10701. 'type' => 'int',
  10702. 'not null' => TRUE,
  10703. ),
  10704. ),
  10705. 'primary key' => array(
  10706. 0 => 'project_contact_id',
  10707. ),
  10708. 'unique keys' => array(
  10709. 'project_contact_c1' => array(
  10710. 0 => 'project_id',
  10711. 1 => 'contact_id',
  10712. ),
  10713. ),
  10714. 'indexes' => array(
  10715. 'project_contact_idx1' => array(
  10716. 0 => 'project_id',
  10717. ),
  10718. 'project_contact_idx2' => array(
  10719. 0 => 'contact_id',
  10720. ),
  10721. ),
  10722. 'foreign keys' => array(
  10723. 'contact' => array(
  10724. 'table' => 'contact',
  10725. 'columns' => array(
  10726. 'contact_id' => 'contact_id',
  10727. ),
  10728. ),
  10729. 'project' => array(
  10730. 'table' => 'project',
  10731. 'columns' => array(
  10732. 'project_id' => 'project_id',
  10733. ),
  10734. ),
  10735. ),
  10736. 'table' => 'project_contact',
  10737. 'referring_tables' => NULL,
  10738. );
  10739. return $description;
  10740. }
  10741. /**
  10742. * Implements hook_chado_schema_v1_2_project_pub()
  10743. * Purpose: To describe the structure of 'project_pub' to tripal
  10744. * @see tripal_core_chado_insert()
  10745. * @see tripal_core_chado_update()
  10746. * @see tripal_core_chado_select()
  10747. *
  10748. * @return
  10749. * An array describing the 'project_pub' table
  10750. *
  10751. * @ingroup tripal_chado_v1.2_schema_api
  10752. *
  10753. */
  10754. function tripal_core_chado_schema_v1_2_project_pub() {
  10755. $description = array(
  10756. 'description' => 'TODO: please describe this table!',
  10757. 'fields' => array(
  10758. 'project_pub_id' => array(
  10759. 'description' => 'TODO: please describe this field!',
  10760. 'type' => 'serial',
  10761. 'not null' => TRUE,
  10762. ),
  10763. 'project_id' => array(
  10764. 'description' => 'TODO: please describe this field!',
  10765. 'type' => 'int',
  10766. 'not null' => TRUE,
  10767. ),
  10768. 'pub_id' => array(
  10769. 'description' => 'TODO: please describe this field!',
  10770. 'type' => 'int',
  10771. 'not null' => TRUE,
  10772. ),
  10773. ),
  10774. 'primary key' => array(
  10775. 0 => 'project_pub_id',
  10776. ),
  10777. 'unique keys' => array(
  10778. 'project_pub_c1' => array(
  10779. 0 => 'project_id',
  10780. 1 => 'pub_id',
  10781. ),
  10782. ),
  10783. 'indexes' => array(
  10784. 'project_pub_idx1' => array(
  10785. 0 => 'project_id',
  10786. ),
  10787. 'project_pub_idx2' => array(
  10788. 0 => 'pub_id',
  10789. ),
  10790. ),
  10791. 'foreign keys' => array(
  10792. 'pub' => array(
  10793. 'table' => 'pub',
  10794. 'columns' => array(
  10795. 'pub_id' => 'pub_id',
  10796. ),
  10797. ),
  10798. 'project' => array(
  10799. 'table' => 'project',
  10800. 'columns' => array(
  10801. 'project_id' => 'project_id',
  10802. ),
  10803. ),
  10804. ),
  10805. 'table' => 'project_pub',
  10806. 'referring_tables' => NULL,
  10807. );
  10808. return $description;
  10809. }
  10810. /**
  10811. * Implements hook_chado_schema_v1_2_project_relationship()
  10812. * Purpose: To describe the structure of 'project_relationship' to tripal
  10813. * @see tripal_core_chado_insert()
  10814. * @see tripal_core_chado_update()
  10815. * @see tripal_core_chado_select()
  10816. *
  10817. * @return
  10818. * An array describing the 'project_relationship' table
  10819. *
  10820. * @ingroup tripal_chado_v1.2_schema_api
  10821. *
  10822. */
  10823. function tripal_core_chado_schema_v1_2_project_relationship() {
  10824. $description = array(
  10825. 'description' => 'TODO: please describe this table!',
  10826. 'fields' => array(
  10827. 'project_relationship_id' => array(
  10828. 'description' => 'TODO: please describe this field!',
  10829. 'type' => 'serial',
  10830. 'not null' => TRUE,
  10831. ),
  10832. 'subject_project_id' => array(
  10833. 'description' => 'TODO: please describe this field!',
  10834. 'type' => 'int',
  10835. 'not null' => TRUE,
  10836. ),
  10837. 'object_project_id' => array(
  10838. 'description' => 'TODO: please describe this field!',
  10839. 'type' => 'int',
  10840. 'not null' => TRUE,
  10841. ),
  10842. 'type_id' => array(
  10843. 'description' => 'TODO: please describe this field!',
  10844. 'type' => 'int',
  10845. 'not null' => TRUE,
  10846. ),
  10847. ),
  10848. 'primary key' => array(
  10849. 0 => 'project_relationship_id',
  10850. ),
  10851. 'unique keys' => array(
  10852. 'project_relationship_c1' => array(
  10853. 0 => 'subject_project_id',
  10854. 1 => 'object_project_id',
  10855. 2 => 'type_id',
  10856. ),
  10857. ),
  10858. 'foreign keys' => array(
  10859. 'cvterm' => array(
  10860. 'table' => 'cvterm',
  10861. 'columns' => array(
  10862. 'type_id' => 'cvterm_id',
  10863. ),
  10864. ),
  10865. 'project' => array(
  10866. 'table' => 'project',
  10867. 'columns' => array(
  10868. 'subject_project_id' => 'project_id',
  10869. 'object_project_id' => 'project_id',
  10870. ),
  10871. ),
  10872. ),
  10873. 'table' => 'project_relationship',
  10874. 'referring_tables' => NULL,
  10875. );
  10876. return $description;
  10877. }
  10878. /**
  10879. * Implements hook_chado_schema_v1_2_projectprop()
  10880. * Purpose: To describe the structure of 'projectprop' to tripal
  10881. * @see tripal_core_chado_insert()
  10882. * @see tripal_core_chado_update()
  10883. * @see tripal_core_chado_select()
  10884. *
  10885. * @return
  10886. * An array describing the 'projectprop' table
  10887. *
  10888. * @ingroup tripal_chado_v1.2_schema_api
  10889. *
  10890. */
  10891. function tripal_core_chado_schema_v1_2_projectprop() {
  10892. $description = array(
  10893. 'description' => 'TODO: please describe this table!',
  10894. 'fields' => array(
  10895. 'projectprop_id' => array(
  10896. 'description' => 'TODO: please describe this field!',
  10897. 'type' => 'serial',
  10898. 'not null' => TRUE,
  10899. ),
  10900. 'project_id' => array(
  10901. 'description' => 'TODO: please describe this field!',
  10902. 'type' => 'int',
  10903. 'not null' => TRUE,
  10904. ),
  10905. 'type_id' => array(
  10906. 'description' => 'TODO: please describe this field!',
  10907. 'type' => 'int',
  10908. 'not null' => TRUE,
  10909. ),
  10910. 'value' => array(
  10911. 'description' => 'TODO: please describe this field!',
  10912. 'type' => 'text',
  10913. 'not null' => FALSE,
  10914. ),
  10915. 'rank' => array(
  10916. 'description' => 'TODO: please describe this field!',
  10917. 'type' => 'int',
  10918. 'not null' => TRUE,
  10919. 'default' => 0,
  10920. ),
  10921. ),
  10922. 'primary key' => array(
  10923. 0 => 'projectprop_id',
  10924. ),
  10925. 'unique keys' => array(
  10926. 'projectprop_c1' => array(
  10927. 0 => 'project_id',
  10928. 1 => 'type_id',
  10929. 2 => 'rank',
  10930. ),
  10931. ),
  10932. 'foreign keys' => array(
  10933. 'cvterm' => array(
  10934. 'table' => 'cvterm',
  10935. 'columns' => array(
  10936. 'type_id' => 'cvterm_id',
  10937. ),
  10938. ),
  10939. 'project' => array(
  10940. 'table' => 'project',
  10941. 'columns' => array(
  10942. 'project_id' => 'project_id',
  10943. ),
  10944. ),
  10945. ),
  10946. 'table' => 'projectprop',
  10947. 'referring_tables' => NULL,
  10948. );
  10949. return $description;
  10950. }
  10951. /**
  10952. * Implements hook_chado_schema_v1_2_protocol()
  10953. * Purpose: To describe the structure of 'protocol' to tripal
  10954. * @see tripal_core_chado_insert()
  10955. * @see tripal_core_chado_update()
  10956. * @see tripal_core_chado_select()
  10957. *
  10958. * @return
  10959. * An array describing the 'protocol' table
  10960. *
  10961. * @ingroup tripal_chado_v1.2_schema_api
  10962. *
  10963. */
  10964. function tripal_core_chado_schema_v1_2_protocol() {
  10965. $description = array(
  10966. 'description' => 'TODO: please describe this table!',
  10967. 'fields' => array(
  10968. 'protocol_id' => array(
  10969. 'description' => 'TODO: please describe this field!',
  10970. 'type' => 'serial',
  10971. 'not null' => TRUE,
  10972. ),
  10973. 'type_id' => array(
  10974. 'description' => 'TODO: please describe this field!',
  10975. 'type' => 'int',
  10976. 'not null' => TRUE,
  10977. ),
  10978. 'pub_id' => array(
  10979. 'description' => 'TODO: please describe this field!',
  10980. 'type' => 'int',
  10981. 'not null' => FALSE,
  10982. ),
  10983. 'dbxref_id' => array(
  10984. 'description' => 'TODO: please describe this field!',
  10985. 'type' => 'int',
  10986. 'not null' => FALSE,
  10987. ),
  10988. 'name' => array(
  10989. 'description' => 'TODO: please describe this field!',
  10990. 'type' => 'text',
  10991. 'not null' => TRUE,
  10992. ),
  10993. 'uri' => array(
  10994. 'description' => 'TODO: please describe this field!',
  10995. 'type' => 'text',
  10996. 'not null' => FALSE,
  10997. ),
  10998. 'protocoldescription' => array(
  10999. 'description' => 'TODO: please describe this field!',
  11000. 'type' => 'text',
  11001. 'not null' => FALSE,
  11002. ),
  11003. 'hardwaredescription' => array(
  11004. 'description' => 'TODO: please describe this field!',
  11005. 'type' => 'text',
  11006. 'not null' => FALSE,
  11007. ),
  11008. 'softwaredescription' => array(
  11009. 'description' => 'TODO: please describe this field!',
  11010. 'type' => 'text',
  11011. 'not null' => FALSE,
  11012. ),
  11013. ),
  11014. 'primary key' => array(
  11015. 0 => 'protocol_id',
  11016. ),
  11017. 'unique keys' => array(
  11018. 'protocol_c1' => array(
  11019. 0 => 'name',
  11020. ),
  11021. ),
  11022. 'indexes' => array(
  11023. 'protocol_idx1' => array(
  11024. 0 => 'type_id',
  11025. ),
  11026. 'protocol_idx2' => array(
  11027. 0 => 'pub_id',
  11028. ),
  11029. 'protocol_idx3' => array(
  11030. 0 => 'dbxref_id',
  11031. ),
  11032. ),
  11033. 'foreign keys' => array(
  11034. 'cvterm' => array(
  11035. 'table' => 'cvterm',
  11036. 'columns' => array(
  11037. 'type_id' => 'cvterm_id',
  11038. ),
  11039. ),
  11040. 'dbxref' => array(
  11041. 'table' => 'dbxref',
  11042. 'columns' => array(
  11043. 'dbxref_id' => 'dbxref_id',
  11044. ),
  11045. ),
  11046. 'pub' => array(
  11047. 'table' => 'pub',
  11048. 'columns' => array(
  11049. 'pub_id' => 'pub_id',
  11050. ),
  11051. ),
  11052. ),
  11053. 'table' => 'protocol',
  11054. 'referring_tables' => array(
  11055. 0 => 'acquisition',
  11056. 1 => 'arraydesign',
  11057. 2 => 'assay',
  11058. 3 => 'protocolparam',
  11059. 4 => 'quantification',
  11060. 5 => 'treatment',
  11061. ),
  11062. );
  11063. return $description;
  11064. }
  11065. /**
  11066. * Implements hook_chado_schema_v1_2_protocolparam()
  11067. * Purpose: To describe the structure of 'protocolparam' to tripal
  11068. * @see tripal_core_chado_insert()
  11069. * @see tripal_core_chado_update()
  11070. * @see tripal_core_chado_select()
  11071. *
  11072. * @return
  11073. * An array describing the 'protocolparam' table
  11074. *
  11075. * @ingroup tripal_chado_v1.2_schema_api
  11076. *
  11077. */
  11078. function tripal_core_chado_schema_v1_2_protocolparam() {
  11079. $description = array(
  11080. 'description' => 'TODO: please describe this table!',
  11081. 'fields' => array(
  11082. 'protocolparam_id' => array(
  11083. 'description' => 'TODO: please describe this field!',
  11084. 'type' => 'serial',
  11085. 'not null' => TRUE,
  11086. ),
  11087. 'protocol_id' => array(
  11088. 'description' => 'TODO: please describe this field!',
  11089. 'type' => 'int',
  11090. 'not null' => TRUE,
  11091. ),
  11092. 'name' => array(
  11093. 'description' => 'TODO: please describe this field!',
  11094. 'type' => 'text',
  11095. 'not null' => TRUE,
  11096. ),
  11097. 'datatype_id' => array(
  11098. 'description' => 'TODO: please describe this field!',
  11099. 'type' => 'int',
  11100. 'not null' => FALSE,
  11101. ),
  11102. 'unittype_id' => array(
  11103. 'description' => 'TODO: please describe this field!',
  11104. 'type' => 'int',
  11105. 'not null' => FALSE,
  11106. ),
  11107. 'value' => array(
  11108. 'description' => 'TODO: please describe this field!',
  11109. 'type' => 'text',
  11110. 'not null' => FALSE,
  11111. ),
  11112. 'rank' => array(
  11113. 'description' => 'TODO: please describe this field!',
  11114. 'type' => 'int',
  11115. 'not null' => TRUE,
  11116. 'default' => 0,
  11117. ),
  11118. ),
  11119. 'primary key' => array(
  11120. 0 => 'protocolparam_id',
  11121. ),
  11122. 'indexes' => array(
  11123. 'protocolparam_idx1' => array(
  11124. 0 => 'protocol_id',
  11125. ),
  11126. 'protocolparam_idx2' => array(
  11127. 0 => 'datatype_id',
  11128. ),
  11129. 'protocolparam_idx3' => array(
  11130. 0 => 'unittype_id',
  11131. ),
  11132. ),
  11133. 'foreign keys' => array(
  11134. 'cvterm' => array(
  11135. 'table' => 'cvterm',
  11136. 'columns' => array(
  11137. 'datatype_id' => 'cvterm_id',
  11138. 'unittype_id' => 'cvterm_id',
  11139. ),
  11140. ),
  11141. 'protocol' => array(
  11142. 'table' => 'protocol',
  11143. 'columns' => array(
  11144. 'protocol_id' => 'protocol_id',
  11145. ),
  11146. ),
  11147. ),
  11148. 'table' => 'protocolparam',
  11149. 'referring_tables' => NULL,
  11150. );
  11151. return $description;
  11152. }
  11153. /**
  11154. * Implements hook_chado_schema_v1_2_pub()
  11155. * Purpose: To describe the structure of 'pub' to tripal
  11156. * @see tripal_core_chado_insert()
  11157. * @see tripal_core_chado_update()
  11158. * @see tripal_core_chado_select()
  11159. *
  11160. * @return
  11161. * An array describing the 'pub' table
  11162. *
  11163. * @ingroup tripal_chado_v1.2_schema_api
  11164. *
  11165. */
  11166. function tripal_core_chado_schema_v1_2_pub() {
  11167. $description = array(
  11168. 'description' => 'TODO: please describe this table!',
  11169. 'fields' => array(
  11170. 'pub_id' => array(
  11171. 'description' => 'TODO: please describe this field!',
  11172. 'type' => 'serial',
  11173. 'not null' => TRUE,
  11174. ),
  11175. 'title' => array(
  11176. 'description' => 'TODO: please describe this field!',
  11177. 'type' => 'text',
  11178. 'not null' => FALSE,
  11179. ),
  11180. 'volumetitle' => array(
  11181. 'description' => 'TODO: please describe this field!',
  11182. 'type' => 'text',
  11183. 'not null' => FALSE,
  11184. ),
  11185. 'volume' => array(
  11186. 'description' => 'TODO: please describe this field!',
  11187. 'type' => 'varchar',
  11188. 'length' => '255',
  11189. 'not null' => FALSE,
  11190. ),
  11191. 'series_name' => array(
  11192. 'description' => 'TODO: please describe this field!',
  11193. 'type' => 'varchar',
  11194. 'length' => '255',
  11195. 'not null' => FALSE,
  11196. ),
  11197. 'issue' => array(
  11198. 'description' => 'TODO: please describe this field!',
  11199. 'type' => 'varchar',
  11200. 'length' => '255',
  11201. 'not null' => FALSE,
  11202. ),
  11203. 'pyear' => array(
  11204. 'description' => 'TODO: please describe this field!',
  11205. 'type' => 'varchar',
  11206. 'length' => '255',
  11207. 'not null' => FALSE,
  11208. ),
  11209. 'pages' => array(
  11210. 'description' => 'TODO: please describe this field!',
  11211. 'type' => 'varchar',
  11212. 'length' => '255',
  11213. 'not null' => FALSE,
  11214. ),
  11215. 'miniref' => array(
  11216. 'description' => 'TODO: please describe this field!',
  11217. 'type' => 'varchar',
  11218. 'length' => '255',
  11219. 'not null' => FALSE,
  11220. ),
  11221. 'uniquename' => array(
  11222. 'description' => 'TODO: please describe this field!',
  11223. 'type' => 'text',
  11224. 'not null' => TRUE,
  11225. ),
  11226. 'type_id' => array(
  11227. 'description' => 'TODO: please describe this field!',
  11228. 'type' => 'int',
  11229. 'not null' => TRUE,
  11230. ),
  11231. 'is_obsolete' => array(
  11232. 'description' => 'TODO: please describe this field!',
  11233. 'type' => 'boolean',
  11234. 'not null' => FALSE,
  11235. 'default' => 'als',
  11236. ),
  11237. 'publisher' => array(
  11238. 'description' => 'TODO: please describe this field!',
  11239. 'type' => 'varchar',
  11240. 'length' => '255',
  11241. 'not null' => FALSE,
  11242. ),
  11243. 'pubplace' => array(
  11244. 'description' => 'TODO: please describe this field!',
  11245. 'type' => 'varchar',
  11246. 'length' => '255',
  11247. 'not null' => FALSE,
  11248. ),
  11249. ),
  11250. 'primary key' => array(
  11251. 0 => 'pub_id',
  11252. ),
  11253. 'unique keys' => array(
  11254. 'pub_c1' => array(
  11255. 0 => 'uniquename',
  11256. ),
  11257. ),
  11258. 'indexes' => array(
  11259. 'pub_idx1' => array(
  11260. 0 => 'type_id',
  11261. ),
  11262. ),
  11263. 'foreign keys' => array(
  11264. 'cvterm' => array(
  11265. 'table' => 'cvterm',
  11266. 'columns' => array(
  11267. 'type_id' => 'cvterm_id',
  11268. ),
  11269. ),
  11270. ),
  11271. 'table' => 'pub',
  11272. 'referring_tables' => array(
  11273. 0 => 'cell_line_cvterm',
  11274. 1 => 'cell_line_feature',
  11275. 2 => 'cell_line_library',
  11276. 3 => 'cell_line_pub',
  11277. 4 => 'cell_line_synonym',
  11278. 5 => 'cell_lineprop_pub',
  11279. 6 => 'expression_pub',
  11280. 7 => 'feature_cvterm',
  11281. 8 => 'feature_cvterm_pub',
  11282. 9 => 'feature_expression',
  11283. 10 => 'feature_pub',
  11284. 11 => 'feature_relationship_pub',
  11285. 12 => 'feature_relationshipprop_pub',
  11286. 13 => 'feature_synonym',
  11287. 14 => 'featureloc_pub',
  11288. 15 => 'featuremap_pub',
  11289. 16 => 'featureprop_pub',
  11290. 17 => 'library_cvterm',
  11291. 18 => 'library_pub',
  11292. 19 => 'library_synonym',
  11293. 20 => 'libraryprop_pub',
  11294. 21 => 'nd_experiment_pub',
  11295. 22 => 'phendesc',
  11296. 23 => 'phenotype_comparison',
  11297. 24 => 'phenotype_comparison_cvterm',
  11298. 25 => 'phenstatement',
  11299. 26 => 'phylonode_pub',
  11300. 27 => 'phylotree_pub',
  11301. 28 => 'project_pub',
  11302. 36 => 'protocol',
  11303. 37 => 'pub_dbxref',
  11304. 38 => 'pub_relationship',
  11305. 40 => 'pubauthor',
  11306. 41 => 'pubprop',
  11307. 42 => 'stock_cvterm',
  11308. 43 => 'stock_pub',
  11309. 44 => 'stock_relationship_cvterm',
  11310. 52 => 'stock_relationship_pub',
  11311. 53 => 'stockprop_pub',
  11312. 54 => 'study',
  11313. ),
  11314. );
  11315. return $description;
  11316. }
  11317. /**
  11318. * Implements hook_chado_schema_v1_2_pub_dbxref()
  11319. * Purpose: To describe the structure of 'pub_dbxref' to tripal
  11320. * @see tripal_core_chado_insert()
  11321. * @see tripal_core_chado_update()
  11322. * @see tripal_core_chado_select()
  11323. *
  11324. * @return
  11325. * An array describing the 'pub_dbxref' table
  11326. *
  11327. * @ingroup tripal_chado_v1.2_schema_api
  11328. *
  11329. */
  11330. function tripal_core_chado_schema_v1_2_pub_dbxref() {
  11331. $description = array(
  11332. 'description' => 'TODO: please describe this table!',
  11333. 'fields' => array(
  11334. 'pub_dbxref_id' => array(
  11335. 'description' => 'TODO: please describe this field!',
  11336. 'type' => 'serial',
  11337. 'not null' => TRUE,
  11338. ),
  11339. 'pub_id' => array(
  11340. 'description' => 'TODO: please describe this field!',
  11341. 'type' => 'int',
  11342. 'not null' => TRUE,
  11343. ),
  11344. 'dbxref_id' => array(
  11345. 'description' => 'TODO: please describe this field!',
  11346. 'type' => 'int',
  11347. 'not null' => TRUE,
  11348. ),
  11349. 'is_current' => array(
  11350. 'description' => 'TODO: please describe this field!',
  11351. 'type' => 'boolean',
  11352. 'not null' => TRUE,
  11353. 'default' => 'ru',
  11354. ),
  11355. ),
  11356. 'primary key' => array(
  11357. 0 => 'pub_dbxref_id',
  11358. ),
  11359. 'unique keys' => array(
  11360. 'pub_dbxref_c1' => array(
  11361. 0 => 'pub_id',
  11362. 1 => 'dbxref_id',
  11363. ),
  11364. ),
  11365. 'indexes' => array(
  11366. 'pub_dbxref_idx1' => array(
  11367. 0 => 'pub_id',
  11368. ),
  11369. 'pub_dbxref_idx2' => array(
  11370. 0 => 'dbxref_id',
  11371. ),
  11372. ),
  11373. 'foreign keys' => array(
  11374. 'dbxref' => array(
  11375. 'table' => 'dbxref',
  11376. 'columns' => array(
  11377. 'dbxref_id' => 'dbxref_id',
  11378. ),
  11379. ),
  11380. 'pub' => array(
  11381. 'table' => 'pub',
  11382. 'columns' => array(
  11383. 'pub_id' => 'pub_id',
  11384. ),
  11385. ),
  11386. ),
  11387. 'table' => 'pub_dbxref',
  11388. 'referring_tables' => NULL,
  11389. );
  11390. return $description;
  11391. }
  11392. /**
  11393. * Implements hook_chado_schema_v1_2_pub_relationship()
  11394. * Purpose: To describe the structure of 'pub_relationship' to tripal
  11395. * @see tripal_core_chado_insert()
  11396. * @see tripal_core_chado_update()
  11397. * @see tripal_core_chado_select()
  11398. *
  11399. * @return
  11400. * An array describing the 'pub_relationship' table
  11401. *
  11402. * @ingroup tripal_chado_v1.2_schema_api
  11403. *
  11404. */
  11405. function tripal_core_chado_schema_v1_2_pub_relationship() {
  11406. $description = array(
  11407. 'description' => 'TODO: please describe this table!',
  11408. 'fields' => array(
  11409. 'pub_relationship_id' => array(
  11410. 'description' => 'TODO: please describe this field!',
  11411. 'type' => 'serial',
  11412. 'not null' => TRUE,
  11413. ),
  11414. 'subject_id' => array(
  11415. 'description' => 'TODO: please describe this field!',
  11416. 'type' => 'int',
  11417. 'not null' => TRUE,
  11418. ),
  11419. 'object_id' => array(
  11420. 'description' => 'TODO: please describe this field!',
  11421. 'type' => 'int',
  11422. 'not null' => TRUE,
  11423. ),
  11424. 'type_id' => array(
  11425. 'description' => 'TODO: please describe this field!',
  11426. 'type' => 'int',
  11427. 'not null' => TRUE,
  11428. ),
  11429. ),
  11430. 'primary key' => array(
  11431. 0 => 'pub_relationship_id',
  11432. ),
  11433. 'unique keys' => array(
  11434. 'pub_relationship_c1' => array(
  11435. 0 => 'subject_id',
  11436. 1 => 'object_id',
  11437. 2 => 'type_id',
  11438. ),
  11439. ),
  11440. 'indexes' => array(
  11441. 'pub_relationship_idx1' => array(
  11442. 0 => 'subject_id',
  11443. ),
  11444. 'pub_relationship_idx2' => array(
  11445. 0 => 'object_id',
  11446. ),
  11447. 'pub_relationship_idx3' => array(
  11448. 0 => 'type_id',
  11449. ),
  11450. ),
  11451. 'foreign keys' => array(
  11452. 'cvterm' => array(
  11453. 'table' => 'cvterm',
  11454. 'columns' => array(
  11455. 'type_id' => 'cvterm_id',
  11456. ),
  11457. ),
  11458. 'pub' => array(
  11459. 'table' => 'pub',
  11460. 'columns' => array(
  11461. 'subject_id' => 'pub_id',
  11462. 'object_id' => 'pub_id',
  11463. ),
  11464. ),
  11465. ),
  11466. 'table' => 'pub_relationship',
  11467. 'referring_tables' => NULL,
  11468. );
  11469. return $description;
  11470. }
  11471. /**
  11472. * Implements hook_chado_schema_v1_2_pubauthor()
  11473. * Purpose: To describe the structure of 'pubauthor' to tripal
  11474. * @see tripal_core_chado_insert()
  11475. * @see tripal_core_chado_update()
  11476. * @see tripal_core_chado_select()
  11477. *
  11478. * @return
  11479. * An array describing the 'pubauthor' table
  11480. *
  11481. * @ingroup tripal_chado_v1.2_schema_api
  11482. *
  11483. */
  11484. function tripal_core_chado_schema_v1_2_pubauthor() {
  11485. $description = array(
  11486. 'description' => 'TODO: please describe this table!',
  11487. 'fields' => array(
  11488. 'pubauthor_id' => array(
  11489. 'description' => 'TODO: please describe this field!',
  11490. 'type' => 'serial',
  11491. 'not null' => TRUE,
  11492. ),
  11493. 'pub_id' => array(
  11494. 'description' => 'TODO: please describe this field!',
  11495. 'type' => 'int',
  11496. 'not null' => TRUE,
  11497. ),
  11498. 'rank' => array(
  11499. 'description' => 'TODO: please describe this field!',
  11500. 'type' => 'int',
  11501. 'not null' => TRUE,
  11502. ),
  11503. 'editor' => array(
  11504. 'description' => 'TODO: please describe this field!',
  11505. 'type' => 'boolean',
  11506. 'not null' => FALSE,
  11507. 'default' => 'als',
  11508. ),
  11509. 'surname' => array(
  11510. 'description' => 'TODO: please describe this field!',
  11511. 'type' => 'varchar',
  11512. 'length' => '100',
  11513. 'not null' => TRUE,
  11514. ),
  11515. 'givennames' => array(
  11516. 'description' => 'TODO: please describe this field!',
  11517. 'type' => 'varchar',
  11518. 'length' => '100',
  11519. 'not null' => FALSE,
  11520. ),
  11521. 'suffix' => array(
  11522. 'description' => 'TODO: please describe this field!',
  11523. 'type' => 'varchar',
  11524. 'length' => '100',
  11525. 'not null' => FALSE,
  11526. ),
  11527. ),
  11528. 'primary key' => array(
  11529. 0 => 'pubauthor_id',
  11530. ),
  11531. 'unique keys' => array(
  11532. 'pubauthor_c1' => array(
  11533. 0 => 'pub_id',
  11534. 1 => 'rank',
  11535. ),
  11536. ),
  11537. 'indexes' => array(
  11538. 'pubauthor_idx2' => array(
  11539. 0 => 'pub_id',
  11540. ),
  11541. ),
  11542. 'foreign keys' => array(
  11543. 'pub' => array(
  11544. 'table' => 'pub',
  11545. 'columns' => array(
  11546. 'pub_id' => 'pub_id',
  11547. ),
  11548. ),
  11549. ),
  11550. 'table' => 'pubauthor',
  11551. 'referring_tables' => NULL,
  11552. );
  11553. return $description;
  11554. }
  11555. /**
  11556. * Implements hook_chado_schema_v1_2_pubprop()
  11557. * Purpose: To describe the structure of 'pubprop' to tripal
  11558. * @see tripal_core_chado_insert()
  11559. * @see tripal_core_chado_update()
  11560. * @see tripal_core_chado_select()
  11561. *
  11562. * @return
  11563. * An array describing the 'pubprop' table
  11564. *
  11565. * @ingroup tripal_chado_v1.2_schema_api
  11566. *
  11567. */
  11568. function tripal_core_chado_schema_v1_2_pubprop() {
  11569. $description = array(
  11570. 'description' => 'TODO: please describe this table!',
  11571. 'fields' => array(
  11572. 'pubprop_id' => array(
  11573. 'description' => 'TODO: please describe this field!',
  11574. 'type' => 'serial',
  11575. 'not null' => TRUE,
  11576. ),
  11577. 'pub_id' => array(
  11578. 'description' => 'TODO: please describe this field!',
  11579. 'type' => 'int',
  11580. 'not null' => TRUE,
  11581. ),
  11582. 'type_id' => array(
  11583. 'description' => 'TODO: please describe this field!',
  11584. 'type' => 'int',
  11585. 'not null' => TRUE,
  11586. ),
  11587. 'value' => array(
  11588. 'description' => 'TODO: please describe this field!',
  11589. 'type' => 'text',
  11590. 'not null' => TRUE,
  11591. ),
  11592. 'rank' => array(
  11593. 'description' => 'TODO: please describe this field!',
  11594. 'type' => 'int',
  11595. 'not null' => FALSE,
  11596. ),
  11597. ),
  11598. 'primary key' => array(
  11599. 0 => 'pubprop_id',
  11600. ),
  11601. 'unique keys' => array(
  11602. 'pubprop_c1' => array(
  11603. 0 => 'pub_id',
  11604. 1 => 'type_id',
  11605. 2 => 'rank',
  11606. ),
  11607. ),
  11608. 'indexes' => array(
  11609. 'pubprop_idx1' => array(
  11610. 0 => 'pub_id',
  11611. ),
  11612. 'pubprop_idx2' => array(
  11613. 0 => 'type_id',
  11614. ),
  11615. ),
  11616. 'foreign keys' => array(
  11617. 'cvterm' => array(
  11618. 'table' => 'cvterm',
  11619. 'columns' => array(
  11620. 'type_id' => 'cvterm_id',
  11621. ),
  11622. ),
  11623. 'pub' => array(
  11624. 'table' => 'pub',
  11625. 'columns' => array(
  11626. 'pub_id' => 'pub_id',
  11627. ),
  11628. ),
  11629. ),
  11630. 'table' => 'pubprop',
  11631. 'referring_tables' => NULL,
  11632. );
  11633. return $description;
  11634. }
  11635. /**
  11636. * Implements hook_chado_schema_v1_2_quantification()
  11637. * Purpose: To describe the structure of 'quantification' to tripal
  11638. * @see tripal_core_chado_insert()
  11639. * @see tripal_core_chado_update()
  11640. * @see tripal_core_chado_select()
  11641. *
  11642. * @return
  11643. * An array describing the 'quantification' table
  11644. *
  11645. * @ingroup tripal_chado_v1.2_schema_api
  11646. *
  11647. */
  11648. function tripal_core_chado_schema_v1_2_quantification() {
  11649. $description = array(
  11650. 'description' => 'TODO: please describe this table!',
  11651. 'fields' => array(
  11652. 'quantification_id' => array(
  11653. 'description' => 'TODO: please describe this field!',
  11654. 'type' => 'serial',
  11655. 'not null' => TRUE,
  11656. ),
  11657. 'acquisition_id' => array(
  11658. 'description' => 'TODO: please describe this field!',
  11659. 'type' => 'int',
  11660. 'not null' => TRUE,
  11661. ),
  11662. 'operator_id' => array(
  11663. 'description' => 'TODO: please describe this field!',
  11664. 'type' => 'int',
  11665. 'not null' => FALSE,
  11666. ),
  11667. 'protocol_id' => array(
  11668. 'description' => 'TODO: please describe this field!',
  11669. 'type' => 'int',
  11670. 'not null' => FALSE,
  11671. ),
  11672. 'analysis_id' => array(
  11673. 'description' => 'TODO: please describe this field!',
  11674. 'type' => 'int',
  11675. 'not null' => TRUE,
  11676. ),
  11677. 'quantificationdate' => array(
  11678. 'description' => 'TODO: please describe this field!',
  11679. 'type' => 'datetime',
  11680. 'not null' => FALSE,
  11681. 'default' => 'ow(',
  11682. ),
  11683. 'name' => array(
  11684. 'description' => 'TODO: please describe this field!',
  11685. 'type' => 'text',
  11686. 'not null' => FALSE,
  11687. ),
  11688. 'uri' => array(
  11689. 'description' => 'TODO: please describe this field!',
  11690. 'type' => 'text',
  11691. 'not null' => FALSE,
  11692. ),
  11693. ),
  11694. 'primary key' => array(
  11695. 0 => 'quantification_id',
  11696. ),
  11697. 'unique keys' => array(
  11698. 'quantification_c1' => array(
  11699. 0 => 'name',
  11700. 1 => 'analysis_id',
  11701. ),
  11702. ),
  11703. 'indexes' => array(
  11704. 'quantification_idx1' => array(
  11705. 0 => 'acquisition_id',
  11706. ),
  11707. 'quantification_idx2' => array(
  11708. 0 => 'operator_id',
  11709. ),
  11710. 'quantification_idx3' => array(
  11711. 0 => 'protocol_id',
  11712. ),
  11713. 'quantification_idx4' => array(
  11714. 0 => 'analysis_id',
  11715. ),
  11716. ),
  11717. 'foreign keys' => array(
  11718. 'analysis' => array(
  11719. 'table' => 'analysis',
  11720. 'columns' => array(
  11721. 'analysis_id' => 'analysis_id',
  11722. ),
  11723. ),
  11724. 'contact' => array(
  11725. 'table' => 'contact',
  11726. 'columns' => array(
  11727. 'operator_id' => 'contact_id',
  11728. ),
  11729. ),
  11730. 'protocol' => array(
  11731. 'table' => 'protocol',
  11732. 'columns' => array(
  11733. 'protocol_id' => 'protocol_id',
  11734. ),
  11735. ),
  11736. 'acquisition' => array(
  11737. 'table' => 'acquisition',
  11738. 'columns' => array(
  11739. 'acquisition_id' => 'acquisition_id',
  11740. ),
  11741. ),
  11742. ),
  11743. 'table' => 'quantification',
  11744. 'referring_tables' => array(
  11745. 0 => 'elementresult',
  11746. 1 => 'quantification_relationship',
  11747. 3 => 'quantificationprop',
  11748. ),
  11749. );
  11750. return $description;
  11751. }
  11752. /**
  11753. * Implements hook_chado_schema_v1_2_quantification_relationship()
  11754. * Purpose: To describe the structure of 'quantification_relationship' to tripal
  11755. * @see tripal_core_chado_insert()
  11756. * @see tripal_core_chado_update()
  11757. * @see tripal_core_chado_select()
  11758. *
  11759. * @return
  11760. * An array describing the 'quantification_relationship' table
  11761. *
  11762. * @ingroup tripal_chado_v1.2_schema_api
  11763. *
  11764. */
  11765. function tripal_core_chado_schema_v1_2_quantification_relationship() {
  11766. $description = array(
  11767. 'description' => 'TODO: please describe this table!',
  11768. 'fields' => array(
  11769. 'quantification_relationship_id' => array(
  11770. 'description' => 'TODO: please describe this field!',
  11771. 'type' => 'serial',
  11772. 'not null' => TRUE,
  11773. ),
  11774. 'subject_id' => array(
  11775. 'description' => 'TODO: please describe this field!',
  11776. 'type' => 'int',
  11777. 'not null' => TRUE,
  11778. ),
  11779. 'type_id' => array(
  11780. 'description' => 'TODO: please describe this field!',
  11781. 'type' => 'int',
  11782. 'not null' => TRUE,
  11783. ),
  11784. 'object_id' => array(
  11785. 'description' => 'TODO: please describe this field!',
  11786. 'type' => 'int',
  11787. 'not null' => TRUE,
  11788. ),
  11789. ),
  11790. 'primary key' => array(
  11791. 0 => 'quantification_relationship_id',
  11792. ),
  11793. 'unique keys' => array(
  11794. 'quantification_relationship_c1' => array(
  11795. 0 => 'subject_id',
  11796. 1 => 'object_id',
  11797. 2 => 'type_id',
  11798. ),
  11799. ),
  11800. 'indexes' => array(
  11801. 'quantification_relationship_idx1' => array(
  11802. 0 => 'subject_id',
  11803. ),
  11804. 'quantification_relationship_idx2' => array(
  11805. 0 => 'type_id',
  11806. ),
  11807. 'quantification_relationship_idx3' => array(
  11808. 0 => 'object_id',
  11809. ),
  11810. ),
  11811. 'foreign keys' => array(
  11812. 'cvterm' => array(
  11813. 'table' => 'cvterm',
  11814. 'columns' => array(
  11815. 'type_id' => 'cvterm_id',
  11816. ),
  11817. ),
  11818. 'quantification' => array(
  11819. 'table' => 'quantification',
  11820. 'columns' => array(
  11821. 'subject_id' => 'quantification_id',
  11822. 'object_id' => 'quantification_id',
  11823. ),
  11824. ),
  11825. ),
  11826. 'table' => 'quantification_relationship',
  11827. 'referring_tables' => NULL,
  11828. );
  11829. return $description;
  11830. }
  11831. /**
  11832. * Implements hook_chado_schema_v1_2_quantificationprop()
  11833. * Purpose: To describe the structure of 'quantificationprop' to tripal
  11834. * @see tripal_core_chado_insert()
  11835. * @see tripal_core_chado_update()
  11836. * @see tripal_core_chado_select()
  11837. *
  11838. * @return
  11839. * An array describing the 'quantificationprop' table
  11840. *
  11841. * @ingroup tripal_chado_v1.2_schema_api
  11842. *
  11843. */
  11844. function tripal_core_chado_schema_v1_2_quantificationprop() {
  11845. $description = array(
  11846. 'description' => 'TODO: please describe this table!',
  11847. 'fields' => array(
  11848. 'quantificationprop_id' => array(
  11849. 'description' => 'TODO: please describe this field!',
  11850. 'type' => 'serial',
  11851. 'not null' => TRUE,
  11852. ),
  11853. 'quantification_id' => array(
  11854. 'description' => 'TODO: please describe this field!',
  11855. 'type' => 'int',
  11856. 'not null' => TRUE,
  11857. ),
  11858. 'type_id' => array(
  11859. 'description' => 'TODO: please describe this field!',
  11860. 'type' => 'int',
  11861. 'not null' => TRUE,
  11862. ),
  11863. 'value' => array(
  11864. 'description' => 'TODO: please describe this field!',
  11865. 'type' => 'text',
  11866. 'not null' => FALSE,
  11867. ),
  11868. 'rank' => array(
  11869. 'description' => 'TODO: please describe this field!',
  11870. 'type' => 'int',
  11871. 'not null' => TRUE,
  11872. 'default' => 0,
  11873. ),
  11874. ),
  11875. 'primary key' => array(
  11876. 0 => 'quantificationprop_id',
  11877. ),
  11878. 'unique keys' => array(
  11879. 'quantificationprop_c1' => array(
  11880. 0 => 'quantification_id',
  11881. 1 => 'type_id',
  11882. 2 => 'rank',
  11883. ),
  11884. ),
  11885. 'indexes' => array(
  11886. 'quantificationprop_idx1' => array(
  11887. 0 => 'quantification_id',
  11888. ),
  11889. 'quantificationprop_idx2' => array(
  11890. 0 => 'type_id',
  11891. ),
  11892. ),
  11893. 'foreign keys' => array(
  11894. 'cvterm' => array(
  11895. 'table' => 'cvterm',
  11896. 'columns' => array(
  11897. 'type_id' => 'cvterm_id',
  11898. ),
  11899. ),
  11900. 'quantification' => array(
  11901. 'table' => 'quantification',
  11902. 'columns' => array(
  11903. 'quantification_id' => 'quantification_id',
  11904. ),
  11905. ),
  11906. ),
  11907. 'table' => 'quantificationprop',
  11908. 'referring_tables' => NULL,
  11909. );
  11910. return $description;
  11911. }
  11912. /**
  11913. * Implements hook_chado_schema_v1_2_stock()
  11914. * Purpose: To describe the structure of 'stock' to tripal
  11915. * @see tripal_core_chado_insert()
  11916. * @see tripal_core_chado_update()
  11917. * @see tripal_core_chado_select()
  11918. *
  11919. * @return
  11920. * An array describing the 'stock' table
  11921. *
  11922. * @ingroup tripal_chado_v1.2_schema_api
  11923. *
  11924. */
  11925. function tripal_core_chado_schema_v1_2_stock() {
  11926. $description = array(
  11927. 'description' => 'Any stock can be globally identified by the combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.',
  11928. 'fields' => array(
  11929. 'stock_id' => array(
  11930. 'description' => 'TODO: please describe this field!',
  11931. 'type' => 'serial',
  11932. 'not null' => TRUE,
  11933. ),
  11934. 'dbxref_id' => array(
  11935. 'description' => 'TODO: please describe this field!',
  11936. 'type' => 'int',
  11937. 'not null' => FALSE,
  11938. ),
  11939. 'organism_id' => array(
  11940. 'description' => 'TODO: please describe this field!',
  11941. 'type' => 'int',
  11942. 'not null' => FALSE,
  11943. ),
  11944. 'name' => array(
  11945. 'description' => 'TODO: please describe this field!',
  11946. 'type' => 'varchar',
  11947. 'length' => '255',
  11948. 'not null' => FALSE,
  11949. ),
  11950. 'uniquename' => array(
  11951. 'description' => 'TODO: please describe this field!',
  11952. 'type' => 'text',
  11953. 'not null' => TRUE,
  11954. ),
  11955. 'description' => array(
  11956. 'description' => 'TODO: please describe this field!',
  11957. 'type' => 'text',
  11958. 'not null' => FALSE,
  11959. ),
  11960. 'type_id' => array(
  11961. 'description' => 'TODO: please describe this field!',
  11962. 'type' => 'int',
  11963. 'not null' => TRUE,
  11964. ),
  11965. 'is_obsolete' => array(
  11966. 'description' => 'TODO: please describe this field!',
  11967. 'type' => 'boolean',
  11968. 'not null' => TRUE,
  11969. 'default' => 'als',
  11970. ),
  11971. ),
  11972. 'primary key' => array(
  11973. 0 => 'stock_id',
  11974. ),
  11975. 'unique keys' => array(
  11976. 'stock_c1' => array(
  11977. 0 => 'organism_id',
  11978. 1 => 'uniquename',
  11979. 2 => 'type_id',
  11980. ),
  11981. ),
  11982. 'indexes' => array(
  11983. 'stock_idx1' => array(
  11984. 0 => 'dbxref_id',
  11985. ),
  11986. 'stock_idx2' => array(
  11987. 0 => 'organism_id',
  11988. ),
  11989. 'stock_idx3' => array(
  11990. 0 => 'type_id',
  11991. ),
  11992. 'stock_idx4' => array(
  11993. 0 => 'uniquename',
  11994. ),
  11995. 'stock_name_ind1' => array(
  11996. 0 => 'name',
  11997. ),
  11998. ),
  11999. 'foreign keys' => array(
  12000. 'organism' => array(
  12001. 'table' => 'organism',
  12002. 'columns' => array(
  12003. 'organism_id' => 'organism_id',
  12004. ),
  12005. ),
  12006. 'cvterm' => array(
  12007. 'table' => 'cvterm',
  12008. 'columns' => array(
  12009. 'type_id' => 'cvterm_id',
  12010. ),
  12011. ),
  12012. 'dbxref' => array(
  12013. 'table' => 'dbxref',
  12014. 'columns' => array(
  12015. 'dbxref_id' => 'dbxref_id',
  12016. ),
  12017. ),
  12018. ),
  12019. 'referring_tables' => array(
  12020. 0 => 'nd_experiment_stock',
  12021. 1 => 'stock_cvterm',
  12022. 2 => 'stock_dbxref',
  12023. 3 => 'stock_genotype',
  12024. 4 => 'stock_pub',
  12025. 5 => 'stock_relationship',
  12026. 7 => 'stockcollection_stock',
  12027. 8 => 'stockprop',
  12028. ),
  12029. 'table' => 'stock',
  12030. );
  12031. return $description;
  12032. }
  12033. /**
  12034. * Implements hook_chado_schema_v1_2_stock_cvterm()
  12035. * Purpose: To describe the structure of 'stock_cvterm' to tripal
  12036. * @see tripal_core_chado_insert()
  12037. * @see tripal_core_chado_update()
  12038. * @see tripal_core_chado_select()
  12039. *
  12040. * @return
  12041. * An array describing the 'stock_cvterm' table
  12042. *
  12043. * @ingroup tripal_chado_v1.2_schema_api
  12044. *
  12045. */
  12046. function tripal_core_chado_schema_v1_2_stock_cvterm() {
  12047. $description = array(
  12048. 'description' => 'TODO: please describe this table!',
  12049. 'fields' => array(
  12050. 'stock_cvterm_id' => array(
  12051. 'description' => 'TODO: please describe this field!',
  12052. 'type' => 'serial',
  12053. 'not null' => TRUE,
  12054. ),
  12055. 'stock_id' => array(
  12056. 'description' => 'TODO: please describe this field!',
  12057. 'type' => 'int',
  12058. 'not null' => TRUE,
  12059. ),
  12060. 'cvterm_id' => array(
  12061. 'description' => 'TODO: please describe this field!',
  12062. 'type' => 'int',
  12063. 'not null' => TRUE,
  12064. ),
  12065. 'pub_id' => array(
  12066. 'description' => 'TODO: please describe this field!',
  12067. 'type' => 'int',
  12068. 'not null' => TRUE,
  12069. ),
  12070. 'is_not' => array(
  12071. 'description' => 'TODO: please describe this field!',
  12072. 'type' => 'boolean',
  12073. 'not null' => TRUE,
  12074. 'default' => 'als',
  12075. ),
  12076. 'rank' => array(
  12077. 'description' => 'TODO: please describe this field!',
  12078. 'type' => 'int',
  12079. 'not null' => TRUE,
  12080. 'default' => 0,
  12081. ),
  12082. ),
  12083. 'primary key' => array(
  12084. 0 => 'stock_cvterm_id',
  12085. ),
  12086. 'unique keys' => array(
  12087. 'stock_cvterm_c1' => array(
  12088. 0 => 'stock_id',
  12089. 1 => 'cvterm_id',
  12090. 2 => 'pub_id',
  12091. 3 => 'rank',
  12092. ),
  12093. ),
  12094. 'indexes' => array(
  12095. 'stock_cvterm_idx1' => array(
  12096. 0 => 'stock_id',
  12097. ),
  12098. 'stock_cvterm_idx2' => array(
  12099. 0 => 'cvterm_id',
  12100. ),
  12101. 'stock_cvterm_idx3' => array(
  12102. 0 => 'pub_id',
  12103. ),
  12104. ),
  12105. 'foreign keys' => array(
  12106. 'cvterm' => array(
  12107. 'table' => 'cvterm',
  12108. 'columns' => array(
  12109. 'cvterm_id' => 'cvterm_id',
  12110. ),
  12111. ),
  12112. 'pub' => array(
  12113. 'table' => 'pub',
  12114. 'columns' => array(
  12115. 'pub_id' => 'pub_id',
  12116. ),
  12117. ),
  12118. 'stock' => array(
  12119. 'table' => 'stock',
  12120. 'columns' => array(
  12121. 'stock_id' => 'stock_id',
  12122. ),
  12123. ),
  12124. ),
  12125. 'table' => 'stock_cvterm',
  12126. 'referring_tables' => array(
  12127. 0 => 'stock_cvtermprop',
  12128. ),
  12129. );
  12130. return $description;
  12131. }
  12132. /**
  12133. * Implements hook_chado_schema_v1_2_stock_cvtermprop()
  12134. * Purpose: To describe the structure of 'stock_cvtermprop' to tripal
  12135. * @see tripal_core_chado_insert()
  12136. * @see tripal_core_chado_update()
  12137. * @see tripal_core_chado_select()
  12138. *
  12139. * @return
  12140. * An array describing the 'stock_cvtermprop' table
  12141. *
  12142. * @ingroup tripal_chado_v1.2_schema_api
  12143. *
  12144. */
  12145. function tripal_core_chado_schema_v1_2_stock_cvtermprop() {
  12146. $description = array(
  12147. 'description' => 'TODO: please describe this table!',
  12148. 'fields' => array(
  12149. 'stock_cvtermprop_id' => array(
  12150. 'description' => 'TODO: please describe this field!',
  12151. 'type' => 'serial',
  12152. 'not null' => TRUE,
  12153. ),
  12154. 'stock_cvterm_id' => array(
  12155. 'description' => 'TODO: please describe this field!',
  12156. 'type' => 'int',
  12157. 'not null' => TRUE,
  12158. ),
  12159. 'type_id' => array(
  12160. 'description' => 'TODO: please describe this field!',
  12161. 'type' => 'int',
  12162. 'not null' => TRUE,
  12163. ),
  12164. 'value' => array(
  12165. 'description' => 'TODO: please describe this field!',
  12166. 'type' => 'text',
  12167. 'not null' => FALSE,
  12168. ),
  12169. 'rank' => array(
  12170. 'description' => 'TODO: please describe this field!',
  12171. 'type' => 'int',
  12172. 'not null' => TRUE,
  12173. 'default' => 0,
  12174. ),
  12175. ),
  12176. 'primary key' => array(
  12177. 0 => 'stock_cvtermprop_id',
  12178. ),
  12179. 'unique keys' => array(
  12180. 'stock_cvtermprop_c1' => array(
  12181. 0 => 'stock_cvterm_id',
  12182. 1 => 'type_id',
  12183. 2 => 'rank',
  12184. ),
  12185. ),
  12186. 'indexes' => array(
  12187. 'stock_cvtermprop_idx1' => array(
  12188. 0 => 'stock_cvterm_id',
  12189. ),
  12190. 'stock_cvtermprop_idx2' => array(
  12191. 0 => 'type_id',
  12192. ),
  12193. ),
  12194. 'foreign keys' => array(
  12195. 'cvterm' => array(
  12196. 'table' => 'cvterm',
  12197. 'columns' => array(
  12198. 'type_id' => 'cvterm_id',
  12199. ),
  12200. ),
  12201. 'stock_cvterm' => array(
  12202. 'table' => 'stock_cvterm',
  12203. 'columns' => array(
  12204. 'stock_cvterm_id' => 'stock_cvterm_id',
  12205. ),
  12206. ),
  12207. ),
  12208. 'table' => 'stock_cvtermprop',
  12209. 'referring_tables' => NULL,
  12210. );
  12211. return $description;
  12212. }
  12213. /**
  12214. * Implements hook_chado_schema_v1_2_stock_dbxref()
  12215. * Purpose: To describe the structure of 'stock_dbxref' to tripal
  12216. * @see tripal_core_chado_insert()
  12217. * @see tripal_core_chado_update()
  12218. * @see tripal_core_chado_select()
  12219. *
  12220. * @return
  12221. * An array describing the 'stock_dbxref' table
  12222. *
  12223. * @ingroup tripal_chado_v1.2_schema_api
  12224. *
  12225. */
  12226. function tripal_core_chado_schema_v1_2_stock_dbxref() {
  12227. $description = array(
  12228. 'description' => 'TODO: please describe this table!',
  12229. 'fields' => array(
  12230. 'stock_dbxref_id' => array(
  12231. 'description' => 'TODO: please describe this field!',
  12232. 'type' => 'serial',
  12233. 'not null' => TRUE,
  12234. ),
  12235. 'stock_id' => array(
  12236. 'description' => 'TODO: please describe this field!',
  12237. 'type' => 'int',
  12238. 'not null' => TRUE,
  12239. ),
  12240. 'dbxref_id' => array(
  12241. 'description' => 'TODO: please describe this field!',
  12242. 'type' => 'int',
  12243. 'not null' => TRUE,
  12244. ),
  12245. 'is_current' => array(
  12246. 'description' => 'TODO: please describe this field!',
  12247. 'type' => 'boolean',
  12248. 'not null' => TRUE,
  12249. 'default' => 'ru',
  12250. ),
  12251. ),
  12252. 'primary key' => array(
  12253. 0 => 'stock_dbxref_id',
  12254. ),
  12255. 'unique keys' => array(
  12256. 'stock_dbxref_c1' => array(
  12257. 0 => 'stock_id',
  12258. 1 => 'dbxref_id',
  12259. ),
  12260. ),
  12261. 'indexes' => array(
  12262. 'stock_dbxref_idx1' => array(
  12263. 0 => 'stock_id',
  12264. ),
  12265. 'stock_dbxref_idx2' => array(
  12266. 0 => 'dbxref_id',
  12267. ),
  12268. ),
  12269. 'foreign keys' => array(
  12270. 'dbxref' => array(
  12271. 'table' => 'dbxref',
  12272. 'columns' => array(
  12273. 'dbxref_id' => 'dbxref_id',
  12274. ),
  12275. ),
  12276. 'stock' => array(
  12277. 'table' => 'stock',
  12278. 'columns' => array(
  12279. 'stock_id' => 'stock_id',
  12280. ),
  12281. ),
  12282. ),
  12283. 'table' => 'stock_dbxref',
  12284. 'referring_tables' => array(
  12285. 0 => 'stock_dbxrefprop',
  12286. ),
  12287. );
  12288. return $description;
  12289. }
  12290. /**
  12291. * Implements hook_chado_schema_v1_2_stock_dbxrefprop()
  12292. * Purpose: To describe the structure of 'stock_dbxrefprop' to tripal
  12293. * @see tripal_core_chado_insert()
  12294. * @see tripal_core_chado_update()
  12295. * @see tripal_core_chado_select()
  12296. *
  12297. * @return
  12298. * An array describing the 'stock_dbxrefprop' table
  12299. *
  12300. * @ingroup tripal_chado_v1.2_schema_api
  12301. *
  12302. */
  12303. function tripal_core_chado_schema_v1_2_stock_dbxrefprop() {
  12304. $description = array(
  12305. 'description' => 'TODO: please describe this table!',
  12306. 'fields' => array(
  12307. 'stock_dbxrefprop_id' => array(
  12308. 'description' => 'TODO: please describe this field!',
  12309. 'type' => 'serial',
  12310. 'not null' => TRUE,
  12311. ),
  12312. 'stock_dbxref_id' => array(
  12313. 'description' => 'TODO: please describe this field!',
  12314. 'type' => 'int',
  12315. 'not null' => TRUE,
  12316. ),
  12317. 'type_id' => array(
  12318. 'description' => 'TODO: please describe this field!',
  12319. 'type' => 'int',
  12320. 'not null' => TRUE,
  12321. ),
  12322. 'value' => array(
  12323. 'description' => 'TODO: please describe this field!',
  12324. 'type' => 'text',
  12325. 'not null' => FALSE,
  12326. ),
  12327. 'rank' => array(
  12328. 'description' => 'TODO: please describe this field!',
  12329. 'type' => 'int',
  12330. 'not null' => TRUE,
  12331. 'default' => 0,
  12332. ),
  12333. ),
  12334. 'primary key' => array(
  12335. 0 => 'stock_dbxrefprop_id',
  12336. ),
  12337. 'unique keys' => array(
  12338. 'stock_dbxrefprop_c1' => array(
  12339. 0 => 'stock_dbxref_id',
  12340. 1 => 'type_id',
  12341. 2 => 'rank',
  12342. ),
  12343. ),
  12344. 'indexes' => array(
  12345. 'stock_dbxrefprop_idx1' => array(
  12346. 0 => 'stock_dbxref_id',
  12347. ),
  12348. 'stock_dbxrefprop_idx2' => array(
  12349. 0 => 'type_id',
  12350. ),
  12351. ),
  12352. 'foreign keys' => array(
  12353. 'cvterm' => array(
  12354. 'table' => 'cvterm',
  12355. 'columns' => array(
  12356. 'type_id' => 'cvterm_id',
  12357. ),
  12358. ),
  12359. 'stock_dbxref' => array(
  12360. 'table' => 'stock_dbxref',
  12361. 'columns' => array(
  12362. 'stock_dbxref_id' => 'stock_dbxref_id',
  12363. ),
  12364. ),
  12365. ),
  12366. 'table' => 'stock_dbxrefprop',
  12367. 'referring_tables' => NULL,
  12368. );
  12369. return $description;
  12370. }
  12371. /**
  12372. * Implements hook_chado_schema_v1_2_stock_genotype()
  12373. * Purpose: To describe the structure of 'stock_genotype' to tripal
  12374. * @see tripal_core_chado_insert()
  12375. * @see tripal_core_chado_update()
  12376. * @see tripal_core_chado_select()
  12377. *
  12378. * @return
  12379. * An array describing the 'stock_genotype' table
  12380. *
  12381. * @ingroup tripal_chado_v1.2_schema_api
  12382. *
  12383. */
  12384. function tripal_core_chado_schema_v1_2_stock_genotype() {
  12385. $description = array(
  12386. 'description' => 'TODO: please describe this table!',
  12387. 'fields' => array(
  12388. 'stock_genotype_id' => array(
  12389. 'description' => 'TODO: please describe this field!',
  12390. 'type' => 'serial',
  12391. 'not null' => TRUE,
  12392. ),
  12393. 'stock_id' => array(
  12394. 'description' => 'TODO: please describe this field!',
  12395. 'type' => 'int',
  12396. 'not null' => TRUE,
  12397. ),
  12398. 'genotype_id' => array(
  12399. 'description' => 'TODO: please describe this field!',
  12400. 'type' => 'int',
  12401. 'not null' => TRUE,
  12402. ),
  12403. ),
  12404. 'primary key' => array(
  12405. 0 => 'stock_genotype_id',
  12406. ),
  12407. 'unique keys' => array(
  12408. 'stock_genotype_c1' => array(
  12409. 0 => 'stock_id',
  12410. 1 => 'genotype_id',
  12411. ),
  12412. ),
  12413. 'indexes' => array(
  12414. 'stock_genotype_idx1' => array(
  12415. 0 => 'stock_id',
  12416. ),
  12417. 'stock_genotype_idx2' => array(
  12418. 0 => 'genotype_id',
  12419. ),
  12420. ),
  12421. 'foreign keys' => array(
  12422. 'genotype' => array(
  12423. 'table' => 'genotype',
  12424. 'columns' => array(
  12425. 'genotype_id' => 'genotype_id',
  12426. ),
  12427. ),
  12428. 'stock' => array(
  12429. 'table' => 'stock',
  12430. 'columns' => array(
  12431. 'stock_id' => 'stock_id',
  12432. ),
  12433. ),
  12434. ),
  12435. 'table' => 'stock_genotype',
  12436. 'referring_tables' => NULL,
  12437. );
  12438. return $description;
  12439. }
  12440. /**
  12441. * Implements hook_chado_schema_v1_2_stock_pub()
  12442. * Purpose: To describe the structure of 'stock_pub' to tripal
  12443. * @see tripal_core_chado_insert()
  12444. * @see tripal_core_chado_update()
  12445. * @see tripal_core_chado_select()
  12446. *
  12447. * @return
  12448. * An array describing the 'stock_pub' table
  12449. *
  12450. * @ingroup tripal_chado_v1.2_schema_api
  12451. *
  12452. */
  12453. function tripal_core_chado_schema_v1_2_stock_pub() {
  12454. $description = array(
  12455. 'description' => 'TODO: please describe this table!',
  12456. 'fields' => array(
  12457. 'stock_pub_id' => array(
  12458. 'description' => 'TODO: please describe this field!',
  12459. 'type' => 'serial',
  12460. 'not null' => TRUE,
  12461. ),
  12462. 'stock_id' => array(
  12463. 'description' => 'TODO: please describe this field!',
  12464. 'type' => 'int',
  12465. 'not null' => TRUE,
  12466. ),
  12467. 'pub_id' => array(
  12468. 'description' => 'TODO: please describe this field!',
  12469. 'type' => 'int',
  12470. 'not null' => TRUE,
  12471. ),
  12472. ),
  12473. 'primary key' => array(
  12474. 0 => 'stock_pub_id',
  12475. ),
  12476. 'unique keys' => array(
  12477. 'stock_pub_c1' => array(
  12478. 0 => 'stock_id',
  12479. 1 => 'pub_id',
  12480. ),
  12481. ),
  12482. 'indexes' => array(
  12483. 'stock_pub_idx1' => array(
  12484. 0 => 'stock_id',
  12485. ),
  12486. 'stock_pub_idx2' => array(
  12487. 0 => 'pub_id',
  12488. ),
  12489. ),
  12490. 'foreign keys' => array(
  12491. 'pub' => array(
  12492. 'table' => 'pub',
  12493. 'columns' => array(
  12494. 'pub_id' => 'pub_id',
  12495. ),
  12496. ),
  12497. 'stock' => array(
  12498. 'table' => 'stock',
  12499. 'columns' => array(
  12500. 'stock_id' => 'stock_id',
  12501. ),
  12502. ),
  12503. ),
  12504. 'table' => 'stock_pub',
  12505. 'referring_tables' => NULL,
  12506. );
  12507. return $description;
  12508. }
  12509. /**
  12510. * Implements hook_chado_schema_v1_2_stock_relationship()
  12511. * Purpose: To describe the structure of 'stock_relationship' to tripal
  12512. * @see tripal_core_chado_insert()
  12513. * @see tripal_core_chado_update()
  12514. * @see tripal_core_chado_select()
  12515. *
  12516. * @return
  12517. * An array describing the 'stock_relationship' table
  12518. *
  12519. * @ingroup tripal_chado_v1.2_schema_api
  12520. *
  12521. */
  12522. function tripal_core_chado_schema_v1_2_stock_relationship() {
  12523. $description = array(
  12524. 'description' => 'TODO: please describe this table!',
  12525. 'fields' => array(
  12526. 'stock_relationship_id' => array(
  12527. 'description' => 'TODO: please describe this field!',
  12528. 'type' => 'serial',
  12529. 'not null' => TRUE,
  12530. ),
  12531. 'subject_id' => array(
  12532. 'description' => 'TODO: please describe this field!',
  12533. 'type' => 'int',
  12534. 'not null' => TRUE,
  12535. ),
  12536. 'object_id' => array(
  12537. 'description' => 'TODO: please describe this field!',
  12538. 'type' => 'int',
  12539. 'not null' => TRUE,
  12540. ),
  12541. 'type_id' => array(
  12542. 'description' => 'TODO: please describe this field!',
  12543. 'type' => 'int',
  12544. 'not null' => TRUE,
  12545. ),
  12546. 'value' => array(
  12547. 'description' => 'TODO: please describe this field!',
  12548. 'type' => 'text',
  12549. 'not null' => FALSE,
  12550. ),
  12551. 'rank' => array(
  12552. 'description' => 'TODO: please describe this field!',
  12553. 'type' => 'int',
  12554. 'not null' => TRUE,
  12555. 'default' => 0,
  12556. ),
  12557. ),
  12558. 'primary key' => array(
  12559. 0 => 'stock_relationship_id',
  12560. ),
  12561. 'unique keys' => array(
  12562. 'stock_relationship_c1' => array(
  12563. 0 => 'subject_id',
  12564. 1 => 'object_id',
  12565. 2 => 'type_id',
  12566. 3 => 'rank',
  12567. ),
  12568. ),
  12569. 'indexes' => array(
  12570. 'stock_relationship_idx1' => array(
  12571. 0 => 'subject_id',
  12572. ),
  12573. 'stock_relationship_idx2' => array(
  12574. 0 => 'object_id',
  12575. ),
  12576. 'stock_relationship_idx3' => array(
  12577. 0 => 'type_id',
  12578. ),
  12579. ),
  12580. 'foreign keys' => array(
  12581. 'cvterm' => array(
  12582. 'table' => 'cvterm',
  12583. 'columns' => array(
  12584. 'type_id' => 'cvterm_id',
  12585. ),
  12586. ),
  12587. 'stock' => array(
  12588. 'table' => 'stock',
  12589. 'columns' => array(
  12590. 'subject_id' => 'stock_id',
  12591. 'object_id' => 'stock_id',
  12592. ),
  12593. ),
  12594. ),
  12595. 'table' => 'stock_relationship',
  12596. 'referring_tables' => array(
  12597. 0 => 'stock_relationship_cvterm',
  12598. 8 => 'stock_relationship_pub',
  12599. ),
  12600. );
  12601. return $description;
  12602. }
  12603. /**
  12604. * Implements hook_chado_schema_v1_2_stock_relationship_cvterm()
  12605. * Purpose: To describe the structure of 'stock_relationship_cvterm' to tripal
  12606. * @see tripal_core_chado_insert()
  12607. * @see tripal_core_chado_update()
  12608. * @see tripal_core_chado_select()
  12609. *
  12610. * @return
  12611. * An array describing the 'stock_relationship_cvterm' table
  12612. *
  12613. * @ingroup tripal_chado_v1.2_schema_api
  12614. *
  12615. */
  12616. function tripal_core_chado_schema_v1_2_stock_relationship_cvterm() {
  12617. $description = array(
  12618. 'description' => 'TODO: please describe this table!',
  12619. 'fields' => array(
  12620. 'stock_relationship_cvterm_id' => array(
  12621. 'description' => 'TODO: please describe this field!',
  12622. 'type' => 'serial',
  12623. 'not null' => TRUE,
  12624. ),
  12625. 'stock_relationship_id' => array(
  12626. 'description' => 'TODO: please describe this field!',
  12627. 'type' => 'int',
  12628. 'not null' => TRUE,
  12629. ),
  12630. 'cvterm_id' => array(
  12631. 'description' => 'TODO: please describe this field!',
  12632. 'type' => 'int',
  12633. 'not null' => TRUE,
  12634. ),
  12635. 'pub_id' => array(
  12636. 'description' => 'TODO: please describe this field!',
  12637. 'type' => 'int',
  12638. 'not null' => FALSE,
  12639. ),
  12640. ),
  12641. 'primary key' => array(
  12642. 0 => 'stock_relationship_cvterm_id',
  12643. ),
  12644. 'foreign keys' => array(
  12645. 'cvterm' => array(
  12646. 'table' => 'cvterm',
  12647. 'columns' => array(
  12648. 'cvterm_id' => 'cvterm_id',
  12649. ),
  12650. ),
  12651. 'pub' => array(
  12652. 'table' => 'pub',
  12653. 'columns' => array(
  12654. 'pub_id' => 'pub_id',
  12655. ),
  12656. ),
  12657. 'stock_relationship' => array(
  12658. 'table' => 'stock_relationship',
  12659. 'columns' => array(
  12660. 'stock_relationship_id' => 'stock_relationship_id',
  12661. ),
  12662. ),
  12663. ),
  12664. 'table' => 'stock_relationship_cvterm',
  12665. 'referring_tables' => NULL,
  12666. );
  12667. return $description;
  12668. }
  12669. /**
  12670. * Implements hook_chado_schema_v1_2_stock_relationship_pub()
  12671. * Purpose: To describe the structure of 'stock_relationship_pub' to tripal
  12672. * @see tripal_core_chado_insert()
  12673. * @see tripal_core_chado_update()
  12674. * @see tripal_core_chado_select()
  12675. *
  12676. * @return
  12677. * An array describing the 'stock_relationship_pub' table
  12678. *
  12679. * @ingroup tripal_chado_v1.2_schema_api
  12680. *
  12681. */
  12682. function tripal_core_chado_schema_v1_2_stock_relationship_pub() {
  12683. $description = array(
  12684. 'description' => 'TODO: please describe this table!',
  12685. 'fields' => array(
  12686. 'stock_relationship_pub_id' => array(
  12687. 'description' => 'TODO: please describe this field!',
  12688. 'type' => 'serial',
  12689. 'not null' => TRUE,
  12690. ),
  12691. 'stock_relationship_id' => array(
  12692. 'description' => 'TODO: please describe this field!',
  12693. 'type' => 'int',
  12694. 'not null' => TRUE,
  12695. ),
  12696. 'pub_id' => array(
  12697. 'description' => 'TODO: please describe this field!',
  12698. 'type' => 'int',
  12699. 'not null' => TRUE,
  12700. ),
  12701. ),
  12702. 'primary key' => array(
  12703. 0 => 'stock_relationship_pub_id',
  12704. ),
  12705. 'unique keys' => array(
  12706. 'stock_relationship_pub_c1' => array(
  12707. 0 => 'stock_relationship_id',
  12708. 1 => 'pub_id',
  12709. ),
  12710. ),
  12711. 'indexes' => array(
  12712. 'stock_relationship_pub_idx1' => array(
  12713. 0 => 'stock_relationship_id',
  12714. ),
  12715. 'stock_relationship_pub_idx2' => array(
  12716. 0 => 'pub_id',
  12717. ),
  12718. ),
  12719. 'foreign keys' => array(
  12720. 'pub' => array(
  12721. 'table' => 'pub',
  12722. 'columns' => array(
  12723. 'pub_id' => 'pub_id',
  12724. ),
  12725. ),
  12726. 'stock_relationship' => array(
  12727. 'table' => 'stock_relationship',
  12728. 'columns' => array(
  12729. 'stock_relationship_id' => 'stock_relationship_id',
  12730. ),
  12731. ),
  12732. ),
  12733. 'table' => 'stock_relationship_pub',
  12734. 'referring_tables' => NULL,
  12735. );
  12736. return $description;
  12737. }
  12738. /**
  12739. * Implements hook_chado_schema_v1_2_stockcollection()
  12740. * Purpose: To describe the structure of 'stockcollection' to tripal
  12741. * @see tripal_core_chado_insert()
  12742. * @see tripal_core_chado_update()
  12743. * @see tripal_core_chado_select()
  12744. *
  12745. * @return
  12746. * An array describing the 'stockcollection' table
  12747. *
  12748. * @ingroup tripal_chado_v1.2_schema_api
  12749. *
  12750. */
  12751. function tripal_core_chado_schema_v1_2_stockcollection() {
  12752. $description = array(
  12753. 'description' => 'TODO: please describe this table!',
  12754. 'fields' => array(
  12755. 'stockcollection_id' => array(
  12756. 'description' => 'TODO: please describe this field!',
  12757. 'type' => 'serial',
  12758. 'not null' => TRUE,
  12759. ),
  12760. 'type_id' => array(
  12761. 'description' => 'TODO: please describe this field!',
  12762. 'type' => 'int',
  12763. 'not null' => TRUE,
  12764. ),
  12765. 'contact_id' => array(
  12766. 'description' => 'TODO: please describe this field!',
  12767. 'type' => 'int',
  12768. 'not null' => FALSE,
  12769. ),
  12770. 'name' => array(
  12771. 'description' => 'TODO: please describe this field!',
  12772. 'type' => 'varchar',
  12773. 'length' => '255',
  12774. 'not null' => FALSE,
  12775. ),
  12776. 'uniquename' => array(
  12777. 'description' => 'TODO: please describe this field!',
  12778. 'type' => 'text',
  12779. 'not null' => TRUE,
  12780. ),
  12781. ),
  12782. 'primary key' => array(
  12783. 0 => 'stockcollection_id',
  12784. ),
  12785. 'unique keys' => array(
  12786. 'stockcollection_c1' => array(
  12787. 0 => 'uniquename',
  12788. 1 => 'type_id',
  12789. ),
  12790. ),
  12791. 'indexes' => array(
  12792. 'stockcollection_idx1' => array(
  12793. 0 => 'contact_id',
  12794. ),
  12795. 'stockcollection_idx2' => array(
  12796. 0 => 'type_id',
  12797. ),
  12798. 'stockcollection_idx3' => array(
  12799. 0 => 'uniquename',
  12800. ),
  12801. 'stockcollection_name_ind1' => array(
  12802. 0 => 'name',
  12803. ),
  12804. ),
  12805. 'foreign keys' => array(
  12806. 'cvterm' => array(
  12807. 'table' => 'cvterm',
  12808. 'columns' => array(
  12809. 'type_id' => 'cvterm_id',
  12810. ),
  12811. ),
  12812. 'contact' => array(
  12813. 'table' => 'contact',
  12814. 'columns' => array(
  12815. 'contact_id' => 'contact_id',
  12816. ),
  12817. ),
  12818. ),
  12819. 'table' => 'stockcollection',
  12820. 'referring_tables' => array(
  12821. 0 => 'stockcollection_stock',
  12822. 1 => 'stockcollectionprop',
  12823. ),
  12824. );
  12825. return $description;
  12826. }
  12827. /**
  12828. * Implements hook_chado_schema_v1_2_stockcollection_stock()
  12829. * Purpose: To describe the structure of 'stockcollection_stock' to tripal
  12830. * @see tripal_core_chado_insert()
  12831. * @see tripal_core_chado_update()
  12832. * @see tripal_core_chado_select()
  12833. *
  12834. * @return
  12835. * An array describing the 'stockcollection_stock' table
  12836. *
  12837. * @ingroup tripal_chado_v1.2_schema_api
  12838. *
  12839. */
  12840. function tripal_core_chado_schema_v1_2_stockcollection_stock() {
  12841. $description = array(
  12842. 'description' => 'TODO: please describe this table!',
  12843. 'fields' => array(
  12844. 'stockcollection_stock_id' => array(
  12845. 'description' => 'TODO: please describe this field!',
  12846. 'type' => 'serial',
  12847. 'not null' => TRUE,
  12848. ),
  12849. 'stockcollection_id' => array(
  12850. 'description' => 'TODO: please describe this field!',
  12851. 'type' => 'int',
  12852. 'not null' => TRUE,
  12853. ),
  12854. 'stock_id' => array(
  12855. 'description' => 'TODO: please describe this field!',
  12856. 'type' => 'int',
  12857. 'not null' => TRUE,
  12858. ),
  12859. ),
  12860. 'primary key' => array(
  12861. 0 => 'stockcollection_stock_id',
  12862. ),
  12863. 'unique keys' => array(
  12864. 'stockcollection_stock_c1' => array(
  12865. 0 => 'stockcollection_id',
  12866. 1 => 'stock_id',
  12867. ),
  12868. ),
  12869. 'indexes' => array(
  12870. 'stockcollection_stock_idx1' => array(
  12871. 0 => 'stockcollection_id',
  12872. ),
  12873. 'stockcollection_stock_idx2' => array(
  12874. 0 => 'stock_id',
  12875. ),
  12876. ),
  12877. 'foreign keys' => array(
  12878. 'stock' => array(
  12879. 'table' => 'stock',
  12880. 'columns' => array(
  12881. 'stock_id' => 'stock_id',
  12882. ),
  12883. ),
  12884. 'stockcollection' => array(
  12885. 'table' => 'stockcollection',
  12886. 'columns' => array(
  12887. 'stockcollection_id' => 'stockcollection_id',
  12888. ),
  12889. ),
  12890. ),
  12891. 'table' => 'stockcollection_stock',
  12892. 'referring_tables' => NULL,
  12893. );
  12894. return $description;
  12895. }
  12896. /**
  12897. * Implements hook_chado_schema_v1_2_stockcollectionprop()
  12898. * Purpose: To describe the structure of 'stockcollectionprop' to tripal
  12899. * @see tripal_core_chado_insert()
  12900. * @see tripal_core_chado_update()
  12901. * @see tripal_core_chado_select()
  12902. *
  12903. * @return
  12904. * An array describing the 'stockcollectionprop' table
  12905. *
  12906. * @ingroup tripal_chado_v1.2_schema_api
  12907. *
  12908. */
  12909. function tripal_core_chado_schema_v1_2_stockcollectionprop() {
  12910. $description = array(
  12911. 'description' => 'TODO: please describe this table!',
  12912. 'fields' => array(
  12913. 'stockcollectionprop_id' => array(
  12914. 'description' => 'TODO: please describe this field!',
  12915. 'type' => 'serial',
  12916. 'not null' => TRUE,
  12917. ),
  12918. 'stockcollection_id' => array(
  12919. 'description' => 'TODO: please describe this field!',
  12920. 'type' => 'int',
  12921. 'not null' => TRUE,
  12922. ),
  12923. 'type_id' => array(
  12924. 'description' => 'TODO: please describe this field!',
  12925. 'type' => 'int',
  12926. 'not null' => TRUE,
  12927. ),
  12928. 'value' => array(
  12929. 'description' => 'TODO: please describe this field!',
  12930. 'type' => 'text',
  12931. 'not null' => FALSE,
  12932. ),
  12933. 'rank' => array(
  12934. 'description' => 'TODO: please describe this field!',
  12935. 'type' => 'int',
  12936. 'not null' => TRUE,
  12937. 'default' => 0,
  12938. ),
  12939. ),
  12940. 'primary key' => array(
  12941. 0 => 'stockcollectionprop_id',
  12942. ),
  12943. 'unique keys' => array(
  12944. 'stockcollectionprop_c1' => array(
  12945. 0 => 'stockcollection_id',
  12946. 1 => 'type_id',
  12947. 2 => 'rank',
  12948. ),
  12949. ),
  12950. 'indexes' => array(
  12951. 'stockcollectionprop_idx1' => array(
  12952. 0 => 'stockcollection_id',
  12953. ),
  12954. 'stockcollectionprop_idx2' => array(
  12955. 0 => 'type_id',
  12956. ),
  12957. ),
  12958. 'foreign keys' => array(
  12959. 'cvterm' => array(
  12960. 'table' => 'cvterm',
  12961. 'columns' => array(
  12962. 'type_id' => 'cvterm_id',
  12963. ),
  12964. ),
  12965. 'stockcollection' => array(
  12966. 'table' => 'stockcollection',
  12967. 'columns' => array(
  12968. 'stockcollection_id' => 'stockcollection_id',
  12969. ),
  12970. ),
  12971. ),
  12972. 'table' => 'stockcollectionprop',
  12973. 'referring_tables' => NULL,
  12974. );
  12975. return $description;
  12976. }
  12977. /**
  12978. * Implements hook_chado_schema_v1_2_stockprop()
  12979. * Purpose: To describe the structure of 'stockprop' to tripal
  12980. * @see tripal_core_chado_insert()
  12981. * @see tripal_core_chado_update()
  12982. * @see tripal_core_chado_select()
  12983. *
  12984. * @return
  12985. * An array describing the 'stockprop' table
  12986. *
  12987. * @ingroup tripal_chado_v1.2_schema_api
  12988. *
  12989. */
  12990. function tripal_core_chado_schema_v1_2_stockprop() {
  12991. $description = array(
  12992. 'description' => 'TODO: please describe this table!',
  12993. 'fields' => array(
  12994. 'stockprop_id' => array(
  12995. 'description' => 'TODO: please describe this field!',
  12996. 'type' => 'serial',
  12997. 'not null' => TRUE,
  12998. ),
  12999. 'stock_id' => array(
  13000. 'description' => 'TODO: please describe this field!',
  13001. 'type' => 'int',
  13002. 'not null' => TRUE,
  13003. ),
  13004. 'type_id' => array(
  13005. 'description' => 'TODO: please describe this field!',
  13006. 'type' => 'int',
  13007. 'not null' => TRUE,
  13008. ),
  13009. 'value' => array(
  13010. 'description' => 'TODO: please describe this field!',
  13011. 'type' => 'text',
  13012. 'not null' => FALSE,
  13013. ),
  13014. 'rank' => array(
  13015. 'description' => 'TODO: please describe this field!',
  13016. 'type' => 'int',
  13017. 'not null' => TRUE,
  13018. 'default' => 0,
  13019. ),
  13020. ),
  13021. 'primary key' => array(
  13022. 0 => 'stockprop_id',
  13023. ),
  13024. 'unique keys' => array(
  13025. 'stockprop_c1' => array(
  13026. 0 => 'stock_id',
  13027. 1 => 'type_id',
  13028. 2 => 'rank',
  13029. ),
  13030. ),
  13031. 'indexes' => array(
  13032. 'stockprop_idx1' => array(
  13033. 0 => 'stock_id',
  13034. ),
  13035. 'stockprop_idx2' => array(
  13036. 0 => 'type_id',
  13037. ),
  13038. ),
  13039. 'foreign keys' => array(
  13040. 'cvterm' => array(
  13041. 'table' => 'cvterm',
  13042. 'columns' => array(
  13043. 'type_id' => 'cvterm_id',
  13044. ),
  13045. ),
  13046. 'stock' => array(
  13047. 'table' => 'stock',
  13048. 'columns' => array(
  13049. 'stock_id' => 'stock_id',
  13050. ),
  13051. ),
  13052. ),
  13053. 'table' => 'stockprop',
  13054. 'referring_tables' => array(
  13055. 0 => 'stockprop_pub',
  13056. ),
  13057. );
  13058. return $description;
  13059. }
  13060. /**
  13061. * Implements hook_chado_schema_v1_2_stockprop_pub()
  13062. * Purpose: To describe the structure of 'stockprop_pub' to tripal
  13063. * @see tripal_core_chado_insert()
  13064. * @see tripal_core_chado_update()
  13065. * @see tripal_core_chado_select()
  13066. *
  13067. * @return
  13068. * An array describing the 'stockprop_pub' table
  13069. *
  13070. * @ingroup tripal_chado_v1.2_schema_api
  13071. *
  13072. */
  13073. function tripal_core_chado_schema_v1_2_stockprop_pub() {
  13074. $description = array(
  13075. 'description' => 'TODO: please describe this table!',
  13076. 'fields' => array(
  13077. 'stockprop_pub_id' => array(
  13078. 'description' => 'TODO: please describe this field!',
  13079. 'type' => 'serial',
  13080. 'not null' => TRUE,
  13081. ),
  13082. 'stockprop_id' => array(
  13083. 'description' => 'TODO: please describe this field!',
  13084. 'type' => 'int',
  13085. 'not null' => TRUE,
  13086. ),
  13087. 'pub_id' => array(
  13088. 'description' => 'TODO: please describe this field!',
  13089. 'type' => 'int',
  13090. 'not null' => TRUE,
  13091. ),
  13092. ),
  13093. 'primary key' => array(
  13094. 0 => 'stockprop_pub_id',
  13095. ),
  13096. 'unique keys' => array(
  13097. 'stockprop_pub_c1' => array(
  13098. 0 => 'stockprop_id',
  13099. 1 => 'pub_id',
  13100. ),
  13101. ),
  13102. 'indexes' => array(
  13103. 'stockprop_pub_idx1' => array(
  13104. 0 => 'stockprop_id',
  13105. ),
  13106. 'stockprop_pub_idx2' => array(
  13107. 0 => 'pub_id',
  13108. ),
  13109. ),
  13110. 'foreign keys' => array(
  13111. 'pub' => array(
  13112. 'table' => 'pub',
  13113. 'columns' => array(
  13114. 'pub_id' => 'pub_id',
  13115. ),
  13116. ),
  13117. 'stockprop' => array(
  13118. 'table' => 'stockprop',
  13119. 'columns' => array(
  13120. 'stockprop_id' => 'stockprop_id',
  13121. ),
  13122. ),
  13123. ),
  13124. 'table' => 'stockprop_pub',
  13125. 'referring_tables' => NULL,
  13126. );
  13127. return $description;
  13128. }
  13129. /**
  13130. * Implements hook_chado_schema_v1_2_study()
  13131. * Purpose: To describe the structure of 'study' to tripal
  13132. * @see tripal_core_chado_insert()
  13133. * @see tripal_core_chado_update()
  13134. * @see tripal_core_chado_select()
  13135. *
  13136. * @return
  13137. * An array describing the 'study' table
  13138. *
  13139. * @ingroup tripal_chado_v1.2_schema_api
  13140. *
  13141. */
  13142. function tripal_core_chado_schema_v1_2_study() {
  13143. $description = array(
  13144. 'description' => 'TODO: please describe this table!',
  13145. 'fields' => array(
  13146. 'study_id' => array(
  13147. 'description' => 'TODO: please describe this field!',
  13148. 'type' => 'serial',
  13149. 'not null' => TRUE,
  13150. ),
  13151. 'contact_id' => array(
  13152. 'description' => 'TODO: please describe this field!',
  13153. 'type' => 'int',
  13154. 'not null' => TRUE,
  13155. ),
  13156. 'pub_id' => array(
  13157. 'description' => 'TODO: please describe this field!',
  13158. 'type' => 'int',
  13159. 'not null' => FALSE,
  13160. ),
  13161. 'dbxref_id' => array(
  13162. 'description' => 'TODO: please describe this field!',
  13163. 'type' => 'int',
  13164. 'not null' => FALSE,
  13165. ),
  13166. 'name' => array(
  13167. 'description' => 'TODO: please describe this field!',
  13168. 'type' => 'text',
  13169. 'not null' => TRUE,
  13170. ),
  13171. 'description' => array(
  13172. 'description' => 'TODO: please describe this field!',
  13173. 'type' => 'text',
  13174. 'not null' => FALSE,
  13175. ),
  13176. ),
  13177. 'primary key' => array(
  13178. 0 => 'study_id',
  13179. ),
  13180. 'unique keys' => array(
  13181. 'study_c1' => array(
  13182. 0 => 'name',
  13183. ),
  13184. ),
  13185. 'indexes' => array(
  13186. 'study_idx1' => array(
  13187. 0 => 'contact_id',
  13188. ),
  13189. 'study_idx2' => array(
  13190. 0 => 'pub_id',
  13191. ),
  13192. 'study_idx3' => array(
  13193. 0 => 'dbxref_id',
  13194. ),
  13195. ),
  13196. 'foreign keys' => array(
  13197. 'dbxref' => array(
  13198. 'table' => 'dbxref',
  13199. 'columns' => array(
  13200. 'dbxref_id' => 'dbxref_id',
  13201. ),
  13202. ),
  13203. 'pub' => array(
  13204. 'table' => 'pub',
  13205. 'columns' => array(
  13206. 'pub_id' => 'pub_id',
  13207. ),
  13208. ),
  13209. 'contact' => array(
  13210. 'table' => 'contact',
  13211. 'columns' => array(
  13212. 'contact_id' => 'contact_id',
  13213. ),
  13214. ),
  13215. ),
  13216. 'table' => 'study',
  13217. 'referring_tables' => array(
  13218. 0 => 'study_assay',
  13219. 1 => 'studydesign',
  13220. 2 => 'studyprop',
  13221. ),
  13222. );
  13223. return $description;
  13224. }
  13225. /**
  13226. * Implements hook_chado_schema_v1_2_study_assay()
  13227. * Purpose: To describe the structure of 'study_assay' to tripal
  13228. * @see tripal_core_chado_insert()
  13229. * @see tripal_core_chado_update()
  13230. * @see tripal_core_chado_select()
  13231. *
  13232. * @return
  13233. * An array describing the 'study_assay' table
  13234. *
  13235. * @ingroup tripal_chado_v1.2_schema_api
  13236. *
  13237. */
  13238. function tripal_core_chado_schema_v1_2_study_assay() {
  13239. $description = array(
  13240. 'description' => 'TODO: please describe this table!',
  13241. 'fields' => array(
  13242. 'study_assay_id' => array(
  13243. 'description' => 'TODO: please describe this field!',
  13244. 'type' => 'serial',
  13245. 'not null' => TRUE,
  13246. ),
  13247. 'study_id' => array(
  13248. 'description' => 'TODO: please describe this field!',
  13249. 'type' => 'int',
  13250. 'not null' => TRUE,
  13251. ),
  13252. 'assay_id' => array(
  13253. 'description' => 'TODO: please describe this field!',
  13254. 'type' => 'int',
  13255. 'not null' => TRUE,
  13256. ),
  13257. ),
  13258. 'primary key' => array(
  13259. 0 => 'study_assay_id',
  13260. ),
  13261. 'unique keys' => array(
  13262. 'study_assay_c1' => array(
  13263. 0 => 'study_id',
  13264. 1 => 'assay_id',
  13265. ),
  13266. ),
  13267. 'indexes' => array(
  13268. 'study_assay_idx1' => array(
  13269. 0 => 'study_id',
  13270. ),
  13271. 'study_assay_idx2' => array(
  13272. 0 => 'assay_id',
  13273. ),
  13274. ),
  13275. 'foreign keys' => array(
  13276. 'assay' => array(
  13277. 'table' => 'assay',
  13278. 'columns' => array(
  13279. 'assay_id' => 'assay_id',
  13280. ),
  13281. ),
  13282. 'study' => array(
  13283. 'table' => 'study',
  13284. 'columns' => array(
  13285. 'study_id' => 'study_id',
  13286. ),
  13287. ),
  13288. ),
  13289. 'table' => 'study_assay',
  13290. 'referring_tables' => NULL,
  13291. );
  13292. return $description;
  13293. }
  13294. /**
  13295. * Implements hook_chado_schema_v1_2_studydesign()
  13296. * Purpose: To describe the structure of 'studydesign' to tripal
  13297. * @see tripal_core_chado_insert()
  13298. * @see tripal_core_chado_update()
  13299. * @see tripal_core_chado_select()
  13300. *
  13301. * @return
  13302. * An array describing the 'studydesign' table
  13303. *
  13304. * @ingroup tripal_chado_v1.2_schema_api
  13305. *
  13306. */
  13307. function tripal_core_chado_schema_v1_2_studydesign() {
  13308. $description = array(
  13309. 'description' => 'TODO: please describe this table!',
  13310. 'fields' => array(
  13311. 'studydesign_id' => array(
  13312. 'description' => 'TODO: please describe this field!',
  13313. 'type' => 'serial',
  13314. 'not null' => TRUE,
  13315. ),
  13316. 'study_id' => array(
  13317. 'description' => 'TODO: please describe this field!',
  13318. 'type' => 'int',
  13319. 'not null' => TRUE,
  13320. ),
  13321. 'description' => array(
  13322. 'description' => 'TODO: please describe this field!',
  13323. 'type' => 'text',
  13324. 'not null' => FALSE,
  13325. ),
  13326. ),
  13327. 'primary key' => array(
  13328. 0 => 'studydesign_id',
  13329. ),
  13330. 'indexes' => array(
  13331. 'studydesign_idx1' => array(
  13332. 0 => 'study_id',
  13333. ),
  13334. ),
  13335. 'foreign keys' => array(
  13336. 'study' => array(
  13337. 'table' => 'study',
  13338. 'columns' => array(
  13339. 'study_id' => 'study_id',
  13340. ),
  13341. ),
  13342. ),
  13343. 'table' => 'studydesign',
  13344. 'referring_tables' => array(
  13345. 0 => 'studydesignprop',
  13346. 1 => 'studyfactor',
  13347. ),
  13348. );
  13349. return $description;
  13350. }
  13351. /**
  13352. * Implements hook_chado_schema_v1_2_studydesignprop()
  13353. * Purpose: To describe the structure of 'studydesignprop' to tripal
  13354. * @see tripal_core_chado_insert()
  13355. * @see tripal_core_chado_update()
  13356. * @see tripal_core_chado_select()
  13357. *
  13358. * @return
  13359. * An array describing the 'studydesignprop' table
  13360. *
  13361. * @ingroup tripal_chado_v1.2_schema_api
  13362. *
  13363. */
  13364. function tripal_core_chado_schema_v1_2_studydesignprop() {
  13365. $description = array(
  13366. 'description' => 'TODO: please describe this table!',
  13367. 'fields' => array(
  13368. 'studydesignprop_id' => array(
  13369. 'description' => 'TODO: please describe this field!',
  13370. 'type' => 'serial',
  13371. 'not null' => TRUE,
  13372. ),
  13373. 'studydesign_id' => array(
  13374. 'description' => 'TODO: please describe this field!',
  13375. 'type' => 'int',
  13376. 'not null' => TRUE,
  13377. ),
  13378. 'type_id' => array(
  13379. 'description' => 'TODO: please describe this field!',
  13380. 'type' => 'int',
  13381. 'not null' => TRUE,
  13382. ),
  13383. 'value' => array(
  13384. 'description' => 'TODO: please describe this field!',
  13385. 'type' => 'text',
  13386. 'not null' => FALSE,
  13387. ),
  13388. 'rank' => array(
  13389. 'description' => 'TODO: please describe this field!',
  13390. 'type' => 'int',
  13391. 'not null' => TRUE,
  13392. 'default' => 0,
  13393. ),
  13394. ),
  13395. 'primary key' => array(
  13396. 0 => 'studydesignprop_id',
  13397. ),
  13398. 'unique keys' => array(
  13399. 'studydesignprop_c1' => array(
  13400. 0 => 'studydesign_id',
  13401. 1 => 'type_id',
  13402. 2 => 'rank',
  13403. ),
  13404. ),
  13405. 'indexes' => array(
  13406. 'studydesignprop_idx1' => array(
  13407. 0 => 'studydesign_id',
  13408. ),
  13409. 'studydesignprop_idx2' => array(
  13410. 0 => 'type_id',
  13411. ),
  13412. ),
  13413. 'foreign keys' => array(
  13414. 'cvterm' => array(
  13415. 'table' => 'cvterm',
  13416. 'columns' => array(
  13417. 'type_id' => 'cvterm_id',
  13418. ),
  13419. ),
  13420. 'studydesign' => array(
  13421. 'table' => 'studydesign',
  13422. 'columns' => array(
  13423. 'studydesign_id' => 'studydesign_id',
  13424. ),
  13425. ),
  13426. ),
  13427. 'table' => 'studydesignprop',
  13428. 'referring_tables' => NULL,
  13429. );
  13430. return $description;
  13431. }
  13432. /**
  13433. * Implements hook_chado_schema_v1_2_studyfactor()
  13434. * Purpose: To describe the structure of 'studyfactor' to tripal
  13435. * @see tripal_core_chado_insert()
  13436. * @see tripal_core_chado_update()
  13437. * @see tripal_core_chado_select()
  13438. *
  13439. * @return
  13440. * An array describing the 'studyfactor' table
  13441. *
  13442. * @ingroup tripal_chado_v1.2_schema_api
  13443. *
  13444. */
  13445. function tripal_core_chado_schema_v1_2_studyfactor() {
  13446. $description = array(
  13447. 'description' => 'TODO: please describe this table!',
  13448. 'fields' => array(
  13449. 'studyfactor_id' => array(
  13450. 'description' => 'TODO: please describe this field!',
  13451. 'type' => 'serial',
  13452. 'not null' => TRUE,
  13453. ),
  13454. 'studydesign_id' => array(
  13455. 'description' => 'TODO: please describe this field!',
  13456. 'type' => 'int',
  13457. 'not null' => TRUE,
  13458. ),
  13459. 'type_id' => array(
  13460. 'description' => 'TODO: please describe this field!',
  13461. 'type' => 'int',
  13462. 'not null' => FALSE,
  13463. ),
  13464. 'name' => array(
  13465. 'description' => 'TODO: please describe this field!',
  13466. 'type' => 'text',
  13467. 'not null' => TRUE,
  13468. ),
  13469. 'description' => array(
  13470. 'description' => 'TODO: please describe this field!',
  13471. 'type' => 'text',
  13472. 'not null' => FALSE,
  13473. ),
  13474. ),
  13475. 'primary key' => array(
  13476. 0 => 'studyfactor_id',
  13477. ),
  13478. 'indexes' => array(
  13479. 'studyfactor_idx1' => array(
  13480. 0 => 'studydesign_id',
  13481. ),
  13482. 'studyfactor_idx2' => array(
  13483. 0 => 'type_id',
  13484. ),
  13485. ),
  13486. 'foreign keys' => array(
  13487. 'cvterm' => array(
  13488. 'table' => 'cvterm',
  13489. 'columns' => array(
  13490. 'type_id' => 'cvterm_id',
  13491. ),
  13492. ),
  13493. 'studydesign' => array(
  13494. 'table' => 'studydesign',
  13495. 'columns' => array(
  13496. 'studydesign_id' => 'studydesign_id',
  13497. ),
  13498. ),
  13499. ),
  13500. 'table' => 'studyfactor',
  13501. 'referring_tables' => array(
  13502. 0 => 'studyfactorvalue',
  13503. ),
  13504. );
  13505. return $description;
  13506. }
  13507. /**
  13508. * Implements hook_chado_schema_v1_2_studyfactorvalue()
  13509. * Purpose: To describe the structure of 'studyfactorvalue' to tripal
  13510. * @see tripal_core_chado_insert()
  13511. * @see tripal_core_chado_update()
  13512. * @see tripal_core_chado_select()
  13513. *
  13514. * @return
  13515. * An array describing the 'studyfactorvalue' table
  13516. *
  13517. * @ingroup tripal_chado_v1.2_schema_api
  13518. *
  13519. */
  13520. function tripal_core_chado_schema_v1_2_studyfactorvalue() {
  13521. $description = array(
  13522. 'description' => 'TODO: please describe this table!',
  13523. 'fields' => array(
  13524. 'studyfactorvalue_id' => array(
  13525. 'description' => 'TODO: please describe this field!',
  13526. 'type' => 'serial',
  13527. 'not null' => TRUE,
  13528. ),
  13529. 'studyfactor_id' => array(
  13530. 'description' => 'TODO: please describe this field!',
  13531. 'type' => 'int',
  13532. 'not null' => TRUE,
  13533. ),
  13534. 'assay_id' => array(
  13535. 'description' => 'TODO: please describe this field!',
  13536. 'type' => 'int',
  13537. 'not null' => TRUE,
  13538. ),
  13539. 'factorvalue' => array(
  13540. 'description' => 'TODO: please describe this field!',
  13541. 'type' => 'text',
  13542. 'not null' => FALSE,
  13543. ),
  13544. 'name' => array(
  13545. 'description' => 'TODO: please describe this field!',
  13546. 'type' => 'text',
  13547. 'not null' => FALSE,
  13548. ),
  13549. 'rank' => array(
  13550. 'description' => 'TODO: please describe this field!',
  13551. 'type' => 'int',
  13552. 'not null' => TRUE,
  13553. 'default' => 0,
  13554. ),
  13555. ),
  13556. 'primary key' => array(
  13557. 0 => 'studyfactorvalue_id',
  13558. ),
  13559. 'indexes' => array(
  13560. 'studyfactorvalue_idx1' => array(
  13561. 0 => 'studyfactor_id',
  13562. ),
  13563. 'studyfactorvalue_idx2' => array(
  13564. 0 => 'assay_id',
  13565. ),
  13566. ),
  13567. 'foreign keys' => array(
  13568. 'assay' => array(
  13569. 'table' => 'assay',
  13570. 'columns' => array(
  13571. 'assay_id' => 'assay_id',
  13572. ),
  13573. ),
  13574. 'studyfactor' => array(
  13575. 'table' => 'studyfactor',
  13576. 'columns' => array(
  13577. 'studyfactor_id' => 'studyfactor_id',
  13578. ),
  13579. ),
  13580. ),
  13581. 'table' => 'studyfactorvalue',
  13582. 'referring_tables' => NULL,
  13583. );
  13584. return $description;
  13585. }
  13586. /**
  13587. * Implements hook_chado_schema_v1_2_studyprop()
  13588. * Purpose: To describe the structure of 'studyprop' to tripal
  13589. * @see tripal_core_chado_insert()
  13590. * @see tripal_core_chado_update()
  13591. * @see tripal_core_chado_select()
  13592. *
  13593. * @return
  13594. * An array describing the 'studyprop' table
  13595. *
  13596. * @ingroup tripal_chado_v1.2_schema_api
  13597. *
  13598. */
  13599. function tripal_core_chado_schema_v1_2_studyprop() {
  13600. $description = array(
  13601. 'description' => 'TODO: please describe this table!',
  13602. 'fields' => array(
  13603. 'studyprop_id' => array(
  13604. 'description' => 'TODO: please describe this field!',
  13605. 'type' => 'serial',
  13606. 'not null' => TRUE,
  13607. ),
  13608. 'study_id' => array(
  13609. 'description' => 'TODO: please describe this field!',
  13610. 'type' => 'int',
  13611. 'not null' => TRUE,
  13612. ),
  13613. 'type_id' => array(
  13614. 'description' => 'TODO: please describe this field!',
  13615. 'type' => 'int',
  13616. 'not null' => TRUE,
  13617. ),
  13618. 'value' => array(
  13619. 'description' => 'TODO: please describe this field!',
  13620. 'type' => 'text',
  13621. 'not null' => FALSE,
  13622. ),
  13623. 'rank' => array(
  13624. 'description' => 'TODO: please describe this field!',
  13625. 'type' => 'int',
  13626. 'not null' => TRUE,
  13627. 'default' => 0,
  13628. ),
  13629. ),
  13630. 'primary key' => array(
  13631. 0 => 'studyprop_id',
  13632. ),
  13633. 'unique keys' => array(
  13634. 'study_id' => array(
  13635. 0 => 'study_id',
  13636. 1 => 'type_id',
  13637. 2 => 'rank',
  13638. ),
  13639. ),
  13640. 'indexes' => array(
  13641. 'studyprop_idx1' => array(
  13642. 0 => 'study_id',
  13643. ),
  13644. 'studyprop_idx2' => array(
  13645. 0 => 'type_id',
  13646. ),
  13647. ),
  13648. 'foreign keys' => array(
  13649. 'cvterm' => array(
  13650. 'table' => 'cvterm',
  13651. 'columns' => array(
  13652. 'type_id' => 'cvterm_id',
  13653. ),
  13654. ),
  13655. 'study' => array(
  13656. 'table' => 'study',
  13657. 'columns' => array(
  13658. 'study_id' => 'study_id',
  13659. ),
  13660. ),
  13661. ),
  13662. 'table' => 'studyprop',
  13663. 'referring_tables' => array(
  13664. 0 => 'studyprop_feature',
  13665. ),
  13666. );
  13667. return $description;
  13668. }
  13669. /**
  13670. * Implements hook_chado_schema_v1_2_studyprop_feature()
  13671. * Purpose: To describe the structure of 'studyprop_feature' to tripal
  13672. * @see tripal_core_chado_insert()
  13673. * @see tripal_core_chado_update()
  13674. * @see tripal_core_chado_select()
  13675. *
  13676. * @return
  13677. * An array describing the 'studyprop_feature' table
  13678. *
  13679. * @ingroup tripal_chado_v1.2_schema_api
  13680. *
  13681. */
  13682. function tripal_core_chado_schema_v1_2_studyprop_feature() {
  13683. $description = array(
  13684. 'description' => 'TODO: please describe this table!',
  13685. 'fields' => array(
  13686. 'studyprop_feature_id' => array(
  13687. 'description' => 'TODO: please describe this field!',
  13688. 'type' => 'serial',
  13689. 'not null' => TRUE,
  13690. ),
  13691. 'studyprop_id' => array(
  13692. 'description' => 'TODO: please describe this field!',
  13693. 'type' => 'int',
  13694. 'not null' => TRUE,
  13695. ),
  13696. 'feature_id' => array(
  13697. 'description' => 'TODO: please describe this field!',
  13698. 'type' => 'int',
  13699. 'not null' => TRUE,
  13700. ),
  13701. 'type_id' => array(
  13702. 'description' => 'TODO: please describe this field!',
  13703. 'type' => 'int',
  13704. 'not null' => FALSE,
  13705. ),
  13706. ),
  13707. 'primary key' => array(
  13708. 0 => 'studyprop_feature_id',
  13709. ),
  13710. 'unique keys' => array(
  13711. 'studyprop_id' => array(
  13712. 0 => 'studyprop_id',
  13713. 1 => 'feature_id',
  13714. ),
  13715. ),
  13716. 'indexes' => array(
  13717. 'studyprop_feature_idx1' => array(
  13718. 0 => 'studyprop_id',
  13719. ),
  13720. 'studyprop_feature_idx2' => array(
  13721. 0 => 'feature_id',
  13722. ),
  13723. ),
  13724. 'foreign keys' => array(
  13725. 'cvterm' => array(
  13726. 'table' => 'cvterm',
  13727. 'columns' => array(
  13728. 'type_id' => 'cvterm_id',
  13729. ),
  13730. ),
  13731. 'feature' => array(
  13732. 'table' => 'feature',
  13733. 'columns' => array(
  13734. 'feature_id' => 'feature_id',
  13735. ),
  13736. ),
  13737. 'studyprop' => array(
  13738. 'table' => 'studyprop',
  13739. 'columns' => array(
  13740. 'studyprop_id' => 'studyprop_id',
  13741. ),
  13742. ),
  13743. ),
  13744. 'table' => 'studyprop_feature',
  13745. 'referring_tables' => NULL,
  13746. );
  13747. return $description;
  13748. }
  13749. /**
  13750. * Implements hook_chado_schema_v1_2_synonym()
  13751. * Purpose: To describe the structure of 'synonym' to tripal
  13752. * @see tripal_core_chado_insert()
  13753. * @see tripal_core_chado_update()
  13754. * @see tripal_core_chado_select()
  13755. *
  13756. * @return
  13757. * An array describing the 'synonym' table
  13758. *
  13759. * @ingroup tripal_chado_v1.2_schema_api
  13760. *
  13761. */
  13762. function tripal_core_chado_schema_v1_2_synonym() {
  13763. $description = array(
  13764. 'description' => 'TODO: please describe this table!',
  13765. 'fields' => array(
  13766. 'synonym_id' => array(
  13767. 'description' => 'TODO: please describe this field!',
  13768. 'type' => 'serial',
  13769. 'not null' => TRUE,
  13770. ),
  13771. 'name' => array(
  13772. 'description' => 'TODO: please describe this field!',
  13773. 'type' => 'varchar',
  13774. 'length' => '255',
  13775. 'not null' => TRUE,
  13776. ),
  13777. 'type_id' => array(
  13778. 'description' => 'TODO: please describe this field!',
  13779. 'type' => 'int',
  13780. 'not null' => TRUE,
  13781. ),
  13782. 'synonym_sgml' => array(
  13783. 'description' => 'TODO: please describe this field!',
  13784. 'type' => 'varchar',
  13785. 'length' => '255',
  13786. 'not null' => TRUE,
  13787. ),
  13788. ),
  13789. 'primary key' => array(
  13790. 0 => 'synonym_id',
  13791. ),
  13792. 'unique keys' => array(
  13793. 'synonym_c1' => array(
  13794. 0 => 'name',
  13795. 1 => 'type_id',
  13796. ),
  13797. ),
  13798. 'indexes' => array(
  13799. 'synonym_idx1' => array(
  13800. 0 => 'type_id',
  13801. ),
  13802. ),
  13803. 'foreign keys' => array(
  13804. 'cvterm' => array(
  13805. 'table' => 'cvterm',
  13806. 'columns' => array(
  13807. 'type_id' => 'cvterm_id',
  13808. ),
  13809. ),
  13810. ),
  13811. 'table' => 'synonym',
  13812. 'referring_tables' => array(
  13813. 0 => 'cell_line_synonym',
  13814. 1 => 'feature_synonym',
  13815. 2 => 'library_synonym',
  13816. ),
  13817. );
  13818. return $description;
  13819. }
  13820. /**
  13821. * Implements hook_chado_schema_v1_2_tableinfo()
  13822. * Purpose: To describe the structure of 'tableinfo' to tripal
  13823. * @see tripal_core_chado_insert()
  13824. * @see tripal_core_chado_update()
  13825. * @see tripal_core_chado_select()
  13826. *
  13827. * @return
  13828. * An array describing the 'tableinfo' table
  13829. *
  13830. * @ingroup tripal_chado_v1.2_schema_api
  13831. *
  13832. */
  13833. function tripal_core_chado_schema_v1_2_tableinfo() {
  13834. $description = array(
  13835. 'description' => 'TODO: please describe this table!',
  13836. 'fields' => array(
  13837. 'tableinfo_id' => array(
  13838. 'description' => 'TODO: please describe this field!',
  13839. 'type' => 'serial',
  13840. 'not null' => TRUE,
  13841. ),
  13842. 'name' => array(
  13843. 'description' => 'TODO: please describe this field!',
  13844. 'type' => 'varchar',
  13845. 'length' => '30',
  13846. 'not null' => TRUE,
  13847. ),
  13848. 'primary_key_column' => array(
  13849. 'description' => 'TODO: please describe this field!',
  13850. 'type' => 'varchar',
  13851. 'length' => '30',
  13852. 'not null' => FALSE,
  13853. ),
  13854. 'is_view' => array(
  13855. 'description' => 'TODO: please describe this field!',
  13856. 'type' => 'int',
  13857. 'not null' => TRUE,
  13858. 'default' => 0,
  13859. ),
  13860. 'view_on_table_id' => array(
  13861. 'description' => 'TODO: please describe this field!',
  13862. 'type' => 'int',
  13863. 'not null' => FALSE,
  13864. ),
  13865. 'superclass_table_id' => array(
  13866. 'description' => 'TODO: please describe this field!',
  13867. 'type' => 'int',
  13868. 'not null' => FALSE,
  13869. ),
  13870. 'is_updateable' => array(
  13871. 'description' => 'TODO: please describe this field!',
  13872. 'type' => 'int',
  13873. 'not null' => TRUE,
  13874. 'default' => 1,
  13875. ),
  13876. 'modification_date' => array(
  13877. 'description' => 'TODO: please describe this field!',
  13878. 'type' => 'date',
  13879. 'not null' => TRUE,
  13880. 'default' => 'ow(',
  13881. ),
  13882. ),
  13883. 'primary key' => array(
  13884. 0 => 'tableinfo_id',
  13885. ),
  13886. 'unique keys' => array(
  13887. 'tableinfo_c1' => array(
  13888. 0 => 'name',
  13889. ),
  13890. ),
  13891. 'foreign keys' => array(
  13892. ),
  13893. 'table' => 'tableinfo',
  13894. 'referring_tables' => array(
  13895. 0 => 'control',
  13896. 1 => 'magedocumentation',
  13897. ),
  13898. );
  13899. return $description;
  13900. }
  13901. /**
  13902. * Implements hook_chado_schema_v1_2_treatment()
  13903. * Purpose: To describe the structure of 'treatment' to tripal
  13904. * @see tripal_core_chado_insert()
  13905. * @see tripal_core_chado_update()
  13906. * @see tripal_core_chado_select()
  13907. *
  13908. * @return
  13909. * An array describing the 'treatment' table
  13910. *
  13911. * @ingroup tripal_chado_v1.2_schema_api
  13912. *
  13913. */
  13914. function tripal_core_chado_schema_v1_2_treatment() {
  13915. $description = array(
  13916. 'description' => 'TODO: please describe this table!',
  13917. 'fields' => array(
  13918. 'treatment_id' => array(
  13919. 'description' => 'TODO: please describe this field!',
  13920. 'type' => 'serial',
  13921. 'not null' => TRUE,
  13922. ),
  13923. 'rank' => array(
  13924. 'description' => 'TODO: please describe this field!',
  13925. 'type' => 'int',
  13926. 'not null' => TRUE,
  13927. 'default' => 0,
  13928. ),
  13929. 'biomaterial_id' => array(
  13930. 'description' => 'TODO: please describe this field!',
  13931. 'type' => 'int',
  13932. 'not null' => TRUE,
  13933. ),
  13934. 'type_id' => array(
  13935. 'description' => 'TODO: please describe this field!',
  13936. 'type' => 'int',
  13937. 'not null' => TRUE,
  13938. ),
  13939. 'protocol_id' => array(
  13940. 'description' => 'TODO: please describe this field!',
  13941. 'type' => 'int',
  13942. 'not null' => FALSE,
  13943. ),
  13944. 'name' => array(
  13945. 'description' => 'TODO: please describe this field!',
  13946. 'type' => 'text',
  13947. 'not null' => FALSE,
  13948. ),
  13949. ),
  13950. 'primary key' => array(
  13951. 0 => 'treatment_id',
  13952. ),
  13953. 'indexes' => array(
  13954. 'treatment_idx1' => array(
  13955. 0 => 'biomaterial_id',
  13956. ),
  13957. 'treatment_idx2' => array(
  13958. 0 => 'type_id',
  13959. ),
  13960. 'treatment_idx3' => array(
  13961. 0 => 'protocol_id',
  13962. ),
  13963. ),
  13964. 'foreign keys' => array(
  13965. 'cvterm' => array(
  13966. 'table' => 'cvterm',
  13967. 'columns' => array(
  13968. 'type_id' => 'cvterm_id',
  13969. ),
  13970. ),
  13971. 'protocol' => array(
  13972. 'table' => 'protocol',
  13973. 'columns' => array(
  13974. 'protocol_id' => 'protocol_id',
  13975. ),
  13976. ),
  13977. 'biomaterial' => array(
  13978. 'table' => 'biomaterial',
  13979. 'columns' => array(
  13980. 'biomaterial_id' => 'biomaterial_id',
  13981. ),
  13982. ),
  13983. ),
  13984. 'table' => 'treatment',
  13985. 'referring_tables' => array(
  13986. 0 => 'biomaterial_treatment',
  13987. ),
  13988. );
  13989. return $description;
  13990. }
  13991. /**
  13992. * Lists the table names in the v1.2 chado schema
  13993. *
  13994. * @return
  13995. * An array containing all of the table names
  13996. *
  13997. * @ingroup tripal_chado_v1.2_schema_api
  13998. *
  13999. */
  14000. function tripal_core_chado_get_v1_2_tables() {
  14001. $tables = array(
  14002. 'acquisition',
  14003. 'acquisition_relationship',
  14004. 'acquisitionprop',
  14005. 'analysis',
  14006. 'analysisfeature',
  14007. 'analysisfeatureprop',
  14008. 'analysisprop',
  14009. 'arraydesign',
  14010. 'arraydesignprop',
  14011. 'assay',
  14012. 'assay_biomaterial',
  14013. 'assay_project',
  14014. 'assayprop',
  14015. 'biomaterial',
  14016. 'biomaterial_dbxref',
  14017. 'biomaterial_relationship',
  14018. 'biomaterial_treatment',
  14019. 'biomaterialprop',
  14020. 'cell_line',
  14021. 'cell_line_cvterm',
  14022. 'cell_line_cvtermprop',
  14023. 'cell_line_dbxref',
  14024. 'cell_line_feature',
  14025. 'cell_line_library',
  14026. 'cell_line_pub',
  14027. 'cell_line_relationship',
  14028. 'cell_line_synonym',
  14029. 'cell_lineprop',
  14030. 'cell_lineprop_pub',
  14031. 'chadoprop',
  14032. 'channel',
  14033. 'contact',
  14034. 'contact_relationship',
  14035. 'control',
  14036. 'cv',
  14037. 'cvprop',
  14038. 'cvterm',
  14039. 'cvterm_dbxref',
  14040. 'cvterm_relationship',
  14041. 'cvtermpath',
  14042. 'cvtermprop',
  14043. 'cvtermsynonym',
  14044. 'db',
  14045. 'dbxref',
  14046. 'dbxrefprop',
  14047. 'eimage',
  14048. 'element',
  14049. 'element_relationship',
  14050. 'elementresult',
  14051. 'elementresult_relationship',
  14052. 'environment',
  14053. 'environment_cvterm',
  14054. 'expression',
  14055. 'expression_cvterm',
  14056. 'expression_cvtermprop',
  14057. 'expression_image',
  14058. 'expression_pub',
  14059. 'expressionprop',
  14060. 'feature',
  14061. 'feature_cvterm',
  14062. 'feature_cvterm_dbxref',
  14063. 'feature_cvterm_pub',
  14064. 'feature_cvtermprop',
  14065. 'feature_dbxref',
  14066. 'feature_expression',
  14067. 'feature_expressionprop',
  14068. 'feature_genotype',
  14069. 'feature_phenotype',
  14070. 'feature_pub',
  14071. 'feature_pubprop',
  14072. 'feature_relationship',
  14073. 'feature_relationship_pub',
  14074. 'feature_relationshipprop',
  14075. 'feature_relationshipprop_pub',
  14076. 'feature_synonym',
  14077. 'featureloc',
  14078. 'featureloc_pub',
  14079. 'featuremap',
  14080. 'featuremap_pub',
  14081. 'featurepos',
  14082. 'featureprop',
  14083. 'featureprop_pub',
  14084. 'featurerange',
  14085. 'genotype',
  14086. 'genotypeprop',
  14087. 'library',
  14088. 'library_cvterm',
  14089. 'library_dbxref',
  14090. 'library_feature',
  14091. 'library_pub',
  14092. 'library_synonym',
  14093. 'libraryprop',
  14094. 'libraryprop_pub',
  14095. 'magedocumentation',
  14096. 'mageml',
  14097. 'nd_experiment',
  14098. 'nd_experiment_contact',
  14099. 'nd_experiment_dbxref',
  14100. 'nd_experiment_genotype',
  14101. 'nd_experiment_phenotype',
  14102. 'nd_experiment_project',
  14103. 'nd_experiment_protocol',
  14104. 'nd_experiment_pub',
  14105. 'nd_experiment_stock',
  14106. 'nd_experiment_stock_dbxref',
  14107. 'nd_experiment_stockprop',
  14108. 'nd_experimentprop',
  14109. 'nd_geolocation',
  14110. 'nd_geolocationprop',
  14111. 'nd_protocol',
  14112. 'nd_protocol_reagent',
  14113. 'nd_protocolprop',
  14114. 'nd_reagent',
  14115. 'nd_reagent_relationship',
  14116. 'nd_reagentprop',
  14117. 'organism',
  14118. 'organism_dbxref',
  14119. 'organismprop',
  14120. 'phendesc',
  14121. 'phenotype',
  14122. 'phenotype_comparison',
  14123. 'phenotype_comparison_cvterm',
  14124. 'phenotype_cvterm',
  14125. 'phenstatement',
  14126. 'phylonode',
  14127. 'phylonode_dbxref',
  14128. 'phylonode_organism',
  14129. 'phylonode_pub',
  14130. 'phylonode_relationship',
  14131. 'phylonodeprop',
  14132. 'phylotree',
  14133. 'phylotree_pub',
  14134. 'project',
  14135. 'project_contact',
  14136. 'project_pub',
  14137. 'project_relationship',
  14138. 'projectprop',
  14139. 'protocol',
  14140. 'protocolparam',
  14141. 'pub',
  14142. 'pub_dbxref',
  14143. 'pub_relationship',
  14144. 'pubauthor',
  14145. 'pubprop',
  14146. 'quantification',
  14147. 'quantification_relationship',
  14148. 'quantificationprop',
  14149. 'stock',
  14150. 'stock_cvterm',
  14151. 'stock_cvtermprop',
  14152. 'stock_dbxref',
  14153. 'stock_dbxrefprop',
  14154. 'stock_genotype',
  14155. 'stock_pub',
  14156. 'stock_relationship',
  14157. 'stock_relationship_cvterm',
  14158. 'stock_relationship_pub',
  14159. 'stockcollection',
  14160. 'stockcollection_stock',
  14161. 'stockcollectionprop',
  14162. 'stockprop',
  14163. 'stockprop_pub',
  14164. 'study',
  14165. 'study_assay',
  14166. 'studydesign',
  14167. 'studydesignprop',
  14168. 'studyfactor',
  14169. 'studyfactorvalue',
  14170. 'studyprop',
  14171. 'studyprop_feature',
  14172. 'synonym',
  14173. 'tableinfo',
  14174. 'treatment'
  14175. );
  14176. return $tables;
  14177. }