tripal_core.schema_v1.2.api.inc 369 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177
  1. <?php
  2. /**
  3. * @defgroup tripal_schema_v1_2_api Chado v1.2 Schema API
  4. * @ingroup tripal_chado_schema_api
  5. * @{
  6. * Provides an application programming interface (API) for describing Chado tables.
  7. * This API consists of a set of functions, one for each table in Chado. Each
  8. * function simply returns a Drupal style array that defines the table.
  9. *
  10. * Because Drupal 6 does not handle foreign key (FK) relationships, which are needed to
  11. * for Tripal Views, they have been added to the schema defintitions below.
  12. *
  13. * The functions provided in this documentation should not be called as is, but if you need
  14. * the Drupal-style array definition for any table, use the following function
  15. * call:
  16. *
  17. * $table_desc = tripal_core_get_chado_table_schema($table)
  18. *
  19. * where the variable $table contains the name of the table you want to
  20. * retireve. The tripal_core_get_chado_table_schema function determines the appropriate version of
  21. * Chado and uses the Drupal hook infrastructure to call the appropriate
  22. * hook function to retrieve the table schema.
  23. *
  24. * If you need to augment these schema definitions within your own module, you need to
  25. * implement the hook_chado_schema_v1_2_[table name]() hook where [table name] is the
  26. * name of the chado table whose schema definition you want to augment.
  27. * @}
  28. */
  29. /**
  30. * Implements hook_chado_schema_v1_2_acquisition()
  31. * Purpose: To describe the structure of 'acquisition' to tripal
  32. * @see tripal_core_chado_insert()
  33. * @see tripal_core_chado_update()
  34. * @see tripal_core_chado_select()
  35. *
  36. * @return
  37. * An array describing the 'acquisition' table
  38. *
  39. * @ingroup tripal_chado_v1.2_schema_api
  40. *
  41. */
  42. function tripal_core_chado_schema_v1_2_acquisition() {
  43. $description = array(
  44. 'description' => 'TODO: please describe this table!',
  45. 'fields' => array(
  46. 'acquisition_id' => array(
  47. 'description' => 'TODO: please describe this field!',
  48. 'type' => 'serial',
  49. 'not null' => TRUE,
  50. ),
  51. 'assay_id' => array(
  52. 'description' => 'TODO: please describe this field!',
  53. 'type' => 'int',
  54. 'not null' => TRUE,
  55. ),
  56. 'protocol_id' => array(
  57. 'description' => 'TODO: please describe this field!',
  58. 'type' => 'int',
  59. 'not null' => FALSE,
  60. ),
  61. 'channel_id' => array(
  62. 'description' => 'TODO: please describe this field!',
  63. 'type' => 'int',
  64. 'not null' => FALSE,
  65. ),
  66. 'acquisitiondate' => array(
  67. 'description' => 'TODO: please describe this field!',
  68. 'type' => 'datetime',
  69. 'not null' => FALSE,
  70. 'default' => 'ow(',
  71. ),
  72. 'name' => array(
  73. 'description' => 'TODO: please describe this field!',
  74. 'type' => 'text',
  75. 'not null' => FALSE,
  76. ),
  77. 'uri' => array(
  78. 'description' => 'TODO: please describe this field!',
  79. 'type' => 'text',
  80. 'not null' => FALSE,
  81. ),
  82. ),
  83. 'primary key' => array(
  84. 0 => 'acquisition_id',
  85. ),
  86. 'unique keys' => array(
  87. 'acquisition_c1' => array(
  88. 0 => 'name',
  89. ),
  90. ),
  91. 'indexes' => array(
  92. 'acquisition_idx1' => array(
  93. 0 => 'assay_id',
  94. ),
  95. 'acquisition_idx2' => array(
  96. 0 => 'protocol_id',
  97. ),
  98. 'acquisition_idx3' => array(
  99. 0 => 'channel_id',
  100. ),
  101. ),
  102. 'foreign keys' => array(
  103. 'protocol' => array(
  104. 'table' => 'protocol',
  105. 'columns' => array(
  106. 'protocol_id' => 'protocol_id',
  107. ),
  108. ),
  109. 'assay' => array(
  110. 'table' => 'assay',
  111. 'columns' => array(
  112. 'assay_id' => 'assay_id',
  113. ),
  114. ),
  115. 'channel' => array(
  116. 'table' => 'channel',
  117. 'columns' => array(
  118. 'channel_id' => 'channel_id',
  119. ),
  120. ),
  121. ),
  122. 'table' => 'acquisition',
  123. 'referring_tables' => array(
  124. 0 => 'acquisition_relationship',
  125. 2 => 'acquisitionprop',
  126. 3 => 'quantification',
  127. ),
  128. );
  129. return $description;
  130. }
  131. /**
  132. * Implements hook_chado_schema_v1_2_acquisition_relationship()
  133. * Purpose: To describe the structure of 'acquisition_relationship' to tripal
  134. * @see tripal_core_chado_insert()
  135. * @see tripal_core_chado_update()
  136. * @see tripal_core_chado_select()
  137. *
  138. * @return
  139. * An array describing the 'acquisition_relationship' table
  140. *
  141. * @ingroup tripal_chado_v1.2_schema_api
  142. *
  143. */
  144. function tripal_core_chado_schema_v1_2_acquisition_relationship() {
  145. $description = array(
  146. 'description' => 'TODO: please describe this table!',
  147. 'fields' => array(
  148. 'acquisition_relationship_id' => array(
  149. 'description' => 'TODO: please describe this field!',
  150. 'type' => 'serial',
  151. 'not null' => TRUE,
  152. ),
  153. 'subject_id' => array(
  154. 'description' => 'TODO: please describe this field!',
  155. 'type' => 'int',
  156. 'not null' => TRUE,
  157. ),
  158. 'type_id' => array(
  159. 'description' => 'TODO: please describe this field!',
  160. 'type' => 'int',
  161. 'not null' => TRUE,
  162. ),
  163. 'object_id' => array(
  164. 'description' => 'TODO: please describe this field!',
  165. 'type' => 'int',
  166. 'not null' => TRUE,
  167. ),
  168. 'value' => array(
  169. 'description' => 'TODO: please describe this field!',
  170. 'type' => 'text',
  171. 'not null' => FALSE,
  172. ),
  173. 'rank' => array(
  174. 'description' => 'TODO: please describe this field!',
  175. 'type' => 'int',
  176. 'not null' => TRUE,
  177. 'default' => 0,
  178. ),
  179. ),
  180. 'primary key' => array(
  181. 0 => 'acquisition_relationship_id',
  182. ),
  183. 'unique keys' => array(
  184. 'acquisition_relationship_c1' => array(
  185. 0 => 'subject_id',
  186. 1 => 'object_id',
  187. 2 => 'type_id',
  188. 3 => 'rank',
  189. ),
  190. ),
  191. 'indexes' => array(
  192. 'acquisition_relationship_idx1' => array(
  193. 0 => 'subject_id',
  194. ),
  195. 'acquisition_relationship_idx2' => array(
  196. 0 => 'type_id',
  197. ),
  198. 'acquisition_relationship_idx3' => array(
  199. 0 => 'object_id',
  200. ),
  201. ),
  202. 'foreign keys' => array(
  203. 'cvterm' => array(
  204. 'table' => 'cvterm',
  205. 'columns' => array(
  206. 'type_id' => 'cvterm_id',
  207. ),
  208. ),
  209. 'acquisition' => array(
  210. 'table' => 'acquisition',
  211. 'columns' => array(
  212. 'subject_id' => 'acquisition_id',
  213. 'object_id' => 'acquisition_id',
  214. ),
  215. ),
  216. ),
  217. 'table' => 'acquisition_relationship',
  218. 'referring_tables' => NULL,
  219. );
  220. return $description;
  221. }
  222. /**
  223. * Implements hook_chado_schema_v1_2_acquisitionprop()
  224. * Purpose: To describe the structure of 'acquisitionprop' to tripal
  225. * @see tripal_core_chado_insert()
  226. * @see tripal_core_chado_update()
  227. * @see tripal_core_chado_select()
  228. *
  229. * @return
  230. * An array describing the 'acquisitionprop' table
  231. *
  232. * @ingroup tripal_chado_v1.2_schema_api
  233. *
  234. */
  235. function tripal_core_chado_schema_v1_2_acquisitionprop() {
  236. $description = array(
  237. 'description' => 'TODO: please describe this table!',
  238. 'fields' => array(
  239. 'acquisitionprop_id' => array(
  240. 'description' => 'TODO: please describe this field!',
  241. 'type' => 'serial',
  242. 'not null' => TRUE,
  243. ),
  244. 'acquisition_id' => array(
  245. 'description' => 'TODO: please describe this field!',
  246. 'type' => 'int',
  247. 'not null' => TRUE,
  248. ),
  249. 'type_id' => array(
  250. 'description' => 'TODO: please describe this field!',
  251. 'type' => 'int',
  252. 'not null' => TRUE,
  253. ),
  254. 'value' => array(
  255. 'description' => 'TODO: please describe this field!',
  256. 'type' => 'text',
  257. 'not null' => FALSE,
  258. ),
  259. 'rank' => array(
  260. 'description' => 'TODO: please describe this field!',
  261. 'type' => 'int',
  262. 'not null' => TRUE,
  263. 'default' => 0,
  264. ),
  265. ),
  266. 'primary key' => array(
  267. 0 => 'acquisitionprop_id',
  268. ),
  269. 'unique keys' => array(
  270. 'acquisitionprop_c1' => array(
  271. 0 => 'acquisition_id',
  272. 1 => 'type_id',
  273. 2 => 'rank',
  274. ),
  275. ),
  276. 'indexes' => array(
  277. 'acquisitionprop_idx1' => array(
  278. 0 => 'acquisition_id',
  279. ),
  280. 'acquisitionprop_idx2' => array(
  281. 0 => 'type_id',
  282. ),
  283. ),
  284. 'foreign keys' => array(
  285. 'cvterm' => array(
  286. 'table' => 'cvterm',
  287. 'columns' => array(
  288. 'type_id' => 'cvterm_id',
  289. ),
  290. ),
  291. 'acquisition' => array(
  292. 'table' => 'acquisition',
  293. 'columns' => array(
  294. 'acquisition_id' => 'acquisition_id',
  295. ),
  296. ),
  297. ),
  298. 'table' => 'acquisitionprop',
  299. 'referring_tables' => NULL,
  300. );
  301. return $description;
  302. }
  303. /**
  304. * Implements hook_chado_schema_v1_2_analysis()
  305. * Purpose: To describe the structure of 'analysis' to tripal
  306. * @see tripal_core_chado_insert()
  307. * @see tripal_core_chado_update()
  308. * @see tripal_core_chado_select()
  309. *
  310. * @return
  311. * An array describing the 'analysis' table
  312. *
  313. * @ingroup tripal_chado_v1.2_schema_api
  314. *
  315. */
  316. function tripal_core_chado_schema_v1_2_analysis() {
  317. $description = array(
  318. 'referring_tables' => array(
  319. 0 => 'analysisfeature',
  320. 1 => 'analysisprop',
  321. 2 => 'phylotree',
  322. 3 => 'quantification',
  323. ),
  324. 'description' => 'TODO: please describe this table!',
  325. 'fields' => array(
  326. 'analysis_id' => array(
  327. 'description' => 'TODO: please describe this field!',
  328. 'type' => 'serial',
  329. 'not null' => TRUE,
  330. ),
  331. 'name' => array(
  332. 'description' => 'TODO: please describe this field!',
  333. 'type' => 'varchar',
  334. 'length' => '255',
  335. 'not null' => FALSE,
  336. ),
  337. 'description' => array(
  338. 'description' => 'TODO: please describe this field!',
  339. 'type' => 'text',
  340. 'not null' => FALSE,
  341. ),
  342. 'program' => array(
  343. 'description' => 'TODO: please describe this field!',
  344. 'type' => 'varchar',
  345. 'length' => '255',
  346. 'not null' => TRUE,
  347. ),
  348. 'programversion' => array(
  349. 'description' => 'TODO: please describe this field!',
  350. 'type' => 'varchar',
  351. 'length' => '255',
  352. 'not null' => TRUE,
  353. ),
  354. 'algorithm' => array(
  355. 'description' => 'TODO: please describe this field!',
  356. 'type' => 'varchar',
  357. 'length' => '255',
  358. 'not null' => FALSE,
  359. ),
  360. 'sourcename' => array(
  361. 'description' => 'TODO: please describe this field!',
  362. 'type' => 'varchar',
  363. 'length' => '255',
  364. 'not null' => FALSE,
  365. ),
  366. 'sourceversion' => array(
  367. 'description' => 'TODO: please describe this field!',
  368. 'type' => 'varchar',
  369. 'length' => '255',
  370. 'not null' => FALSE,
  371. ),
  372. 'sourceuri' => array(
  373. 'description' => 'TODO: please describe this field!',
  374. 'type' => 'text',
  375. 'not null' => FALSE,
  376. ),
  377. 'timeexecuted' => array(
  378. 'description' => 'TODO: please describe this field!',
  379. 'type' => 'datetime',
  380. 'not null' => TRUE,
  381. 'default' => 'ow(',
  382. ),
  383. ),
  384. 'primary key' => array(
  385. 0 => 'analysis_id',
  386. ),
  387. 'unique keys' => array(
  388. 'analysis_c1' => array(
  389. 0 => 'program',
  390. 1 => 'programversion',
  391. 2 => 'sourcename',
  392. ),
  393. ),
  394. 'foreign keys' => array(
  395. ),
  396. 'table' => 'analysis',
  397. );
  398. return $description;
  399. }
  400. /**
  401. * Implements hook_chado_schema_v1_2_analysisfeature()
  402. * Purpose: To describe the structure of 'analysisfeature' to tripal
  403. * @see tripal_core_chado_insert()
  404. * @see tripal_core_chado_update()
  405. * @see tripal_core_chado_select()
  406. *
  407. * @return
  408. * An array describing the 'analysisfeature' table
  409. *
  410. * @ingroup tripal_chado_v1.2_schema_api
  411. *
  412. */
  413. function tripal_core_chado_schema_v1_2_analysisfeature() {
  414. $description = array(
  415. 'description' => 'TODO: please describe this table!',
  416. 'fields' => array(
  417. 'analysisfeature_id' => array(
  418. 'description' => 'TODO: please describe this field!',
  419. 'type' => 'serial',
  420. 'not null' => TRUE,
  421. ),
  422. 'feature_id' => array(
  423. 'description' => 'TODO: please describe this field!',
  424. 'type' => 'int',
  425. 'not null' => TRUE,
  426. ),
  427. 'analysis_id' => array(
  428. 'description' => 'TODO: please describe this field!',
  429. 'type' => 'int',
  430. 'not null' => TRUE,
  431. ),
  432. 'rawscore' => array(
  433. 'description' => 'TODO: please describe this field!',
  434. 'type' => 'float',
  435. 'size' => 'big',
  436. 'not null' => FALSE,
  437. ),
  438. 'normscore' => array(
  439. 'description' => 'TODO: please describe this field!',
  440. 'type' => 'float',
  441. 'size' => 'big',
  442. 'not null' => FALSE,
  443. ),
  444. 'significance' => array(
  445. 'description' => 'TODO: please describe this field!',
  446. 'type' => 'float',
  447. 'size' => 'big',
  448. 'not null' => FALSE,
  449. ),
  450. 'identity' => array(
  451. 'description' => 'TODO: please describe this field!',
  452. 'type' => 'float',
  453. 'size' => 'big',
  454. 'not null' => FALSE,
  455. ),
  456. ),
  457. 'primary key' => array(
  458. 0 => 'analysisfeature_id',
  459. ),
  460. 'unique keys' => array(
  461. 'analysisfeature_c1' => array(
  462. 0 => 'feature_id',
  463. 1 => 'analysis_id',
  464. ),
  465. ),
  466. 'indexes' => array(
  467. 'analysisfeature_idx1' => array(
  468. 0 => 'feature_id',
  469. ),
  470. 'analysisfeature_idx2' => array(
  471. 0 => 'analysis_id',
  472. ),
  473. ),
  474. 'foreign keys' => array(
  475. 'analysis' => array(
  476. 'table' => 'analysis',
  477. 'columns' => array(
  478. 'analysis_id' => 'analysis_id',
  479. ),
  480. ),
  481. 'feature' => array(
  482. 'table' => 'feature',
  483. 'columns' => array(
  484. 'feature_id' => 'feature_id',
  485. ),
  486. ),
  487. ),
  488. 'table' => 'analysisfeature',
  489. 'referring_tables' => array(
  490. 0 => 'analysisfeatureprop',
  491. ),
  492. );
  493. return $description;
  494. }
  495. /**
  496. * Implements hook_chado_schema_v1_2_analysisfeatureprop()
  497. * Purpose: To describe the structure of 'analysisfeatureprop' to tripal
  498. * @see tripal_core_chado_insert()
  499. * @see tripal_core_chado_update()
  500. * @see tripal_core_chado_select()
  501. *
  502. * @return
  503. * An array describing the 'analysisfeatureprop' table
  504. *
  505. * @ingroup tripal_chado_v1.2_schema_api
  506. *
  507. */
  508. function tripal_core_chado_schema_v1_2_analysisfeatureprop() {
  509. $description = array(
  510. 'description' => 'TODO: please describe this table!',
  511. 'fields' => array(
  512. 'analysisfeatureprop_id' => array(
  513. 'description' => 'TODO: please describe this field!',
  514. 'type' => 'serial',
  515. 'not null' => TRUE,
  516. ),
  517. 'analysisfeature_id' => array(
  518. 'description' => 'TODO: please describe this field!',
  519. 'type' => 'int',
  520. 'not null' => TRUE,
  521. ),
  522. 'type_id' => array(
  523. 'description' => 'TODO: please describe this field!',
  524. 'type' => 'int',
  525. 'not null' => TRUE,
  526. ),
  527. 'value' => array(
  528. 'description' => 'TODO: please describe this field!',
  529. 'type' => 'text',
  530. 'not null' => FALSE,
  531. ),
  532. 'rank' => array(
  533. 'description' => 'TODO: please describe this field!',
  534. 'type' => 'int',
  535. 'not null' => TRUE,
  536. ),
  537. ),
  538. 'primary key' => array(
  539. 0 => 'analysisfeatureprop_id',
  540. ),
  541. 'unique keys' => array(
  542. 'analysisfeature_id_type_id_rank' => array(
  543. 0 => 'analysisfeature_id',
  544. 1 => 'type_id',
  545. 2 => 'rank',
  546. ),
  547. ),
  548. 'foreign keys' => array(
  549. 'cvterm' => array(
  550. 'table' => 'cvterm',
  551. 'columns' => array(
  552. 'type_id' => 'cvterm_id',
  553. ),
  554. ),
  555. 'analysisfeature' => array(
  556. 'table' => 'analysisfeature',
  557. 'columns' => array(
  558. 'analysisfeature_id' => 'analysisfeature_id',
  559. ),
  560. ),
  561. ),
  562. 'table' => 'analysisfeatureprop',
  563. 'referring_tables' => NULL,
  564. );
  565. return $description;
  566. }
  567. /**
  568. * Implements hook_chado_schema_v1_2_analysisprop()
  569. * Purpose: To describe the structure of 'analysisprop' to tripal
  570. * @see tripal_core_chado_insert()
  571. * @see tripal_core_chado_update()
  572. * @see tripal_core_chado_select()
  573. *
  574. * @return
  575. * An array describing the 'analysisprop' table
  576. *
  577. * @ingroup tripal_chado_v1.2_schema_api
  578. *
  579. */
  580. function tripal_core_chado_schema_v1_2_analysisprop() {
  581. $description = array(
  582. 'description' => 'TODO: please describe this table!',
  583. 'fields' => array(
  584. 'analysisprop_id' => array(
  585. 'description' => 'TODO: please describe this field!',
  586. 'type' => 'serial',
  587. 'not null' => TRUE,
  588. ),
  589. 'analysis_id' => array(
  590. 'description' => 'TODO: please describe this field!',
  591. 'type' => 'int',
  592. 'not null' => TRUE,
  593. ),
  594. 'type_id' => array(
  595. 'description' => 'TODO: please describe this field!',
  596. 'type' => 'int',
  597. 'not null' => TRUE,
  598. ),
  599. 'value' => array(
  600. 'description' => 'TODO: please describe this field!',
  601. 'type' => 'text',
  602. 'not null' => FALSE,
  603. ),
  604. 'rank' => array(
  605. 'description' => 'TODO: please describe this field!',
  606. 'type' => 'int',
  607. 'not null' => TRUE,
  608. 'default' => 0,
  609. ),
  610. ),
  611. 'primary key' => array(
  612. 0 => 'analysisprop_id',
  613. ),
  614. 'unique keys' => array(
  615. 'analysisprop_c1' => array(
  616. 0 => 'analysis_id',
  617. 1 => 'type_id',
  618. 2 => 'rank',
  619. ),
  620. ),
  621. 'indexes' => array(
  622. 'analysisprop_idx1' => array(
  623. 0 => 'analysis_id',
  624. ),
  625. 'analysisprop_idx2' => array(
  626. 0 => 'type_id',
  627. ),
  628. ),
  629. 'foreign keys' => array(
  630. 'cvterm' => array(
  631. 'table' => 'cvterm',
  632. 'columns' => array(
  633. 'type_id' => 'cvterm_id',
  634. ),
  635. ),
  636. 'analysis' => array(
  637. 'table' => 'analysis',
  638. 'columns' => array(
  639. 'analysis_id' => 'analysis_id',
  640. ),
  641. ),
  642. ),
  643. 'table' => 'analysisprop',
  644. 'referring_tables' => NULL,
  645. );
  646. return $description;
  647. }
  648. /**
  649. * Implements hook_chado_schema_v1_2_arraydesign()
  650. * Purpose: To describe the structure of 'arraydesign' to tripal
  651. * @see tripal_core_chado_insert()
  652. * @see tripal_core_chado_update()
  653. * @see tripal_core_chado_select()
  654. *
  655. * @return
  656. * An array describing the 'arraydesign' table
  657. *
  658. * @ingroup tripal_chado_v1.2_schema_api
  659. *
  660. */
  661. function tripal_core_chado_schema_v1_2_arraydesign() {
  662. $description = array(
  663. 'description' => 'TODO: please describe this table!',
  664. 'fields' => array(
  665. 'arraydesign_id' => array(
  666. 'description' => 'TODO: please describe this field!',
  667. 'type' => 'serial',
  668. 'not null' => TRUE,
  669. ),
  670. 'manufacturer_id' => array(
  671. 'description' => 'TODO: please describe this field!',
  672. 'type' => 'int',
  673. 'not null' => TRUE,
  674. ),
  675. 'platformtype_id' => array(
  676. 'description' => 'TODO: please describe this field!',
  677. 'type' => 'int',
  678. 'not null' => TRUE,
  679. ),
  680. 'substratetype_id' => array(
  681. 'description' => 'TODO: please describe this field!',
  682. 'type' => 'int',
  683. 'not null' => FALSE,
  684. ),
  685. 'protocol_id' => array(
  686. 'description' => 'TODO: please describe this field!',
  687. 'type' => 'int',
  688. 'not null' => FALSE,
  689. ),
  690. 'dbxref_id' => array(
  691. 'description' => 'TODO: please describe this field!',
  692. 'type' => 'int',
  693. 'not null' => FALSE,
  694. ),
  695. 'name' => array(
  696. 'description' => 'TODO: please describe this field!',
  697. 'type' => 'text',
  698. 'not null' => TRUE,
  699. ),
  700. 'version' => array(
  701. 'description' => 'TODO: please describe this field!',
  702. 'type' => 'text',
  703. 'not null' => FALSE,
  704. ),
  705. 'description' => array(
  706. 'description' => 'TODO: please describe this field!',
  707. 'type' => 'text',
  708. 'not null' => FALSE,
  709. ),
  710. 'array_dimensions' => array(
  711. 'description' => 'TODO: please describe this field!',
  712. 'type' => 'text',
  713. 'not null' => FALSE,
  714. ),
  715. 'element_dimensions' => array(
  716. 'description' => 'TODO: please describe this field!',
  717. 'type' => 'text',
  718. 'not null' => FALSE,
  719. ),
  720. 'num_of_elements' => array(
  721. 'description' => 'TODO: please describe this field!',
  722. 'type' => 'int',
  723. 'not null' => FALSE,
  724. ),
  725. 'num_array_columns' => array(
  726. 'description' => 'TODO: please describe this field!',
  727. 'type' => 'int',
  728. 'not null' => FALSE,
  729. ),
  730. 'num_array_rows' => array(
  731. 'description' => 'TODO: please describe this field!',
  732. 'type' => 'int',
  733. 'not null' => FALSE,
  734. ),
  735. 'num_grid_columns' => array(
  736. 'description' => 'TODO: please describe this field!',
  737. 'type' => 'int',
  738. 'not null' => FALSE,
  739. ),
  740. 'num_grid_rows' => array(
  741. 'description' => 'TODO: please describe this field!',
  742. 'type' => 'int',
  743. 'not null' => FALSE,
  744. ),
  745. 'num_sub_columns' => array(
  746. 'description' => 'TODO: please describe this field!',
  747. 'type' => 'int',
  748. 'not null' => FALSE,
  749. ),
  750. 'num_sub_rows' => array(
  751. 'description' => 'TODO: please describe this field!',
  752. 'type' => 'int',
  753. 'not null' => FALSE,
  754. ),
  755. ),
  756. 'primary key' => array(
  757. 0 => 'arraydesign_id',
  758. ),
  759. 'unique keys' => array(
  760. 'arraydesign_c1' => array(
  761. 0 => 'name',
  762. ),
  763. ),
  764. 'indexes' => array(
  765. 'arraydesign_idx1' => array(
  766. 0 => 'manufacturer_id',
  767. ),
  768. 'arraydesign_idx2' => array(
  769. 0 => 'platformtype_id',
  770. ),
  771. 'arraydesign_idx3' => array(
  772. 0 => 'substratetype_id',
  773. ),
  774. 'arraydesign_idx4' => array(
  775. 0 => 'protocol_id',
  776. ),
  777. 'arraydesign_idx5' => array(
  778. 0 => 'dbxref_id',
  779. ),
  780. ),
  781. 'foreign keys' => array(
  782. 'cvterm' => array(
  783. 'table' => 'cvterm',
  784. 'columns' => array(
  785. 'platformtype_id' => 'cvterm_id',
  786. 'substratetype_id' => 'cvterm_id',
  787. ),
  788. ),
  789. 'dbxref' => array(
  790. 'table' => 'dbxref',
  791. 'columns' => array(
  792. 'dbxref_id' => 'dbxref_id',
  793. ),
  794. ),
  795. 'contact' => array(
  796. 'table' => 'contact',
  797. 'columns' => array(
  798. 'manufacturer_id' => 'contact_id',
  799. ),
  800. ),
  801. 'protocol' => array(
  802. 'table' => 'protocol',
  803. 'columns' => array(
  804. 'protocol_id' => 'protocol_id',
  805. ),
  806. ),
  807. ),
  808. 'table' => 'arraydesign',
  809. 'referring_tables' => array(
  810. 0 => 'arraydesignprop',
  811. 1 => 'assay',
  812. 2 => 'element',
  813. ),
  814. );
  815. return $description;
  816. }
  817. /**
  818. * Implements hook_chado_schema_v1_2_arraydesignprop()
  819. * Purpose: To describe the structure of 'arraydesignprop' to tripal
  820. * @see tripal_core_chado_insert()
  821. * @see tripal_core_chado_update()
  822. * @see tripal_core_chado_select()
  823. *
  824. * @return
  825. * An array describing the 'arraydesignprop' table
  826. *
  827. * @ingroup tripal_chado_v1.2_schema_api
  828. *
  829. */
  830. function tripal_core_chado_schema_v1_2_arraydesignprop() {
  831. $description = array(
  832. 'description' => 'TODO: please describe this table!',
  833. 'fields' => array(
  834. 'arraydesignprop_id' => array(
  835. 'description' => 'TODO: please describe this field!',
  836. 'type' => 'serial',
  837. 'not null' => TRUE,
  838. ),
  839. 'arraydesign_id' => array(
  840. 'description' => 'TODO: please describe this field!',
  841. 'type' => 'int',
  842. 'not null' => TRUE,
  843. ),
  844. 'type_id' => array(
  845. 'description' => 'TODO: please describe this field!',
  846. 'type' => 'int',
  847. 'not null' => TRUE,
  848. ),
  849. 'value' => array(
  850. 'description' => 'TODO: please describe this field!',
  851. 'type' => 'text',
  852. 'not null' => FALSE,
  853. ),
  854. 'rank' => array(
  855. 'description' => 'TODO: please describe this field!',
  856. 'type' => 'int',
  857. 'not null' => TRUE,
  858. 'default' => 0,
  859. ),
  860. ),
  861. 'primary key' => array(
  862. 0 => 'arraydesignprop_id',
  863. ),
  864. 'unique keys' => array(
  865. 'arraydesignprop_c1' => array(
  866. 0 => 'arraydesign_id',
  867. 1 => 'type_id',
  868. 2 => 'rank',
  869. ),
  870. ),
  871. 'indexes' => array(
  872. 'arraydesignprop_idx1' => array(
  873. 0 => 'arraydesign_id',
  874. ),
  875. 'arraydesignprop_idx2' => array(
  876. 0 => 'type_id',
  877. ),
  878. ),
  879. 'foreign keys' => array(
  880. 'cvterm' => array(
  881. 'table' => 'cvterm',
  882. 'columns' => array(
  883. 'type_id' => 'cvterm_id',
  884. ),
  885. ),
  886. 'arraydesign' => array(
  887. 'table' => 'arraydesign',
  888. 'columns' => array(
  889. 'arraydesign_id' => 'arraydesign_id',
  890. ),
  891. ),
  892. ),
  893. 'table' => 'arraydesignprop',
  894. 'referring_tables' => NULL,
  895. );
  896. return $description;
  897. }
  898. /**
  899. * Implements hook_chado_schema_v1_2_assay()
  900. * Purpose: To describe the structure of 'assay' to tripal
  901. * @see tripal_core_chado_insert()
  902. * @see tripal_core_chado_update()
  903. * @see tripal_core_chado_select()
  904. *
  905. * @return
  906. * An array describing the 'assay' table
  907. *
  908. * @ingroup tripal_chado_v1.2_schema_api
  909. *
  910. */
  911. function tripal_core_chado_schema_v1_2_assay() {
  912. $description = array(
  913. 'description' => 'TODO: please describe this table!',
  914. 'fields' => array(
  915. 'assay_id' => array(
  916. 'description' => 'TODO: please describe this field!',
  917. 'type' => 'serial',
  918. 'not null' => TRUE,
  919. ),
  920. 'arraydesign_id' => array(
  921. 'description' => 'TODO: please describe this field!',
  922. 'type' => 'int',
  923. 'not null' => TRUE,
  924. ),
  925. 'protocol_id' => array(
  926. 'description' => 'TODO: please describe this field!',
  927. 'type' => 'int',
  928. 'not null' => FALSE,
  929. ),
  930. 'assaydate' => array(
  931. 'description' => 'TODO: please describe this field!',
  932. 'type' => 'datetime',
  933. 'not null' => FALSE,
  934. 'default' => 'ow(',
  935. ),
  936. 'arrayidentifier' => array(
  937. 'description' => 'TODO: please describe this field!',
  938. 'type' => 'text',
  939. 'not null' => FALSE,
  940. ),
  941. 'arraybatchidentifier' => array(
  942. 'description' => 'TODO: please describe this field!',
  943. 'type' => 'text',
  944. 'not null' => FALSE,
  945. ),
  946. 'operator_id' => array(
  947. 'description' => 'TODO: please describe this field!',
  948. 'type' => 'int',
  949. 'not null' => TRUE,
  950. ),
  951. 'dbxref_id' => array(
  952. 'description' => 'TODO: please describe this field!',
  953. 'type' => 'int',
  954. 'not null' => FALSE,
  955. ),
  956. 'name' => array(
  957. 'description' => 'TODO: please describe this field!',
  958. 'type' => 'text',
  959. 'not null' => FALSE,
  960. ),
  961. 'description' => array(
  962. 'description' => 'TODO: please describe this field!',
  963. 'type' => 'text',
  964. 'not null' => FALSE,
  965. ),
  966. ),
  967. 'primary key' => array(
  968. 0 => 'assay_id',
  969. ),
  970. 'unique keys' => array(
  971. 'assay_c1' => array(
  972. 0 => 'name',
  973. ),
  974. ),
  975. 'indexes' => array(
  976. 'assay_idx1' => array(
  977. 0 => 'arraydesign_id',
  978. ),
  979. 'assay_idx2' => array(
  980. 0 => 'protocol_id',
  981. ),
  982. 'assay_idx3' => array(
  983. 0 => 'operator_id',
  984. ),
  985. 'assay_idx4' => array(
  986. 0 => 'dbxref_id',
  987. ),
  988. ),
  989. 'foreign keys' => array(
  990. 'dbxref' => array(
  991. 'table' => 'dbxref',
  992. 'columns' => array(
  993. 'dbxref_id' => 'dbxref_id',
  994. ),
  995. ),
  996. 'contact' => array(
  997. 'table' => 'contact',
  998. 'columns' => array(
  999. 'operator_id' => 'contact_id',
  1000. ),
  1001. ),
  1002. 'arraydesign' => array(
  1003. 'table' => 'arraydesign',
  1004. 'columns' => array(
  1005. 'arraydesign_id' => 'arraydesign_id',
  1006. ),
  1007. ),
  1008. 'protocol' => array(
  1009. 'table' => 'protocol',
  1010. 'columns' => array(
  1011. 'protocol_id' => 'protocol_id',
  1012. ),
  1013. ),
  1014. ),
  1015. 'table' => 'assay',
  1016. 'referring_tables' => array(
  1017. 0 => 'acquisition',
  1018. 1 => 'assay_biomaterial',
  1019. 2 => 'assay_project',
  1020. 3 => 'assayprop',
  1021. 4 => 'control',
  1022. 5 => 'study_assay',
  1023. 6 => 'studyfactorvalue',
  1024. ),
  1025. );
  1026. return $description;
  1027. }
  1028. /**
  1029. * Implements hook_chado_schema_v1_2_assay_biomaterial()
  1030. * Purpose: To describe the structure of 'assay_biomaterial' to tripal
  1031. * @see tripal_core_chado_insert()
  1032. * @see tripal_core_chado_update()
  1033. * @see tripal_core_chado_select()
  1034. *
  1035. * @return
  1036. * An array describing the 'assay_biomaterial' table
  1037. *
  1038. * @ingroup tripal_chado_v1.2_schema_api
  1039. *
  1040. */
  1041. function tripal_core_chado_schema_v1_2_assay_biomaterial() {
  1042. $description = array(
  1043. 'description' => 'TODO: please describe this table!',
  1044. 'fields' => array(
  1045. 'assay_biomaterial_id' => array(
  1046. 'description' => 'TODO: please describe this field!',
  1047. 'type' => 'serial',
  1048. 'not null' => TRUE,
  1049. ),
  1050. 'assay_id' => array(
  1051. 'description' => 'TODO: please describe this field!',
  1052. 'type' => 'int',
  1053. 'not null' => TRUE,
  1054. ),
  1055. 'biomaterial_id' => array(
  1056. 'description' => 'TODO: please describe this field!',
  1057. 'type' => 'int',
  1058. 'not null' => TRUE,
  1059. ),
  1060. 'channel_id' => array(
  1061. 'description' => 'TODO: please describe this field!',
  1062. 'type' => 'int',
  1063. 'not null' => FALSE,
  1064. ),
  1065. 'rank' => array(
  1066. 'description' => 'TODO: please describe this field!',
  1067. 'type' => 'int',
  1068. 'not null' => TRUE,
  1069. 'default' => 0,
  1070. ),
  1071. ),
  1072. 'primary key' => array(
  1073. 0 => 'assay_biomaterial_id',
  1074. ),
  1075. 'unique keys' => array(
  1076. 'assay_biomaterial_c1' => array(
  1077. 0 => 'assay_id',
  1078. 1 => 'biomaterial_id',
  1079. 2 => 'channel_id',
  1080. 3 => 'rank',
  1081. ),
  1082. ),
  1083. 'indexes' => array(
  1084. 'assay_biomaterial_idx1' => array(
  1085. 0 => 'assay_id',
  1086. ),
  1087. 'assay_biomaterial_idx2' => array(
  1088. 0 => 'biomaterial_id',
  1089. ),
  1090. 'assay_biomaterial_idx3' => array(
  1091. 0 => 'channel_id',
  1092. ),
  1093. ),
  1094. 'foreign keys' => array(
  1095. 'assay' => array(
  1096. 'table' => 'assay',
  1097. 'columns' => array(
  1098. 'assay_id' => 'assay_id',
  1099. ),
  1100. ),
  1101. 'biomaterial' => array(
  1102. 'table' => 'biomaterial',
  1103. 'columns' => array(
  1104. 'biomaterial_id' => 'biomaterial_id',
  1105. ),
  1106. ),
  1107. 'channel' => array(
  1108. 'table' => 'channel',
  1109. 'columns' => array(
  1110. 'channel_id' => 'channel_id',
  1111. ),
  1112. ),
  1113. ),
  1114. 'table' => 'assay_biomaterial',
  1115. 'referring_tables' => NULL,
  1116. );
  1117. return $description;
  1118. }
  1119. /**
  1120. * Implements hook_chado_schema_v1_2_assay_project()
  1121. * Purpose: To describe the structure of 'assay_project' to tripal
  1122. * @see tripal_core_chado_insert()
  1123. * @see tripal_core_chado_update()
  1124. * @see tripal_core_chado_select()
  1125. *
  1126. * @return
  1127. * An array describing the 'assay_project' table
  1128. *
  1129. * @ingroup tripal_chado_v1.2_schema_api
  1130. *
  1131. */
  1132. function tripal_core_chado_schema_v1_2_assay_project() {
  1133. $description = array(
  1134. 'description' => 'TODO: please describe this table!',
  1135. 'fields' => array(
  1136. 'assay_project_id' => array(
  1137. 'description' => 'TODO: please describe this field!',
  1138. 'type' => 'serial',
  1139. 'not null' => TRUE,
  1140. ),
  1141. 'assay_id' => array(
  1142. 'description' => 'TODO: please describe this field!',
  1143. 'type' => 'int',
  1144. 'not null' => TRUE,
  1145. ),
  1146. 'project_id' => array(
  1147. 'description' => 'TODO: please describe this field!',
  1148. 'type' => 'int',
  1149. 'not null' => TRUE,
  1150. ),
  1151. ),
  1152. 'primary key' => array(
  1153. 0 => 'assay_project_id',
  1154. ),
  1155. 'unique keys' => array(
  1156. 'assay_project_c1' => array(
  1157. 0 => 'assay_id',
  1158. 1 => 'project_id',
  1159. ),
  1160. ),
  1161. 'indexes' => array(
  1162. 'assay_project_idx1' => array(
  1163. 0 => 'assay_id',
  1164. ),
  1165. 'assay_project_idx2' => array(
  1166. 0 => 'project_id',
  1167. ),
  1168. ),
  1169. 'foreign keys' => array(
  1170. 'project' => array(
  1171. 'table' => 'project',
  1172. 'columns' => array(
  1173. 'project_id' => 'project_id',
  1174. ),
  1175. ),
  1176. 'assay' => array(
  1177. 'table' => 'assay',
  1178. 'columns' => array(
  1179. 'assay_id' => 'assay_id',
  1180. ),
  1181. ),
  1182. ),
  1183. 'table' => 'assay_project',
  1184. 'referring_tables' => NULL,
  1185. );
  1186. return $description;
  1187. }
  1188. /**
  1189. * Implements hook_chado_schema_v1_2_assayprop()
  1190. * Purpose: To describe the structure of 'assayprop' to tripal
  1191. * @see tripal_core_chado_insert()
  1192. * @see tripal_core_chado_update()
  1193. * @see tripal_core_chado_select()
  1194. *
  1195. * @return
  1196. * An array describing the 'assayprop' table
  1197. *
  1198. * @ingroup tripal_chado_v1.2_schema_api
  1199. *
  1200. */
  1201. function tripal_core_chado_schema_v1_2_assayprop() {
  1202. $description = array(
  1203. 'description' => 'TODO: please describe this table!',
  1204. 'fields' => array(
  1205. 'assayprop_id' => array(
  1206. 'description' => 'TODO: please describe this field!',
  1207. 'type' => 'serial',
  1208. 'not null' => TRUE,
  1209. ),
  1210. 'assay_id' => array(
  1211. 'description' => 'TODO: please describe this field!',
  1212. 'type' => 'int',
  1213. 'not null' => TRUE,
  1214. ),
  1215. 'type_id' => array(
  1216. 'description' => 'TODO: please describe this field!',
  1217. 'type' => 'int',
  1218. 'not null' => TRUE,
  1219. ),
  1220. 'value' => array(
  1221. 'description' => 'TODO: please describe this field!',
  1222. 'type' => 'text',
  1223. 'not null' => FALSE,
  1224. ),
  1225. 'rank' => array(
  1226. 'description' => 'TODO: please describe this field!',
  1227. 'type' => 'int',
  1228. 'not null' => TRUE,
  1229. 'default' => 0,
  1230. ),
  1231. ),
  1232. 'primary key' => array(
  1233. 0 => 'assayprop_id',
  1234. ),
  1235. 'unique keys' => array(
  1236. 'assayprop_c1' => array(
  1237. 0 => 'assay_id',
  1238. 1 => 'type_id',
  1239. 2 => 'rank',
  1240. ),
  1241. ),
  1242. 'indexes' => array(
  1243. 'assayprop_idx1' => array(
  1244. 0 => 'assay_id',
  1245. ),
  1246. 'assayprop_idx2' => array(
  1247. 0 => 'type_id',
  1248. ),
  1249. ),
  1250. 'foreign keys' => array(
  1251. 'cvterm' => array(
  1252. 'table' => 'cvterm',
  1253. 'columns' => array(
  1254. 'type_id' => 'cvterm_id',
  1255. ),
  1256. ),
  1257. 'assay' => array(
  1258. 'table' => 'assay',
  1259. 'columns' => array(
  1260. 'assay_id' => 'assay_id',
  1261. ),
  1262. ),
  1263. ),
  1264. 'table' => 'assayprop',
  1265. 'referring_tables' => NULL,
  1266. );
  1267. return $description;
  1268. }
  1269. /**
  1270. * Implements hook_chado_schema_v1_2_biomaterial()
  1271. * Purpose: To describe the structure of 'biomaterial' to tripal
  1272. * @see tripal_core_chado_insert()
  1273. * @see tripal_core_chado_update()
  1274. * @see tripal_core_chado_select()
  1275. *
  1276. * @return
  1277. * An array describing the 'biomaterial' table
  1278. *
  1279. * @ingroup tripal_chado_v1.2_schema_api
  1280. *
  1281. */
  1282. function tripal_core_chado_schema_v1_2_biomaterial() {
  1283. $description = array(
  1284. 'description' => 'TODO: please describe this table!',
  1285. 'fields' => array(
  1286. 'biomaterial_id' => array(
  1287. 'description' => 'TODO: please describe this field!',
  1288. 'type' => 'serial',
  1289. 'not null' => TRUE,
  1290. ),
  1291. 'taxon_id' => array(
  1292. 'description' => 'TODO: please describe this field!',
  1293. 'type' => 'int',
  1294. 'not null' => FALSE,
  1295. ),
  1296. 'biosourceprovider_id' => array(
  1297. 'description' => 'TODO: please describe this field!',
  1298. 'type' => 'int',
  1299. 'not null' => FALSE,
  1300. ),
  1301. 'dbxref_id' => array(
  1302. 'description' => 'TODO: please describe this field!',
  1303. 'type' => 'int',
  1304. 'not null' => FALSE,
  1305. ),
  1306. 'name' => array(
  1307. 'description' => 'TODO: please describe this field!',
  1308. 'type' => 'text',
  1309. 'not null' => FALSE,
  1310. ),
  1311. 'description' => array(
  1312. 'description' => 'TODO: please describe this field!',
  1313. 'type' => 'text',
  1314. 'not null' => FALSE,
  1315. ),
  1316. ),
  1317. 'primary key' => array(
  1318. 0 => 'biomaterial_id',
  1319. ),
  1320. 'unique keys' => array(
  1321. 'biomaterial_c1' => array(
  1322. 0 => 'name',
  1323. ),
  1324. ),
  1325. 'indexes' => array(
  1326. 'biomaterial_idx1' => array(
  1327. 0 => 'taxon_id',
  1328. ),
  1329. 'biomaterial_idx2' => array(
  1330. 0 => 'biosourceprovider_id',
  1331. ),
  1332. 'biomaterial_idx3' => array(
  1333. 0 => 'dbxref_id',
  1334. ),
  1335. ),
  1336. 'foreign keys' => array(
  1337. 'organism' => array(
  1338. 'table' => 'organism',
  1339. 'columns' => array(
  1340. 'taxon_id' => 'organism_id',
  1341. ),
  1342. ),
  1343. 'dbxref' => array(
  1344. 'table' => 'dbxref',
  1345. 'columns' => array(
  1346. 'dbxref_id' => 'dbxref_id',
  1347. ),
  1348. ),
  1349. 'contact' => array(
  1350. 'table' => 'contact',
  1351. 'columns' => array(
  1352. 'biosourceprovider_id' => 'contact_id',
  1353. ),
  1354. ),
  1355. ),
  1356. 'table' => 'biomaterial',
  1357. 'referring_tables' => array(
  1358. 0 => 'assay_biomaterial',
  1359. 1 => 'biomaterial_dbxref',
  1360. 2 => 'biomaterial_relationship',
  1361. 4 => 'biomaterial_treatment',
  1362. 5 => 'biomaterialprop',
  1363. 6 => 'treatment',
  1364. ),
  1365. );
  1366. return $description;
  1367. }
  1368. /**
  1369. * Implements hook_chado_schema_v1_2_biomaterial_dbxref()
  1370. * Purpose: To describe the structure of 'biomaterial_dbxref' to tripal
  1371. * @see tripal_core_chado_insert()
  1372. * @see tripal_core_chado_update()
  1373. * @see tripal_core_chado_select()
  1374. *
  1375. * @return
  1376. * An array describing the 'biomaterial_dbxref' table
  1377. *
  1378. * @ingroup tripal_chado_v1.2_schema_api
  1379. *
  1380. */
  1381. function tripal_core_chado_schema_v1_2_biomaterial_dbxref() {
  1382. $description = array(
  1383. 'description' => 'TODO: please describe this table!',
  1384. 'fields' => array(
  1385. 'biomaterial_dbxref_id' => array(
  1386. 'description' => 'TODO: please describe this field!',
  1387. 'type' => 'serial',
  1388. 'not null' => TRUE,
  1389. ),
  1390. 'biomaterial_id' => array(
  1391. 'description' => 'TODO: please describe this field!',
  1392. 'type' => 'int',
  1393. 'not null' => TRUE,
  1394. ),
  1395. 'dbxref_id' => array(
  1396. 'description' => 'TODO: please describe this field!',
  1397. 'type' => 'int',
  1398. 'not null' => TRUE,
  1399. ),
  1400. ),
  1401. 'primary key' => array(
  1402. 0 => 'biomaterial_dbxref_id',
  1403. ),
  1404. 'unique keys' => array(
  1405. 'biomaterial_dbxref_c1' => array(
  1406. 0 => 'biomaterial_id',
  1407. 1 => 'dbxref_id',
  1408. ),
  1409. ),
  1410. 'indexes' => array(
  1411. 'biomaterial_dbxref_idx1' => array(
  1412. 0 => 'biomaterial_id',
  1413. ),
  1414. 'biomaterial_dbxref_idx2' => array(
  1415. 0 => 'dbxref_id',
  1416. ),
  1417. ),
  1418. 'foreign keys' => array(
  1419. 'dbxref' => array(
  1420. 'table' => 'dbxref',
  1421. 'columns' => array(
  1422. 'dbxref_id' => 'dbxref_id',
  1423. ),
  1424. ),
  1425. 'biomaterial' => array(
  1426. 'table' => 'biomaterial',
  1427. 'columns' => array(
  1428. 'biomaterial_id' => 'biomaterial_id',
  1429. ),
  1430. ),
  1431. ),
  1432. 'table' => 'biomaterial_dbxref',
  1433. 'referring_tables' => NULL,
  1434. );
  1435. return $description;
  1436. }
  1437. /**
  1438. * Implements hook_chado_schema_v1_2_biomaterial_relationship()
  1439. * Purpose: To describe the structure of 'biomaterial_relationship' to tripal
  1440. * @see tripal_core_chado_insert()
  1441. * @see tripal_core_chado_update()
  1442. * @see tripal_core_chado_select()
  1443. *
  1444. * @return
  1445. * An array describing the 'biomaterial_relationship' table
  1446. *
  1447. * @ingroup tripal_chado_v1.2_schema_api
  1448. *
  1449. */
  1450. function tripal_core_chado_schema_v1_2_biomaterial_relationship() {
  1451. $description = array(
  1452. 'description' => 'TODO: please describe this table!',
  1453. 'fields' => array(
  1454. 'biomaterial_relationship_id' => array(
  1455. 'description' => 'TODO: please describe this field!',
  1456. 'type' => 'serial',
  1457. 'not null' => TRUE,
  1458. ),
  1459. 'subject_id' => array(
  1460. 'description' => 'TODO: please describe this field!',
  1461. 'type' => 'int',
  1462. 'not null' => TRUE,
  1463. ),
  1464. 'type_id' => array(
  1465. 'description' => 'TODO: please describe this field!',
  1466. 'type' => 'int',
  1467. 'not null' => TRUE,
  1468. ),
  1469. 'object_id' => array(
  1470. 'description' => 'TODO: please describe this field!',
  1471. 'type' => 'int',
  1472. 'not null' => TRUE,
  1473. ),
  1474. ),
  1475. 'primary key' => array(
  1476. 0 => 'biomaterial_relationship_id',
  1477. ),
  1478. 'unique keys' => array(
  1479. 'biomaterial_relationship_c1' => array(
  1480. 0 => 'subject_id',
  1481. 1 => 'object_id',
  1482. 2 => 'type_id',
  1483. ),
  1484. ),
  1485. 'indexes' => array(
  1486. 'biomaterial_relationship_idx1' => array(
  1487. 0 => 'subject_id',
  1488. ),
  1489. 'biomaterial_relationship_idx2' => array(
  1490. 0 => 'object_id',
  1491. ),
  1492. 'biomaterial_relationship_idx3' => array(
  1493. 0 => 'type_id',
  1494. ),
  1495. ),
  1496. 'foreign keys' => array(
  1497. 'cvterm' => array(
  1498. 'table' => 'cvterm',
  1499. 'columns' => array(
  1500. 'type_id' => 'cvterm_id',
  1501. ),
  1502. ),
  1503. 'biomaterial' => array(
  1504. 'table' => 'biomaterial',
  1505. 'columns' => array(
  1506. 'subject_id' => 'biomaterial_id',
  1507. 'object_id' => 'biomaterial_id',
  1508. ),
  1509. ),
  1510. ),
  1511. 'table' => 'biomaterial_relationship',
  1512. 'referring_tables' => NULL,
  1513. );
  1514. return $description;
  1515. }
  1516. /**
  1517. * Implements hook_chado_schema_v1_2_biomaterial_treatment()
  1518. * Purpose: To describe the structure of 'biomaterial_treatment' to tripal
  1519. * @see tripal_core_chado_insert()
  1520. * @see tripal_core_chado_update()
  1521. * @see tripal_core_chado_select()
  1522. *
  1523. * @return
  1524. * An array describing the 'biomaterial_treatment' table
  1525. *
  1526. * @ingroup tripal_chado_v1.2_schema_api
  1527. *
  1528. */
  1529. function tripal_core_chado_schema_v1_2_biomaterial_treatment() {
  1530. $description = array(
  1531. 'description' => 'TODO: please describe this table!',
  1532. 'fields' => array(
  1533. 'biomaterial_treatment_id' => array(
  1534. 'description' => 'TODO: please describe this field!',
  1535. 'type' => 'serial',
  1536. 'not null' => TRUE,
  1537. ),
  1538. 'biomaterial_id' => array(
  1539. 'description' => 'TODO: please describe this field!',
  1540. 'type' => 'int',
  1541. 'not null' => TRUE,
  1542. ),
  1543. 'treatment_id' => array(
  1544. 'description' => 'TODO: please describe this field!',
  1545. 'type' => 'int',
  1546. 'not null' => TRUE,
  1547. ),
  1548. 'unittype_id' => array(
  1549. 'description' => 'TODO: please describe this field!',
  1550. 'type' => 'int',
  1551. 'not null' => FALSE,
  1552. ),
  1553. 'value' => array(
  1554. 'description' => 'TODO: please describe this field!',
  1555. 'type' => 'float',
  1556. 'not null' => FALSE,
  1557. ),
  1558. 'rank' => array(
  1559. 'description' => 'TODO: please describe this field!',
  1560. 'type' => 'int',
  1561. 'not null' => TRUE,
  1562. 'default' => 0,
  1563. ),
  1564. ),
  1565. 'primary key' => array(
  1566. 0 => 'biomaterial_treatment_id',
  1567. ),
  1568. 'unique keys' => array(
  1569. 'biomaterial_treatment_c1' => array(
  1570. 0 => 'biomaterial_id',
  1571. 1 => 'treatment_id',
  1572. ),
  1573. ),
  1574. 'indexes' => array(
  1575. 'biomaterial_treatment_idx1' => array(
  1576. 0 => 'biomaterial_id',
  1577. ),
  1578. 'biomaterial_treatment_idx2' => array(
  1579. 0 => 'treatment_id',
  1580. ),
  1581. 'biomaterial_treatment_idx3' => array(
  1582. 0 => 'unittype_id',
  1583. ),
  1584. ),
  1585. 'foreign keys' => array(
  1586. 'cvterm' => array(
  1587. 'table' => 'cvterm',
  1588. 'columns' => array(
  1589. 'unittype_id' => 'cvterm_id',
  1590. ),
  1591. ),
  1592. 'biomaterial' => array(
  1593. 'table' => 'biomaterial',
  1594. 'columns' => array(
  1595. 'biomaterial_id' => 'biomaterial_id',
  1596. ),
  1597. ),
  1598. 'treatment' => array(
  1599. 'table' => 'treatment',
  1600. 'columns' => array(
  1601. 'treatment_id' => 'treatment_id',
  1602. ),
  1603. ),
  1604. ),
  1605. 'table' => 'biomaterial_treatment',
  1606. 'referring_tables' => NULL,
  1607. );
  1608. return $description;
  1609. }
  1610. /**
  1611. * Implements hook_chado_schema_v1_2_biomaterialprop()
  1612. * Purpose: To describe the structure of 'biomaterialprop' to tripal
  1613. * @see tripal_core_chado_insert()
  1614. * @see tripal_core_chado_update()
  1615. * @see tripal_core_chado_select()
  1616. *
  1617. * @return
  1618. * An array describing the 'biomaterialprop' table
  1619. *
  1620. * @ingroup tripal_chado_v1.2_schema_api
  1621. *
  1622. */
  1623. function tripal_core_chado_schema_v1_2_biomaterialprop() {
  1624. $description = array(
  1625. 'description' => 'TODO: please describe this table!',
  1626. 'fields' => array(
  1627. 'biomaterialprop_id' => array(
  1628. 'description' => 'TODO: please describe this field!',
  1629. 'type' => 'serial',
  1630. 'not null' => TRUE,
  1631. ),
  1632. 'biomaterial_id' => array(
  1633. 'description' => 'TODO: please describe this field!',
  1634. 'type' => 'int',
  1635. 'not null' => TRUE,
  1636. ),
  1637. 'type_id' => array(
  1638. 'description' => 'TODO: please describe this field!',
  1639. 'type' => 'int',
  1640. 'not null' => TRUE,
  1641. ),
  1642. 'value' => array(
  1643. 'description' => 'TODO: please describe this field!',
  1644. 'type' => 'text',
  1645. 'not null' => FALSE,
  1646. ),
  1647. 'rank' => array(
  1648. 'description' => 'TODO: please describe this field!',
  1649. 'type' => 'int',
  1650. 'not null' => TRUE,
  1651. 'default' => 0,
  1652. ),
  1653. ),
  1654. 'primary key' => array(
  1655. 0 => 'biomaterialprop_id',
  1656. ),
  1657. 'unique keys' => array(
  1658. 'biomaterialprop_c1' => array(
  1659. 0 => 'biomaterial_id',
  1660. 1 => 'type_id',
  1661. 2 => 'rank',
  1662. ),
  1663. ),
  1664. 'indexes' => array(
  1665. 'biomaterialprop_idx1' => array(
  1666. 0 => 'biomaterial_id',
  1667. ),
  1668. 'biomaterialprop_idx2' => array(
  1669. 0 => 'type_id',
  1670. ),
  1671. ),
  1672. 'foreign keys' => array(
  1673. 'cvterm' => array(
  1674. 'table' => 'cvterm',
  1675. 'columns' => array(
  1676. 'type_id' => 'cvterm_id',
  1677. ),
  1678. ),
  1679. 'biomaterial' => array(
  1680. 'table' => 'biomaterial',
  1681. 'columns' => array(
  1682. 'biomaterial_id' => 'biomaterial_id',
  1683. ),
  1684. ),
  1685. ),
  1686. 'table' => 'biomaterialprop',
  1687. 'referring_tables' => NULL,
  1688. );
  1689. return $description;
  1690. }
  1691. /**
  1692. * Implements hook_chado_schema_v1_2_cell_line()
  1693. * Purpose: To describe the structure of 'cell_line' to tripal
  1694. * @see tripal_core_chado_insert()
  1695. * @see tripal_core_chado_update()
  1696. * @see tripal_core_chado_select()
  1697. *
  1698. * @return
  1699. * An array describing the 'cell_line' table
  1700. *
  1701. * @ingroup tripal_chado_v1.2_schema_api
  1702. *
  1703. */
  1704. function tripal_core_chado_schema_v1_2_cell_line() {
  1705. $description = array(
  1706. 'description' => 'TODO: please describe this table!',
  1707. 'fields' => array(
  1708. 'cell_line_id' => array(
  1709. 'description' => 'TODO: please describe this field!',
  1710. 'type' => 'serial',
  1711. 'not null' => TRUE,
  1712. ),
  1713. 'name' => array(
  1714. 'description' => 'TODO: please describe this field!',
  1715. 'type' => 'varchar',
  1716. 'length' => '255',
  1717. 'not null' => FALSE,
  1718. ),
  1719. 'uniquename' => array(
  1720. 'description' => 'TODO: please describe this field!',
  1721. 'type' => 'varchar',
  1722. 'length' => '255',
  1723. 'not null' => TRUE,
  1724. ),
  1725. 'organism_id' => array(
  1726. 'description' => 'TODO: please describe this field!',
  1727. 'type' => 'int',
  1728. 'not null' => TRUE,
  1729. ),
  1730. 'timeaccessioned' => array(
  1731. 'description' => 'TODO: please describe this field!',
  1732. 'type' => 'datetime',
  1733. 'not null' => TRUE,
  1734. 'default' => 'ow(',
  1735. ),
  1736. 'timelastmodified' => array(
  1737. 'description' => 'TODO: please describe this field!',
  1738. 'type' => 'datetime',
  1739. 'not null' => TRUE,
  1740. 'default' => 'ow(',
  1741. ),
  1742. ),
  1743. 'primary key' => array(
  1744. 0 => 'cell_line_id',
  1745. ),
  1746. 'unique keys' => array(
  1747. 'cell_line_c1' => array(
  1748. 0 => 'uniquename',
  1749. 1 => 'organism_id',
  1750. ),
  1751. ),
  1752. 'foreign keys' => array(
  1753. 'organism' => array(
  1754. 'table' => 'organism',
  1755. 'columns' => array(
  1756. 'organism_id' => 'organism_id',
  1757. ),
  1758. ),
  1759. ),
  1760. 'table' => 'cell_line',
  1761. 'referring_tables' => array(
  1762. 0 => 'cell_line_cvterm',
  1763. 1 => 'cell_line_dbxref',
  1764. 2 => 'cell_line_feature',
  1765. 3 => 'cell_line_library',
  1766. 4 => 'cell_line_pub',
  1767. 5 => 'cell_line_relationship',
  1768. 7 => 'cell_line_synonym',
  1769. 8 => 'cell_lineprop',
  1770. ),
  1771. );
  1772. return $description;
  1773. }
  1774. /**
  1775. * Implements hook_chado_schema_v1_2_cell_line_cvterm()
  1776. * Purpose: To describe the structure of 'cell_line_cvterm' to tripal
  1777. * @see tripal_core_chado_insert()
  1778. * @see tripal_core_chado_update()
  1779. * @see tripal_core_chado_select()
  1780. *
  1781. * @return
  1782. * An array describing the 'cell_line_cvterm' table
  1783. *
  1784. * @ingroup tripal_chado_v1.2_schema_api
  1785. *
  1786. */
  1787. function tripal_core_chado_schema_v1_2_cell_line_cvterm() {
  1788. $description = array(
  1789. 'description' => 'TODO: please describe this table!',
  1790. 'fields' => array(
  1791. 'cell_line_cvterm_id' => array(
  1792. 'description' => 'TODO: please describe this field!',
  1793. 'type' => 'serial',
  1794. 'not null' => TRUE,
  1795. ),
  1796. 'cell_line_id' => array(
  1797. 'description' => 'TODO: please describe this field!',
  1798. 'type' => 'int',
  1799. 'not null' => TRUE,
  1800. ),
  1801. 'cvterm_id' => array(
  1802. 'description' => 'TODO: please describe this field!',
  1803. 'type' => 'int',
  1804. 'not null' => TRUE,
  1805. ),
  1806. 'pub_id' => array(
  1807. 'description' => 'TODO: please describe this field!',
  1808. 'type' => 'int',
  1809. 'not null' => TRUE,
  1810. ),
  1811. 'rank' => array(
  1812. 'description' => 'TODO: please describe this field!',
  1813. 'type' => 'int',
  1814. 'not null' => TRUE,
  1815. 'default' => 0,
  1816. ),
  1817. ),
  1818. 'primary key' => array(
  1819. 0 => 'cell_line_cvterm_id',
  1820. ),
  1821. 'unique keys' => array(
  1822. 'cell_line_cvterm_c1' => array(
  1823. 0 => 'cell_line_id',
  1824. 1 => 'cvterm_id',
  1825. 2 => 'pub_id',
  1826. 3 => 'rank',
  1827. ),
  1828. ),
  1829. 'foreign keys' => array(
  1830. 'cvterm' => array(
  1831. 'table' => 'cvterm',
  1832. 'columns' => array(
  1833. 'cvterm_id' => 'cvterm_id',
  1834. ),
  1835. ),
  1836. 'pub' => array(
  1837. 'table' => 'pub',
  1838. 'columns' => array(
  1839. 'pub_id' => 'pub_id',
  1840. ),
  1841. ),
  1842. 'cell_line' => array(
  1843. 'table' => 'cell_line',
  1844. 'columns' => array(
  1845. 'cell_line_id' => 'cell_line_id',
  1846. ),
  1847. ),
  1848. ),
  1849. 'table' => 'cell_line_cvterm',
  1850. 'referring_tables' => array(
  1851. 0 => 'cell_line_cvtermprop',
  1852. ),
  1853. );
  1854. return $description;
  1855. }
  1856. /**
  1857. * Implements hook_chado_schema_v1_2_cell_line_cvtermprop()
  1858. * Purpose: To describe the structure of 'cell_line_cvtermprop' to tripal
  1859. * @see tripal_core_chado_insert()
  1860. * @see tripal_core_chado_update()
  1861. * @see tripal_core_chado_select()
  1862. *
  1863. * @return
  1864. * An array describing the 'cell_line_cvtermprop' table
  1865. *
  1866. * @ingroup tripal_chado_v1.2_schema_api
  1867. *
  1868. */
  1869. function tripal_core_chado_schema_v1_2_cell_line_cvtermprop() {
  1870. $description = array(
  1871. 'description' => 'TODO: please describe this table!',
  1872. 'fields' => array(
  1873. 'cell_line_cvtermprop_id' => array(
  1874. 'description' => 'TODO: please describe this field!',
  1875. 'type' => 'serial',
  1876. 'not null' => TRUE,
  1877. ),
  1878. 'cell_line_cvterm_id' => array(
  1879. 'description' => 'TODO: please describe this field!',
  1880. 'type' => 'int',
  1881. 'not null' => TRUE,
  1882. ),
  1883. 'type_id' => array(
  1884. 'description' => 'TODO: please describe this field!',
  1885. 'type' => 'int',
  1886. 'not null' => TRUE,
  1887. ),
  1888. 'value' => array(
  1889. 'description' => 'TODO: please describe this field!',
  1890. 'type' => 'text',
  1891. 'not null' => FALSE,
  1892. ),
  1893. 'rank' => array(
  1894. 'description' => 'TODO: please describe this field!',
  1895. 'type' => 'int',
  1896. 'not null' => TRUE,
  1897. 'default' => 0,
  1898. ),
  1899. ),
  1900. 'primary key' => array(
  1901. 0 => 'cell_line_cvtermprop_id',
  1902. ),
  1903. 'unique keys' => array(
  1904. 'cell_line_cvtermprop_c1' => array(
  1905. 0 => 'cell_line_cvterm_id',
  1906. 1 => 'type_id',
  1907. 2 => 'rank',
  1908. ),
  1909. ),
  1910. 'foreign keys' => array(
  1911. 'cvterm' => array(
  1912. 'table' => 'cvterm',
  1913. 'columns' => array(
  1914. 'type_id' => 'cvterm_id',
  1915. ),
  1916. ),
  1917. 'cell_line_cvterm' => array(
  1918. 'table' => 'cell_line_cvterm',
  1919. 'columns' => array(
  1920. 'cell_line_cvterm_id' => 'cell_line_cvterm_id',
  1921. ),
  1922. ),
  1923. ),
  1924. 'table' => 'cell_line_cvtermprop',
  1925. 'referring_tables' => NULL,
  1926. );
  1927. return $description;
  1928. }
  1929. /**
  1930. * Implements hook_chado_schema_v1_2_cell_line_dbxref()
  1931. * Purpose: To describe the structure of 'cell_line_dbxref' to tripal
  1932. * @see tripal_core_chado_insert()
  1933. * @see tripal_core_chado_update()
  1934. * @see tripal_core_chado_select()
  1935. *
  1936. * @return
  1937. * An array describing the 'cell_line_dbxref' table
  1938. *
  1939. * @ingroup tripal_chado_v1.2_schema_api
  1940. *
  1941. */
  1942. function tripal_core_chado_schema_v1_2_cell_line_dbxref() {
  1943. $description = array(
  1944. 'description' => 'TODO: please describe this table!',
  1945. 'fields' => array(
  1946. 'cell_line_dbxref_id' => array(
  1947. 'description' => 'TODO: please describe this field!',
  1948. 'type' => 'serial',
  1949. 'not null' => TRUE,
  1950. ),
  1951. 'cell_line_id' => array(
  1952. 'description' => 'TODO: please describe this field!',
  1953. 'type' => 'int',
  1954. 'not null' => TRUE,
  1955. ),
  1956. 'dbxref_id' => array(
  1957. 'description' => 'TODO: please describe this field!',
  1958. 'type' => 'int',
  1959. 'not null' => TRUE,
  1960. ),
  1961. 'is_current' => array(
  1962. 'description' => 'TODO: please describe this field!',
  1963. 'type' => 'boolean',
  1964. 'not null' => TRUE,
  1965. 'default' => 'ru',
  1966. ),
  1967. ),
  1968. 'primary key' => array(
  1969. 0 => 'cell_line_dbxref_id',
  1970. ),
  1971. 'unique keys' => array(
  1972. 'cell_line_dbxref_c1' => array(
  1973. 0 => 'cell_line_id',
  1974. 1 => 'dbxref_id',
  1975. ),
  1976. ),
  1977. 'foreign keys' => array(
  1978. 'dbxref' => array(
  1979. 'table' => 'dbxref',
  1980. 'columns' => array(
  1981. 'dbxref_id' => 'dbxref_id',
  1982. ),
  1983. ),
  1984. 'cell_line' => array(
  1985. 'table' => 'cell_line',
  1986. 'columns' => array(
  1987. 'cell_line_id' => 'cell_line_id',
  1988. ),
  1989. ),
  1990. ),
  1991. 'table' => 'cell_line_dbxref',
  1992. 'referring_tables' => NULL,
  1993. );
  1994. return $description;
  1995. }
  1996. /**
  1997. * Implements hook_chado_schema_v1_2_cell_line_feature()
  1998. * Purpose: To describe the structure of 'cell_line_feature' to tripal
  1999. * @see tripal_core_chado_insert()
  2000. * @see tripal_core_chado_update()
  2001. * @see tripal_core_chado_select()
  2002. *
  2003. * @return
  2004. * An array describing the 'cell_line_feature' table
  2005. *
  2006. * @ingroup tripal_chado_v1.2_schema_api
  2007. *
  2008. */
  2009. function tripal_core_chado_schema_v1_2_cell_line_feature() {
  2010. $description = array(
  2011. 'description' => 'TODO: please describe this table!',
  2012. 'fields' => array(
  2013. 'cell_line_feature_id' => array(
  2014. 'description' => 'TODO: please describe this field!',
  2015. 'type' => 'serial',
  2016. 'not null' => TRUE,
  2017. ),
  2018. 'cell_line_id' => array(
  2019. 'description' => 'TODO: please describe this field!',
  2020. 'type' => 'int',
  2021. 'not null' => TRUE,
  2022. ),
  2023. 'feature_id' => array(
  2024. 'description' => 'TODO: please describe this field!',
  2025. 'type' => 'int',
  2026. 'not null' => TRUE,
  2027. ),
  2028. 'pub_id' => array(
  2029. 'description' => 'TODO: please describe this field!',
  2030. 'type' => 'int',
  2031. 'not null' => TRUE,
  2032. ),
  2033. ),
  2034. 'primary key' => array(
  2035. 0 => 'cell_line_feature_id',
  2036. ),
  2037. 'unique keys' => array(
  2038. 'cell_line_feature_c1' => array(
  2039. 0 => 'cell_line_id',
  2040. 1 => 'feature_id',
  2041. 2 => 'pub_id',
  2042. ),
  2043. ),
  2044. 'foreign keys' => array(
  2045. 'pub' => array(
  2046. 'table' => 'pub',
  2047. 'columns' => array(
  2048. 'pub_id' => 'pub_id',
  2049. ),
  2050. ),
  2051. 'feature' => array(
  2052. 'table' => 'feature',
  2053. 'columns' => array(
  2054. 'feature_id' => 'feature_id',
  2055. ),
  2056. ),
  2057. 'cell_line' => array(
  2058. 'table' => 'cell_line',
  2059. 'columns' => array(
  2060. 'cell_line_id' => 'cell_line_id',
  2061. ),
  2062. ),
  2063. ),
  2064. 'table' => 'cell_line_feature',
  2065. 'referring_tables' => NULL,
  2066. );
  2067. return $description;
  2068. }
  2069. /**
  2070. * Implements hook_chado_schema_v1_2_cell_line_library()
  2071. * Purpose: To describe the structure of 'cell_line_library' to tripal
  2072. * @see tripal_core_chado_insert()
  2073. * @see tripal_core_chado_update()
  2074. * @see tripal_core_chado_select()
  2075. *
  2076. * @return
  2077. * An array describing the 'cell_line_library' table
  2078. *
  2079. * @ingroup tripal_chado_v1.2_schema_api
  2080. *
  2081. */
  2082. function tripal_core_chado_schema_v1_2_cell_line_library() {
  2083. $description = array(
  2084. 'description' => 'TODO: please describe this table!',
  2085. 'fields' => array(
  2086. 'cell_line_library_id' => array(
  2087. 'description' => 'TODO: please describe this field!',
  2088. 'type' => 'serial',
  2089. 'not null' => TRUE,
  2090. ),
  2091. 'cell_line_id' => array(
  2092. 'description' => 'TODO: please describe this field!',
  2093. 'type' => 'int',
  2094. 'not null' => TRUE,
  2095. ),
  2096. 'library_id' => array(
  2097. 'description' => 'TODO: please describe this field!',
  2098. 'type' => 'int',
  2099. 'not null' => TRUE,
  2100. ),
  2101. 'pub_id' => array(
  2102. 'description' => 'TODO: please describe this field!',
  2103. 'type' => 'int',
  2104. 'not null' => TRUE,
  2105. ),
  2106. ),
  2107. 'primary key' => array(
  2108. 0 => 'cell_line_library_id',
  2109. ),
  2110. 'unique keys' => array(
  2111. 'cell_line_library_c1' => array(
  2112. 0 => 'cell_line_id',
  2113. 1 => 'library_id',
  2114. 2 => 'pub_id',
  2115. ),
  2116. ),
  2117. 'foreign keys' => array(
  2118. 'pub' => array(
  2119. 'table' => 'pub',
  2120. 'columns' => array(
  2121. 'pub_id' => 'pub_id',
  2122. ),
  2123. ),
  2124. 'library' => array(
  2125. 'table' => 'library',
  2126. 'columns' => array(
  2127. 'library_id' => 'library_id',
  2128. ),
  2129. ),
  2130. 'cell_line' => array(
  2131. 'table' => 'cell_line',
  2132. 'columns' => array(
  2133. 'cell_line_id' => 'cell_line_id',
  2134. ),
  2135. ),
  2136. ),
  2137. 'table' => 'cell_line_library',
  2138. 'referring_tables' => NULL,
  2139. );
  2140. return $description;
  2141. }
  2142. /**
  2143. * Implements hook_chado_schema_v1_2_cell_line_pub()
  2144. * Purpose: To describe the structure of 'cell_line_pub' to tripal
  2145. * @see tripal_core_chado_insert()
  2146. * @see tripal_core_chado_update()
  2147. * @see tripal_core_chado_select()
  2148. *
  2149. * @return
  2150. * An array describing the 'cell_line_pub' table
  2151. *
  2152. * @ingroup tripal_chado_v1.2_schema_api
  2153. *
  2154. */
  2155. function tripal_core_chado_schema_v1_2_cell_line_pub() {
  2156. $description = array(
  2157. 'description' => 'TODO: please describe this table!',
  2158. 'fields' => array(
  2159. 'cell_line_pub_id' => array(
  2160. 'description' => 'TODO: please describe this field!',
  2161. 'type' => 'serial',
  2162. 'not null' => TRUE,
  2163. ),
  2164. 'cell_line_id' => array(
  2165. 'description' => 'TODO: please describe this field!',
  2166. 'type' => 'int',
  2167. 'not null' => TRUE,
  2168. ),
  2169. 'pub_id' => array(
  2170. 'description' => 'TODO: please describe this field!',
  2171. 'type' => 'int',
  2172. 'not null' => TRUE,
  2173. ),
  2174. ),
  2175. 'primary key' => array(
  2176. 0 => 'cell_line_pub_id',
  2177. ),
  2178. 'unique keys' => array(
  2179. 'cell_line_pub_c1' => array(
  2180. 0 => 'cell_line_id',
  2181. 1 => 'pub_id',
  2182. ),
  2183. ),
  2184. 'foreign keys' => array(
  2185. 'pub' => array(
  2186. 'table' => 'pub',
  2187. 'columns' => array(
  2188. 'pub_id' => 'pub_id',
  2189. ),
  2190. ),
  2191. 'cell_line' => array(
  2192. 'table' => 'cell_line',
  2193. 'columns' => array(
  2194. 'cell_line_id' => 'cell_line_id',
  2195. ),
  2196. ),
  2197. ),
  2198. 'table' => 'cell_line_pub',
  2199. 'referring_tables' => NULL,
  2200. );
  2201. return $description;
  2202. }
  2203. /**
  2204. * Implements hook_chado_schema_v1_2_cell_line_relationship()
  2205. * Purpose: To describe the structure of 'cell_line_relationship' to tripal
  2206. * @see tripal_core_chado_insert()
  2207. * @see tripal_core_chado_update()
  2208. * @see tripal_core_chado_select()
  2209. *
  2210. * @return
  2211. * An array describing the 'cell_line_relationship' table
  2212. *
  2213. * @ingroup tripal_chado_v1.2_schema_api
  2214. *
  2215. */
  2216. function tripal_core_chado_schema_v1_2_cell_line_relationship() {
  2217. $description = array(
  2218. 'description' => 'TODO: please describe this table!',
  2219. 'fields' => array(
  2220. 'cell_line_relationship_id' => array(
  2221. 'description' => 'TODO: please describe this field!',
  2222. 'type' => 'serial',
  2223. 'not null' => TRUE,
  2224. ),
  2225. 'subject_id' => array(
  2226. 'description' => 'TODO: please describe this field!',
  2227. 'type' => 'int',
  2228. 'not null' => TRUE,
  2229. ),
  2230. 'object_id' => array(
  2231. 'description' => 'TODO: please describe this field!',
  2232. 'type' => 'int',
  2233. 'not null' => TRUE,
  2234. ),
  2235. 'type_id' => array(
  2236. 'description' => 'TODO: please describe this field!',
  2237. 'type' => 'int',
  2238. 'not null' => TRUE,
  2239. ),
  2240. ),
  2241. 'primary key' => array(
  2242. 0 => 'cell_line_relationship_id',
  2243. ),
  2244. 'unique keys' => array(
  2245. 'cell_line_relationship_c1' => array(
  2246. 0 => 'subject_id',
  2247. 1 => 'object_id',
  2248. 2 => 'type_id',
  2249. ),
  2250. ),
  2251. 'foreign keys' => array(
  2252. 'cvterm' => array(
  2253. 'table' => 'cvterm',
  2254. 'columns' => array(
  2255. 'type_id' => 'cvterm_id',
  2256. ),
  2257. ),
  2258. 'cell_line' => array(
  2259. 'table' => 'cell_line',
  2260. 'columns' => array(
  2261. 'subject_id' => 'cell_line_id',
  2262. 'object_id' => 'cell_line_id',
  2263. ),
  2264. ),
  2265. ),
  2266. 'table' => 'cell_line_relationship',
  2267. 'referring_tables' => NULL,
  2268. );
  2269. return $description;
  2270. }
  2271. /**
  2272. * Implements hook_chado_schema_v1_2_cell_line_synonym()
  2273. * Purpose: To describe the structure of 'cell_line_synonym' to tripal
  2274. * @see tripal_core_chado_insert()
  2275. * @see tripal_core_chado_update()
  2276. * @see tripal_core_chado_select()
  2277. *
  2278. * @return
  2279. * An array describing the 'cell_line_synonym' table
  2280. *
  2281. * @ingroup tripal_chado_v1.2_schema_api
  2282. *
  2283. */
  2284. function tripal_core_chado_schema_v1_2_cell_line_synonym() {
  2285. $description = array(
  2286. 'description' => 'TODO: please describe this table!',
  2287. 'fields' => array(
  2288. 'cell_line_synonym_id' => array(
  2289. 'description' => 'TODO: please describe this field!',
  2290. 'type' => 'serial',
  2291. 'not null' => TRUE,
  2292. ),
  2293. 'cell_line_id' => array(
  2294. 'description' => 'TODO: please describe this field!',
  2295. 'type' => 'int',
  2296. 'not null' => TRUE,
  2297. ),
  2298. 'synonym_id' => array(
  2299. 'description' => 'TODO: please describe this field!',
  2300. 'type' => 'int',
  2301. 'not null' => TRUE,
  2302. ),
  2303. 'pub_id' => array(
  2304. 'description' => 'TODO: please describe this field!',
  2305. 'type' => 'int',
  2306. 'not null' => TRUE,
  2307. ),
  2308. 'is_current' => array(
  2309. 'description' => 'TODO: please describe this field!',
  2310. 'type' => 'boolean',
  2311. 'not null' => TRUE,
  2312. 'default' => 'als',
  2313. ),
  2314. 'is_internal' => array(
  2315. 'description' => 'TODO: please describe this field!',
  2316. 'type' => 'boolean',
  2317. 'not null' => TRUE,
  2318. 'default' => 'als',
  2319. ),
  2320. ),
  2321. 'primary key' => array(
  2322. 0 => 'cell_line_synonym_id',
  2323. ),
  2324. 'unique keys' => array(
  2325. 'cell_line_synonym_c1' => array(
  2326. 0 => 'synonym_id',
  2327. 1 => 'cell_line_id',
  2328. 2 => 'pub_id',
  2329. ),
  2330. ),
  2331. 'foreign keys' => array(
  2332. 'pub' => array(
  2333. 'table' => 'pub',
  2334. 'columns' => array(
  2335. 'pub_id' => 'pub_id',
  2336. ),
  2337. ),
  2338. 'synonym' => array(
  2339. 'table' => 'synonym',
  2340. 'columns' => array(
  2341. 'synonym_id' => 'synonym_id',
  2342. ),
  2343. ),
  2344. 'cell_line' => array(
  2345. 'table' => 'cell_line',
  2346. 'columns' => array(
  2347. 'cell_line_id' => 'cell_line_id',
  2348. ),
  2349. ),
  2350. ),
  2351. 'table' => 'cell_line_synonym',
  2352. 'referring_tables' => NULL,
  2353. );
  2354. return $description;
  2355. }
  2356. /**
  2357. * Implements hook_chado_schema_v1_2_cell_lineprop()
  2358. * Purpose: To describe the structure of 'cell_lineprop' to tripal
  2359. * @see tripal_core_chado_insert()
  2360. * @see tripal_core_chado_update()
  2361. * @see tripal_core_chado_select()
  2362. *
  2363. * @return
  2364. * An array describing the 'cell_lineprop' table
  2365. *
  2366. * @ingroup tripal_chado_v1.2_schema_api
  2367. *
  2368. */
  2369. function tripal_core_chado_schema_v1_2_cell_lineprop() {
  2370. $description = array(
  2371. 'description' => 'TODO: please describe this table!',
  2372. 'fields' => array(
  2373. 'cell_lineprop_id' => array(
  2374. 'description' => 'TODO: please describe this field!',
  2375. 'type' => 'serial',
  2376. 'not null' => TRUE,
  2377. ),
  2378. 'cell_line_id' => array(
  2379. 'description' => 'TODO: please describe this field!',
  2380. 'type' => 'int',
  2381. 'not null' => TRUE,
  2382. ),
  2383. 'type_id' => array(
  2384. 'description' => 'TODO: please describe this field!',
  2385. 'type' => 'int',
  2386. 'not null' => TRUE,
  2387. ),
  2388. 'value' => array(
  2389. 'description' => 'TODO: please describe this field!',
  2390. 'type' => 'text',
  2391. 'not null' => FALSE,
  2392. ),
  2393. 'rank' => array(
  2394. 'description' => 'TODO: please describe this field!',
  2395. 'type' => 'int',
  2396. 'not null' => TRUE,
  2397. 'default' => 0,
  2398. ),
  2399. ),
  2400. 'primary key' => array(
  2401. 0 => 'cell_lineprop_id',
  2402. ),
  2403. 'unique keys' => array(
  2404. 'cell_lineprop_c1' => array(
  2405. 0 => 'cell_line_id',
  2406. 1 => 'type_id',
  2407. 2 => 'rank',
  2408. ),
  2409. ),
  2410. 'foreign keys' => array(
  2411. 'cvterm' => array(
  2412. 'table' => 'cvterm',
  2413. 'columns' => array(
  2414. 'type_id' => 'cvterm_id',
  2415. ),
  2416. ),
  2417. 'cell_line' => array(
  2418. 'table' => 'cell_line',
  2419. 'columns' => array(
  2420. 'cell_line_id' => 'cell_line_id',
  2421. ),
  2422. ),
  2423. ),
  2424. 'table' => 'cell_lineprop',
  2425. 'referring_tables' => array(
  2426. 0 => 'cell_lineprop_pub',
  2427. ),
  2428. );
  2429. return $description;
  2430. }
  2431. /**
  2432. * Implements hook_chado_schema_v1_2_cell_lineprop_pub()
  2433. * Purpose: To describe the structure of 'cell_lineprop_pub' to tripal
  2434. * @see tripal_core_chado_insert()
  2435. * @see tripal_core_chado_update()
  2436. * @see tripal_core_chado_select()
  2437. *
  2438. * @return
  2439. * An array describing the 'cell_lineprop_pub' table
  2440. *
  2441. * @ingroup tripal_chado_v1.2_schema_api
  2442. *
  2443. */
  2444. function tripal_core_chado_schema_v1_2_cell_lineprop_pub() {
  2445. $description = array(
  2446. 'description' => 'TODO: please describe this table!',
  2447. 'fields' => array(
  2448. 'cell_lineprop_pub_id' => array(
  2449. 'description' => 'TODO: please describe this field!',
  2450. 'type' => 'serial',
  2451. 'not null' => TRUE,
  2452. ),
  2453. 'cell_lineprop_id' => array(
  2454. 'description' => 'TODO: please describe this field!',
  2455. 'type' => 'int',
  2456. 'not null' => TRUE,
  2457. ),
  2458. 'pub_id' => array(
  2459. 'description' => 'TODO: please describe this field!',
  2460. 'type' => 'int',
  2461. 'not null' => TRUE,
  2462. ),
  2463. ),
  2464. 'primary key' => array(
  2465. 0 => 'cell_lineprop_pub_id',
  2466. ),
  2467. 'unique keys' => array(
  2468. 'cell_lineprop_pub_c1' => array(
  2469. 0 => 'cell_lineprop_id',
  2470. 1 => 'pub_id',
  2471. ),
  2472. ),
  2473. 'foreign keys' => array(
  2474. 'pub' => array(
  2475. 'table' => 'pub',
  2476. 'columns' => array(
  2477. 'pub_id' => 'pub_id',
  2478. ),
  2479. ),
  2480. 'cell_lineprop' => array(
  2481. 'table' => 'cell_lineprop',
  2482. 'columns' => array(
  2483. 'cell_lineprop_id' => 'cell_lineprop_id',
  2484. ),
  2485. ),
  2486. ),
  2487. 'table' => 'cell_lineprop_pub',
  2488. 'referring_tables' => NULL,
  2489. );
  2490. return $description;
  2491. }
  2492. /**
  2493. * Implements hook_chado_schema_v1_2_chadoprop()
  2494. * Purpose: To describe the structure of 'chadoprop' to tripal
  2495. * @see tripal_core_chado_insert()
  2496. * @see tripal_core_chado_update()
  2497. * @see tripal_core_chado_select()
  2498. *
  2499. * @return
  2500. * An array describing the 'chadoprop' table
  2501. *
  2502. * @ingroup tripal_chado_v1.2_schema_api
  2503. *
  2504. */
  2505. function tripal_core_chado_schema_v1_2_chadoprop() {
  2506. $description = array(
  2507. 'description' => 'TODO: please describe this table!',
  2508. 'fields' => array(
  2509. 'chadoprop_id' => array(
  2510. 'description' => 'TODO: please describe this field!',
  2511. 'type' => 'serial',
  2512. 'not null' => TRUE,
  2513. ),
  2514. 'type_id' => array(
  2515. 'description' => 'TODO: please describe this field!',
  2516. 'type' => 'int',
  2517. 'not null' => TRUE,
  2518. ),
  2519. 'value' => array(
  2520. 'description' => 'TODO: please describe this field!',
  2521. 'type' => 'text',
  2522. 'not null' => FALSE,
  2523. ),
  2524. 'rank' => array(
  2525. 'description' => 'TODO: please describe this field!',
  2526. 'type' => 'int',
  2527. 'not null' => TRUE,
  2528. 'default' => 0,
  2529. ),
  2530. ),
  2531. 'primary key' => array(
  2532. 0 => 'chadoprop_id',
  2533. ),
  2534. 'unique keys' => array(
  2535. 'chadoprop_c1' => array(
  2536. 0 => 'type_id',
  2537. 1 => 'rank',
  2538. ),
  2539. ),
  2540. 'foreign keys' => array(
  2541. 'cvterm' => array(
  2542. 'table' => 'cvterm',
  2543. 'columns' => array(
  2544. 'type_id' => 'cvterm_id',
  2545. ),
  2546. ),
  2547. ),
  2548. 'table' => 'chadoprop',
  2549. 'referring_tables' => NULL,
  2550. );
  2551. return $description;
  2552. }
  2553. /**
  2554. * Implements hook_chado_schema_v1_2_channel()
  2555. * Purpose: To describe the structure of 'channel' to tripal
  2556. * @see tripal_core_chado_insert()
  2557. * @see tripal_core_chado_update()
  2558. * @see tripal_core_chado_select()
  2559. *
  2560. * @return
  2561. * An array describing the 'channel' table
  2562. *
  2563. * @ingroup tripal_chado_v1.2_schema_api
  2564. *
  2565. */
  2566. function tripal_core_chado_schema_v1_2_channel() {
  2567. $description = array(
  2568. 'description' => 'TODO: please describe this table!',
  2569. 'fields' => array(
  2570. 'channel_id' => array(
  2571. 'description' => 'TODO: please describe this field!',
  2572. 'type' => 'serial',
  2573. 'not null' => TRUE,
  2574. ),
  2575. 'name' => array(
  2576. 'description' => 'TODO: please describe this field!',
  2577. 'type' => 'text',
  2578. 'not null' => TRUE,
  2579. ),
  2580. 'definition' => array(
  2581. 'description' => 'TODO: please describe this field!',
  2582. 'type' => 'text',
  2583. 'not null' => TRUE,
  2584. ),
  2585. ),
  2586. 'primary key' => array(
  2587. 0 => 'channel_id',
  2588. ),
  2589. 'unique keys' => array(
  2590. 'channel_c1' => array(
  2591. 0 => 'name',
  2592. ),
  2593. ),
  2594. 'foreign keys' => array(
  2595. ),
  2596. 'table' => 'channel',
  2597. 'referring_tables' => array(
  2598. 0 => 'acquisition',
  2599. 1 => 'assay_biomaterial',
  2600. ),
  2601. );
  2602. return $description;
  2603. }
  2604. /**
  2605. * Implements hook_chado_schema_v1_2_contact()
  2606. * Purpose: To describe the structure of 'contact' to tripal
  2607. * @see tripal_core_chado_insert()
  2608. * @see tripal_core_chado_update()
  2609. * @see tripal_core_chado_select()
  2610. *
  2611. * @return
  2612. * An array describing the 'contact' table
  2613. *
  2614. * @ingroup tripal_chado_v1.2_schema_api
  2615. *
  2616. */
  2617. function tripal_core_chado_schema_v1_2_contact() {
  2618. $description = array(
  2619. 'description' => 'TODO: please describe this table!',
  2620. 'fields' => array(
  2621. 'contact_id' => array(
  2622. 'description' => 'TODO: please describe this field!',
  2623. 'type' => 'serial',
  2624. 'not null' => TRUE,
  2625. ),
  2626. 'type_id' => array(
  2627. 'description' => 'TODO: please describe this field!',
  2628. 'type' => 'int',
  2629. 'not null' => FALSE,
  2630. ),
  2631. 'name' => array(
  2632. 'description' => 'TODO: please describe this field!',
  2633. 'type' => 'varchar',
  2634. 'length' => '255',
  2635. 'not null' => TRUE,
  2636. ),
  2637. 'description' => array(
  2638. 'description' => 'TODO: please describe this field!',
  2639. 'type' => 'varchar',
  2640. 'length' => '255',
  2641. 'not null' => FALSE,
  2642. ),
  2643. ),
  2644. 'primary key' => array(
  2645. 0 => 'contact_id',
  2646. ),
  2647. 'unique keys' => array(
  2648. 'contact_c1' => array(
  2649. 0 => 'name',
  2650. ),
  2651. ),
  2652. 'foreign keys' => array(
  2653. 'cvterm' => array(
  2654. 'table' => 'cvterm',
  2655. 'columns' => array(
  2656. 'type_id' => 'cvterm_id',
  2657. ),
  2658. ),
  2659. ),
  2660. 'table' => 'contact',
  2661. 'referring_tables' => array(
  2662. 0 => 'arraydesign',
  2663. 1 => 'assay',
  2664. 2 => 'biomaterial',
  2665. 3 => 'contact_relationship',
  2666. 5 => 'nd_experiment_contact',
  2667. 6 => 'project_contact',
  2668. 14 => 'quantification',
  2669. 15 => 'stockcollection',
  2670. 16 => 'study',
  2671. ),
  2672. );
  2673. return $description;
  2674. }
  2675. /**
  2676. * Implements hook_chado_schema_v1_2_contact_relationship()
  2677. * Purpose: To describe the structure of 'contact_relationship' to tripal
  2678. * @see tripal_core_chado_insert()
  2679. * @see tripal_core_chado_update()
  2680. * @see tripal_core_chado_select()
  2681. *
  2682. * @return
  2683. * An array describing the 'contact_relationship' table
  2684. *
  2685. * @ingroup tripal_chado_v1.2_schema_api
  2686. *
  2687. */
  2688. function tripal_core_chado_schema_v1_2_contact_relationship() {
  2689. $description = array(
  2690. 'description' => 'TODO: please describe this table!',
  2691. 'fields' => array(
  2692. 'contact_relationship_id' => array(
  2693. 'description' => 'TODO: please describe this field!',
  2694. 'type' => 'serial',
  2695. 'not null' => TRUE,
  2696. ),
  2697. 'type_id' => array(
  2698. 'description' => 'TODO: please describe this field!',
  2699. 'type' => 'int',
  2700. 'not null' => TRUE,
  2701. ),
  2702. 'subject_id' => array(
  2703. 'description' => 'TODO: please describe this field!',
  2704. 'type' => 'int',
  2705. 'not null' => TRUE,
  2706. ),
  2707. 'object_id' => array(
  2708. 'description' => 'TODO: please describe this field!',
  2709. 'type' => 'int',
  2710. 'not null' => TRUE,
  2711. ),
  2712. ),
  2713. 'primary key' => array(
  2714. 0 => 'contact_relationship_id',
  2715. ),
  2716. 'unique keys' => array(
  2717. 'contact_relationship_c1' => array(
  2718. 0 => 'subject_id',
  2719. 1 => 'object_id',
  2720. 2 => 'type_id',
  2721. ),
  2722. ),
  2723. 'indexes' => array(
  2724. 'contact_relationship_idx1' => array(
  2725. 0 => 'type_id',
  2726. ),
  2727. 'contact_relationship_idx2' => array(
  2728. 0 => 'subject_id',
  2729. ),
  2730. 'contact_relationship_idx3' => array(
  2731. 0 => 'object_id',
  2732. ),
  2733. ),
  2734. 'foreign keys' => array(
  2735. 'cvterm' => array(
  2736. 'table' => 'cvterm',
  2737. 'columns' => array(
  2738. 'type_id' => 'cvterm_id',
  2739. ),
  2740. ),
  2741. 'contact' => array(
  2742. 'table' => 'contact',
  2743. 'columns' => array(
  2744. 'subject_id' => 'contact_id',
  2745. 'object_id' => 'contact_id',
  2746. ),
  2747. ),
  2748. ),
  2749. 'table' => 'contact_relationship',
  2750. 'referring_tables' => NULL,
  2751. );
  2752. return $description;
  2753. }
  2754. /**
  2755. * Implements hook_chado_schema_v1_2_control()
  2756. * Purpose: To describe the structure of 'control' to tripal
  2757. * @see tripal_core_chado_insert()
  2758. * @see tripal_core_chado_update()
  2759. * @see tripal_core_chado_select()
  2760. *
  2761. * @return
  2762. * An array describing the 'control' table
  2763. *
  2764. * @ingroup tripal_chado_v1.2_schema_api
  2765. *
  2766. */
  2767. function tripal_core_chado_schema_v1_2_control() {
  2768. $description = array(
  2769. 'description' => 'TODO: please describe this table!',
  2770. 'fields' => array(
  2771. 'control_id' => array(
  2772. 'description' => 'TODO: please describe this field!',
  2773. 'type' => 'serial',
  2774. 'not null' => TRUE,
  2775. ),
  2776. 'type_id' => array(
  2777. 'description' => 'TODO: please describe this field!',
  2778. 'type' => 'int',
  2779. 'not null' => TRUE,
  2780. ),
  2781. 'assay_id' => array(
  2782. 'description' => 'TODO: please describe this field!',
  2783. 'type' => 'int',
  2784. 'not null' => TRUE,
  2785. ),
  2786. 'tableinfo_id' => array(
  2787. 'description' => 'TODO: please describe this field!',
  2788. 'type' => 'int',
  2789. 'not null' => TRUE,
  2790. ),
  2791. 'row_id' => array(
  2792. 'description' => 'TODO: please describe this field!',
  2793. 'type' => 'int',
  2794. 'not null' => TRUE,
  2795. ),
  2796. 'name' => array(
  2797. 'description' => 'TODO: please describe this field!',
  2798. 'type' => 'text',
  2799. 'not null' => FALSE,
  2800. ),
  2801. 'value' => array(
  2802. 'description' => 'TODO: please describe this field!',
  2803. 'type' => 'text',
  2804. 'not null' => FALSE,
  2805. ),
  2806. 'rank' => array(
  2807. 'description' => 'TODO: please describe this field!',
  2808. 'type' => 'int',
  2809. 'not null' => TRUE,
  2810. 'default' => 0,
  2811. ),
  2812. ),
  2813. 'primary key' => array(
  2814. 0 => 'control_id',
  2815. ),
  2816. 'indexes' => array(
  2817. 'control_idx1' => array(
  2818. 0 => 'type_id',
  2819. ),
  2820. 'control_idx2' => array(
  2821. 0 => 'assay_id',
  2822. ),
  2823. 'control_idx3' => array(
  2824. 0 => 'tableinfo_id',
  2825. ),
  2826. 'control_idx4' => array(
  2827. 0 => 'row_id',
  2828. ),
  2829. ),
  2830. 'foreign keys' => array(
  2831. 'cvterm' => array(
  2832. 'table' => 'cvterm',
  2833. 'columns' => array(
  2834. 'type_id' => 'cvterm_id',
  2835. ),
  2836. ),
  2837. 'tableinfo' => array(
  2838. 'table' => 'tableinfo',
  2839. 'columns' => array(
  2840. 'tableinfo_id' => 'tableinfo_id',
  2841. ),
  2842. ),
  2843. 'assay' => array(
  2844. 'table' => 'assay',
  2845. 'columns' => array(
  2846. 'assay_id' => 'assay_id',
  2847. ),
  2848. ),
  2849. ),
  2850. 'table' => 'control',
  2851. 'referring_tables' => NULL,
  2852. );
  2853. return $description;
  2854. }
  2855. /**
  2856. * Implements hook_chado_schema_v1_2_cv()
  2857. * Purpose: To describe the structure of 'cv' to tripal
  2858. * @see tripal_core_chado_insert()
  2859. * @see tripal_core_chado_update()
  2860. * @see tripal_core_chado_select()
  2861. *
  2862. * @return
  2863. * An array describing the 'cv' table
  2864. *
  2865. * @ingroup tripal_chado_v1.2_schema_api
  2866. *
  2867. */
  2868. function tripal_core_chado_schema_v1_2_cv() {
  2869. $description = array(
  2870. 'description' => 'TODO: please describe this table!',
  2871. 'fields' => array(
  2872. 'cv_id' => array(
  2873. 'description' => 'TODO: please describe this field!',
  2874. 'type' => 'serial',
  2875. 'not null' => TRUE,
  2876. ),
  2877. 'name' => array(
  2878. 'description' => 'TODO: please describe this field!',
  2879. 'type' => 'varchar',
  2880. 'length' => '255',
  2881. 'not null' => TRUE,
  2882. ),
  2883. 'definition' => array(
  2884. 'description' => 'TODO: please describe this field!',
  2885. 'type' => 'text',
  2886. 'not null' => FALSE,
  2887. ),
  2888. ),
  2889. 'primary key' => array(
  2890. 0 => 'cv_id',
  2891. ),
  2892. 'unique keys' => array(
  2893. 'cv_c1' => array(
  2894. 0 => 'name',
  2895. ),
  2896. ),
  2897. 'foreign keys' => array(
  2898. ),
  2899. 'table' => 'cv',
  2900. 'referring_tables' => array(
  2901. 0 => 'cvprop',
  2902. 1 => 'cvterm',
  2903. 2 => 'cvtermpath',
  2904. ),
  2905. );
  2906. return $description;
  2907. }
  2908. /**
  2909. * Implements hook_chado_schema_v1_2_cvprop()
  2910. * Purpose: To describe the structure of 'cvprop' to tripal
  2911. * @see tripal_core_chado_insert()
  2912. * @see tripal_core_chado_update()
  2913. * @see tripal_core_chado_select()
  2914. *
  2915. * @return
  2916. * An array describing the 'cvprop' table
  2917. *
  2918. * @ingroup tripal_chado_v1.2_schema_api
  2919. *
  2920. */
  2921. function tripal_core_chado_schema_v1_2_cvprop() {
  2922. $description = array(
  2923. 'description' => 'TODO: please describe this table!',
  2924. 'fields' => array(
  2925. 'cvprop_id' => array(
  2926. 'description' => 'TODO: please describe this field!',
  2927. 'type' => 'serial',
  2928. 'not null' => TRUE,
  2929. ),
  2930. 'cv_id' => array(
  2931. 'description' => 'TODO: please describe this field!',
  2932. 'type' => 'int',
  2933. 'not null' => TRUE,
  2934. ),
  2935. 'type_id' => array(
  2936. 'description' => 'TODO: please describe this field!',
  2937. 'type' => 'int',
  2938. 'not null' => TRUE,
  2939. ),
  2940. 'value' => array(
  2941. 'description' => 'TODO: please describe this field!',
  2942. 'type' => 'text',
  2943. 'not null' => FALSE,
  2944. ),
  2945. 'rank' => array(
  2946. 'description' => 'TODO: please describe this field!',
  2947. 'type' => 'int',
  2948. 'not null' => TRUE,
  2949. 'default' => 0,
  2950. ),
  2951. ),
  2952. 'primary key' => array(
  2953. 0 => 'cvprop_id',
  2954. ),
  2955. 'unique keys' => array(
  2956. 'cvprop_c1' => array(
  2957. 0 => 'cv_id',
  2958. 1 => 'type_id',
  2959. 2 => 'rank',
  2960. ),
  2961. ),
  2962. 'foreign keys' => array(
  2963. 'cvterm' => array(
  2964. 'table' => 'cvterm',
  2965. 'columns' => array(
  2966. 'type_id' => 'cvterm_id',
  2967. ),
  2968. ),
  2969. 'cv' => array(
  2970. 'table' => 'cv',
  2971. 'columns' => array(
  2972. 'cv_id' => 'cv_id',
  2973. ),
  2974. ),
  2975. ),
  2976. 'table' => 'cvprop',
  2977. 'referring_tables' => NULL,
  2978. );
  2979. return $description;
  2980. }
  2981. /**
  2982. * Implements hook_chado_schema_v1_2_cvterm()
  2983. * Purpose: To describe the structure of 'cvterm' to tripal
  2984. * @see tripal_core_chado_insert()
  2985. * @see tripal_core_chado_update()
  2986. * @see tripal_core_chado_select()
  2987. *
  2988. * @return
  2989. * An array describing the 'cvterm' table
  2990. *
  2991. * @ingroup tripal_chado_v1.2_schema_api
  2992. *
  2993. */
  2994. function tripal_core_chado_schema_v1_2_cvterm() {
  2995. $description = array(
  2996. 'description' => 'TODO: please describe this table!',
  2997. 'fields' => array(
  2998. 'cvterm_id' => array(
  2999. 'description' => 'TODO: please describe this field!',
  3000. 'type' => 'serial',
  3001. 'not null' => TRUE,
  3002. ),
  3003. 'cv_id' => array(
  3004. 'description' => 'TODO: please describe this field!',
  3005. 'type' => 'int',
  3006. 'not null' => TRUE,
  3007. ),
  3008. 'name' => array(
  3009. 'description' => 'TODO: please describe this field!',
  3010. 'type' => 'varchar',
  3011. 'length' => '1024',
  3012. 'not null' => TRUE,
  3013. ),
  3014. 'definition' => array(
  3015. 'description' => 'TODO: please describe this field!',
  3016. 'type' => 'text',
  3017. 'not null' => FALSE,
  3018. ),
  3019. 'dbxref_id' => array(
  3020. 'description' => 'TODO: please describe this field!',
  3021. 'type' => 'int',
  3022. 'not null' => TRUE,
  3023. ),
  3024. 'is_obsolete' => array(
  3025. 'description' => 'TODO: please describe this field!',
  3026. 'type' => 'int',
  3027. 'not null' => TRUE,
  3028. 'default' => 0,
  3029. ),
  3030. 'is_relationshiptype' => array(
  3031. 'description' => 'TODO: please describe this field!',
  3032. 'type' => 'int',
  3033. 'not null' => TRUE,
  3034. 'default' => 0,
  3035. ),
  3036. ),
  3037. 'primary key' => array(
  3038. 0 => 'cvterm_id',
  3039. ),
  3040. 'unique keys' => array(
  3041. 'cvterm_c1' => array(
  3042. 0 => 'name',
  3043. 1 => 'cv_id',
  3044. 2 => 'is_obsolete',
  3045. ),
  3046. 'cvterm_c2' => array(
  3047. 0 => 'dbxref_id',
  3048. ),
  3049. ),
  3050. 'indexes' => array(
  3051. 'cvterm_idx1' => array(
  3052. 0 => 'cv_id',
  3053. ),
  3054. 'cvterm_idx2' => array(
  3055. 0 => 'name',
  3056. ),
  3057. 'cvterm_idx3' => array(
  3058. 0 => 'dbxref_id',
  3059. ),
  3060. ),
  3061. 'foreign keys' => array(
  3062. 'cv' => array(
  3063. 'table' => 'cv',
  3064. 'columns' => array(
  3065. 'cv_id' => 'cv_id',
  3066. ),
  3067. ),
  3068. 'dbxref' => array(
  3069. 'table' => 'dbxref',
  3070. 'columns' => array(
  3071. 'dbxref_id' => 'dbxref_id',
  3072. ),
  3073. ),
  3074. ),
  3075. 'table' => 'cvterm',
  3076. 'referring_tables' => array(
  3077. 0 => 'acquisition_relationship',
  3078. 1 => 'acquisitionprop',
  3079. 2 => 'analysisfeatureprop',
  3080. 3 => 'analysisprop',
  3081. 4 => 'arraydesign',
  3082. 6 => 'arraydesignprop',
  3083. 7 => 'assayprop',
  3084. 8 => 'biomaterial_relationship',
  3085. 9 => 'biomaterial_treatment',
  3086. 10 => 'biomaterialprop',
  3087. 11 => 'cell_line_cvterm',
  3088. 12 => 'cell_line_cvtermprop',
  3089. 13 => 'cell_line_relationship',
  3090. 14 => 'cell_lineprop',
  3091. 15 => 'chadoprop',
  3092. 23 => 'contact',
  3093. 24 => 'contact_relationship',
  3094. 25 => 'control',
  3095. 26 => 'cvprop',
  3096. 27 => 'cvterm_dbxref',
  3097. 28 => 'cvterm_relationship',
  3098. 31 => 'cvtermpath',
  3099. 34 => 'cvtermprop',
  3100. 36 => 'cvtermsynonym',
  3101. 38 => 'dbxrefprop',
  3102. 39 => 'element',
  3103. 40 => 'element_relationship',
  3104. 41 => 'elementresult_relationship',
  3105. 42 => 'environment_cvterm',
  3106. 43 => 'expression_cvterm',
  3107. 45 => 'expression_cvtermprop',
  3108. 46 => 'expressionprop',
  3109. 47 => 'feature',
  3110. 48 => 'feature_cvterm',
  3111. 49 => 'feature_cvtermprop',
  3112. 50 => 'feature_expressionprop',
  3113. 51 => 'feature_genotype',
  3114. 52 => 'feature_pubprop',
  3115. 53 => 'feature_relationship',
  3116. 54 => 'feature_relationshipprop',
  3117. 55 => 'featuremap',
  3118. 56 => 'featureprop',
  3119. 57 => 'genotype',
  3120. 58 => 'genotypeprop',
  3121. 66 => 'library',
  3122. 67 => 'library_cvterm',
  3123. 68 => 'libraryprop',
  3124. 69 => 'nd_experiment',
  3125. 70 => 'nd_experiment_stock',
  3126. 71 => 'nd_experiment_stockprop',
  3127. 72 => 'nd_experimentprop',
  3128. 73 => 'nd_geolocationprop',
  3129. 74 => 'nd_protocol',
  3130. 75 => 'nd_protocol_reagent',
  3131. 76 => 'nd_protocolprop',
  3132. 77 => 'nd_reagent',
  3133. 78 => 'nd_reagent_relationship',
  3134. 79 => 'nd_reagentprop',
  3135. 80 => 'organismprop',
  3136. 81 => 'phendesc',
  3137. 82 => 'phenotype',
  3138. 86 => 'phenotype_comparison_cvterm',
  3139. 87 => 'phenotype_cvterm',
  3140. 88 => 'phenstatement',
  3141. 89 => 'phylonode',
  3142. 90 => 'phylonode_relationship',
  3143. 91 => 'phylonodeprop',
  3144. 92 => 'phylotree',
  3145. 93 => 'project_relationship',
  3146. 101 => 'projectprop',
  3147. 109 => 'protocol',
  3148. 110 => 'protocolparam',
  3149. 112 => 'pub',
  3150. 113 => 'pub_relationship',
  3151. 114 => 'pubprop',
  3152. 115 => 'quantification_relationship',
  3153. 116 => 'quantificationprop',
  3154. 117 => 'stock',
  3155. 118 => 'stock_cvterm',
  3156. 119 => 'stock_cvtermprop',
  3157. 127 => 'stock_dbxrefprop',
  3158. 135 => 'stock_relationship',
  3159. 136 => 'stock_relationship_cvterm',
  3160. 144 => 'stockcollection',
  3161. 145 => 'stockcollectionprop',
  3162. 146 => 'stockprop',
  3163. 147 => 'studydesignprop',
  3164. 148 => 'studyfactor',
  3165. 149 => 'studyprop',
  3166. 150 => 'studyprop_feature',
  3167. 151 => 'synonym',
  3168. 152 => 'treatment',
  3169. ),
  3170. );
  3171. return $description;
  3172. }
  3173. /**
  3174. * Implements hook_chado_schema_v1_2_cvterm_dbxref()
  3175. * Purpose: To describe the structure of 'cvterm_dbxref' to tripal
  3176. * @see tripal_core_chado_insert()
  3177. * @see tripal_core_chado_update()
  3178. * @see tripal_core_chado_select()
  3179. *
  3180. * @return
  3181. * An array describing the 'cvterm_dbxref' table
  3182. *
  3183. * @ingroup tripal_chado_v1.2_schema_api
  3184. *
  3185. */
  3186. function tripal_core_chado_schema_v1_2_cvterm_dbxref() {
  3187. $description = array(
  3188. 'description' => 'TODO: please describe this table!',
  3189. 'fields' => array(
  3190. 'cvterm_dbxref_id' => array(
  3191. 'description' => 'TODO: please describe this field!',
  3192. 'type' => 'serial',
  3193. 'not null' => TRUE,
  3194. ),
  3195. 'cvterm_id' => array(
  3196. 'description' => 'TODO: please describe this field!',
  3197. 'type' => 'int',
  3198. 'not null' => TRUE,
  3199. ),
  3200. 'dbxref_id' => array(
  3201. 'description' => 'TODO: please describe this field!',
  3202. 'type' => 'int',
  3203. 'not null' => TRUE,
  3204. ),
  3205. 'is_for_definition' => array(
  3206. 'description' => 'TODO: please describe this field!',
  3207. 'type' => 'int',
  3208. 'not null' => TRUE,
  3209. 'default' => 0,
  3210. ),
  3211. ),
  3212. 'primary key' => array(
  3213. 0 => 'cvterm_dbxref_id',
  3214. ),
  3215. 'unique keys' => array(
  3216. 'cvterm_dbxref_c1' => array(
  3217. 0 => 'cvterm_id',
  3218. 1 => 'dbxref_id',
  3219. ),
  3220. ),
  3221. 'indexes' => array(
  3222. 'cvterm_dbxref_idx1' => array(
  3223. 0 => 'cvterm_id',
  3224. ),
  3225. 'cvterm_dbxref_idx2' => array(
  3226. 0 => 'dbxref_id',
  3227. ),
  3228. ),
  3229. 'foreign keys' => array(
  3230. 'cvterm' => array(
  3231. 'table' => 'cvterm',
  3232. 'columns' => array(
  3233. 'cvterm_id' => 'cvterm_id',
  3234. ),
  3235. ),
  3236. 'dbxref' => array(
  3237. 'table' => 'dbxref',
  3238. 'columns' => array(
  3239. 'dbxref_id' => 'dbxref_id',
  3240. ),
  3241. ),
  3242. ),
  3243. 'table' => 'cvterm_dbxref',
  3244. 'referring_tables' => NULL,
  3245. );
  3246. return $description;
  3247. }
  3248. /**
  3249. * Implements hook_chado_schema_v1_2_cvterm_relationship()
  3250. * Purpose: To describe the structure of 'cvterm_relationship' to tripal
  3251. * @see tripal_core_chado_insert()
  3252. * @see tripal_core_chado_update()
  3253. * @see tripal_core_chado_select()
  3254. *
  3255. * @return
  3256. * An array describing the 'cvterm_relationship' table
  3257. *
  3258. * @ingroup tripal_chado_v1.2_schema_api
  3259. *
  3260. */
  3261. function tripal_core_chado_schema_v1_2_cvterm_relationship() {
  3262. $description = array(
  3263. 'description' => 'TODO: please describe this table!',
  3264. 'fields' => array(
  3265. 'cvterm_relationship_id' => array(
  3266. 'description' => 'TODO: please describe this field!',
  3267. 'type' => 'serial',
  3268. 'not null' => TRUE,
  3269. ),
  3270. 'type_id' => array(
  3271. 'description' => 'TODO: please describe this field!',
  3272. 'type' => 'int',
  3273. 'not null' => TRUE,
  3274. ),
  3275. 'subject_id' => array(
  3276. 'description' => 'TODO: please describe this field!',
  3277. 'type' => 'int',
  3278. 'not null' => TRUE,
  3279. ),
  3280. 'object_id' => array(
  3281. 'description' => 'TODO: please describe this field!',
  3282. 'type' => 'int',
  3283. 'not null' => TRUE,
  3284. ),
  3285. ),
  3286. 'primary key' => array(
  3287. 0 => 'cvterm_relationship_id',
  3288. ),
  3289. 'unique keys' => array(
  3290. 'cvterm_relationship_c1' => array(
  3291. 0 => 'subject_id',
  3292. 1 => 'object_id',
  3293. 2 => 'type_id',
  3294. ),
  3295. ),
  3296. 'indexes' => array(
  3297. 'cvterm_relationship_idx1' => array(
  3298. 0 => 'type_id',
  3299. ),
  3300. 'cvterm_relationship_idx2' => array(
  3301. 0 => 'subject_id',
  3302. ),
  3303. 'cvterm_relationship_idx3' => array(
  3304. 0 => 'object_id',
  3305. ),
  3306. ),
  3307. 'foreign keys' => array(
  3308. 'cvterm' => array(
  3309. 'table' => 'cvterm',
  3310. 'columns' => array(
  3311. 'type_id' => 'cvterm_id',
  3312. 'subject_id' => 'cvterm_id',
  3313. 'object_id' => 'cvterm_id',
  3314. ),
  3315. ),
  3316. ),
  3317. 'table' => 'cvterm_relationship',
  3318. 'referring_tables' => NULL,
  3319. );
  3320. return $description;
  3321. }
  3322. /**
  3323. * Implements hook_chado_schema_v1_2_cvtermpath()
  3324. * Purpose: To describe the structure of 'cvtermpath' to tripal
  3325. * @see tripal_core_chado_insert()
  3326. * @see tripal_core_chado_update()
  3327. * @see tripal_core_chado_select()
  3328. *
  3329. * @return
  3330. * An array describing the 'cvtermpath' table
  3331. *
  3332. * @ingroup tripal_chado_v1.2_schema_api
  3333. *
  3334. */
  3335. function tripal_core_chado_schema_v1_2_cvtermpath() {
  3336. $description = array(
  3337. 'description' => 'TODO: please describe this table!',
  3338. 'fields' => array(
  3339. 'cvtermpath_id' => array(
  3340. 'description' => 'TODO: please describe this field!',
  3341. 'type' => 'serial',
  3342. 'not null' => TRUE,
  3343. ),
  3344. 'type_id' => array(
  3345. 'description' => 'TODO: please describe this field!',
  3346. 'type' => 'int',
  3347. 'not null' => FALSE,
  3348. ),
  3349. 'subject_id' => array(
  3350. 'description' => 'TODO: please describe this field!',
  3351. 'type' => 'int',
  3352. 'not null' => TRUE,
  3353. ),
  3354. 'object_id' => array(
  3355. 'description' => 'TODO: please describe this field!',
  3356. 'type' => 'int',
  3357. 'not null' => TRUE,
  3358. ),
  3359. 'cv_id' => array(
  3360. 'description' => 'TODO: please describe this field!',
  3361. 'type' => 'int',
  3362. 'not null' => TRUE,
  3363. ),
  3364. 'pathdistance' => array(
  3365. 'description' => 'TODO: please describe this field!',
  3366. 'type' => 'int',
  3367. 'not null' => FALSE,
  3368. ),
  3369. ),
  3370. 'primary key' => array(
  3371. 0 => 'cvtermpath_id',
  3372. ),
  3373. 'unique keys' => array(
  3374. 'cvtermpath_c1' => array(
  3375. 0 => 'subject_id',
  3376. 1 => 'object_id',
  3377. 2 => 'type_id',
  3378. 3 => 'pathdistance',
  3379. ),
  3380. ),
  3381. 'indexes' => array(
  3382. 'cvtermpath_idx1' => array(
  3383. 0 => 'type_id',
  3384. ),
  3385. 'cvtermpath_idx2' => array(
  3386. 0 => 'subject_id',
  3387. ),
  3388. 'cvtermpath_idx3' => array(
  3389. 0 => 'object_id',
  3390. ),
  3391. 'cvtermpath_idx4' => array(
  3392. 0 => 'cv_id',
  3393. ),
  3394. ),
  3395. 'foreign keys' => array(
  3396. 'cvterm' => array(
  3397. 'table' => 'cvterm',
  3398. 'columns' => array(
  3399. 'type_id' => 'cvterm_id',
  3400. 'subject_id' => 'cvterm_id',
  3401. 'object_id' => 'cvterm_id',
  3402. ),
  3403. ),
  3404. 'cv' => array(
  3405. 'table' => 'cv',
  3406. 'columns' => array(
  3407. 'cv_id' => 'cv_id',
  3408. ),
  3409. ),
  3410. ),
  3411. 'table' => 'cvtermpath',
  3412. 'referring_tables' => NULL,
  3413. );
  3414. return $description;
  3415. }
  3416. /**
  3417. * Implements hook_chado_schema_v1_2_cvtermprop()
  3418. * Purpose: To describe the structure of 'cvtermprop' to tripal
  3419. * @see tripal_core_chado_insert()
  3420. * @see tripal_core_chado_update()
  3421. * @see tripal_core_chado_select()
  3422. *
  3423. * @return
  3424. * An array describing the 'cvtermprop' table
  3425. *
  3426. * @ingroup tripal_chado_v1.2_schema_api
  3427. *
  3428. */
  3429. function tripal_core_chado_schema_v1_2_cvtermprop() {
  3430. $description = array(
  3431. 'description' => 'TODO: please describe this table!',
  3432. 'fields' => array(
  3433. 'cvtermprop_id' => array(
  3434. 'description' => 'TODO: please describe this field!',
  3435. 'type' => 'serial',
  3436. 'not null' => TRUE,
  3437. ),
  3438. 'cvterm_id' => array(
  3439. 'description' => 'TODO: please describe this field!',
  3440. 'type' => 'int',
  3441. 'not null' => TRUE,
  3442. ),
  3443. 'type_id' => array(
  3444. 'description' => 'TODO: please describe this field!',
  3445. 'type' => 'int',
  3446. 'not null' => TRUE,
  3447. ),
  3448. 'value' => array(
  3449. 'description' => 'TODO: please describe this field!',
  3450. 'type' => 'text',
  3451. 'not null' => TRUE,
  3452. 'default' => '',
  3453. ),
  3454. 'rank' => array(
  3455. 'description' => 'TODO: please describe this field!',
  3456. 'type' => 'int',
  3457. 'not null' => TRUE,
  3458. 'default' => 0,
  3459. ),
  3460. ),
  3461. 'primary key' => array(
  3462. 0 => 'cvtermprop_id',
  3463. ),
  3464. 'unique keys' => array(
  3465. 'cvterm_id' => array(
  3466. 0 => 'cvterm_id',
  3467. 1 => 'type_id',
  3468. 2 => 'value',
  3469. 3 => 'rank',
  3470. ),
  3471. ),
  3472. 'indexes' => array(
  3473. 'cvtermprop_idx1' => array(
  3474. 0 => 'cvterm_id',
  3475. ),
  3476. 'cvtermprop_idx2' => array(
  3477. 0 => 'type_id',
  3478. ),
  3479. ),
  3480. 'foreign keys' => array(
  3481. 'cvterm' => array(
  3482. 'table' => 'cvterm',
  3483. 'columns' => array(
  3484. 'cvterm_id' => 'cvterm_id',
  3485. 'type_id' => 'cvterm_id',
  3486. ),
  3487. ),
  3488. ),
  3489. 'table' => 'cvtermprop',
  3490. 'referring_tables' => NULL,
  3491. );
  3492. return $description;
  3493. }
  3494. /**
  3495. * Implements hook_chado_schema_v1_2_cvtermsynonym()
  3496. * Purpose: To describe the structure of 'cvtermsynonym' to tripal
  3497. * @see tripal_core_chado_insert()
  3498. * @see tripal_core_chado_update()
  3499. * @see tripal_core_chado_select()
  3500. *
  3501. * @return
  3502. * An array describing the 'cvtermsynonym' table
  3503. *
  3504. * @ingroup tripal_chado_v1.2_schema_api
  3505. *
  3506. */
  3507. function tripal_core_chado_schema_v1_2_cvtermsynonym() {
  3508. $description = array(
  3509. 'description' => 'TODO: please describe this table!',
  3510. 'fields' => array(
  3511. 'cvtermsynonym_id' => array(
  3512. 'description' => 'TODO: please describe this field!',
  3513. 'type' => 'serial',
  3514. 'not null' => TRUE,
  3515. ),
  3516. 'cvterm_id' => array(
  3517. 'description' => 'TODO: please describe this field!',
  3518. 'type' => 'int',
  3519. 'not null' => TRUE,
  3520. ),
  3521. 'synonym' => array(
  3522. 'description' => 'TODO: please describe this field!',
  3523. 'type' => 'varchar',
  3524. 'length' => '1024',
  3525. 'not null' => TRUE,
  3526. ),
  3527. 'type_id' => array(
  3528. 'description' => 'TODO: please describe this field!',
  3529. 'type' => 'int',
  3530. 'not null' => FALSE,
  3531. ),
  3532. ),
  3533. 'primary key' => array(
  3534. 0 => 'cvtermsynonym_id',
  3535. ),
  3536. 'unique keys' => array(
  3537. 'cvtermsynonym_c1' => array(
  3538. 0 => 'cvterm_id',
  3539. 1 => 'synonym',
  3540. ),
  3541. ),
  3542. 'indexes' => array(
  3543. 'cvtermsynonym_idx1' => array(
  3544. 0 => 'cvterm_id',
  3545. ),
  3546. ),
  3547. 'foreign keys' => array(
  3548. 'cvterm' => array(
  3549. 'table' => 'cvterm',
  3550. 'columns' => array(
  3551. 'cvterm_id' => 'cvterm_id',
  3552. 'type_id' => 'cvterm_id',
  3553. ),
  3554. ),
  3555. ),
  3556. 'table' => 'cvtermsynonym',
  3557. 'referring_tables' => NULL,
  3558. );
  3559. return $description;
  3560. }
  3561. /**
  3562. * Implements hook_chado_schema_v1_2_db()
  3563. * Purpose: To describe the structure of 'db' to tripal
  3564. * @see tripal_core_chado_insert()
  3565. * @see tripal_core_chado_update()
  3566. * @see tripal_core_chado_select()
  3567. *
  3568. * @return
  3569. * An array describing the 'db' table
  3570. *
  3571. * @ingroup tripal_chado_v1.2_schema_api
  3572. *
  3573. */
  3574. function tripal_core_chado_schema_v1_2_db() {
  3575. $description = array(
  3576. 'description' => 'TODO: please describe this table!',
  3577. 'fields' => array(
  3578. 'db_id' => array(
  3579. 'description' => 'TODO: please describe this field!',
  3580. 'type' => 'serial',
  3581. 'not null' => TRUE,
  3582. ),
  3583. 'name' => array(
  3584. 'description' => 'TODO: please describe this field!',
  3585. 'type' => 'varchar',
  3586. 'length' => '255',
  3587. 'not null' => TRUE,
  3588. ),
  3589. 'description' => array(
  3590. 'description' => 'TODO: please describe this field!',
  3591. 'type' => 'varchar',
  3592. 'length' => '255',
  3593. 'not null' => FALSE,
  3594. ),
  3595. 'urlprefix' => array(
  3596. 'description' => 'TODO: please describe this field!',
  3597. 'type' => 'varchar',
  3598. 'length' => '255',
  3599. 'not null' => FALSE,
  3600. ),
  3601. 'url' => array(
  3602. 'description' => 'TODO: please describe this field!',
  3603. 'type' => 'varchar',
  3604. 'length' => '255',
  3605. 'not null' => FALSE,
  3606. ),
  3607. ),
  3608. 'primary key' => array(
  3609. 0 => 'db_id',
  3610. ),
  3611. 'unique keys' => array(
  3612. 'db_c1' => array(
  3613. 0 => 'name',
  3614. ),
  3615. ),
  3616. 'foreign keys' => array(
  3617. ),
  3618. 'table' => 'db',
  3619. 'referring_tables' => array(
  3620. 0 => 'dbxref',
  3621. ),
  3622. );
  3623. return $description;
  3624. }
  3625. /**
  3626. * Implements hook_chado_schema_v1_2_dbxref()
  3627. * Purpose: To describe the structure of 'dbxref' to tripal
  3628. * @see tripal_core_chado_insert()
  3629. * @see tripal_core_chado_update()
  3630. * @see tripal_core_chado_select()
  3631. *
  3632. * @return
  3633. * An array describing the 'dbxref' table
  3634. *
  3635. * @ingroup tripal_chado_v1.2_schema_api
  3636. *
  3637. */
  3638. function tripal_core_chado_schema_v1_2_dbxref() {
  3639. $description = array(
  3640. 'description' => 'TODO: please describe this table!',
  3641. 'fields' => array(
  3642. 'dbxref_id' => array(
  3643. 'description' => 'TODO: please describe this field!',
  3644. 'type' => 'serial',
  3645. 'not null' => TRUE,
  3646. ),
  3647. 'db_id' => array(
  3648. 'description' => 'TODO: please describe this field!',
  3649. 'type' => 'int',
  3650. 'not null' => TRUE,
  3651. ),
  3652. 'accession' => array(
  3653. 'description' => 'TODO: please describe this field!',
  3654. 'type' => 'varchar',
  3655. 'length' => '255',
  3656. 'not null' => TRUE,
  3657. ),
  3658. 'version' => array(
  3659. 'description' => 'TODO: please describe this field!',
  3660. 'type' => 'varchar',
  3661. 'length' => '255',
  3662. 'not null' => TRUE,
  3663. 'default' => '',
  3664. ),
  3665. 'description' => array(
  3666. 'description' => 'TODO: please describe this field!',
  3667. 'type' => 'text',
  3668. 'not null' => FALSE,
  3669. ),
  3670. ),
  3671. 'primary key' => array(
  3672. 0 => 'dbxref_id',
  3673. ),
  3674. 'unique keys' => array(
  3675. 'dbxref_c1' => array(
  3676. 0 => 'db_id',
  3677. 1 => 'accession',
  3678. 2 => 'version',
  3679. ),
  3680. ),
  3681. 'indexes' => array(
  3682. 'dbxref_idx1' => array(
  3683. 0 => 'db_id',
  3684. ),
  3685. 'dbxref_idx2' => array(
  3686. 0 => 'accession',
  3687. ),
  3688. 'dbxref_idx3' => array(
  3689. 0 => 'version',
  3690. ),
  3691. ),
  3692. 'foreign keys' => array(
  3693. 'db' => array(
  3694. 'table' => 'db',
  3695. 'columns' => array(
  3696. 'db_id' => 'db_id',
  3697. ),
  3698. ),
  3699. ),
  3700. 'table' => 'dbxref',
  3701. 'referring_tables' => array(
  3702. 0 => 'arraydesign',
  3703. 1 => 'assay',
  3704. 2 => 'biomaterial',
  3705. 3 => 'biomaterial_dbxref',
  3706. 4 => 'cell_line_dbxref',
  3707. 5 => 'cvterm',
  3708. 6 => 'cvterm_dbxref',
  3709. 7 => 'dbxrefprop',
  3710. 8 => 'element',
  3711. 9 => 'feature',
  3712. 10 => 'feature_cvterm_dbxref',
  3713. 11 => 'feature_dbxref',
  3714. 12 => 'library_dbxref',
  3715. 13 => 'nd_experiment_dbxref',
  3716. 14 => 'nd_experiment_stock_dbxref',
  3717. 15 => 'organism_dbxref',
  3718. 16 => 'phylonode_dbxref',
  3719. 17 => 'phylotree',
  3720. 18 => 'protocol',
  3721. 19 => 'pub_dbxref',
  3722. 20 => 'stock',
  3723. 21 => 'stock_dbxref',
  3724. 22 => 'study',
  3725. ),
  3726. );
  3727. return $description;
  3728. }
  3729. /**
  3730. * Implements hook_chado_schema_v1_2_dbxrefprop()
  3731. * Purpose: To describe the structure of 'dbxrefprop' to tripal
  3732. * @see tripal_core_chado_insert()
  3733. * @see tripal_core_chado_update()
  3734. * @see tripal_core_chado_select()
  3735. *
  3736. * @return
  3737. * An array describing the 'dbxrefprop' table
  3738. *
  3739. * @ingroup tripal_chado_v1.2_schema_api
  3740. *
  3741. */
  3742. function tripal_core_chado_schema_v1_2_dbxrefprop() {
  3743. $description = array(
  3744. 'description' => 'TODO: please describe this table!',
  3745. 'fields' => array(
  3746. 'dbxrefprop_id' => array(
  3747. 'description' => 'TODO: please describe this field!',
  3748. 'type' => 'serial',
  3749. 'not null' => TRUE,
  3750. ),
  3751. 'dbxref_id' => array(
  3752. 'description' => 'TODO: please describe this field!',
  3753. 'type' => 'int',
  3754. 'not null' => TRUE,
  3755. ),
  3756. 'type_id' => array(
  3757. 'description' => 'TODO: please describe this field!',
  3758. 'type' => 'int',
  3759. 'not null' => TRUE,
  3760. ),
  3761. 'value' => array(
  3762. 'description' => 'TODO: please describe this field!',
  3763. 'type' => 'text',
  3764. 'not null' => TRUE,
  3765. 'default' => '',
  3766. ),
  3767. 'rank' => array(
  3768. 'description' => 'TODO: please describe this field!',
  3769. 'type' => 'int',
  3770. 'not null' => TRUE,
  3771. 'default' => 0,
  3772. ),
  3773. ),
  3774. 'primary key' => array(
  3775. 0 => 'dbxrefprop_id',
  3776. ),
  3777. 'unique keys' => array(
  3778. 'dbxrefprop_c1' => array(
  3779. 0 => 'dbxref_id',
  3780. 1 => 'type_id',
  3781. 2 => 'rank',
  3782. ),
  3783. ),
  3784. 'indexes' => array(
  3785. 'dbxrefprop_idx1' => array(
  3786. 0 => 'dbxref_id',
  3787. ),
  3788. 'dbxrefprop_idx2' => array(
  3789. 0 => 'type_id',
  3790. ),
  3791. ),
  3792. 'foreign keys' => array(
  3793. 'cvterm' => array(
  3794. 'table' => 'cvterm',
  3795. 'columns' => array(
  3796. 'type_id' => 'cvterm_id',
  3797. ),
  3798. ),
  3799. 'dbxref' => array(
  3800. 'table' => 'dbxref',
  3801. 'columns' => array(
  3802. 'dbxref_id' => 'dbxref_id',
  3803. ),
  3804. ),
  3805. ),
  3806. 'table' => 'dbxrefprop',
  3807. 'referring_tables' => NULL,
  3808. );
  3809. return $description;
  3810. }
  3811. /**
  3812. * Implements hook_chado_schema_v1_2_eimage()
  3813. * Purpose: To describe the structure of 'eimage' to tripal
  3814. * @see tripal_core_chado_insert()
  3815. * @see tripal_core_chado_update()
  3816. * @see tripal_core_chado_select()
  3817. *
  3818. * @return
  3819. * An array describing the 'eimage' table
  3820. *
  3821. * @ingroup tripal_chado_v1.2_schema_api
  3822. *
  3823. */
  3824. function tripal_core_chado_schema_v1_2_eimage() {
  3825. $description = array(
  3826. 'description' => 'TODO: please describe this table!',
  3827. 'fields' => array(
  3828. 'eimage_id' => array(
  3829. 'description' => 'TODO: please describe this field!',
  3830. 'type' => 'serial',
  3831. 'not null' => TRUE,
  3832. ),
  3833. 'eimage_data' => array(
  3834. 'description' => 'TODO: please describe this field!',
  3835. 'type' => 'text',
  3836. 'not null' => FALSE,
  3837. ),
  3838. 'eimage_type' => array(
  3839. 'description' => 'TODO: please describe this field!',
  3840. 'type' => 'varchar',
  3841. 'length' => '255',
  3842. 'not null' => TRUE,
  3843. ),
  3844. 'image_uri' => array(
  3845. 'description' => 'TODO: please describe this field!',
  3846. 'type' => 'varchar',
  3847. 'length' => '255',
  3848. 'not null' => FALSE,
  3849. ),
  3850. ),
  3851. 'primary key' => array(
  3852. 0 => 'eimage_id',
  3853. ),
  3854. 'foreign keys' => array(
  3855. ),
  3856. 'table' => 'eimage',
  3857. 'referring_tables' => array(
  3858. 0 => 'expression_image',
  3859. ),
  3860. );
  3861. return $description;
  3862. }
  3863. /**
  3864. * Implements hook_chado_schema_v1_2_element()
  3865. * Purpose: To describe the structure of 'element' to tripal
  3866. * @see tripal_core_chado_insert()
  3867. * @see tripal_core_chado_update()
  3868. * @see tripal_core_chado_select()
  3869. *
  3870. * @return
  3871. * An array describing the 'element' table
  3872. *
  3873. * @ingroup tripal_chado_v1.2_schema_api
  3874. *
  3875. */
  3876. function tripal_core_chado_schema_v1_2_element() {
  3877. $description = array(
  3878. 'description' => 'TODO: please describe this table!',
  3879. 'fields' => array(
  3880. 'element_id' => array(
  3881. 'description' => 'TODO: please describe this field!',
  3882. 'type' => 'serial',
  3883. 'not null' => TRUE,
  3884. ),
  3885. 'feature_id' => array(
  3886. 'description' => 'TODO: please describe this field!',
  3887. 'type' => 'int',
  3888. 'not null' => FALSE,
  3889. ),
  3890. 'arraydesign_id' => array(
  3891. 'description' => 'TODO: please describe this field!',
  3892. 'type' => 'int',
  3893. 'not null' => TRUE,
  3894. ),
  3895. 'type_id' => array(
  3896. 'description' => 'TODO: please describe this field!',
  3897. 'type' => 'int',
  3898. 'not null' => FALSE,
  3899. ),
  3900. 'dbxref_id' => array(
  3901. 'description' => 'TODO: please describe this field!',
  3902. 'type' => 'int',
  3903. 'not null' => FALSE,
  3904. ),
  3905. ),
  3906. 'primary key' => array(
  3907. 0 => 'element_id',
  3908. ),
  3909. 'unique keys' => array(
  3910. 'element_c1' => array(
  3911. 0 => 'feature_id',
  3912. 1 => 'arraydesign_id',
  3913. ),
  3914. ),
  3915. 'indexes' => array(
  3916. 'element_idx1' => array(
  3917. 0 => 'feature_id',
  3918. ),
  3919. 'element_idx2' => array(
  3920. 0 => 'arraydesign_id',
  3921. ),
  3922. 'element_idx3' => array(
  3923. 0 => 'type_id',
  3924. ),
  3925. 'element_idx4' => array(
  3926. 0 => 'dbxref_id',
  3927. ),
  3928. ),
  3929. 'foreign keys' => array(
  3930. 'cvterm' => array(
  3931. 'table' => 'cvterm',
  3932. 'columns' => array(
  3933. 'type_id' => 'cvterm_id',
  3934. ),
  3935. ),
  3936. 'dbxref' => array(
  3937. 'table' => 'dbxref',
  3938. 'columns' => array(
  3939. 'dbxref_id' => 'dbxref_id',
  3940. ),
  3941. ),
  3942. 'feature' => array(
  3943. 'table' => 'feature',
  3944. 'columns' => array(
  3945. 'feature_id' => 'feature_id',
  3946. ),
  3947. ),
  3948. 'arraydesign' => array(
  3949. 'table' => 'arraydesign',
  3950. 'columns' => array(
  3951. 'arraydesign_id' => 'arraydesign_id',
  3952. ),
  3953. ),
  3954. ),
  3955. 'table' => 'element',
  3956. 'referring_tables' => array(
  3957. 0 => 'element_relationship',
  3958. 2 => 'elementresult',
  3959. ),
  3960. );
  3961. return $description;
  3962. }
  3963. /**
  3964. * Implements hook_chado_schema_v1_2_element_relationship()
  3965. * Purpose: To describe the structure of 'element_relationship' to tripal
  3966. * @see tripal_core_chado_insert()
  3967. * @see tripal_core_chado_update()
  3968. * @see tripal_core_chado_select()
  3969. *
  3970. * @return
  3971. * An array describing the 'element_relationship' table
  3972. *
  3973. * @ingroup tripal_chado_v1.2_schema_api
  3974. *
  3975. */
  3976. function tripal_core_chado_schema_v1_2_element_relationship() {
  3977. $description = array(
  3978. 'description' => 'TODO: please describe this table!',
  3979. 'fields' => array(
  3980. 'element_relationship_id' => array(
  3981. 'description' => 'TODO: please describe this field!',
  3982. 'type' => 'serial',
  3983. 'not null' => TRUE,
  3984. ),
  3985. 'subject_id' => array(
  3986. 'description' => 'TODO: please describe this field!',
  3987. 'type' => 'int',
  3988. 'not null' => TRUE,
  3989. ),
  3990. 'type_id' => array(
  3991. 'description' => 'TODO: please describe this field!',
  3992. 'type' => 'int',
  3993. 'not null' => TRUE,
  3994. ),
  3995. 'object_id' => array(
  3996. 'description' => 'TODO: please describe this field!',
  3997. 'type' => 'int',
  3998. 'not null' => TRUE,
  3999. ),
  4000. 'value' => array(
  4001. 'description' => 'TODO: please describe this field!',
  4002. 'type' => 'text',
  4003. 'not null' => FALSE,
  4004. ),
  4005. 'rank' => array(
  4006. 'description' => 'TODO: please describe this field!',
  4007. 'type' => 'int',
  4008. 'not null' => TRUE,
  4009. 'default' => 0,
  4010. ),
  4011. ),
  4012. 'primary key' => array(
  4013. 0 => 'element_relationship_id',
  4014. ),
  4015. 'unique keys' => array(
  4016. 'element_relationship_c1' => array(
  4017. 0 => 'subject_id',
  4018. 1 => 'object_id',
  4019. 2 => 'type_id',
  4020. 3 => 'rank',
  4021. ),
  4022. ),
  4023. 'indexes' => array(
  4024. 'element_relationship_idx1' => array(
  4025. 0 => 'subject_id',
  4026. ),
  4027. 'element_relationship_idx2' => array(
  4028. 0 => 'type_id',
  4029. ),
  4030. 'element_relationship_idx3' => array(
  4031. 0 => 'object_id',
  4032. ),
  4033. 'element_relationship_idx4' => array(
  4034. 0 => 'value',
  4035. ),
  4036. ),
  4037. 'foreign keys' => array(
  4038. 'cvterm' => array(
  4039. 'table' => 'cvterm',
  4040. 'columns' => array(
  4041. 'type_id' => 'cvterm_id',
  4042. ),
  4043. ),
  4044. 'element' => array(
  4045. 'table' => 'element',
  4046. 'columns' => array(
  4047. 'subject_id' => 'element_id',
  4048. 'object_id' => 'element_id',
  4049. ),
  4050. ),
  4051. ),
  4052. 'table' => 'element_relationship',
  4053. 'referring_tables' => NULL,
  4054. );
  4055. return $description;
  4056. }
  4057. /**
  4058. * Implements hook_chado_schema_v1_2_elementresult()
  4059. * Purpose: To describe the structure of 'elementresult' to tripal
  4060. * @see tripal_core_chado_insert()
  4061. * @see tripal_core_chado_update()
  4062. * @see tripal_core_chado_select()
  4063. *
  4064. * @return
  4065. * An array describing the 'elementresult' table
  4066. *
  4067. * @ingroup tripal_chado_v1.2_schema_api
  4068. *
  4069. */
  4070. function tripal_core_chado_schema_v1_2_elementresult() {
  4071. $description = array(
  4072. 'description' => 'TODO: please describe this table!',
  4073. 'fields' => array(
  4074. 'elementresult_id' => array(
  4075. 'description' => 'TODO: please describe this field!',
  4076. 'type' => 'serial',
  4077. 'not null' => TRUE,
  4078. ),
  4079. 'element_id' => array(
  4080. 'description' => 'TODO: please describe this field!',
  4081. 'type' => 'int',
  4082. 'not null' => TRUE,
  4083. ),
  4084. 'quantification_id' => array(
  4085. 'description' => 'TODO: please describe this field!',
  4086. 'type' => 'int',
  4087. 'not null' => TRUE,
  4088. ),
  4089. 'signal' => array(
  4090. 'description' => 'TODO: please describe this field!',
  4091. 'type' => 'float',
  4092. 'size' => 'big',
  4093. 'not null' => TRUE,
  4094. ),
  4095. ),
  4096. 'primary key' => array(
  4097. 0 => 'elementresult_id',
  4098. ),
  4099. 'unique keys' => array(
  4100. 'elementresult_c1' => array(
  4101. 0 => 'element_id',
  4102. 1 => 'quantification_id',
  4103. ),
  4104. ),
  4105. 'indexes' => array(
  4106. 'elementresult_idx1' => array(
  4107. 0 => 'element_id',
  4108. ),
  4109. 'elementresult_idx2' => array(
  4110. 0 => 'quantification_id',
  4111. ),
  4112. 'elementresult_idx3' => array(
  4113. 0 => 'signal',
  4114. ),
  4115. ),
  4116. 'foreign keys' => array(
  4117. 'quantification' => array(
  4118. 'table' => 'quantification',
  4119. 'columns' => array(
  4120. 'quantification_id' => 'quantification_id',
  4121. ),
  4122. ),
  4123. 'element' => array(
  4124. 'table' => 'element',
  4125. 'columns' => array(
  4126. 'element_id' => 'element_id',
  4127. ),
  4128. ),
  4129. ),
  4130. 'table' => 'elementresult',
  4131. 'referring_tables' => array(
  4132. 0 => 'elementresult_relationship',
  4133. ),
  4134. );
  4135. return $description;
  4136. }
  4137. /**
  4138. * Implements hook_chado_schema_v1_2_elementresult_relationship()
  4139. * Purpose: To describe the structure of 'elementresult_relationship' to tripal
  4140. * @see tripal_core_chado_insert()
  4141. * @see tripal_core_chado_update()
  4142. * @see tripal_core_chado_select()
  4143. *
  4144. * @return
  4145. * An array describing the 'elementresult_relationship' table
  4146. *
  4147. * @ingroup tripal_chado_v1.2_schema_api
  4148. *
  4149. */
  4150. function tripal_core_chado_schema_v1_2_elementresult_relationship() {
  4151. $description = array(
  4152. 'description' => 'TODO: please describe this table!',
  4153. 'fields' => array(
  4154. 'elementresult_relationship_id' => array(
  4155. 'description' => 'TODO: please describe this field!',
  4156. 'type' => 'serial',
  4157. 'not null' => TRUE,
  4158. ),
  4159. 'subject_id' => array(
  4160. 'description' => 'TODO: please describe this field!',
  4161. 'type' => 'int',
  4162. 'not null' => TRUE,
  4163. ),
  4164. 'type_id' => array(
  4165. 'description' => 'TODO: please describe this field!',
  4166. 'type' => 'int',
  4167. 'not null' => TRUE,
  4168. ),
  4169. 'object_id' => array(
  4170. 'description' => 'TODO: please describe this field!',
  4171. 'type' => 'int',
  4172. 'not null' => TRUE,
  4173. ),
  4174. 'value' => array(
  4175. 'description' => 'TODO: please describe this field!',
  4176. 'type' => 'text',
  4177. 'not null' => FALSE,
  4178. ),
  4179. 'rank' => array(
  4180. 'description' => 'TODO: please describe this field!',
  4181. 'type' => 'int',
  4182. 'not null' => TRUE,
  4183. 'default' => 0,
  4184. ),
  4185. ),
  4186. 'primary key' => array(
  4187. 0 => 'elementresult_relationship_id',
  4188. ),
  4189. 'unique keys' => array(
  4190. 'elementresult_relationship_c1' => array(
  4191. 0 => 'subject_id',
  4192. 1 => 'object_id',
  4193. 2 => 'type_id',
  4194. 3 => 'rank',
  4195. ),
  4196. ),
  4197. 'indexes' => array(
  4198. 'elementresult_relationship_idx1' => array(
  4199. 0 => 'subject_id',
  4200. ),
  4201. 'elementresult_relationship_idx2' => array(
  4202. 0 => 'type_id',
  4203. ),
  4204. 'elementresult_relationship_idx3' => array(
  4205. 0 => 'object_id',
  4206. ),
  4207. 'elementresult_relationship_idx4' => array(
  4208. 0 => 'value',
  4209. ),
  4210. ),
  4211. 'foreign keys' => array(
  4212. 'cvterm' => array(
  4213. 'table' => 'cvterm',
  4214. 'columns' => array(
  4215. 'type_id' => 'cvterm_id',
  4216. ),
  4217. ),
  4218. 'elementresult' => array(
  4219. 'table' => 'elementresult',
  4220. 'columns' => array(
  4221. 'subject_id' => 'elementresult_id',
  4222. 'object_id' => 'elementresult_id',
  4223. ),
  4224. ),
  4225. ),
  4226. 'table' => 'elementresult_relationship',
  4227. 'referring_tables' => NULL,
  4228. );
  4229. return $description;
  4230. }
  4231. /**
  4232. * Implements hook_chado_schema_v1_2_environment()
  4233. * Purpose: To describe the structure of 'environment' to tripal
  4234. * @see tripal_core_chado_insert()
  4235. * @see tripal_core_chado_update()
  4236. * @see tripal_core_chado_select()
  4237. *
  4238. * @return
  4239. * An array describing the 'environment' table
  4240. *
  4241. * @ingroup tripal_chado_v1.2_schema_api
  4242. *
  4243. */
  4244. function tripal_core_chado_schema_v1_2_environment() {
  4245. $description = array(
  4246. 'description' => 'TODO: please describe this table!',
  4247. 'fields' => array(
  4248. 'environment_id' => array(
  4249. 'description' => 'TODO: please describe this field!',
  4250. 'type' => 'serial',
  4251. 'not null' => TRUE,
  4252. ),
  4253. 'uniquename' => array(
  4254. 'description' => 'TODO: please describe this field!',
  4255. 'type' => 'text',
  4256. 'not null' => TRUE,
  4257. ),
  4258. 'description' => array(
  4259. 'description' => 'TODO: please describe this field!',
  4260. 'type' => 'text',
  4261. 'not null' => FALSE,
  4262. ),
  4263. ),
  4264. 'primary key' => array(
  4265. 0 => 'environment_id',
  4266. ),
  4267. 'unique keys' => array(
  4268. 'environment_c1' => array(
  4269. 0 => 'uniquename',
  4270. ),
  4271. ),
  4272. 'indexes' => array(
  4273. 'environment_idx1' => array(
  4274. 0 => 'uniquename',
  4275. ),
  4276. ),
  4277. 'foreign keys' => array(
  4278. ),
  4279. 'table' => 'environment',
  4280. 'referring_tables' => array(
  4281. 0 => 'environment_cvterm',
  4282. 1 => 'phendesc',
  4283. 2 => 'phenotype_comparison',
  4284. 4 => 'phenstatement',
  4285. ),
  4286. );
  4287. return $description;
  4288. }
  4289. /**
  4290. * Implements hook_chado_schema_v1_2_environment_cvterm()
  4291. * Purpose: To describe the structure of 'environment_cvterm' to tripal
  4292. * @see tripal_core_chado_insert()
  4293. * @see tripal_core_chado_update()
  4294. * @see tripal_core_chado_select()
  4295. *
  4296. * @return
  4297. * An array describing the 'environment_cvterm' table
  4298. *
  4299. * @ingroup tripal_chado_v1.2_schema_api
  4300. *
  4301. */
  4302. function tripal_core_chado_schema_v1_2_environment_cvterm() {
  4303. $description = array(
  4304. 'description' => 'TODO: please describe this table!',
  4305. 'fields' => array(
  4306. 'environment_cvterm_id' => array(
  4307. 'description' => 'TODO: please describe this field!',
  4308. 'type' => 'serial',
  4309. 'not null' => TRUE,
  4310. ),
  4311. 'environment_id' => array(
  4312. 'description' => 'TODO: please describe this field!',
  4313. 'type' => 'int',
  4314. 'not null' => TRUE,
  4315. ),
  4316. 'cvterm_id' => array(
  4317. 'description' => 'TODO: please describe this field!',
  4318. 'type' => 'int',
  4319. 'not null' => TRUE,
  4320. ),
  4321. ),
  4322. 'primary key' => array(
  4323. 0 => 'environment_cvterm_id',
  4324. ),
  4325. 'unique keys' => array(
  4326. 'environment_cvterm_c1' => array(
  4327. 0 => 'environment_id',
  4328. 1 => 'cvterm_id',
  4329. ),
  4330. ),
  4331. 'indexes' => array(
  4332. 'environment_cvterm_idx1' => array(
  4333. 0 => 'environment_id',
  4334. ),
  4335. 'environment_cvterm_idx2' => array(
  4336. 0 => 'cvterm_id',
  4337. ),
  4338. ),
  4339. 'foreign keys' => array(
  4340. 'cvterm' => array(
  4341. 'table' => 'cvterm',
  4342. 'columns' => array(
  4343. 'cvterm_id' => 'cvterm_id',
  4344. ),
  4345. ),
  4346. 'environment' => array(
  4347. 'table' => 'environment',
  4348. 'columns' => array(
  4349. 'environment_id' => 'environment_id',
  4350. ),
  4351. ),
  4352. ),
  4353. 'table' => 'environment_cvterm',
  4354. 'referring_tables' => NULL,
  4355. );
  4356. return $description;
  4357. }
  4358. /**
  4359. * Implements hook_chado_schema_v1_2_expression()
  4360. * Purpose: To describe the structure of 'expression' to tripal
  4361. * @see tripal_core_chado_insert()
  4362. * @see tripal_core_chado_update()
  4363. * @see tripal_core_chado_select()
  4364. *
  4365. * @return
  4366. * An array describing the 'expression' table
  4367. *
  4368. * @ingroup tripal_chado_v1.2_schema_api
  4369. *
  4370. */
  4371. function tripal_core_chado_schema_v1_2_expression() {
  4372. $description = array(
  4373. 'description' => 'TODO: please describe this table!',
  4374. 'fields' => array(
  4375. 'expression_id' => array(
  4376. 'description' => 'TODO: please describe this field!',
  4377. 'type' => 'serial',
  4378. 'not null' => TRUE,
  4379. ),
  4380. 'uniquename' => array(
  4381. 'description' => 'TODO: please describe this field!',
  4382. 'type' => 'text',
  4383. 'not null' => TRUE,
  4384. ),
  4385. 'md5checksum' => array(
  4386. 'description' => 'TODO: please describe this field!',
  4387. 'type' => 'char',
  4388. 'length' => '32',
  4389. 'not null' => FALSE,
  4390. ),
  4391. 'description' => array(
  4392. 'description' => 'TODO: please describe this field!',
  4393. 'type' => 'text',
  4394. 'not null' => FALSE,
  4395. ),
  4396. ),
  4397. 'primary key' => array(
  4398. 0 => 'expression_id',
  4399. ),
  4400. 'unique keys' => array(
  4401. 'expression_c1' => array(
  4402. 0 => 'uniquename',
  4403. ),
  4404. ),
  4405. 'foreign keys' => array(
  4406. ),
  4407. 'table' => 'expression',
  4408. 'referring_tables' => array(
  4409. 0 => 'expression_cvterm',
  4410. 1 => 'expression_image',
  4411. 2 => 'expression_pub',
  4412. 3 => 'expressionprop',
  4413. 4 => 'feature_expression',
  4414. ),
  4415. );
  4416. return $description;
  4417. }
  4418. /**
  4419. * Implements hook_chado_schema_v1_2_expression_cvterm()
  4420. * Purpose: To describe the structure of 'expression_cvterm' to tripal
  4421. * @see tripal_core_chado_insert()
  4422. * @see tripal_core_chado_update()
  4423. * @see tripal_core_chado_select()
  4424. *
  4425. * @return
  4426. * An array describing the 'expression_cvterm' table
  4427. *
  4428. * @ingroup tripal_chado_v1.2_schema_api
  4429. *
  4430. */
  4431. function tripal_core_chado_schema_v1_2_expression_cvterm() {
  4432. $description = array(
  4433. 'description' => 'TODO: please describe this table!',
  4434. 'fields' => array(
  4435. 'expression_cvterm_id' => array(
  4436. 'description' => 'TODO: please describe this field!',
  4437. 'type' => 'serial',
  4438. 'not null' => TRUE,
  4439. ),
  4440. 'expression_id' => array(
  4441. 'description' => 'TODO: please describe this field!',
  4442. 'type' => 'int',
  4443. 'not null' => TRUE,
  4444. ),
  4445. 'cvterm_id' => array(
  4446. 'description' => 'TODO: please describe this field!',
  4447. 'type' => 'int',
  4448. 'not null' => TRUE,
  4449. ),
  4450. 'rank' => array(
  4451. 'description' => 'TODO: please describe this field!',
  4452. 'type' => 'int',
  4453. 'not null' => TRUE,
  4454. 'default' => 0,
  4455. ),
  4456. 'cvterm_type_id' => array(
  4457. 'description' => 'TODO: please describe this field!',
  4458. 'type' => 'int',
  4459. 'not null' => TRUE,
  4460. ),
  4461. ),
  4462. 'primary key' => array(
  4463. 0 => 'expression_cvterm_id',
  4464. ),
  4465. 'unique keys' => array(
  4466. 'expression_cvterm_c1' => array(
  4467. 0 => 'expression_id',
  4468. 1 => 'cvterm_id',
  4469. 2 => 'cvterm_type_id',
  4470. ),
  4471. ),
  4472. 'indexes' => array(
  4473. 'expression_cvterm_idx1' => array(
  4474. 0 => 'expression_id',
  4475. ),
  4476. 'expression_cvterm_idx2' => array(
  4477. 0 => 'cvterm_id',
  4478. ),
  4479. 'expression_cvterm_idx3' => array(
  4480. 0 => 'cvterm_type_id',
  4481. ),
  4482. ),
  4483. 'foreign keys' => array(
  4484. 'cvterm' => array(
  4485. 'table' => 'cvterm',
  4486. 'columns' => array(
  4487. 'cvterm_id' => 'cvterm_id',
  4488. 'cvterm_type_id' => 'cvterm_id',
  4489. ),
  4490. ),
  4491. 'expression' => array(
  4492. 'table' => 'expression',
  4493. 'columns' => array(
  4494. 'expression_id' => 'expression_id',
  4495. ),
  4496. ),
  4497. ),
  4498. 'table' => 'expression_cvterm',
  4499. 'referring_tables' => array(
  4500. 0 => 'expression_cvtermprop',
  4501. ),
  4502. );
  4503. return $description;
  4504. }
  4505. /**
  4506. * Implements hook_chado_schema_v1_2_expression_cvtermprop()
  4507. * Purpose: To describe the structure of 'expression_cvtermprop' to tripal
  4508. * @see tripal_core_chado_insert()
  4509. * @see tripal_core_chado_update()
  4510. * @see tripal_core_chado_select()
  4511. *
  4512. * @return
  4513. * An array describing the 'expression_cvtermprop' table
  4514. *
  4515. * @ingroup tripal_chado_v1.2_schema_api
  4516. *
  4517. */
  4518. function tripal_core_chado_schema_v1_2_expression_cvtermprop() {
  4519. $description = array(
  4520. 'description' => 'TODO: please describe this table!',
  4521. 'fields' => array(
  4522. 'expression_cvtermprop_id' => array(
  4523. 'description' => 'TODO: please describe this field!',
  4524. 'type' => 'serial',
  4525. 'not null' => TRUE,
  4526. ),
  4527. 'expression_cvterm_id' => array(
  4528. 'description' => 'TODO: please describe this field!',
  4529. 'type' => 'int',
  4530. 'not null' => TRUE,
  4531. ),
  4532. 'type_id' => array(
  4533. 'description' => 'TODO: please describe this field!',
  4534. 'type' => 'int',
  4535. 'not null' => TRUE,
  4536. ),
  4537. 'value' => array(
  4538. 'description' => 'TODO: please describe this field!',
  4539. 'type' => 'text',
  4540. 'not null' => FALSE,
  4541. ),
  4542. 'rank' => array(
  4543. 'description' => 'TODO: please describe this field!',
  4544. 'type' => 'int',
  4545. 'not null' => TRUE,
  4546. 'default' => 0,
  4547. ),
  4548. ),
  4549. 'primary key' => array(
  4550. 0 => 'expression_cvtermprop_id',
  4551. ),
  4552. 'unique keys' => array(
  4553. 'expression_cvtermprop_c1' => array(
  4554. 0 => 'expression_cvterm_id',
  4555. 1 => 'type_id',
  4556. 2 => 'rank',
  4557. ),
  4558. ),
  4559. 'indexes' => array(
  4560. 'expression_cvtermprop_idx1' => array(
  4561. 0 => 'expression_cvterm_id',
  4562. ),
  4563. 'expression_cvtermprop_idx2' => array(
  4564. 0 => 'type_id',
  4565. ),
  4566. ),
  4567. 'foreign keys' => array(
  4568. 'cvterm' => array(
  4569. 'table' => 'cvterm',
  4570. 'columns' => array(
  4571. 'type_id' => 'cvterm_id',
  4572. ),
  4573. ),
  4574. 'expression_cvterm' => array(
  4575. 'table' => 'expression_cvterm',
  4576. 'columns' => array(
  4577. 'expression_cvterm_id' => 'expression_cvterm_id',
  4578. ),
  4579. ),
  4580. ),
  4581. 'table' => 'expression_cvtermprop',
  4582. 'referring_tables' => NULL,
  4583. );
  4584. return $description;
  4585. }
  4586. /**
  4587. * Implements hook_chado_schema_v1_2_expression_image()
  4588. * Purpose: To describe the structure of 'expression_image' to tripal
  4589. * @see tripal_core_chado_insert()
  4590. * @see tripal_core_chado_update()
  4591. * @see tripal_core_chado_select()
  4592. *
  4593. * @return
  4594. * An array describing the 'expression_image' table
  4595. *
  4596. * @ingroup tripal_chado_v1.2_schema_api
  4597. *
  4598. */
  4599. function tripal_core_chado_schema_v1_2_expression_image() {
  4600. $description = array(
  4601. 'description' => 'TODO: please describe this table!',
  4602. 'fields' => array(
  4603. 'expression_image_id' => array(
  4604. 'description' => 'TODO: please describe this field!',
  4605. 'type' => 'serial',
  4606. 'not null' => TRUE,
  4607. ),
  4608. 'expression_id' => array(
  4609. 'description' => 'TODO: please describe this field!',
  4610. 'type' => 'int',
  4611. 'not null' => TRUE,
  4612. ),
  4613. 'eimage_id' => array(
  4614. 'description' => 'TODO: please describe this field!',
  4615. 'type' => 'int',
  4616. 'not null' => TRUE,
  4617. ),
  4618. ),
  4619. 'primary key' => array(
  4620. 0 => 'expression_image_id',
  4621. ),
  4622. 'unique keys' => array(
  4623. 'expression_image_c1' => array(
  4624. 0 => 'expression_id',
  4625. 1 => 'eimage_id',
  4626. ),
  4627. ),
  4628. 'indexes' => array(
  4629. 'expression_image_idx1' => array(
  4630. 0 => 'expression_id',
  4631. ),
  4632. 'expression_image_idx2' => array(
  4633. 0 => 'eimage_id',
  4634. ),
  4635. ),
  4636. 'foreign keys' => array(
  4637. 'expression' => array(
  4638. 'table' => 'expression',
  4639. 'columns' => array(
  4640. 'expression_id' => 'expression_id',
  4641. ),
  4642. ),
  4643. 'eimage' => array(
  4644. 'table' => 'eimage',
  4645. 'columns' => array(
  4646. 'eimage_id' => 'eimage_id',
  4647. ),
  4648. ),
  4649. ),
  4650. 'table' => 'expression_image',
  4651. 'referring_tables' => NULL,
  4652. );
  4653. return $description;
  4654. }
  4655. /**
  4656. * Implements hook_chado_schema_v1_2_expression_pub()
  4657. * Purpose: To describe the structure of 'expression_pub' to tripal
  4658. * @see tripal_core_chado_insert()
  4659. * @see tripal_core_chado_update()
  4660. * @see tripal_core_chado_select()
  4661. *
  4662. * @return
  4663. * An array describing the 'expression_pub' table
  4664. *
  4665. * @ingroup tripal_chado_v1.2_schema_api
  4666. *
  4667. */
  4668. function tripal_core_chado_schema_v1_2_expression_pub() {
  4669. $description = array(
  4670. 'description' => 'TODO: please describe this table!',
  4671. 'fields' => array(
  4672. 'expression_pub_id' => array(
  4673. 'description' => 'TODO: please describe this field!',
  4674. 'type' => 'serial',
  4675. 'not null' => TRUE,
  4676. ),
  4677. 'expression_id' => array(
  4678. 'description' => 'TODO: please describe this field!',
  4679. 'type' => 'int',
  4680. 'not null' => TRUE,
  4681. ),
  4682. 'pub_id' => array(
  4683. 'description' => 'TODO: please describe this field!',
  4684. 'type' => 'int',
  4685. 'not null' => TRUE,
  4686. ),
  4687. ),
  4688. 'primary key' => array(
  4689. 0 => 'expression_pub_id',
  4690. ),
  4691. 'unique keys' => array(
  4692. 'expression_pub_c1' => array(
  4693. 0 => 'expression_id',
  4694. 1 => 'pub_id',
  4695. ),
  4696. ),
  4697. 'indexes' => array(
  4698. 'expression_pub_idx1' => array(
  4699. 0 => 'expression_id',
  4700. ),
  4701. 'expression_pub_idx2' => array(
  4702. 0 => 'pub_id',
  4703. ),
  4704. ),
  4705. 'foreign keys' => array(
  4706. 'pub' => array(
  4707. 'table' => 'pub',
  4708. 'columns' => array(
  4709. 'pub_id' => 'pub_id',
  4710. ),
  4711. ),
  4712. 'expression' => array(
  4713. 'table' => 'expression',
  4714. 'columns' => array(
  4715. 'expression_id' => 'expression_id',
  4716. ),
  4717. ),
  4718. ),
  4719. 'table' => 'expression_pub',
  4720. 'referring_tables' => NULL,
  4721. );
  4722. return $description;
  4723. }
  4724. /**
  4725. * Implements hook_chado_schema_v1_2_expressionprop()
  4726. * Purpose: To describe the structure of 'expressionprop' to tripal
  4727. * @see tripal_core_chado_insert()
  4728. * @see tripal_core_chado_update()
  4729. * @see tripal_core_chado_select()
  4730. *
  4731. * @return
  4732. * An array describing the 'expressionprop' table
  4733. *
  4734. * @ingroup tripal_chado_v1.2_schema_api
  4735. *
  4736. */
  4737. function tripal_core_chado_schema_v1_2_expressionprop() {
  4738. $description = array(
  4739. 'description' => 'TODO: please describe this table!',
  4740. 'fields' => array(
  4741. 'expressionprop_id' => array(
  4742. 'description' => 'TODO: please describe this field!',
  4743. 'type' => 'serial',
  4744. 'not null' => TRUE,
  4745. ),
  4746. 'expression_id' => array(
  4747. 'description' => 'TODO: please describe this field!',
  4748. 'type' => 'int',
  4749. 'not null' => TRUE,
  4750. ),
  4751. 'type_id' => array(
  4752. 'description' => 'TODO: please describe this field!',
  4753. 'type' => 'int',
  4754. 'not null' => TRUE,
  4755. ),
  4756. 'value' => array(
  4757. 'description' => 'TODO: please describe this field!',
  4758. 'type' => 'text',
  4759. 'not null' => FALSE,
  4760. ),
  4761. 'rank' => array(
  4762. 'description' => 'TODO: please describe this field!',
  4763. 'type' => 'int',
  4764. 'not null' => TRUE,
  4765. 'default' => 0,
  4766. ),
  4767. ),
  4768. 'primary key' => array(
  4769. 0 => 'expressionprop_id',
  4770. ),
  4771. 'unique keys' => array(
  4772. 'expressionprop_c1' => array(
  4773. 0 => 'expression_id',
  4774. 1 => 'type_id',
  4775. 2 => 'rank',
  4776. ),
  4777. ),
  4778. 'indexes' => array(
  4779. 'expressionprop_idx1' => array(
  4780. 0 => 'expression_id',
  4781. ),
  4782. 'expressionprop_idx2' => array(
  4783. 0 => 'type_id',
  4784. ),
  4785. ),
  4786. 'foreign keys' => array(
  4787. 'cvterm' => array(
  4788. 'table' => 'cvterm',
  4789. 'columns' => array(
  4790. 'type_id' => 'cvterm_id',
  4791. ),
  4792. ),
  4793. 'expression' => array(
  4794. 'table' => 'expression',
  4795. 'columns' => array(
  4796. 'expression_id' => 'expression_id',
  4797. ),
  4798. ),
  4799. ),
  4800. 'table' => 'expressionprop',
  4801. 'referring_tables' => NULL,
  4802. );
  4803. return $description;
  4804. }
  4805. /**
  4806. * Implements hook_chado_schema_v1_2_feature()
  4807. * Purpose: To describe the structure of 'feature' to tripal
  4808. * @see tripal_core_chado_insert()
  4809. * @see tripal_core_chado_update()
  4810. * @see tripal_core_chado_select()
  4811. *
  4812. * @return
  4813. * An array describing the 'feature' table
  4814. *
  4815. * @ingroup tripal_chado_v1.2_schema_api
  4816. *
  4817. */
  4818. function tripal_core_chado_schema_v1_2_feature() {
  4819. $description = array(
  4820. 'description' => 'TODO: please describe this table!',
  4821. 'fields' => array(
  4822. 'feature_id' => array(
  4823. 'description' => 'TODO: please describe this field!',
  4824. 'type' => 'serial',
  4825. 'not null' => TRUE,
  4826. ),
  4827. 'dbxref_id' => array(
  4828. 'description' => 'TODO: please describe this field!',
  4829. 'type' => 'int',
  4830. 'not null' => FALSE,
  4831. ),
  4832. 'organism_id' => array(
  4833. 'description' => 'TODO: please describe this field!',
  4834. 'type' => 'int',
  4835. 'not null' => TRUE,
  4836. ),
  4837. 'name' => array(
  4838. 'description' => 'TODO: please describe this field!',
  4839. 'type' => 'varchar',
  4840. 'length' => '255',
  4841. 'not null' => FALSE,
  4842. ),
  4843. 'uniquename' => array(
  4844. 'description' => 'TODO: please describe this field!',
  4845. 'type' => 'text',
  4846. 'not null' => TRUE,
  4847. ),
  4848. 'residues' => array(
  4849. 'description' => 'TODO: please describe this field!',
  4850. 'type' => 'text',
  4851. 'not null' => FALSE,
  4852. ),
  4853. 'seqlen' => array(
  4854. 'description' => 'TODO: please describe this field!',
  4855. 'type' => 'int',
  4856. 'not null' => FALSE,
  4857. ),
  4858. 'md5checksum' => array(
  4859. 'description' => 'TODO: please describe this field!',
  4860. 'type' => 'char',
  4861. 'length' => '32',
  4862. 'not null' => FALSE,
  4863. ),
  4864. 'type_id' => array(
  4865. 'description' => 'TODO: please describe this field!',
  4866. 'type' => 'int',
  4867. 'not null' => TRUE,
  4868. ),
  4869. 'is_analysis' => array(
  4870. 'description' => 'TODO: please describe this field!',
  4871. 'type' => 'boolean',
  4872. 'not null' => TRUE,
  4873. 'default' => 'als',
  4874. ),
  4875. 'is_obsolete' => array(
  4876. 'description' => 'TODO: please describe this field!',
  4877. 'type' => 'boolean',
  4878. 'not null' => TRUE,
  4879. 'default' => 'als',
  4880. ),
  4881. 'timeaccessioned' => array(
  4882. 'description' => 'TODO: please describe this field!',
  4883. 'type' => 'datetime',
  4884. 'not null' => TRUE,
  4885. 'default' => 'ow(',
  4886. ),
  4887. 'timelastmodified' => array(
  4888. 'description' => 'TODO: please describe this field!',
  4889. 'type' => 'datetime',
  4890. 'not null' => TRUE,
  4891. 'default' => 'ow(',
  4892. ),
  4893. ),
  4894. 'primary key' => array(
  4895. 0 => 'feature_id',
  4896. ),
  4897. 'unique keys' => array(
  4898. 'feature_c1' => array(
  4899. 0 => 'organism_id',
  4900. 1 => 'uniquename',
  4901. 2 => 'type_id',
  4902. ),
  4903. ),
  4904. 'indexes' => array(
  4905. 'feature_idx1' => array(
  4906. 0 => 'dbxref_id',
  4907. ),
  4908. 'feature_idx2' => array(
  4909. 0 => 'organism_id',
  4910. ),
  4911. 'feature_idx3' => array(
  4912. 0 => 'type_id',
  4913. ),
  4914. 'feature_idx4' => array(
  4915. 0 => 'uniquename',
  4916. ),
  4917. 'feature_name_ind1' => array(
  4918. 0 => 'name',
  4919. ),
  4920. ),
  4921. 'foreign keys' => array(
  4922. 'organism' => array(
  4923. 'table' => 'organism',
  4924. 'columns' => array(
  4925. 'organism_id' => 'organism_id',
  4926. ),
  4927. ),
  4928. 'cvterm' => array(
  4929. 'table' => 'cvterm',
  4930. 'columns' => array(
  4931. 'type_id' => 'cvterm_id',
  4932. ),
  4933. ),
  4934. 'dbxref' => array(
  4935. 'table' => 'dbxref',
  4936. 'columns' => array(
  4937. 'dbxref_id' => 'dbxref_id',
  4938. ),
  4939. ),
  4940. ),
  4941. 'table' => 'feature',
  4942. 'referring_tables' => array(
  4943. 0 => 'analysisfeature',
  4944. 1 => 'cell_line_feature',
  4945. 2 => 'element',
  4946. 3 => 'feature_cvterm',
  4947. 4 => 'feature_dbxref',
  4948. 5 => 'feature_expression',
  4949. 6 => 'feature_genotype',
  4950. 8 => 'feature_phenotype',
  4951. 9 => 'feature_pub',
  4952. 10 => 'feature_relationship',
  4953. 12 => 'feature_synonym',
  4954. 13 => 'featureloc',
  4955. 15 => 'featurepos',
  4956. 17 => 'featureprop',
  4957. 18 => 'featurerange',
  4958. 23 => 'library_feature',
  4959. 24 => 'phylonode',
  4960. 25 => 'studyprop_feature',
  4961. ),
  4962. );
  4963. return $description;
  4964. }
  4965. /**
  4966. * Implements hook_chado_schema_v1_2_feature_cvterm()
  4967. * Purpose: To describe the structure of 'feature_cvterm' to tripal
  4968. * @see tripal_core_chado_insert()
  4969. * @see tripal_core_chado_update()
  4970. * @see tripal_core_chado_select()
  4971. *
  4972. * @return
  4973. * An array describing the 'feature_cvterm' table
  4974. *
  4975. * @ingroup tripal_chado_v1.2_schema_api
  4976. *
  4977. */
  4978. function tripal_core_chado_schema_v1_2_feature_cvterm() {
  4979. $description = array(
  4980. 'description' => 'TODO: please describe this table!',
  4981. 'fields' => array(
  4982. 'feature_cvterm_id' => array(
  4983. 'description' => 'TODO: please describe this field!',
  4984. 'type' => 'serial',
  4985. 'not null' => TRUE,
  4986. ),
  4987. 'feature_id' => array(
  4988. 'description' => 'TODO: please describe this field!',
  4989. 'type' => 'int',
  4990. 'not null' => TRUE,
  4991. ),
  4992. 'cvterm_id' => array(
  4993. 'description' => 'TODO: please describe this field!',
  4994. 'type' => 'int',
  4995. 'not null' => TRUE,
  4996. ),
  4997. 'pub_id' => array(
  4998. 'description' => 'TODO: please describe this field!',
  4999. 'type' => 'int',
  5000. 'not null' => TRUE,
  5001. ),
  5002. 'is_not' => array(
  5003. 'description' => 'TODO: please describe this field!',
  5004. 'type' => 'boolean',
  5005. 'not null' => TRUE,
  5006. 'default' => 'als',
  5007. ),
  5008. 'rank' => array(
  5009. 'description' => 'TODO: please describe this field!',
  5010. 'type' => 'int',
  5011. 'not null' => TRUE,
  5012. 'default' => 0,
  5013. ),
  5014. ),
  5015. 'primary key' => array(
  5016. 0 => 'feature_cvterm_id',
  5017. ),
  5018. 'unique keys' => array(
  5019. 'feature_cvterm_c1' => array(
  5020. 0 => 'feature_id',
  5021. 1 => 'cvterm_id',
  5022. 2 => 'pub_id',
  5023. 3 => 'rank',
  5024. ),
  5025. ),
  5026. 'indexes' => array(
  5027. 'feature_cvterm_idx1' => array(
  5028. 0 => 'feature_id',
  5029. ),
  5030. 'feature_cvterm_idx2' => array(
  5031. 0 => 'cvterm_id',
  5032. ),
  5033. 'feature_cvterm_idx3' => array(
  5034. 0 => 'pub_id',
  5035. ),
  5036. ),
  5037. 'foreign keys' => array(
  5038. 'cvterm' => array(
  5039. 'table' => 'cvterm',
  5040. 'columns' => array(
  5041. 'cvterm_id' => 'cvterm_id',
  5042. ),
  5043. ),
  5044. 'pub' => array(
  5045. 'table' => 'pub',
  5046. 'columns' => array(
  5047. 'pub_id' => 'pub_id',
  5048. ),
  5049. ),
  5050. 'feature' => array(
  5051. 'table' => 'feature',
  5052. 'columns' => array(
  5053. 'feature_id' => 'feature_id',
  5054. ),
  5055. ),
  5056. ),
  5057. 'table' => 'feature_cvterm',
  5058. 'referring_tables' => array(
  5059. 0 => 'feature_cvterm_dbxref',
  5060. 1 => 'feature_cvterm_pub',
  5061. 2 => 'feature_cvtermprop',
  5062. ),
  5063. );
  5064. return $description;
  5065. }
  5066. /**
  5067. * Implements hook_chado_schema_v1_2_feature_cvterm_dbxref()
  5068. * Purpose: To describe the structure of 'feature_cvterm_dbxref' to tripal
  5069. * @see tripal_core_chado_insert()
  5070. * @see tripal_core_chado_update()
  5071. * @see tripal_core_chado_select()
  5072. *
  5073. * @return
  5074. * An array describing the 'feature_cvterm_dbxref' table
  5075. *
  5076. * @ingroup tripal_chado_v1.2_schema_api
  5077. *
  5078. */
  5079. function tripal_core_chado_schema_v1_2_feature_cvterm_dbxref() {
  5080. $description = array(
  5081. 'description' => 'TODO: please describe this table!',
  5082. 'fields' => array(
  5083. 'feature_cvterm_dbxref_id' => array(
  5084. 'description' => 'TODO: please describe this field!',
  5085. 'type' => 'serial',
  5086. 'not null' => TRUE,
  5087. ),
  5088. 'feature_cvterm_id' => array(
  5089. 'description' => 'TODO: please describe this field!',
  5090. 'type' => 'int',
  5091. 'not null' => TRUE,
  5092. ),
  5093. 'dbxref_id' => array(
  5094. 'description' => 'TODO: please describe this field!',
  5095. 'type' => 'int',
  5096. 'not null' => TRUE,
  5097. ),
  5098. ),
  5099. 'primary key' => array(
  5100. 0 => 'feature_cvterm_dbxref_id',
  5101. ),
  5102. 'unique keys' => array(
  5103. 'feature_cvterm_dbxref_c1' => array(
  5104. 0 => 'feature_cvterm_id',
  5105. 1 => 'dbxref_id',
  5106. ),
  5107. ),
  5108. 'indexes' => array(
  5109. 'feature_cvterm_dbxref_idx1' => array(
  5110. 0 => 'feature_cvterm_id',
  5111. ),
  5112. 'feature_cvterm_dbxref_idx2' => array(
  5113. 0 => 'dbxref_id',
  5114. ),
  5115. ),
  5116. 'foreign keys' => array(
  5117. 'feature_cvterm' => array(
  5118. 'table' => 'feature_cvterm',
  5119. 'columns' => array(
  5120. 'feature_cvterm_id' => 'feature_cvterm_id',
  5121. ),
  5122. ),
  5123. 'dbxref' => array(
  5124. 'table' => 'dbxref',
  5125. 'columns' => array(
  5126. 'dbxref_id' => 'dbxref_id',
  5127. ),
  5128. ),
  5129. ),
  5130. 'table' => 'feature_cvterm_dbxref',
  5131. 'referring_tables' => NULL,
  5132. );
  5133. return $description;
  5134. }
  5135. /**
  5136. * Implements hook_chado_schema_v1_2_feature_cvterm_pub()
  5137. * Purpose: To describe the structure of 'feature_cvterm_pub' to tripal
  5138. * @see tripal_core_chado_insert()
  5139. * @see tripal_core_chado_update()
  5140. * @see tripal_core_chado_select()
  5141. *
  5142. * @return
  5143. * An array describing the 'feature_cvterm_pub' table
  5144. *
  5145. * @ingroup tripal_chado_v1.2_schema_api
  5146. *
  5147. */
  5148. function tripal_core_chado_schema_v1_2_feature_cvterm_pub() {
  5149. $description = array(
  5150. 'description' => 'TODO: please describe this table!',
  5151. 'fields' => array(
  5152. 'feature_cvterm_pub_id' => array(
  5153. 'description' => 'TODO: please describe this field!',
  5154. 'type' => 'serial',
  5155. 'not null' => TRUE,
  5156. ),
  5157. 'feature_cvterm_id' => array(
  5158. 'description' => 'TODO: please describe this field!',
  5159. 'type' => 'int',
  5160. 'not null' => TRUE,
  5161. ),
  5162. 'pub_id' => array(
  5163. 'description' => 'TODO: please describe this field!',
  5164. 'type' => 'int',
  5165. 'not null' => TRUE,
  5166. ),
  5167. ),
  5168. 'primary key' => array(
  5169. 0 => 'feature_cvterm_pub_id',
  5170. ),
  5171. 'unique keys' => array(
  5172. 'feature_cvterm_pub_c1' => array(
  5173. 0 => 'feature_cvterm_id',
  5174. 1 => 'pub_id',
  5175. ),
  5176. ),
  5177. 'indexes' => array(
  5178. 'feature_cvterm_pub_idx1' => array(
  5179. 0 => 'feature_cvterm_id',
  5180. ),
  5181. 'feature_cvterm_pub_idx2' => array(
  5182. 0 => 'pub_id',
  5183. ),
  5184. ),
  5185. 'foreign keys' => array(
  5186. 'feature_cvterm' => array(
  5187. 'table' => 'feature_cvterm',
  5188. 'columns' => array(
  5189. 'feature_cvterm_id' => 'feature_cvterm_id',
  5190. ),
  5191. ),
  5192. 'pub' => array(
  5193. 'table' => 'pub',
  5194. 'columns' => array(
  5195. 'pub_id' => 'pub_id',
  5196. ),
  5197. ),
  5198. ),
  5199. 'table' => 'feature_cvterm_pub',
  5200. 'referring_tables' => NULL,
  5201. );
  5202. return $description;
  5203. }
  5204. /**
  5205. * Implements hook_chado_schema_v1_2_feature_cvtermprop()
  5206. * Purpose: To describe the structure of 'feature_cvtermprop' to tripal
  5207. * @see tripal_core_chado_insert()
  5208. * @see tripal_core_chado_update()
  5209. * @see tripal_core_chado_select()
  5210. *
  5211. * @return
  5212. * An array describing the 'feature_cvtermprop' table
  5213. *
  5214. * @ingroup tripal_chado_v1.2_schema_api
  5215. *
  5216. */
  5217. function tripal_core_chado_schema_v1_2_feature_cvtermprop() {
  5218. $description = array(
  5219. 'description' => 'TODO: please describe this table!',
  5220. 'fields' => array(
  5221. 'feature_cvtermprop_id' => array(
  5222. 'description' => 'TODO: please describe this field!',
  5223. 'type' => 'serial',
  5224. 'not null' => TRUE,
  5225. ),
  5226. 'feature_cvterm_id' => array(
  5227. 'description' => 'TODO: please describe this field!',
  5228. 'type' => 'int',
  5229. 'not null' => TRUE,
  5230. ),
  5231. 'type_id' => array(
  5232. 'description' => 'TODO: please describe this field!',
  5233. 'type' => 'int',
  5234. 'not null' => TRUE,
  5235. ),
  5236. 'value' => array(
  5237. 'description' => 'TODO: please describe this field!',
  5238. 'type' => 'text',
  5239. 'not null' => FALSE,
  5240. ),
  5241. 'rank' => array(
  5242. 'description' => 'TODO: please describe this field!',
  5243. 'type' => 'int',
  5244. 'not null' => TRUE,
  5245. 'default' => 0,
  5246. ),
  5247. ),
  5248. 'primary key' => array(
  5249. 0 => 'feature_cvtermprop_id',
  5250. ),
  5251. 'unique keys' => array(
  5252. 'feature_cvtermprop_c1' => array(
  5253. 0 => 'feature_cvterm_id',
  5254. 1 => 'type_id',
  5255. 2 => 'rank',
  5256. ),
  5257. ),
  5258. 'indexes' => array(
  5259. 'feature_cvtermprop_idx1' => array(
  5260. 0 => 'feature_cvterm_id',
  5261. ),
  5262. 'feature_cvtermprop_idx2' => array(
  5263. 0 => 'type_id',
  5264. ),
  5265. ),
  5266. 'foreign keys' => array(
  5267. 'cvterm' => array(
  5268. 'table' => 'cvterm',
  5269. 'columns' => array(
  5270. 'type_id' => 'cvterm_id',
  5271. ),
  5272. ),
  5273. 'feature_cvterm' => array(
  5274. 'table' => 'feature_cvterm',
  5275. 'columns' => array(
  5276. 'feature_cvterm_id' => 'feature_cvterm_id',
  5277. ),
  5278. ),
  5279. ),
  5280. 'table' => 'feature_cvtermprop',
  5281. 'referring_tables' => NULL,
  5282. );
  5283. return $description;
  5284. }
  5285. /**
  5286. * Implements hook_chado_schema_v1_2_feature_dbxref()
  5287. * Purpose: To describe the structure of 'feature_dbxref' to tripal
  5288. * @see tripal_core_chado_insert()
  5289. * @see tripal_core_chado_update()
  5290. * @see tripal_core_chado_select()
  5291. *
  5292. * @return
  5293. * An array describing the 'feature_dbxref' table
  5294. *
  5295. * @ingroup tripal_chado_v1.2_schema_api
  5296. *
  5297. */
  5298. function tripal_core_chado_schema_v1_2_feature_dbxref() {
  5299. $description = array(
  5300. 'description' => 'TODO: please describe this table!',
  5301. 'fields' => array(
  5302. 'feature_dbxref_id' => array(
  5303. 'description' => 'TODO: please describe this field!',
  5304. 'type' => 'serial',
  5305. 'not null' => TRUE,
  5306. ),
  5307. 'feature_id' => array(
  5308. 'description' => 'TODO: please describe this field!',
  5309. 'type' => 'int',
  5310. 'not null' => TRUE,
  5311. ),
  5312. 'dbxref_id' => array(
  5313. 'description' => 'TODO: please describe this field!',
  5314. 'type' => 'int',
  5315. 'not null' => TRUE,
  5316. ),
  5317. 'is_current' => array(
  5318. 'description' => 'TODO: please describe this field!',
  5319. 'type' => 'boolean',
  5320. 'not null' => TRUE,
  5321. 'default' => 'ru',
  5322. ),
  5323. ),
  5324. 'primary key' => array(
  5325. 0 => 'feature_dbxref_id',
  5326. ),
  5327. 'unique keys' => array(
  5328. 'feature_dbxref_c1' => array(
  5329. 0 => 'feature_id',
  5330. 1 => 'dbxref_id',
  5331. ),
  5332. ),
  5333. 'indexes' => array(
  5334. 'feature_dbxref_idx1' => array(
  5335. 0 => 'feature_id',
  5336. ),
  5337. 'feature_dbxref_idx2' => array(
  5338. 0 => 'dbxref_id',
  5339. ),
  5340. ),
  5341. 'foreign keys' => array(
  5342. 'dbxref' => array(
  5343. 'table' => 'dbxref',
  5344. 'columns' => array(
  5345. 'dbxref_id' => 'dbxref_id',
  5346. ),
  5347. ),
  5348. 'feature' => array(
  5349. 'table' => 'feature',
  5350. 'columns' => array(
  5351. 'feature_id' => 'feature_id',
  5352. ),
  5353. ),
  5354. ),
  5355. 'table' => 'feature_dbxref',
  5356. 'referring_tables' => NULL,
  5357. );
  5358. return $description;
  5359. }
  5360. /**
  5361. * Implements hook_chado_schema_v1_2_feature_expression()
  5362. * Purpose: To describe the structure of 'feature_expression' to tripal
  5363. * @see tripal_core_chado_insert()
  5364. * @see tripal_core_chado_update()
  5365. * @see tripal_core_chado_select()
  5366. *
  5367. * @return
  5368. * An array describing the 'feature_expression' table
  5369. *
  5370. * @ingroup tripal_chado_v1.2_schema_api
  5371. *
  5372. */
  5373. function tripal_core_chado_schema_v1_2_feature_expression() {
  5374. $description = array(
  5375. 'description' => 'TODO: please describe this table!',
  5376. 'fields' => array(
  5377. 'feature_expression_id' => array(
  5378. 'description' => 'TODO: please describe this field!',
  5379. 'type' => 'serial',
  5380. 'not null' => TRUE,
  5381. ),
  5382. 'expression_id' => array(
  5383. 'description' => 'TODO: please describe this field!',
  5384. 'type' => 'int',
  5385. 'not null' => TRUE,
  5386. ),
  5387. 'feature_id' => array(
  5388. 'description' => 'TODO: please describe this field!',
  5389. 'type' => 'int',
  5390. 'not null' => TRUE,
  5391. ),
  5392. 'pub_id' => array(
  5393. 'description' => 'TODO: please describe this field!',
  5394. 'type' => 'int',
  5395. 'not null' => TRUE,
  5396. ),
  5397. ),
  5398. 'primary key' => array(
  5399. 0 => 'feature_expression_id',
  5400. ),
  5401. 'unique keys' => array(
  5402. 'feature_expression_c1' => array(
  5403. 0 => 'expression_id',
  5404. 1 => 'feature_id',
  5405. 2 => 'pub_id',
  5406. ),
  5407. ),
  5408. 'indexes' => array(
  5409. 'feature_expression_idx1' => array(
  5410. 0 => 'expression_id',
  5411. ),
  5412. 'feature_expression_idx2' => array(
  5413. 0 => 'feature_id',
  5414. ),
  5415. 'feature_expression_idx3' => array(
  5416. 0 => 'pub_id',
  5417. ),
  5418. ),
  5419. 'foreign keys' => array(
  5420. 'pub' => array(
  5421. 'table' => 'pub',
  5422. 'columns' => array(
  5423. 'pub_id' => 'pub_id',
  5424. ),
  5425. ),
  5426. 'feature' => array(
  5427. 'table' => 'feature',
  5428. 'columns' => array(
  5429. 'feature_id' => 'feature_id',
  5430. ),
  5431. ),
  5432. 'expression' => array(
  5433. 'table' => 'expression',
  5434. 'columns' => array(
  5435. 'expression_id' => 'expression_id',
  5436. ),
  5437. ),
  5438. ),
  5439. 'table' => 'feature_expression',
  5440. 'referring_tables' => array(
  5441. 0 => 'feature_expressionprop',
  5442. ),
  5443. );
  5444. return $description;
  5445. }
  5446. /**
  5447. * Implements hook_chado_schema_v1_2_feature_expressionprop()
  5448. * Purpose: To describe the structure of 'feature_expressionprop' to tripal
  5449. * @see tripal_core_chado_insert()
  5450. * @see tripal_core_chado_update()
  5451. * @see tripal_core_chado_select()
  5452. *
  5453. * @return
  5454. * An array describing the 'feature_expressionprop' table
  5455. *
  5456. * @ingroup tripal_chado_v1.2_schema_api
  5457. *
  5458. */
  5459. function tripal_core_chado_schema_v1_2_feature_expressionprop() {
  5460. $description = array(
  5461. 'description' => 'TODO: please describe this table!',
  5462. 'fields' => array(
  5463. 'feature_expressionprop_id' => array(
  5464. 'description' => 'TODO: please describe this field!',
  5465. 'type' => 'serial',
  5466. 'not null' => TRUE,
  5467. ),
  5468. 'feature_expression_id' => array(
  5469. 'description' => 'TODO: please describe this field!',
  5470. 'type' => 'int',
  5471. 'not null' => TRUE,
  5472. ),
  5473. 'type_id' => array(
  5474. 'description' => 'TODO: please describe this field!',
  5475. 'type' => 'int',
  5476. 'not null' => TRUE,
  5477. ),
  5478. 'value' => array(
  5479. 'description' => 'TODO: please describe this field!',
  5480. 'type' => 'text',
  5481. 'not null' => FALSE,
  5482. ),
  5483. 'rank' => array(
  5484. 'description' => 'TODO: please describe this field!',
  5485. 'type' => 'int',
  5486. 'not null' => TRUE,
  5487. 'default' => 0,
  5488. ),
  5489. ),
  5490. 'primary key' => array(
  5491. 0 => 'feature_expressionprop_id',
  5492. ),
  5493. 'unique keys' => array(
  5494. 'feature_expressionprop_c1' => array(
  5495. 0 => 'feature_expression_id',
  5496. 1 => 'type_id',
  5497. 2 => 'rank',
  5498. ),
  5499. ),
  5500. 'indexes' => array(
  5501. 'feature_expressionprop_idx1' => array(
  5502. 0 => 'feature_expression_id',
  5503. ),
  5504. 'feature_expressionprop_idx2' => array(
  5505. 0 => 'type_id',
  5506. ),
  5507. ),
  5508. 'foreign keys' => array(
  5509. 'cvterm' => array(
  5510. 'table' => 'cvterm',
  5511. 'columns' => array(
  5512. 'type_id' => 'cvterm_id',
  5513. ),
  5514. ),
  5515. 'feature_expression' => array(
  5516. 'table' => 'feature_expression',
  5517. 'columns' => array(
  5518. 'feature_expression_id' => 'feature_expression_id',
  5519. ),
  5520. ),
  5521. ),
  5522. 'table' => 'feature_expressionprop',
  5523. 'referring_tables' => NULL,
  5524. );
  5525. return $description;
  5526. }
  5527. /**
  5528. * Implements hook_chado_schema_v1_2_feature_genotype()
  5529. * Purpose: To describe the structure of 'feature_genotype' to tripal
  5530. * @see tripal_core_chado_insert()
  5531. * @see tripal_core_chado_update()
  5532. * @see tripal_core_chado_select()
  5533. *
  5534. * @return
  5535. * An array describing the 'feature_genotype' table
  5536. *
  5537. * @ingroup tripal_chado_v1.2_schema_api
  5538. *
  5539. */
  5540. function tripal_core_chado_schema_v1_2_feature_genotype() {
  5541. $description = array(
  5542. 'description' => 'TODO: please describe this table!',
  5543. 'fields' => array(
  5544. 'feature_genotype_id' => array(
  5545. 'description' => 'TODO: please describe this field!',
  5546. 'type' => 'serial',
  5547. 'not null' => TRUE,
  5548. ),
  5549. 'feature_id' => array(
  5550. 'description' => 'TODO: please describe this field!',
  5551. 'type' => 'int',
  5552. 'not null' => TRUE,
  5553. ),
  5554. 'genotype_id' => array(
  5555. 'description' => 'TODO: please describe this field!',
  5556. 'type' => 'int',
  5557. 'not null' => TRUE,
  5558. ),
  5559. 'chromosome_id' => array(
  5560. 'description' => 'TODO: please describe this field!',
  5561. 'type' => 'int',
  5562. 'not null' => FALSE,
  5563. ),
  5564. 'rank' => array(
  5565. 'description' => 'TODO: please describe this field!',
  5566. 'type' => 'int',
  5567. 'not null' => TRUE,
  5568. ),
  5569. 'cgroup' => array(
  5570. 'description' => 'TODO: please describe this field!',
  5571. 'type' => 'int',
  5572. 'not null' => TRUE,
  5573. ),
  5574. 'cvterm_id' => array(
  5575. 'description' => 'TODO: please describe this field!',
  5576. 'type' => 'int',
  5577. 'not null' => TRUE,
  5578. ),
  5579. ),
  5580. 'primary key' => array(
  5581. 0 => 'feature_genotype_id',
  5582. ),
  5583. 'unique keys' => array(
  5584. 'feature_genotype_c1' => array(
  5585. 0 => 'feature_id',
  5586. 1 => 'genotype_id',
  5587. 2 => 'cvterm_id',
  5588. 3 => 'chromosome_id',
  5589. 4 => 'rank',
  5590. 5 => 'cgroup',
  5591. ),
  5592. ),
  5593. 'indexes' => array(
  5594. 'feature_genotype_idx1' => array(
  5595. 0 => 'feature_id',
  5596. ),
  5597. 'feature_genotype_idx2' => array(
  5598. 0 => 'genotype_id',
  5599. ),
  5600. ),
  5601. 'foreign keys' => array(
  5602. 'cvterm' => array(
  5603. 'table' => 'cvterm',
  5604. 'columns' => array(
  5605. 'cvterm_id' => 'cvterm_id',
  5606. ),
  5607. ),
  5608. 'feature' => array(
  5609. 'table' => 'feature',
  5610. 'columns' => array(
  5611. 'feature_id' => 'feature_id',
  5612. 'chromosome_id' => 'feature_id',
  5613. ),
  5614. ),
  5615. 'genotype' => array(
  5616. 'table' => 'genotype',
  5617. 'columns' => array(
  5618. 'genotype_id' => 'genotype_id',
  5619. ),
  5620. ),
  5621. ),
  5622. 'table' => 'feature_genotype',
  5623. 'referring_tables' => NULL,
  5624. );
  5625. return $description;
  5626. }
  5627. /**
  5628. * Implements hook_chado_schema_v1_2_feature_phenotype()
  5629. * Purpose: To describe the structure of 'feature_phenotype' to tripal
  5630. * @see tripal_core_chado_insert()
  5631. * @see tripal_core_chado_update()
  5632. * @see tripal_core_chado_select()
  5633. *
  5634. * @return
  5635. * An array describing the 'feature_phenotype' table
  5636. *
  5637. * @ingroup tripal_chado_v1.2_schema_api
  5638. *
  5639. */
  5640. function tripal_core_chado_schema_v1_2_feature_phenotype() {
  5641. $description = array(
  5642. 'description' => 'TODO: please describe this table!',
  5643. 'fields' => array(
  5644. 'feature_phenotype_id' => array(
  5645. 'description' => 'TODO: please describe this field!',
  5646. 'type' => 'serial',
  5647. 'not null' => TRUE,
  5648. ),
  5649. 'feature_id' => array(
  5650. 'description' => 'TODO: please describe this field!',
  5651. 'type' => 'int',
  5652. 'not null' => TRUE,
  5653. ),
  5654. 'phenotype_id' => array(
  5655. 'description' => 'TODO: please describe this field!',
  5656. 'type' => 'int',
  5657. 'not null' => TRUE,
  5658. ),
  5659. ),
  5660. 'primary key' => array(
  5661. 0 => 'feature_phenotype_id',
  5662. ),
  5663. 'unique keys' => array(
  5664. 'feature_phenotype_c1' => array(
  5665. 0 => 'feature_id',
  5666. 1 => 'phenotype_id',
  5667. ),
  5668. ),
  5669. 'indexes' => array(
  5670. 'feature_phenotype_idx1' => array(
  5671. 0 => 'feature_id',
  5672. ),
  5673. 'feature_phenotype_idx2' => array(
  5674. 0 => 'phenotype_id',
  5675. ),
  5676. ),
  5677. 'foreign keys' => array(
  5678. 'feature' => array(
  5679. 'table' => 'feature',
  5680. 'columns' => array(
  5681. 'feature_id' => 'feature_id',
  5682. ),
  5683. ),
  5684. 'phenotype' => array(
  5685. 'table' => 'phenotype',
  5686. 'columns' => array(
  5687. 'phenotype_id' => 'phenotype_id',
  5688. ),
  5689. ),
  5690. ),
  5691. 'table' => 'feature_phenotype',
  5692. 'referring_tables' => NULL,
  5693. );
  5694. return $description;
  5695. }
  5696. /**
  5697. * Implements hook_chado_schema_v1_2_feature_pub()
  5698. * Purpose: To describe the structure of 'feature_pub' to tripal
  5699. * @see tripal_core_chado_insert()
  5700. * @see tripal_core_chado_update()
  5701. * @see tripal_core_chado_select()
  5702. *
  5703. * @return
  5704. * An array describing the 'feature_pub' table
  5705. *
  5706. * @ingroup tripal_chado_v1.2_schema_api
  5707. *
  5708. */
  5709. function tripal_core_chado_schema_v1_2_feature_pub() {
  5710. $description = array(
  5711. 'description' => 'TODO: please describe this table!',
  5712. 'fields' => array(
  5713. 'feature_pub_id' => array(
  5714. 'description' => 'TODO: please describe this field!',
  5715. 'type' => 'serial',
  5716. 'not null' => TRUE,
  5717. ),
  5718. 'feature_id' => array(
  5719. 'description' => 'TODO: please describe this field!',
  5720. 'type' => 'int',
  5721. 'not null' => TRUE,
  5722. ),
  5723. 'pub_id' => array(
  5724. 'description' => 'TODO: please describe this field!',
  5725. 'type' => 'int',
  5726. 'not null' => TRUE,
  5727. ),
  5728. ),
  5729. 'primary key' => array(
  5730. 0 => 'feature_pub_id',
  5731. ),
  5732. 'unique keys' => array(
  5733. 'feature_pub_c1' => array(
  5734. 0 => 'feature_id',
  5735. 1 => 'pub_id',
  5736. ),
  5737. ),
  5738. 'indexes' => array(
  5739. 'feature_pub_idx1' => array(
  5740. 0 => 'feature_id',
  5741. ),
  5742. 'feature_pub_idx2' => array(
  5743. 0 => 'pub_id',
  5744. ),
  5745. ),
  5746. 'foreign keys' => array(
  5747. 'pub' => array(
  5748. 'table' => 'pub',
  5749. 'columns' => array(
  5750. 'pub_id' => 'pub_id',
  5751. ),
  5752. ),
  5753. 'feature' => array(
  5754. 'table' => 'feature',
  5755. 'columns' => array(
  5756. 'feature_id' => 'feature_id',
  5757. ),
  5758. ),
  5759. ),
  5760. 'table' => 'feature_pub',
  5761. 'referring_tables' => array(
  5762. 0 => 'feature_pubprop',
  5763. ),
  5764. );
  5765. return $description;
  5766. }
  5767. /**
  5768. * Implements hook_chado_schema_v1_2_feature_pubprop()
  5769. * Purpose: To describe the structure of 'feature_pubprop' to tripal
  5770. * @see tripal_core_chado_insert()
  5771. * @see tripal_core_chado_update()
  5772. * @see tripal_core_chado_select()
  5773. *
  5774. * @return
  5775. * An array describing the 'feature_pubprop' table
  5776. *
  5777. * @ingroup tripal_chado_v1.2_schema_api
  5778. *
  5779. */
  5780. function tripal_core_chado_schema_v1_2_feature_pubprop() {
  5781. $description = array(
  5782. 'description' => 'TODO: please describe this table!',
  5783. 'fields' => array(
  5784. 'feature_pubprop_id' => array(
  5785. 'description' => 'TODO: please describe this field!',
  5786. 'type' => 'serial',
  5787. 'not null' => TRUE,
  5788. ),
  5789. 'feature_pub_id' => array(
  5790. 'description' => 'TODO: please describe this field!',
  5791. 'type' => 'int',
  5792. 'not null' => TRUE,
  5793. ),
  5794. 'type_id' => array(
  5795. 'description' => 'TODO: please describe this field!',
  5796. 'type' => 'int',
  5797. 'not null' => TRUE,
  5798. ),
  5799. 'value' => array(
  5800. 'description' => 'TODO: please describe this field!',
  5801. 'type' => 'text',
  5802. 'not null' => FALSE,
  5803. ),
  5804. 'rank' => array(
  5805. 'description' => 'TODO: please describe this field!',
  5806. 'type' => 'int',
  5807. 'not null' => TRUE,
  5808. 'default' => 0,
  5809. ),
  5810. ),
  5811. 'primary key' => array(
  5812. 0 => 'feature_pubprop_id',
  5813. ),
  5814. 'unique keys' => array(
  5815. 'feature_pubprop_c1' => array(
  5816. 0 => 'feature_pub_id',
  5817. 1 => 'type_id',
  5818. 2 => 'rank',
  5819. ),
  5820. ),
  5821. 'indexes' => array(
  5822. 'feature_pubprop_idx1' => array(
  5823. 0 => 'feature_pub_id',
  5824. ),
  5825. ),
  5826. 'foreign keys' => array(
  5827. 'cvterm' => array(
  5828. 'table' => 'cvterm',
  5829. 'columns' => array(
  5830. 'type_id' => 'cvterm_id',
  5831. ),
  5832. ),
  5833. 'feature_pub' => array(
  5834. 'table' => 'feature_pub',
  5835. 'columns' => array(
  5836. 'feature_pub_id' => 'feature_pub_id',
  5837. ),
  5838. ),
  5839. ),
  5840. 'table' => 'feature_pubprop',
  5841. 'referring_tables' => NULL,
  5842. );
  5843. return $description;
  5844. }
  5845. /**
  5846. * Implements hook_chado_schema_v1_2_feature_relationship()
  5847. * Purpose: To describe the structure of 'feature_relationship' to tripal
  5848. * @see tripal_core_chado_insert()
  5849. * @see tripal_core_chado_update()
  5850. * @see tripal_core_chado_select()
  5851. *
  5852. * @return
  5853. * An array describing the 'feature_relationship' table
  5854. *
  5855. * @ingroup tripal_chado_v1.2_schema_api
  5856. *
  5857. */
  5858. function tripal_core_chado_schema_v1_2_feature_relationship() {
  5859. $description = array(
  5860. 'description' => 'TODO: please describe this table!',
  5861. 'fields' => array(
  5862. 'feature_relationship_id' => array(
  5863. 'description' => 'TODO: please describe this field!',
  5864. 'type' => 'serial',
  5865. 'not null' => TRUE,
  5866. ),
  5867. 'subject_id' => array(
  5868. 'description' => 'TODO: please describe this field!',
  5869. 'type' => 'int',
  5870. 'not null' => TRUE,
  5871. ),
  5872. 'object_id' => array(
  5873. 'description' => 'TODO: please describe this field!',
  5874. 'type' => 'int',
  5875. 'not null' => TRUE,
  5876. ),
  5877. 'type_id' => array(
  5878. 'description' => 'TODO: please describe this field!',
  5879. 'type' => 'int',
  5880. 'not null' => TRUE,
  5881. ),
  5882. 'value' => array(
  5883. 'description' => 'TODO: please describe this field!',
  5884. 'type' => 'text',
  5885. 'not null' => FALSE,
  5886. ),
  5887. 'rank' => array(
  5888. 'description' => 'TODO: please describe this field!',
  5889. 'type' => 'int',
  5890. 'not null' => TRUE,
  5891. 'default' => 0,
  5892. ),
  5893. ),
  5894. 'primary key' => array(
  5895. 0 => 'feature_relationship_id',
  5896. ),
  5897. 'unique keys' => array(
  5898. 'feature_relationship_c1' => array(
  5899. 0 => 'subject_id',
  5900. 1 => 'object_id',
  5901. 2 => 'type_id',
  5902. 3 => 'rank',
  5903. ),
  5904. ),
  5905. 'indexes' => array(
  5906. 'feature_relationship_idx1' => array(
  5907. 0 => 'subject_id',
  5908. ),
  5909. 'feature_relationship_idx2' => array(
  5910. 0 => 'object_id',
  5911. ),
  5912. 'feature_relationship_idx3' => array(
  5913. 0 => 'type_id',
  5914. ),
  5915. ),
  5916. 'foreign keys' => array(
  5917. 'cvterm' => array(
  5918. 'table' => 'cvterm',
  5919. 'columns' => array(
  5920. 'type_id' => 'cvterm_id',
  5921. ),
  5922. ),
  5923. 'feature' => array(
  5924. 'table' => 'feature',
  5925. 'columns' => array(
  5926. 'subject_id' => 'feature_id',
  5927. 'object_id' => 'feature_id',
  5928. ),
  5929. ),
  5930. ),
  5931. 'table' => 'feature_relationship',
  5932. 'referring_tables' => array(
  5933. 0 => 'feature_relationship_pub',
  5934. 1 => 'feature_relationshipprop',
  5935. ),
  5936. );
  5937. return $description;
  5938. }
  5939. /**
  5940. * Implements hook_chado_schema_v1_2_feature_relationship_pub()
  5941. * Purpose: To describe the structure of 'feature_relationship_pub' to tripal
  5942. * @see tripal_core_chado_insert()
  5943. * @see tripal_core_chado_update()
  5944. * @see tripal_core_chado_select()
  5945. *
  5946. * @return
  5947. * An array describing the 'feature_relationship_pub' table
  5948. *
  5949. * @ingroup tripal_chado_v1.2_schema_api
  5950. *
  5951. */
  5952. function tripal_core_chado_schema_v1_2_feature_relationship_pub() {
  5953. $description = array(
  5954. 'description' => 'TODO: please describe this table!',
  5955. 'fields' => array(
  5956. 'feature_relationship_pub_id' => array(
  5957. 'description' => 'TODO: please describe this field!',
  5958. 'type' => 'serial',
  5959. 'not null' => TRUE,
  5960. ),
  5961. 'feature_relationship_id' => array(
  5962. 'description' => 'TODO: please describe this field!',
  5963. 'type' => 'int',
  5964. 'not null' => TRUE,
  5965. ),
  5966. 'pub_id' => array(
  5967. 'description' => 'TODO: please describe this field!',
  5968. 'type' => 'int',
  5969. 'not null' => TRUE,
  5970. ),
  5971. ),
  5972. 'primary key' => array(
  5973. 0 => 'feature_relationship_pub_id',
  5974. ),
  5975. 'unique keys' => array(
  5976. 'feature_relationship_pub_c1' => array(
  5977. 0 => 'feature_relationship_id',
  5978. 1 => 'pub_id',
  5979. ),
  5980. ),
  5981. 'indexes' => array(
  5982. 'feature_relationship_pub_idx1' => array(
  5983. 0 => 'feature_relationship_id',
  5984. ),
  5985. 'feature_relationship_pub_idx2' => array(
  5986. 0 => 'pub_id',
  5987. ),
  5988. ),
  5989. 'foreign keys' => array(
  5990. 'feature_relationship' => array(
  5991. 'table' => 'feature_relationship',
  5992. 'columns' => array(
  5993. 'feature_relationship_id' => 'feature_relationship_id',
  5994. ),
  5995. ),
  5996. 'pub' => array(
  5997. 'table' => 'pub',
  5998. 'columns' => array(
  5999. 'pub_id' => 'pub_id',
  6000. ),
  6001. ),
  6002. ),
  6003. 'table' => 'feature_relationship_pub',
  6004. 'referring_tables' => NULL,
  6005. );
  6006. return $description;
  6007. }
  6008. /**
  6009. * Implements hook_chado_schema_v1_2_feature_relationshipprop()
  6010. * Purpose: To describe the structure of 'feature_relationshipprop' to tripal
  6011. * @see tripal_core_chado_insert()
  6012. * @see tripal_core_chado_update()
  6013. * @see tripal_core_chado_select()
  6014. *
  6015. * @return
  6016. * An array describing the 'feature_relationshipprop' table
  6017. *
  6018. * @ingroup tripal_chado_v1.2_schema_api
  6019. *
  6020. */
  6021. function tripal_core_chado_schema_v1_2_feature_relationshipprop() {
  6022. $description = array(
  6023. 'description' => 'TODO: please describe this table!',
  6024. 'fields' => array(
  6025. 'feature_relationshipprop_id' => array(
  6026. 'description' => 'TODO: please describe this field!',
  6027. 'type' => 'serial',
  6028. 'not null' => TRUE,
  6029. ),
  6030. 'feature_relationship_id' => array(
  6031. 'description' => 'TODO: please describe this field!',
  6032. 'type' => 'int',
  6033. 'not null' => TRUE,
  6034. ),
  6035. 'type_id' => array(
  6036. 'description' => 'TODO: please describe this field!',
  6037. 'type' => 'int',
  6038. 'not null' => TRUE,
  6039. ),
  6040. 'value' => array(
  6041. 'description' => 'TODO: please describe this field!',
  6042. 'type' => 'text',
  6043. 'not null' => FALSE,
  6044. ),
  6045. 'rank' => array(
  6046. 'description' => 'TODO: please describe this field!',
  6047. 'type' => 'int',
  6048. 'not null' => TRUE,
  6049. 'default' => 0,
  6050. ),
  6051. ),
  6052. 'primary key' => array(
  6053. 0 => 'feature_relationshipprop_id',
  6054. ),
  6055. 'unique keys' => array(
  6056. 'feature_relationshipprop_c1' => array(
  6057. 0 => 'feature_relationship_id',
  6058. 1 => 'type_id',
  6059. 2 => 'rank',
  6060. ),
  6061. ),
  6062. 'indexes' => array(
  6063. 'feature_relationshipprop_idx1' => array(
  6064. 0 => 'feature_relationship_id',
  6065. ),
  6066. 'feature_relationshipprop_idx2' => array(
  6067. 0 => 'type_id',
  6068. ),
  6069. ),
  6070. 'foreign keys' => array(
  6071. 'cvterm' => array(
  6072. 'table' => 'cvterm',
  6073. 'columns' => array(
  6074. 'type_id' => 'cvterm_id',
  6075. ),
  6076. ),
  6077. 'feature_relationship' => array(
  6078. 'table' => 'feature_relationship',
  6079. 'columns' => array(
  6080. 'feature_relationship_id' => 'feature_relationship_id',
  6081. ),
  6082. ),
  6083. ),
  6084. 'table' => 'feature_relationshipprop',
  6085. 'referring_tables' => array(
  6086. 0 => 'feature_relationshipprop_pub',
  6087. ),
  6088. );
  6089. return $description;
  6090. }
  6091. /**
  6092. * Implements hook_chado_schema_v1_2_feature_relationshipprop_pub()
  6093. * Purpose: To describe the structure of 'feature_relationshipprop_pub' to tripal
  6094. * @see tripal_core_chado_insert()
  6095. * @see tripal_core_chado_update()
  6096. * @see tripal_core_chado_select()
  6097. *
  6098. * @return
  6099. * An array describing the 'feature_relationshipprop_pub' table
  6100. *
  6101. * @ingroup tripal_chado_v1.2_schema_api
  6102. *
  6103. */
  6104. function tripal_core_chado_schema_v1_2_feature_relationshipprop_pub() {
  6105. $description = array(
  6106. 'description' => 'TODO: please describe this table!',
  6107. 'fields' => array(
  6108. 'feature_relationshipprop_pub_id' => array(
  6109. 'description' => 'TODO: please describe this field!',
  6110. 'type' => 'serial',
  6111. 'not null' => TRUE,
  6112. ),
  6113. 'feature_relationshipprop_id' => array(
  6114. 'description' => 'TODO: please describe this field!',
  6115. 'type' => 'int',
  6116. 'not null' => TRUE,
  6117. ),
  6118. 'pub_id' => array(
  6119. 'description' => 'TODO: please describe this field!',
  6120. 'type' => 'int',
  6121. 'not null' => TRUE,
  6122. ),
  6123. ),
  6124. 'primary key' => array(
  6125. 0 => 'feature_relationshipprop_pub_id',
  6126. ),
  6127. 'unique keys' => array(
  6128. 'feature_relationshipprop_pub_c1' => array(
  6129. 0 => 'feature_relationshipprop_id',
  6130. 1 => 'pub_id',
  6131. ),
  6132. ),
  6133. 'indexes' => array(
  6134. 'feature_relationshipprop_pub_idx1' => array(
  6135. 0 => 'feature_relationshipprop_id',
  6136. ),
  6137. 'feature_relationshipprop_pub_idx2' => array(
  6138. 0 => 'pub_id',
  6139. ),
  6140. ),
  6141. 'foreign keys' => array(
  6142. 'feature_relationshipprop' => array(
  6143. 'table' => 'feature_relationshipprop',
  6144. 'columns' => array(
  6145. 'feature_relationshipprop_id' => 'feature_relationshipprop_id',
  6146. ),
  6147. ),
  6148. 'pub' => array(
  6149. 'table' => 'pub',
  6150. 'columns' => array(
  6151. 'pub_id' => 'pub_id',
  6152. ),
  6153. ),
  6154. ),
  6155. 'table' => 'feature_relationshipprop_pub',
  6156. 'referring_tables' => NULL,
  6157. );
  6158. return $description;
  6159. }
  6160. /**
  6161. * Implements hook_chado_schema_v1_2_feature_synonym()
  6162. * Purpose: To describe the structure of 'feature_synonym' to tripal
  6163. * @see tripal_core_chado_insert()
  6164. * @see tripal_core_chado_update()
  6165. * @see tripal_core_chado_select()
  6166. *
  6167. * @return
  6168. * An array describing the 'feature_synonym' table
  6169. *
  6170. * @ingroup tripal_chado_v1.2_schema_api
  6171. *
  6172. */
  6173. function tripal_core_chado_schema_v1_2_feature_synonym() {
  6174. $description = array(
  6175. 'description' => 'TODO: please describe this table!',
  6176. 'fields' => array(
  6177. 'feature_synonym_id' => array(
  6178. 'description' => 'TODO: please describe this field!',
  6179. 'type' => 'serial',
  6180. 'not null' => TRUE,
  6181. ),
  6182. 'synonym_id' => array(
  6183. 'description' => 'TODO: please describe this field!',
  6184. 'type' => 'int',
  6185. 'not null' => TRUE,
  6186. ),
  6187. 'feature_id' => array(
  6188. 'description' => 'TODO: please describe this field!',
  6189. 'type' => 'int',
  6190. 'not null' => TRUE,
  6191. ),
  6192. 'pub_id' => array(
  6193. 'description' => 'TODO: please describe this field!',
  6194. 'type' => 'int',
  6195. 'not null' => TRUE,
  6196. ),
  6197. 'is_current' => array(
  6198. 'description' => 'TODO: please describe this field!',
  6199. 'type' => 'boolean',
  6200. 'not null' => TRUE,
  6201. 'default' => 'als',
  6202. ),
  6203. 'is_internal' => array(
  6204. 'description' => 'TODO: please describe this field!',
  6205. 'type' => 'boolean',
  6206. 'not null' => TRUE,
  6207. 'default' => 'als',
  6208. ),
  6209. ),
  6210. 'primary key' => array(
  6211. 0 => 'feature_synonym_id',
  6212. ),
  6213. 'unique keys' => array(
  6214. 'feature_synonym_c1' => array(
  6215. 0 => 'synonym_id',
  6216. 1 => 'feature_id',
  6217. 2 => 'pub_id',
  6218. ),
  6219. ),
  6220. 'indexes' => array(
  6221. 'feature_synonym_idx1' => array(
  6222. 0 => 'synonym_id',
  6223. ),
  6224. 'feature_synonym_idx2' => array(
  6225. 0 => 'feature_id',
  6226. ),
  6227. 'feature_synonym_idx3' => array(
  6228. 0 => 'pub_id',
  6229. ),
  6230. ),
  6231. 'foreign keys' => array(
  6232. 'pub' => array(
  6233. 'table' => 'pub',
  6234. 'columns' => array(
  6235. 'pub_id' => 'pub_id',
  6236. ),
  6237. ),
  6238. 'feature' => array(
  6239. 'table' => 'feature',
  6240. 'columns' => array(
  6241. 'feature_id' => 'feature_id',
  6242. ),
  6243. ),
  6244. 'synonym' => array(
  6245. 'table' => 'synonym',
  6246. 'columns' => array(
  6247. 'synonym_id' => 'synonym_id',
  6248. ),
  6249. ),
  6250. ),
  6251. 'table' => 'feature_synonym',
  6252. 'referring_tables' => NULL,
  6253. );
  6254. return $description;
  6255. }
  6256. /**
  6257. * Implements hook_chado_schema_v1_2_featureloc()
  6258. * Purpose: To describe the structure of 'featureloc' to tripal
  6259. * @see tripal_core_chado_insert()
  6260. * @see tripal_core_chado_update()
  6261. * @see tripal_core_chado_select()
  6262. *
  6263. * @return
  6264. * An array describing the 'featureloc' table
  6265. *
  6266. * @ingroup tripal_chado_v1.2_schema_api
  6267. *
  6268. */
  6269. function tripal_core_chado_schema_v1_2_featureloc() {
  6270. $description = array(
  6271. 'description' => 'TODO: please describe this table!',
  6272. 'fields' => array(
  6273. 'featureloc_id' => array(
  6274. 'description' => 'TODO: please describe this field!',
  6275. 'type' => 'serial',
  6276. 'not null' => TRUE,
  6277. ),
  6278. 'feature_id' => array(
  6279. 'description' => 'TODO: please describe this field!',
  6280. 'type' => 'int',
  6281. 'not null' => TRUE,
  6282. ),
  6283. 'srcfeature_id' => array(
  6284. 'description' => 'TODO: please describe this field!',
  6285. 'type' => 'int',
  6286. 'not null' => FALSE,
  6287. ),
  6288. 'fmin' => array(
  6289. 'description' => 'TODO: please describe this field!',
  6290. 'type' => 'int',
  6291. 'not null' => FALSE,
  6292. ),
  6293. 'is_fmin_partial' => array(
  6294. 'description' => 'TODO: please describe this field!',
  6295. 'type' => 'boolean',
  6296. 'not null' => TRUE,
  6297. 'default' => 'als',
  6298. ),
  6299. 'fmax' => array(
  6300. 'description' => 'TODO: please describe this field!',
  6301. 'type' => 'int',
  6302. 'not null' => FALSE,
  6303. ),
  6304. 'is_fmax_partial' => array(
  6305. 'description' => 'TODO: please describe this field!',
  6306. 'type' => 'boolean',
  6307. 'not null' => TRUE,
  6308. 'default' => 'als',
  6309. ),
  6310. 'strand' => array(
  6311. 'description' => 'TODO: please describe this field!',
  6312. 'type' => 'int',
  6313. 'size' => 'small',
  6314. 'not null' => FALSE,
  6315. ),
  6316. 'phase' => array(
  6317. 'description' => 'TODO: please describe this field!',
  6318. 'type' => 'int',
  6319. 'not null' => FALSE,
  6320. ),
  6321. 'residue_info' => array(
  6322. 'description' => 'TODO: please describe this field!',
  6323. 'type' => 'text',
  6324. 'not null' => FALSE,
  6325. ),
  6326. 'locgroup' => array(
  6327. 'description' => 'TODO: please describe this field!',
  6328. 'type' => 'int',
  6329. 'not null' => TRUE,
  6330. 'default' => 0,
  6331. ),
  6332. 'rank' => array(
  6333. 'description' => 'TODO: please describe this field!',
  6334. 'type' => 'int',
  6335. 'not null' => TRUE,
  6336. 'default' => 0,
  6337. ),
  6338. ),
  6339. 'primary key' => array(
  6340. 0 => 'featureloc_id',
  6341. ),
  6342. 'unique keys' => array(
  6343. 'featureloc_c1' => array(
  6344. 0 => 'feature_id',
  6345. 1 => 'locgroup',
  6346. 2 => 'rank',
  6347. ),
  6348. ),
  6349. 'indexes' => array(
  6350. 'binloc_boxrange' => array(
  6351. 0 => 'fmin',
  6352. ),
  6353. 'binloc_boxrange_src' => array(
  6354. 0 => 'srcfeature_id',
  6355. 1 => 'fmin',
  6356. ),
  6357. 'featureloc_idx1' => array(
  6358. 0 => 'feature_id',
  6359. ),
  6360. 'featureloc_idx2' => array(
  6361. 0 => 'srcfeature_id',
  6362. ),
  6363. 'featureloc_idx3' => array(
  6364. 0 => 'srcfeature_id',
  6365. 1 => 'fmin',
  6366. 2 => 'fmax',
  6367. ),
  6368. ),
  6369. 'foreign keys' => array(
  6370. 'feature' => array(
  6371. 'table' => 'feature',
  6372. 'columns' => array(
  6373. 'feature_id' => 'feature_id',
  6374. 'srcfeature_id' => 'feature_id',
  6375. ),
  6376. ),
  6377. ),
  6378. 'referring_tables' => array(
  6379. 0 => 'featureloc_pub',
  6380. ),
  6381. 'table' => 'featureloc',
  6382. );
  6383. return $description;
  6384. }
  6385. /**
  6386. * Implements hook_chado_schema_v1_2_featureloc_pub()
  6387. * Purpose: To describe the structure of 'featureloc_pub' to tripal
  6388. * @see tripal_core_chado_insert()
  6389. * @see tripal_core_chado_update()
  6390. * @see tripal_core_chado_select()
  6391. *
  6392. * @return
  6393. * An array describing the 'featureloc_pub' table
  6394. *
  6395. * @ingroup tripal_chado_v1.2_schema_api
  6396. *
  6397. */
  6398. function tripal_core_chado_schema_v1_2_featureloc_pub() {
  6399. $description = array(
  6400. 'description' => 'TODO: please describe this table!',
  6401. 'fields' => array(
  6402. 'featureloc_pub_id' => array(
  6403. 'description' => 'TODO: please describe this field!',
  6404. 'type' => 'serial',
  6405. 'not null' => TRUE,
  6406. ),
  6407. 'featureloc_id' => array(
  6408. 'description' => 'TODO: please describe this field!',
  6409. 'type' => 'int',
  6410. 'not null' => TRUE,
  6411. ),
  6412. 'pub_id' => array(
  6413. 'description' => 'TODO: please describe this field!',
  6414. 'type' => 'int',
  6415. 'not null' => TRUE,
  6416. ),
  6417. ),
  6418. 'primary key' => array(
  6419. 0 => 'featureloc_pub_id',
  6420. ),
  6421. 'unique keys' => array(
  6422. 'featureloc_pub_c1' => array(
  6423. 0 => 'featureloc_id',
  6424. 1 => 'pub_id',
  6425. ),
  6426. ),
  6427. 'indexes' => array(
  6428. 'featureloc_pub_idx1' => array(
  6429. 0 => 'featureloc_id',
  6430. ),
  6431. 'featureloc_pub_idx2' => array(
  6432. 0 => 'pub_id',
  6433. ),
  6434. ),
  6435. 'foreign keys' => array(
  6436. 'featureloc' => array(
  6437. 'table' => 'featureloc',
  6438. 'columns' => array(
  6439. 'featureloc_id' => 'featureloc_id',
  6440. ),
  6441. ),
  6442. 'pub' => array(
  6443. 'table' => 'pub',
  6444. 'columns' => array(
  6445. 'pub_id' => 'pub_id',
  6446. ),
  6447. ),
  6448. ),
  6449. 'table' => 'featureloc_pub',
  6450. 'referring_tables' => NULL,
  6451. );
  6452. return $description;
  6453. }
  6454. /**
  6455. * Implements hook_chado_schema_v1_2_featuremap()
  6456. * Purpose: To describe the structure of 'featuremap' to tripal
  6457. * @see tripal_core_chado_insert()
  6458. * @see tripal_core_chado_update()
  6459. * @see tripal_core_chado_select()
  6460. *
  6461. * @return
  6462. * An array describing the 'featuremap' table
  6463. *
  6464. * @ingroup tripal_chado_v1.2_schema_api
  6465. *
  6466. */
  6467. function tripal_core_chado_schema_v1_2_featuremap() {
  6468. $description = array(
  6469. 'description' => 'TODO: please describe this table!',
  6470. 'fields' => array(
  6471. 'featuremap_id' => array(
  6472. 'description' => 'TODO: please describe this field!',
  6473. 'type' => 'serial',
  6474. 'not null' => TRUE,
  6475. ),
  6476. 'name' => array(
  6477. 'description' => 'TODO: please describe this field!',
  6478. 'type' => 'varchar',
  6479. 'length' => '255',
  6480. 'not null' => FALSE,
  6481. ),
  6482. 'description' => array(
  6483. 'description' => 'TODO: please describe this field!',
  6484. 'type' => 'text',
  6485. 'not null' => FALSE,
  6486. ),
  6487. 'unittype_id' => array(
  6488. 'description' => 'TODO: please describe this field!',
  6489. 'type' => 'int',
  6490. 'not null' => FALSE,
  6491. ),
  6492. ),
  6493. 'primary key' => array(
  6494. 0 => 'featuremap_id',
  6495. ),
  6496. 'unique keys' => array(
  6497. 'featuremap_c1' => array(
  6498. 0 => 'name',
  6499. ),
  6500. ),
  6501. 'foreign keys' => array(
  6502. 'cvterm' => array(
  6503. 'table' => 'cvterm',
  6504. 'columns' => array(
  6505. 'unittype_id' => 'cvterm_id',
  6506. ),
  6507. ),
  6508. ),
  6509. 'table' => 'featuremap',
  6510. 'referring_tables' => array(
  6511. 0 => 'featuremap_pub',
  6512. 1 => 'featurepos',
  6513. 2 => 'featurerange',
  6514. ),
  6515. );
  6516. return $description;
  6517. }
  6518. /**
  6519. * Implements hook_chado_schema_v1_2_featuremap_pub()
  6520. * Purpose: To describe the structure of 'featuremap_pub' to tripal
  6521. * @see tripal_core_chado_insert()
  6522. * @see tripal_core_chado_update()
  6523. * @see tripal_core_chado_select()
  6524. *
  6525. * @return
  6526. * An array describing the 'featuremap_pub' table
  6527. *
  6528. * @ingroup tripal_chado_v1.2_schema_api
  6529. *
  6530. */
  6531. function tripal_core_chado_schema_v1_2_featuremap_pub() {
  6532. $description = array(
  6533. 'description' => 'TODO: please describe this table!',
  6534. 'fields' => array(
  6535. 'featuremap_pub_id' => array(
  6536. 'description' => 'TODO: please describe this field!',
  6537. 'type' => 'serial',
  6538. 'not null' => TRUE,
  6539. ),
  6540. 'featuremap_id' => array(
  6541. 'description' => 'TODO: please describe this field!',
  6542. 'type' => 'int',
  6543. 'not null' => TRUE,
  6544. ),
  6545. 'pub_id' => array(
  6546. 'description' => 'TODO: please describe this field!',
  6547. 'type' => 'int',
  6548. 'not null' => TRUE,
  6549. ),
  6550. ),
  6551. 'primary key' => array(
  6552. 0 => 'featuremap_pub_id',
  6553. ),
  6554. 'indexes' => array(
  6555. 'featuremap_pub_idx1' => array(
  6556. 0 => 'featuremap_id',
  6557. ),
  6558. 'featuremap_pub_idx2' => array(
  6559. 0 => 'pub_id',
  6560. ),
  6561. ),
  6562. 'foreign keys' => array(
  6563. 'pub' => array(
  6564. 'table' => 'pub',
  6565. 'columns' => array(
  6566. 'pub_id' => 'pub_id',
  6567. ),
  6568. ),
  6569. 'featuremap' => array(
  6570. 'table' => 'featuremap',
  6571. 'columns' => array(
  6572. 'featuremap_id' => 'featuremap_id',
  6573. ),
  6574. ),
  6575. ),
  6576. 'table' => 'featuremap_pub',
  6577. 'referring_tables' => NULL,
  6578. );
  6579. return $description;
  6580. }
  6581. /**
  6582. * Implements hook_chado_schema_v1_2_featurepos()
  6583. * Purpose: To describe the structure of 'featurepos' to tripal
  6584. * @see tripal_core_chado_insert()
  6585. * @see tripal_core_chado_update()
  6586. * @see tripal_core_chado_select()
  6587. *
  6588. * @return
  6589. * An array describing the 'featurepos' table
  6590. *
  6591. * @ingroup tripal_chado_v1.2_schema_api
  6592. *
  6593. */
  6594. function tripal_core_chado_schema_v1_2_featurepos() {
  6595. $description = array(
  6596. 'description' => 'TODO: please describe this table!',
  6597. 'fields' => array(
  6598. 'featurepos_id' => array(
  6599. 'description' => 'TODO: please describe this field!',
  6600. 'type' => 'serial',
  6601. 'not null' => TRUE,
  6602. ),
  6603. 'featuremap_id' => array(
  6604. 'description' => 'TODO: please describe this field!',
  6605. 'type' => 'serial',
  6606. 'not null' => TRUE,
  6607. ),
  6608. 'feature_id' => array(
  6609. 'description' => 'TODO: please describe this field!',
  6610. 'type' => 'int',
  6611. 'not null' => TRUE,
  6612. ),
  6613. 'map_feature_id' => array(
  6614. 'description' => 'TODO: please describe this field!',
  6615. 'type' => 'int',
  6616. 'not null' => TRUE,
  6617. ),
  6618. 'mappos' => array(
  6619. 'description' => 'TODO: please describe this field!',
  6620. 'type' => 'float',
  6621. 'size' => 'big',
  6622. 'not null' => TRUE,
  6623. ),
  6624. ),
  6625. 'primary key' => array(
  6626. 0 => 'featurepos_id',
  6627. ),
  6628. 'indexes' => array(
  6629. 'featurepos_idx1' => array(
  6630. 0 => 'featuremap_id',
  6631. ),
  6632. 'featurepos_idx2' => array(
  6633. 0 => 'feature_id',
  6634. ),
  6635. 'featurepos_idx3' => array(
  6636. 0 => 'map_feature_id',
  6637. ),
  6638. ),
  6639. 'foreign keys' => array(
  6640. 'feature' => array(
  6641. 'table' => 'feature',
  6642. 'columns' => array(
  6643. 'feature_id' => 'feature_id',
  6644. 'map_feature_id' => 'feature_id',
  6645. ),
  6646. ),
  6647. 'featuremap' => array(
  6648. 'table' => 'featuremap',
  6649. 'columns' => array(
  6650. 'featuremap_id' => 'featuremap_id',
  6651. ),
  6652. ),
  6653. ),
  6654. 'table' => 'featurepos',
  6655. 'referring_tables' => NULL,
  6656. );
  6657. return $description;
  6658. }
  6659. /**
  6660. * Implements hook_chado_schema_v1_2_featureprop()
  6661. * Purpose: To describe the structure of 'featureprop' to tripal
  6662. * @see tripal_core_chado_insert()
  6663. * @see tripal_core_chado_update()
  6664. * @see tripal_core_chado_select()
  6665. *
  6666. * @return
  6667. * An array describing the 'featureprop' table
  6668. *
  6669. * @ingroup tripal_chado_v1.2_schema_api
  6670. *
  6671. */
  6672. function tripal_core_chado_schema_v1_2_featureprop() {
  6673. $description = array(
  6674. 'description' => 'TODO: please describe this table!',
  6675. 'fields' => array(
  6676. 'featureprop_id' => array(
  6677. 'description' => 'TODO: please describe this field!',
  6678. 'type' => 'serial',
  6679. 'not null' => TRUE,
  6680. ),
  6681. 'feature_id' => array(
  6682. 'description' => 'TODO: please describe this field!',
  6683. 'type' => 'int',
  6684. 'not null' => TRUE,
  6685. ),
  6686. 'type_id' => array(
  6687. 'description' => 'TODO: please describe this field!',
  6688. 'type' => 'int',
  6689. 'not null' => TRUE,
  6690. ),
  6691. 'value' => array(
  6692. 'description' => 'TODO: please describe this field!',
  6693. 'type' => 'text',
  6694. 'not null' => FALSE,
  6695. ),
  6696. 'rank' => array(
  6697. 'description' => 'TODO: please describe this field!',
  6698. 'type' => 'int',
  6699. 'not null' => TRUE,
  6700. 'default' => 0,
  6701. ),
  6702. ),
  6703. 'primary key' => array(
  6704. 0 => 'featureprop_id',
  6705. ),
  6706. 'unique keys' => array(
  6707. 'featureprop_c1' => array(
  6708. 0 => 'feature_id',
  6709. 1 => 'type_id',
  6710. 2 => 'rank',
  6711. ),
  6712. ),
  6713. 'indexes' => array(
  6714. 'featureprop_idx1' => array(
  6715. 0 => 'feature_id',
  6716. ),
  6717. 'featureprop_idx2' => array(
  6718. 0 => 'type_id',
  6719. ),
  6720. ),
  6721. 'foreign keys' => array(
  6722. 'cvterm' => array(
  6723. 'table' => 'cvterm',
  6724. 'columns' => array(
  6725. 'type_id' => 'cvterm_id',
  6726. ),
  6727. ),
  6728. 'feature' => array(
  6729. 'table' => 'feature',
  6730. 'columns' => array(
  6731. 'feature_id' => 'feature_id',
  6732. ),
  6733. ),
  6734. ),
  6735. 'table' => 'featureprop',
  6736. 'referring_tables' => array(
  6737. 0 => 'featureprop_pub',
  6738. ),
  6739. );
  6740. return $description;
  6741. }
  6742. /**
  6743. * Implements hook_chado_schema_v1_2_featureprop_pub()
  6744. * Purpose: To describe the structure of 'featureprop_pub' to tripal
  6745. * @see tripal_core_chado_insert()
  6746. * @see tripal_core_chado_update()
  6747. * @see tripal_core_chado_select()
  6748. *
  6749. * @return
  6750. * An array describing the 'featureprop_pub' table
  6751. *
  6752. * @ingroup tripal_chado_v1.2_schema_api
  6753. *
  6754. */
  6755. function tripal_core_chado_schema_v1_2_featureprop_pub() {
  6756. $description = array(
  6757. 'description' => 'TODO: please describe this table!',
  6758. 'fields' => array(
  6759. 'featureprop_pub_id' => array(
  6760. 'description' => 'TODO: please describe this field!',
  6761. 'type' => 'serial',
  6762. 'not null' => TRUE,
  6763. ),
  6764. 'featureprop_id' => array(
  6765. 'description' => 'TODO: please describe this field!',
  6766. 'type' => 'int',
  6767. 'not null' => TRUE,
  6768. ),
  6769. 'pub_id' => array(
  6770. 'description' => 'TODO: please describe this field!',
  6771. 'type' => 'int',
  6772. 'not null' => TRUE,
  6773. ),
  6774. ),
  6775. 'primary key' => array(
  6776. 0 => 'featureprop_pub_id',
  6777. ),
  6778. 'unique keys' => array(
  6779. 'featureprop_pub_c1' => array(
  6780. 0 => 'featureprop_id',
  6781. 1 => 'pub_id',
  6782. ),
  6783. ),
  6784. 'indexes' => array(
  6785. 'featureprop_pub_idx1' => array(
  6786. 0 => 'featureprop_id',
  6787. ),
  6788. 'featureprop_pub_idx2' => array(
  6789. 0 => 'pub_id',
  6790. ),
  6791. ),
  6792. 'foreign keys' => array(
  6793. 'featureprop' => array(
  6794. 'table' => 'featureprop',
  6795. 'columns' => array(
  6796. 'featureprop_id' => 'featureprop_id',
  6797. ),
  6798. ),
  6799. 'pub' => array(
  6800. 'table' => 'pub',
  6801. 'columns' => array(
  6802. 'pub_id' => 'pub_id',
  6803. ),
  6804. ),
  6805. ),
  6806. 'table' => 'featureprop_pub',
  6807. 'referring_tables' => NULL,
  6808. );
  6809. return $description;
  6810. }
  6811. /**
  6812. * Implements hook_chado_schema_v1_2_featurerange()
  6813. * Purpose: To describe the structure of 'featurerange' to tripal
  6814. * @see tripal_core_chado_insert()
  6815. * @see tripal_core_chado_update()
  6816. * @see tripal_core_chado_select()
  6817. *
  6818. * @return
  6819. * An array describing the 'featurerange' table
  6820. *
  6821. * @ingroup tripal_chado_v1.2_schema_api
  6822. *
  6823. */
  6824. function tripal_core_chado_schema_v1_2_featurerange() {
  6825. $description = array(
  6826. 'description' => 'TODO: please describe this table!',
  6827. 'fields' => array(
  6828. 'featurerange_id' => array(
  6829. 'description' => 'TODO: please describe this field!',
  6830. 'type' => 'serial',
  6831. 'not null' => TRUE,
  6832. ),
  6833. 'featuremap_id' => array(
  6834. 'description' => 'TODO: please describe this field!',
  6835. 'type' => 'int',
  6836. 'not null' => TRUE,
  6837. ),
  6838. 'feature_id' => array(
  6839. 'description' => 'TODO: please describe this field!',
  6840. 'type' => 'int',
  6841. 'not null' => TRUE,
  6842. ),
  6843. 'leftstartf_id' => array(
  6844. 'description' => 'TODO: please describe this field!',
  6845. 'type' => 'int',
  6846. 'not null' => TRUE,
  6847. ),
  6848. 'leftendf_id' => array(
  6849. 'description' => 'TODO: please describe this field!',
  6850. 'type' => 'int',
  6851. 'not null' => FALSE,
  6852. ),
  6853. 'rightstartf_id' => array(
  6854. 'description' => 'TODO: please describe this field!',
  6855. 'type' => 'int',
  6856. 'not null' => FALSE,
  6857. ),
  6858. 'rightendf_id' => array(
  6859. 'description' => 'TODO: please describe this field!',
  6860. 'type' => 'int',
  6861. 'not null' => TRUE,
  6862. ),
  6863. 'rangestr' => array(
  6864. 'description' => 'TODO: please describe this field!',
  6865. 'type' => 'varchar',
  6866. 'length' => '255',
  6867. 'not null' => FALSE,
  6868. ),
  6869. ),
  6870. 'primary key' => array(
  6871. 0 => 'featurerange_id',
  6872. ),
  6873. 'indexes' => array(
  6874. 'featurerange_idx1' => array(
  6875. 0 => 'featuremap_id',
  6876. ),
  6877. 'featurerange_idx2' => array(
  6878. 0 => 'feature_id',
  6879. ),
  6880. 'featurerange_idx3' => array(
  6881. 0 => 'leftstartf_id',
  6882. ),
  6883. 'featurerange_idx4' => array(
  6884. 0 => 'leftendf_id',
  6885. ),
  6886. 'featurerange_idx5' => array(
  6887. 0 => 'rightstartf_id',
  6888. ),
  6889. 'featurerange_idx6' => array(
  6890. 0 => 'rightendf_id',
  6891. ),
  6892. ),
  6893. 'foreign keys' => array(
  6894. 'feature' => array(
  6895. 'table' => 'feature',
  6896. 'columns' => array(
  6897. 'feature_id' => 'feature_id',
  6898. 'leftstartf_id' => 'feature_id',
  6899. 'leftendf_id' => 'feature_id',
  6900. 'rightstartf_id' => 'feature_id',
  6901. 'rightendf_id' => 'feature_id',
  6902. ),
  6903. ),
  6904. 'featuremap' => array(
  6905. 'table' => 'featuremap',
  6906. 'columns' => array(
  6907. 'featuremap_id' => 'featuremap_id',
  6908. ),
  6909. ),
  6910. ),
  6911. 'table' => 'featurerange',
  6912. 'referring_tables' => NULL,
  6913. );
  6914. return $description;
  6915. }
  6916. /**
  6917. * Implements hook_chado_schema_v1_2_genotype()
  6918. * Purpose: To describe the structure of 'genotype' to tripal
  6919. * @see tripal_core_chado_insert()
  6920. * @see tripal_core_chado_update()
  6921. * @see tripal_core_chado_select()
  6922. *
  6923. * @return
  6924. * An array describing the 'genotype' table
  6925. *
  6926. * @ingroup tripal_chado_v1.2_schema_api
  6927. *
  6928. */
  6929. function tripal_core_chado_schema_v1_2_genotype() {
  6930. $description = array(
  6931. 'description' => 'TODO: please describe this table!',
  6932. 'fields' => array(
  6933. 'genotype_id' => array(
  6934. 'description' => 'TODO: please describe this field!',
  6935. 'type' => 'serial',
  6936. 'not null' => TRUE,
  6937. ),
  6938. 'name' => array(
  6939. 'description' => 'TODO: please describe this field!',
  6940. 'type' => 'text',
  6941. 'not null' => FALSE,
  6942. ),
  6943. 'uniquename' => array(
  6944. 'description' => 'TODO: please describe this field!',
  6945. 'type' => 'text',
  6946. 'not null' => TRUE,
  6947. ),
  6948. 'description' => array(
  6949. 'description' => 'TODO: please describe this field!',
  6950. 'type' => 'varchar',
  6951. 'length' => '255',
  6952. 'not null' => FALSE,
  6953. ),
  6954. 'type_id' => array(
  6955. 'description' => 'TODO: please describe this field!',
  6956. 'type' => 'int',
  6957. 'not null' => TRUE,
  6958. ),
  6959. ),
  6960. 'primary key' => array(
  6961. 0 => 'genotype_id',
  6962. ),
  6963. 'unique keys' => array(
  6964. 'genotype_c1' => array(
  6965. 0 => 'uniquename',
  6966. ),
  6967. ),
  6968. 'indexes' => array(
  6969. 'genotype_idx1' => array(
  6970. 0 => 'uniquename',
  6971. ),
  6972. 'genotype_idx2' => array(
  6973. 0 => 'name',
  6974. ),
  6975. ),
  6976. 'foreign keys' => array(
  6977. 'cvterm' => array(
  6978. 'table' => 'cvterm',
  6979. 'columns' => array(
  6980. 'type_id' => 'cvterm_id',
  6981. ),
  6982. ),
  6983. ),
  6984. 'table' => 'genotype',
  6985. 'referring_tables' => array(
  6986. 0 => 'feature_genotype',
  6987. 1 => 'genotypeprop',
  6988. 9 => 'nd_experiment_genotype',
  6989. 10 => 'phendesc',
  6990. 11 => 'phenotype_comparison',
  6991. 13 => 'phenstatement',
  6992. 14 => 'stock_genotype',
  6993. ),
  6994. );
  6995. return $description;
  6996. }
  6997. /**
  6998. * Implements hook_chado_schema_v1_2_genotypeprop()
  6999. * Purpose: To describe the structure of 'genotypeprop' to tripal
  7000. * @see tripal_core_chado_insert()
  7001. * @see tripal_core_chado_update()
  7002. * @see tripal_core_chado_select()
  7003. *
  7004. * @return
  7005. * An array describing the 'genotypeprop' table
  7006. *
  7007. * @ingroup tripal_chado_v1.2_schema_api
  7008. *
  7009. */
  7010. function tripal_core_chado_schema_v1_2_genotypeprop() {
  7011. $description = array(
  7012. 'description' => 'TODO: please describe this table!',
  7013. 'fields' => array(
  7014. 'genotypeprop_id' => array(
  7015. 'description' => 'TODO: please describe this field!',
  7016. 'type' => 'serial',
  7017. 'not null' => TRUE,
  7018. ),
  7019. 'genotype_id' => array(
  7020. 'description' => 'TODO: please describe this field!',
  7021. 'type' => 'int',
  7022. 'not null' => TRUE,
  7023. ),
  7024. 'type_id' => array(
  7025. 'description' => 'TODO: please describe this field!',
  7026. 'type' => 'int',
  7027. 'not null' => TRUE,
  7028. ),
  7029. 'value' => array(
  7030. 'description' => 'TODO: please describe this field!',
  7031. 'type' => 'text',
  7032. 'not null' => FALSE,
  7033. ),
  7034. 'rank' => array(
  7035. 'description' => 'TODO: please describe this field!',
  7036. 'type' => 'int',
  7037. 'not null' => TRUE,
  7038. 'default' => 0,
  7039. ),
  7040. ),
  7041. 'primary key' => array(
  7042. 0 => 'genotypeprop_id',
  7043. ),
  7044. 'unique keys' => array(
  7045. 'genotypeprop_c1' => array(
  7046. 0 => 'genotype_id',
  7047. 1 => 'type_id',
  7048. 2 => 'rank',
  7049. ),
  7050. ),
  7051. 'indexes' => array(
  7052. 'genotypeprop_idx1' => array(
  7053. 0 => 'genotype_id',
  7054. ),
  7055. 'genotypeprop_idx2' => array(
  7056. 0 => 'type_id',
  7057. ),
  7058. ),
  7059. 'foreign keys' => array(
  7060. 'cvterm' => array(
  7061. 'table' => 'cvterm',
  7062. 'columns' => array(
  7063. 'type_id' => 'cvterm_id',
  7064. ),
  7065. ),
  7066. 'genotype' => array(
  7067. 'table' => 'genotype',
  7068. 'columns' => array(
  7069. 'genotype_id' => 'genotype_id',
  7070. ),
  7071. ),
  7072. ),
  7073. 'table' => 'genotypeprop',
  7074. 'referring_tables' => NULL,
  7075. );
  7076. return $description;
  7077. }
  7078. /**
  7079. * Implements hook_chado_schema_v1_2_library()
  7080. * Purpose: To describe the structure of 'library' to tripal
  7081. * @see tripal_core_chado_insert()
  7082. * @see tripal_core_chado_update()
  7083. * @see tripal_core_chado_select()
  7084. *
  7085. * @return
  7086. * An array describing the 'library' table
  7087. *
  7088. * @ingroup tripal_chado_v1.2_schema_api
  7089. *
  7090. */
  7091. function tripal_core_chado_schema_v1_2_library() {
  7092. $description = array(
  7093. 'description' => 'TODO: please describe this table!',
  7094. 'fields' => array(
  7095. 'library_id' => array(
  7096. 'description' => 'TODO: please describe this field!',
  7097. 'type' => 'serial',
  7098. 'not null' => TRUE,
  7099. ),
  7100. 'organism_id' => array(
  7101. 'description' => 'TODO: please describe this field!',
  7102. 'type' => 'int',
  7103. 'not null' => TRUE,
  7104. ),
  7105. 'name' => array(
  7106. 'description' => 'TODO: please describe this field!',
  7107. 'type' => 'varchar',
  7108. 'length' => '255',
  7109. 'not null' => FALSE,
  7110. ),
  7111. 'uniquename' => array(
  7112. 'description' => 'TODO: please describe this field!',
  7113. 'type' => 'text',
  7114. 'not null' => TRUE,
  7115. ),
  7116. 'type_id' => array(
  7117. 'description' => 'TODO: please describe this field!',
  7118. 'type' => 'int',
  7119. 'not null' => TRUE,
  7120. ),
  7121. 'is_obsolete' => array(
  7122. 'description' => 'TODO: please describe this field!',
  7123. 'type' => 'int',
  7124. 'not null' => TRUE,
  7125. 'default' => 0,
  7126. ),
  7127. 'timeaccessioned' => array(
  7128. 'description' => 'TODO: please describe this field!',
  7129. 'type' => 'datetime',
  7130. 'not null' => TRUE,
  7131. 'default' => 'ow(',
  7132. ),
  7133. 'timelastmodified' => array(
  7134. 'description' => 'TODO: please describe this field!',
  7135. 'type' => 'datetime',
  7136. 'not null' => TRUE,
  7137. 'default' => 'ow(',
  7138. ),
  7139. ),
  7140. 'primary key' => array(
  7141. 0 => 'library_id',
  7142. ),
  7143. 'unique keys' => array(
  7144. 'library_c1' => array(
  7145. 0 => 'organism_id',
  7146. 1 => 'uniquename',
  7147. 2 => 'type_id',
  7148. ),
  7149. ),
  7150. 'indexes' => array(
  7151. 'library_idx1' => array(
  7152. 0 => 'organism_id',
  7153. ),
  7154. 'library_idx2' => array(
  7155. 0 => 'type_id',
  7156. ),
  7157. 'library_idx3' => array(
  7158. 0 => 'uniquename',
  7159. ),
  7160. 'library_name_ind1' => array(
  7161. 0 => 'name',
  7162. ),
  7163. ),
  7164. 'foreign keys' => array(
  7165. 'organism' => array(
  7166. 'table' => 'organism',
  7167. 'columns' => array(
  7168. 'organism_id' => 'organism_id',
  7169. ),
  7170. ),
  7171. 'cvterm' => array(
  7172. 'table' => 'cvterm',
  7173. 'columns' => array(
  7174. 'type_id' => 'cvterm_id',
  7175. ),
  7176. ),
  7177. ),
  7178. 'referring_tables' => array(
  7179. 0 => 'cell_line_library',
  7180. 1 => 'library_cvterm',
  7181. 2 => 'library_dbxref',
  7182. 3 => 'library_feature',
  7183. 4 => 'library_pub',
  7184. 5 => 'library_synonym',
  7185. 6 => 'libraryprop',
  7186. ),
  7187. 'table' => 'library',
  7188. );
  7189. return $description;
  7190. }
  7191. /**
  7192. * Implements hook_chado_schema_v1_2_library_cvterm()
  7193. * Purpose: To describe the structure of 'library_cvterm' to tripal
  7194. * @see tripal_core_chado_insert()
  7195. * @see tripal_core_chado_update()
  7196. * @see tripal_core_chado_select()
  7197. *
  7198. * @return
  7199. * An array describing the 'library_cvterm' table
  7200. *
  7201. * @ingroup tripal_chado_v1.2_schema_api
  7202. *
  7203. */
  7204. function tripal_core_chado_schema_v1_2_library_cvterm() {
  7205. $description = array(
  7206. 'description' => 'TODO: please describe this table!',
  7207. 'fields' => array(
  7208. 'library_cvterm_id' => array(
  7209. 'description' => 'TODO: please describe this field!',
  7210. 'type' => 'serial',
  7211. 'not null' => TRUE,
  7212. ),
  7213. 'library_id' => array(
  7214. 'description' => 'TODO: please describe this field!',
  7215. 'type' => 'int',
  7216. 'not null' => TRUE,
  7217. ),
  7218. 'cvterm_id' => array(
  7219. 'description' => 'TODO: please describe this field!',
  7220. 'type' => 'int',
  7221. 'not null' => TRUE,
  7222. ),
  7223. 'pub_id' => array(
  7224. 'description' => 'TODO: please describe this field!',
  7225. 'type' => 'int',
  7226. 'not null' => TRUE,
  7227. ),
  7228. ),
  7229. 'primary key' => array(
  7230. 0 => 'library_cvterm_id',
  7231. ),
  7232. 'unique keys' => array(
  7233. 'library_cvterm_c1' => array(
  7234. 0 => 'library_id',
  7235. 1 => 'cvterm_id',
  7236. 2 => 'pub_id',
  7237. ),
  7238. ),
  7239. 'indexes' => array(
  7240. 'library_cvterm_idx1' => array(
  7241. 0 => 'library_id',
  7242. ),
  7243. 'library_cvterm_idx2' => array(
  7244. 0 => 'cvterm_id',
  7245. ),
  7246. 'library_cvterm_idx3' => array(
  7247. 0 => 'pub_id',
  7248. ),
  7249. ),
  7250. 'foreign keys' => array(
  7251. 'cvterm' => array(
  7252. 'table' => 'cvterm',
  7253. 'columns' => array(
  7254. 'cvterm_id' => 'cvterm_id',
  7255. ),
  7256. ),
  7257. 'pub' => array(
  7258. 'table' => 'pub',
  7259. 'columns' => array(
  7260. 'pub_id' => 'pub_id',
  7261. ),
  7262. ),
  7263. 'library' => array(
  7264. 'table' => 'library',
  7265. 'columns' => array(
  7266. 'library_id' => 'library_id',
  7267. ),
  7268. ),
  7269. ),
  7270. 'table' => 'library_cvterm',
  7271. 'referring_tables' => NULL,
  7272. );
  7273. return $description;
  7274. }
  7275. /**
  7276. * Implements hook_chado_schema_v1_2_library_dbxref()
  7277. * Purpose: To describe the structure of 'library_dbxref' to tripal
  7278. * @see tripal_core_chado_insert()
  7279. * @see tripal_core_chado_update()
  7280. * @see tripal_core_chado_select()
  7281. *
  7282. * @return
  7283. * An array describing the 'library_dbxref' table
  7284. *
  7285. * @ingroup tripal_chado_v1.2_schema_api
  7286. *
  7287. */
  7288. function tripal_core_chado_schema_v1_2_library_dbxref() {
  7289. $description = array(
  7290. 'description' => 'TODO: please describe this table!',
  7291. 'fields' => array(
  7292. 'library_dbxref_id' => array(
  7293. 'description' => 'TODO: please describe this field!',
  7294. 'type' => 'serial',
  7295. 'not null' => TRUE,
  7296. ),
  7297. 'library_id' => array(
  7298. 'description' => 'TODO: please describe this field!',
  7299. 'type' => 'int',
  7300. 'not null' => TRUE,
  7301. ),
  7302. 'dbxref_id' => array(
  7303. 'description' => 'TODO: please describe this field!',
  7304. 'type' => 'int',
  7305. 'not null' => TRUE,
  7306. ),
  7307. 'is_current' => array(
  7308. 'description' => 'TODO: please describe this field!',
  7309. 'type' => 'boolean',
  7310. 'not null' => TRUE,
  7311. 'default' => 'ru',
  7312. ),
  7313. ),
  7314. 'primary key' => array(
  7315. 0 => 'library_dbxref_id',
  7316. ),
  7317. 'unique keys' => array(
  7318. 'library_dbxref_c1' => array(
  7319. 0 => 'library_id',
  7320. 1 => 'dbxref_id',
  7321. ),
  7322. ),
  7323. 'indexes' => array(
  7324. 'library_dbxref_idx1' => array(
  7325. 0 => 'library_id',
  7326. ),
  7327. 'library_dbxref_idx2' => array(
  7328. 0 => 'dbxref_id',
  7329. ),
  7330. ),
  7331. 'foreign keys' => array(
  7332. 'dbxref' => array(
  7333. 'table' => 'dbxref',
  7334. 'columns' => array(
  7335. 'dbxref_id' => 'dbxref_id',
  7336. ),
  7337. ),
  7338. 'library' => array(
  7339. 'table' => 'library',
  7340. 'columns' => array(
  7341. 'library_id' => 'library_id',
  7342. ),
  7343. ),
  7344. ),
  7345. 'table' => 'library_dbxref',
  7346. 'referring_tables' => NULL,
  7347. );
  7348. return $description;
  7349. }
  7350. /**
  7351. * Implements hook_chado_schema_v1_2_library_feature()
  7352. * Purpose: To describe the structure of 'library_feature' to tripal
  7353. * @see tripal_core_chado_insert()
  7354. * @see tripal_core_chado_update()
  7355. * @see tripal_core_chado_select()
  7356. *
  7357. * @return
  7358. * An array describing the 'library_feature' table
  7359. *
  7360. * @ingroup tripal_chado_v1.2_schema_api
  7361. *
  7362. */
  7363. function tripal_core_chado_schema_v1_2_library_feature() {
  7364. $description = array(
  7365. 'description' => 'TODO: please describe this table!',
  7366. 'fields' => array(
  7367. 'library_feature_id' => array(
  7368. 'description' => 'TODO: please describe this field!',
  7369. 'type' => 'serial',
  7370. 'not null' => TRUE,
  7371. ),
  7372. 'library_id' => array(
  7373. 'description' => 'TODO: please describe this field!',
  7374. 'type' => 'int',
  7375. 'not null' => TRUE,
  7376. ),
  7377. 'feature_id' => array(
  7378. 'description' => 'TODO: please describe this field!',
  7379. 'type' => 'int',
  7380. 'not null' => TRUE,
  7381. ),
  7382. ),
  7383. 'primary key' => array(
  7384. 0 => 'library_feature_id',
  7385. ),
  7386. 'unique keys' => array(
  7387. 'library_feature_c1' => array(
  7388. 0 => 'library_id',
  7389. 1 => 'feature_id',
  7390. ),
  7391. ),
  7392. 'indexes' => array(
  7393. 'library_feature_idx1' => array(
  7394. 0 => 'library_id',
  7395. ),
  7396. 'library_feature_idx2' => array(
  7397. 0 => 'feature_id',
  7398. ),
  7399. ),
  7400. 'foreign keys' => array(
  7401. 'feature' => array(
  7402. 'table' => 'feature',
  7403. 'columns' => array(
  7404. 'feature_id' => 'feature_id',
  7405. ),
  7406. ),
  7407. 'library' => array(
  7408. 'table' => 'library',
  7409. 'columns' => array(
  7410. 'library_id' => 'library_id',
  7411. ),
  7412. ),
  7413. ),
  7414. 'table' => 'library_feature',
  7415. 'referring_tables' => NULL,
  7416. );
  7417. return $description;
  7418. }
  7419. /**
  7420. * Implements hook_chado_schema_v1_2_library_pub()
  7421. * Purpose: To describe the structure of 'library_pub' to tripal
  7422. * @see tripal_core_chado_insert()
  7423. * @see tripal_core_chado_update()
  7424. * @see tripal_core_chado_select()
  7425. *
  7426. * @return
  7427. * An array describing the 'library_pub' table
  7428. *
  7429. * @ingroup tripal_chado_v1.2_schema_api
  7430. *
  7431. */
  7432. function tripal_core_chado_schema_v1_2_library_pub() {
  7433. $description = array(
  7434. 'description' => 'TODO: please describe this table!',
  7435. 'fields' => array(
  7436. 'library_pub_id' => array(
  7437. 'description' => 'TODO: please describe this field!',
  7438. 'type' => 'serial',
  7439. 'not null' => TRUE,
  7440. ),
  7441. 'library_id' => array(
  7442. 'description' => 'TODO: please describe this field!',
  7443. 'type' => 'int',
  7444. 'not null' => TRUE,
  7445. ),
  7446. 'pub_id' => array(
  7447. 'description' => 'TODO: please describe this field!',
  7448. 'type' => 'int',
  7449. 'not null' => TRUE,
  7450. ),
  7451. ),
  7452. 'primary key' => array(
  7453. 0 => 'library_pub_id',
  7454. ),
  7455. 'unique keys' => array(
  7456. 'library_pub_c1' => array(
  7457. 0 => 'library_id',
  7458. 1 => 'pub_id',
  7459. ),
  7460. ),
  7461. 'indexes' => array(
  7462. 'library_pub_idx1' => array(
  7463. 0 => 'library_id',
  7464. ),
  7465. 'library_pub_idx2' => array(
  7466. 0 => 'pub_id',
  7467. ),
  7468. ),
  7469. 'foreign keys' => array(
  7470. 'pub' => array(
  7471. 'table' => 'pub',
  7472. 'columns' => array(
  7473. 'pub_id' => 'pub_id',
  7474. ),
  7475. ),
  7476. 'library' => array(
  7477. 'table' => 'library',
  7478. 'columns' => array(
  7479. 'library_id' => 'library_id',
  7480. ),
  7481. ),
  7482. ),
  7483. 'table' => 'library_pub',
  7484. 'referring_tables' => NULL,
  7485. );
  7486. return $description;
  7487. }
  7488. /**
  7489. * Implements hook_chado_schema_v1_2_library_synonym()
  7490. * Purpose: To describe the structure of 'library_synonym' to tripal
  7491. * @see tripal_core_chado_insert()
  7492. * @see tripal_core_chado_update()
  7493. * @see tripal_core_chado_select()
  7494. *
  7495. * @return
  7496. * An array describing the 'library_synonym' table
  7497. *
  7498. * @ingroup tripal_chado_v1.2_schema_api
  7499. *
  7500. */
  7501. function tripal_core_chado_schema_v1_2_library_synonym() {
  7502. $description = array(
  7503. 'description' => 'TODO: please describe this table!',
  7504. 'fields' => array(
  7505. 'library_synonym_id' => array(
  7506. 'description' => 'TODO: please describe this field!',
  7507. 'type' => 'serial',
  7508. 'not null' => TRUE,
  7509. ),
  7510. 'synonym_id' => array(
  7511. 'description' => 'TODO: please describe this field!',
  7512. 'type' => 'int',
  7513. 'not null' => TRUE,
  7514. ),
  7515. 'library_id' => array(
  7516. 'description' => 'TODO: please describe this field!',
  7517. 'type' => 'int',
  7518. 'not null' => TRUE,
  7519. ),
  7520. 'pub_id' => array(
  7521. 'description' => 'TODO: please describe this field!',
  7522. 'type' => 'int',
  7523. 'not null' => TRUE,
  7524. ),
  7525. 'is_current' => array(
  7526. 'description' => 'TODO: please describe this field!',
  7527. 'type' => 'boolean',
  7528. 'not null' => TRUE,
  7529. 'default' => 'ru',
  7530. ),
  7531. 'is_internal' => array(
  7532. 'description' => 'TODO: please describe this field!',
  7533. 'type' => 'boolean',
  7534. 'not null' => TRUE,
  7535. 'default' => 'als',
  7536. ),
  7537. ),
  7538. 'primary key' => array(
  7539. 0 => 'library_synonym_id',
  7540. ),
  7541. 'unique keys' => array(
  7542. 'library_synonym_c1' => array(
  7543. 0 => 'synonym_id',
  7544. 1 => 'library_id',
  7545. 2 => 'pub_id',
  7546. ),
  7547. ),
  7548. 'indexes' => array(
  7549. 'library_synonym_idx1' => array(
  7550. 0 => 'synonym_id',
  7551. ),
  7552. 'library_synonym_idx2' => array(
  7553. 0 => 'library_id',
  7554. ),
  7555. 'library_synonym_idx3' => array(
  7556. 0 => 'pub_id',
  7557. ),
  7558. ),
  7559. 'foreign keys' => array(
  7560. 'pub' => array(
  7561. 'table' => 'pub',
  7562. 'columns' => array(
  7563. 'pub_id' => 'pub_id',
  7564. ),
  7565. ),
  7566. 'synonym' => array(
  7567. 'table' => 'synonym',
  7568. 'columns' => array(
  7569. 'synonym_id' => 'synonym_id',
  7570. ),
  7571. ),
  7572. 'library' => array(
  7573. 'table' => 'library',
  7574. 'columns' => array(
  7575. 'library_id' => 'library_id',
  7576. ),
  7577. ),
  7578. ),
  7579. 'table' => 'library_synonym',
  7580. 'referring_tables' => NULL,
  7581. );
  7582. return $description;
  7583. }
  7584. /**
  7585. * Implements hook_chado_schema_v1_2_libraryprop()
  7586. * Purpose: To describe the structure of 'libraryprop' to tripal
  7587. * @see tripal_core_chado_insert()
  7588. * @see tripal_core_chado_update()
  7589. * @see tripal_core_chado_select()
  7590. *
  7591. * @return
  7592. * An array describing the 'libraryprop' table
  7593. *
  7594. * @ingroup tripal_chado_v1.2_schema_api
  7595. *
  7596. */
  7597. function tripal_core_chado_schema_v1_2_libraryprop() {
  7598. $description = array(
  7599. 'description' => 'TODO: please describe this table!',
  7600. 'fields' => array(
  7601. 'libraryprop_id' => array(
  7602. 'description' => 'TODO: please describe this field!',
  7603. 'type' => 'serial',
  7604. 'not null' => TRUE,
  7605. ),
  7606. 'library_id' => array(
  7607. 'description' => 'TODO: please describe this field!',
  7608. 'type' => 'int',
  7609. 'not null' => TRUE,
  7610. ),
  7611. 'type_id' => array(
  7612. 'description' => 'TODO: please describe this field!',
  7613. 'type' => 'int',
  7614. 'not null' => TRUE,
  7615. ),
  7616. 'value' => array(
  7617. 'description' => 'TODO: please describe this field!',
  7618. 'type' => 'text',
  7619. 'not null' => FALSE,
  7620. ),
  7621. 'rank' => array(
  7622. 'description' => 'TODO: please describe this field!',
  7623. 'type' => 'int',
  7624. 'not null' => TRUE,
  7625. 'default' => 0,
  7626. ),
  7627. ),
  7628. 'primary key' => array(
  7629. 0 => 'libraryprop_id',
  7630. ),
  7631. 'unique keys' => array(
  7632. 'libraryprop_c1' => array(
  7633. 0 => 'library_id',
  7634. 1 => 'type_id',
  7635. 2 => 'rank',
  7636. ),
  7637. ),
  7638. 'indexes' => array(
  7639. 'libraryprop_idx1' => array(
  7640. 0 => 'library_id',
  7641. ),
  7642. 'libraryprop_idx2' => array(
  7643. 0 => 'type_id',
  7644. ),
  7645. ),
  7646. 'foreign keys' => array(
  7647. 'cvterm' => array(
  7648. 'table' => 'cvterm',
  7649. 'columns' => array(
  7650. 'type_id' => 'cvterm_id',
  7651. ),
  7652. ),
  7653. 'library' => array(
  7654. 'table' => 'library',
  7655. 'columns' => array(
  7656. 'library_id' => 'library_id',
  7657. ),
  7658. ),
  7659. ),
  7660. 'table' => 'libraryprop',
  7661. 'referring_tables' => array(
  7662. 0 => 'libraryprop_pub',
  7663. ),
  7664. );
  7665. return $description;
  7666. }
  7667. /**
  7668. * Implements hook_chado_schema_v1_2_libraryprop_pub()
  7669. * Purpose: To describe the structure of 'libraryprop_pub' to tripal
  7670. * @see tripal_core_chado_insert()
  7671. * @see tripal_core_chado_update()
  7672. * @see tripal_core_chado_select()
  7673. *
  7674. * @return
  7675. * An array describing the 'libraryprop_pub' table
  7676. *
  7677. * @ingroup tripal_chado_v1.2_schema_api
  7678. *
  7679. */
  7680. function tripal_core_chado_schema_v1_2_libraryprop_pub() {
  7681. $description = array(
  7682. 'description' => 'TODO: please describe this table!',
  7683. 'fields' => array(
  7684. 'libraryprop_pub_id' => array(
  7685. 'description' => 'TODO: please describe this field!',
  7686. 'type' => 'serial',
  7687. 'not null' => TRUE,
  7688. ),
  7689. 'libraryprop_id' => array(
  7690. 'description' => 'TODO: please describe this field!',
  7691. 'type' => 'int',
  7692. 'not null' => TRUE,
  7693. ),
  7694. 'pub_id' => array(
  7695. 'description' => 'TODO: please describe this field!',
  7696. 'type' => 'int',
  7697. 'not null' => TRUE,
  7698. ),
  7699. ),
  7700. 'primary key' => array(
  7701. 0 => 'libraryprop_pub_id',
  7702. ),
  7703. 'unique keys' => array(
  7704. 'libraryprop_pub_c1' => array(
  7705. 0 => 'libraryprop_id',
  7706. 1 => 'pub_id',
  7707. ),
  7708. ),
  7709. 'indexes' => array(
  7710. 'libraryprop_pub_idx1' => array(
  7711. 0 => 'libraryprop_id',
  7712. ),
  7713. 'libraryprop_pub_idx2' => array(
  7714. 0 => 'pub_id',
  7715. ),
  7716. ),
  7717. 'foreign keys' => array(
  7718. 'pub' => array(
  7719. 'table' => 'pub',
  7720. 'columns' => array(
  7721. 'pub_id' => 'pub_id',
  7722. ),
  7723. ),
  7724. 'libraryprop' => array(
  7725. 'table' => 'libraryprop',
  7726. 'columns' => array(
  7727. 'libraryprop_id' => 'libraryprop_id',
  7728. ),
  7729. ),
  7730. ),
  7731. 'table' => 'libraryprop_pub',
  7732. 'referring_tables' => NULL,
  7733. );
  7734. return $description;
  7735. }
  7736. /**
  7737. * Implements hook_chado_schema_v1_2_magedocumentation()
  7738. * Purpose: To describe the structure of 'magedocumentation' to tripal
  7739. * @see tripal_core_chado_insert()
  7740. * @see tripal_core_chado_update()
  7741. * @see tripal_core_chado_select()
  7742. *
  7743. * @return
  7744. * An array describing the 'magedocumentation' table
  7745. *
  7746. * @ingroup tripal_chado_v1.2_schema_api
  7747. *
  7748. */
  7749. function tripal_core_chado_schema_v1_2_magedocumentation() {
  7750. $description = array(
  7751. 'description' => 'TODO: please describe this table!',
  7752. 'fields' => array(
  7753. 'magedocumentation_id' => array(
  7754. 'description' => 'TODO: please describe this field!',
  7755. 'type' => 'serial',
  7756. 'not null' => TRUE,
  7757. ),
  7758. 'mageml_id' => array(
  7759. 'description' => 'TODO: please describe this field!',
  7760. 'type' => 'int',
  7761. 'not null' => TRUE,
  7762. ),
  7763. 'tableinfo_id' => array(
  7764. 'description' => 'TODO: please describe this field!',
  7765. 'type' => 'int',
  7766. 'not null' => TRUE,
  7767. ),
  7768. 'row_id' => array(
  7769. 'description' => 'TODO: please describe this field!',
  7770. 'type' => 'int',
  7771. 'not null' => TRUE,
  7772. ),
  7773. 'mageidentifier' => array(
  7774. 'description' => 'TODO: please describe this field!',
  7775. 'type' => 'text',
  7776. 'not null' => TRUE,
  7777. ),
  7778. ),
  7779. 'primary key' => array(
  7780. 0 => 'magedocumentation_id',
  7781. ),
  7782. 'indexes' => array(
  7783. 'magedocumentation_idx1' => array(
  7784. 0 => 'mageml_id',
  7785. ),
  7786. 'magedocumentation_idx2' => array(
  7787. 0 => 'tableinfo_id',
  7788. ),
  7789. 'magedocumentation_idx3' => array(
  7790. 0 => 'row_id',
  7791. ),
  7792. ),
  7793. 'foreign keys' => array(
  7794. 'tableinfo' => array(
  7795. 'table' => 'tableinfo',
  7796. 'columns' => array(
  7797. 'tableinfo_id' => 'tableinfo_id',
  7798. ),
  7799. ),
  7800. 'mageml' => array(
  7801. 'table' => 'mageml',
  7802. 'columns' => array(
  7803. 'mageml_id' => 'mageml_id',
  7804. ),
  7805. ),
  7806. ),
  7807. 'table' => 'magedocumentation',
  7808. 'referring_tables' => NULL,
  7809. );
  7810. return $description;
  7811. }
  7812. /**
  7813. * Implements hook_chado_schema_v1_2_mageml()
  7814. * Purpose: To describe the structure of 'mageml' to tripal
  7815. * @see tripal_core_chado_insert()
  7816. * @see tripal_core_chado_update()
  7817. * @see tripal_core_chado_select()
  7818. *
  7819. * @return
  7820. * An array describing the 'mageml' table
  7821. *
  7822. * @ingroup tripal_chado_v1.2_schema_api
  7823. *
  7824. */
  7825. function tripal_core_chado_schema_v1_2_mageml() {
  7826. $description = array(
  7827. 'description' => 'TODO: please describe this table!',
  7828. 'fields' => array(
  7829. 'mageml_id' => array(
  7830. 'description' => 'TODO: please describe this field!',
  7831. 'type' => 'serial',
  7832. 'not null' => TRUE,
  7833. ),
  7834. 'mage_package' => array(
  7835. 'description' => 'TODO: please describe this field!',
  7836. 'type' => 'text',
  7837. 'not null' => TRUE,
  7838. ),
  7839. 'mage_ml' => array(
  7840. 'description' => 'TODO: please describe this field!',
  7841. 'type' => 'text',
  7842. 'not null' => TRUE,
  7843. ),
  7844. ),
  7845. 'primary key' => array(
  7846. 0 => 'mageml_id',
  7847. ),
  7848. 'foreign keys' => array(
  7849. ),
  7850. 'table' => 'mageml',
  7851. 'referring_tables' => array(
  7852. 0 => 'magedocumentation',
  7853. ),
  7854. );
  7855. return $description;
  7856. }
  7857. /**
  7858. * Implements hook_chado_schema_v1_2_nd_experiment()
  7859. * Purpose: To describe the structure of 'nd_experiment' to tripal
  7860. * @see tripal_core_chado_insert()
  7861. * @see tripal_core_chado_update()
  7862. * @see tripal_core_chado_select()
  7863. *
  7864. * @return
  7865. * An array describing the 'nd_experiment' table
  7866. *
  7867. * @ingroup tripal_chado_v1.2_schema_api
  7868. *
  7869. */
  7870. function tripal_core_chado_schema_v1_2_nd_experiment() {
  7871. $description = array(
  7872. 'description' => 'TODO: please describe this table!',
  7873. 'fields' => array(
  7874. 'nd_experiment_id' => array(
  7875. 'description' => 'TODO: please describe this field!',
  7876. 'type' => 'serial',
  7877. 'not null' => TRUE,
  7878. ),
  7879. 'nd_geolocation_id' => array(
  7880. 'description' => 'TODO: please describe this field!',
  7881. 'type' => 'int',
  7882. 'not null' => TRUE,
  7883. ),
  7884. 'type_id' => array(
  7885. 'description' => 'TODO: please describe this field!',
  7886. 'type' => 'int',
  7887. 'not null' => TRUE,
  7888. ),
  7889. ),
  7890. 'primary key' => array(
  7891. 0 => 'nd_experiment_id',
  7892. ),
  7893. 'foreign keys' => array(
  7894. 'cvterm' => array(
  7895. 'table' => 'cvterm',
  7896. 'columns' => array(
  7897. 'type_id' => 'cvterm_id',
  7898. ),
  7899. ),
  7900. 'nd_geolocation' => array(
  7901. 'table' => 'nd_geolocation',
  7902. 'columns' => array(
  7903. 'nd_geolocation_id' => 'nd_geolocation_id',
  7904. ),
  7905. ),
  7906. ),
  7907. 'table' => 'nd_experiment',
  7908. 'referring_tables' => array(
  7909. 0 => 'nd_experiment_contact',
  7910. 1 => 'nd_experiment_dbxref',
  7911. 2 => 'nd_experiment_genotype',
  7912. 3 => 'nd_experiment_phenotype',
  7913. 4 => 'nd_experiment_project',
  7914. 5 => 'nd_experiment_protocol',
  7915. 6 => 'nd_experiment_pub',
  7916. 7 => 'nd_experiment_stock',
  7917. 8 => 'nd_experimentprop',
  7918. ),
  7919. );
  7920. return $description;
  7921. }
  7922. /**
  7923. * Implements hook_chado_schema_v1_2_nd_experiment_contact()
  7924. * Purpose: To describe the structure of 'nd_experiment_contact' to tripal
  7925. * @see tripal_core_chado_insert()
  7926. * @see tripal_core_chado_update()
  7927. * @see tripal_core_chado_select()
  7928. *
  7929. * @return
  7930. * An array describing the 'nd_experiment_contact' table
  7931. *
  7932. * @ingroup tripal_chado_v1.2_schema_api
  7933. *
  7934. */
  7935. function tripal_core_chado_schema_v1_2_nd_experiment_contact() {
  7936. $description = array(
  7937. 'description' => 'TODO: please describe this table!',
  7938. 'fields' => array(
  7939. 'nd_experiment_contact_id' => array(
  7940. 'description' => 'TODO: please describe this field!',
  7941. 'type' => 'serial',
  7942. 'not null' => TRUE,
  7943. ),
  7944. 'nd_experiment_id' => array(
  7945. 'description' => 'TODO: please describe this field!',
  7946. 'type' => 'int',
  7947. 'not null' => TRUE,
  7948. ),
  7949. 'contact_id' => array(
  7950. 'description' => 'TODO: please describe this field!',
  7951. 'type' => 'int',
  7952. 'not null' => TRUE,
  7953. ),
  7954. ),
  7955. 'primary key' => array(
  7956. 0 => 'nd_experiment_contact_id',
  7957. ),
  7958. 'foreign keys' => array(
  7959. 'contact' => array(
  7960. 'table' => 'contact',
  7961. 'columns' => array(
  7962. 'contact_id' => 'contact_id',
  7963. ),
  7964. ),
  7965. 'nd_experiment' => array(
  7966. 'table' => 'nd_experiment',
  7967. 'columns' => array(
  7968. 'nd_experiment_id' => 'nd_experiment_id',
  7969. ),
  7970. ),
  7971. ),
  7972. 'table' => 'nd_experiment_contact',
  7973. 'referring_tables' => NULL,
  7974. );
  7975. return $description;
  7976. }
  7977. /**
  7978. * Implements hook_chado_schema_v1_2_nd_experiment_dbxref()
  7979. * Purpose: To describe the structure of 'nd_experiment_dbxref' to tripal
  7980. * @see tripal_core_chado_insert()
  7981. * @see tripal_core_chado_update()
  7982. * @see tripal_core_chado_select()
  7983. *
  7984. * @return
  7985. * An array describing the 'nd_experiment_dbxref' table
  7986. *
  7987. * @ingroup tripal_chado_v1.2_schema_api
  7988. *
  7989. */
  7990. function tripal_core_chado_schema_v1_2_nd_experiment_dbxref() {
  7991. $description = array(
  7992. 'description' => 'TODO: please describe this table!',
  7993. 'fields' => array(
  7994. 'nd_experiment_dbxref_id' => array(
  7995. 'description' => 'TODO: please describe this field!',
  7996. 'type' => 'serial',
  7997. 'not null' => TRUE,
  7998. ),
  7999. 'nd_experiment_id' => array(
  8000. 'description' => 'TODO: please describe this field!',
  8001. 'type' => 'int',
  8002. 'not null' => TRUE,
  8003. ),
  8004. 'dbxref_id' => array(
  8005. 'description' => 'TODO: please describe this field!',
  8006. 'type' => 'int',
  8007. 'not null' => TRUE,
  8008. ),
  8009. ),
  8010. 'primary key' => array(
  8011. 0 => 'nd_experiment_dbxref_id',
  8012. ),
  8013. 'foreign keys' => array(
  8014. 'dbxref' => array(
  8015. 'table' => 'dbxref',
  8016. 'columns' => array(
  8017. 'dbxref_id' => 'dbxref_id',
  8018. ),
  8019. ),
  8020. 'nd_experiment' => array(
  8021. 'table' => 'nd_experiment',
  8022. 'columns' => array(
  8023. 'nd_experiment_id' => 'nd_experiment_id',
  8024. ),
  8025. ),
  8026. ),
  8027. 'table' => 'nd_experiment_dbxref',
  8028. 'referring_tables' => NULL,
  8029. );
  8030. return $description;
  8031. }
  8032. /**
  8033. * Implements hook_chado_schema_v1_2_nd_experiment_genotype()
  8034. * Purpose: To describe the structure of 'nd_experiment_genotype' to tripal
  8035. * @see tripal_core_chado_insert()
  8036. * @see tripal_core_chado_update()
  8037. * @see tripal_core_chado_select()
  8038. *
  8039. * @return
  8040. * An array describing the 'nd_experiment_genotype' table
  8041. *
  8042. * @ingroup tripal_chado_v1.2_schema_api
  8043. *
  8044. */
  8045. function tripal_core_chado_schema_v1_2_nd_experiment_genotype() {
  8046. $description = array(
  8047. 'description' => 'TODO: please describe this table!',
  8048. 'fields' => array(
  8049. 'nd_experiment_genotype_id' => array(
  8050. 'description' => 'TODO: please describe this field!',
  8051. 'type' => 'serial',
  8052. 'not null' => TRUE,
  8053. ),
  8054. 'nd_experiment_id' => array(
  8055. 'description' => 'TODO: please describe this field!',
  8056. 'type' => 'int',
  8057. 'not null' => TRUE,
  8058. ),
  8059. 'genotype_id' => array(
  8060. 'description' => 'TODO: please describe this field!',
  8061. 'type' => 'int',
  8062. 'not null' => TRUE,
  8063. ),
  8064. ),
  8065. 'primary key' => array(
  8066. 0 => 'nd_experiment_genotype_id',
  8067. ),
  8068. 'unique keys' => array(
  8069. 'nd_experiment_genotype_c1' => array(
  8070. 0 => 'nd_experiment_id',
  8071. 1 => 'genotype_id',
  8072. ),
  8073. ),
  8074. 'foreign keys' => array(
  8075. 'genotype' => array(
  8076. 'table' => 'genotype',
  8077. 'columns' => array(
  8078. 'genotype_id' => 'genotype_id',
  8079. ),
  8080. ),
  8081. 'nd_experiment' => array(
  8082. 'table' => 'nd_experiment',
  8083. 'columns' => array(
  8084. 'nd_experiment_id' => 'nd_experiment_id',
  8085. ),
  8086. ),
  8087. ),
  8088. 'table' => 'nd_experiment_genotype',
  8089. 'referring_tables' => NULL,
  8090. );
  8091. return $description;
  8092. }
  8093. /**
  8094. * Implements hook_chado_schema_v1_2_nd_experiment_phenotype()
  8095. * Purpose: To describe the structure of 'nd_experiment_phenotype' to tripal
  8096. * @see tripal_core_chado_insert()
  8097. * @see tripal_core_chado_update()
  8098. * @see tripal_core_chado_select()
  8099. *
  8100. * @return
  8101. * An array describing the 'nd_experiment_phenotype' table
  8102. *
  8103. * @ingroup tripal_chado_v1.2_schema_api
  8104. *
  8105. */
  8106. function tripal_core_chado_schema_v1_2_nd_experiment_phenotype() {
  8107. $description = array(
  8108. 'description' => 'TODO: please describe this table!',
  8109. 'fields' => array(
  8110. 'nd_experiment_phenotype_id' => array(
  8111. 'description' => 'TODO: please describe this field!',
  8112. 'type' => 'serial',
  8113. 'not null' => TRUE,
  8114. ),
  8115. 'nd_experiment_id' => array(
  8116. 'description' => 'TODO: please describe this field!',
  8117. 'type' => 'int',
  8118. 'not null' => TRUE,
  8119. ),
  8120. 'phenotype_id' => array(
  8121. 'description' => 'TODO: please describe this field!',
  8122. 'type' => 'int',
  8123. 'not null' => TRUE,
  8124. ),
  8125. ),
  8126. 'primary key' => array(
  8127. 0 => 'nd_experiment_phenotype_id',
  8128. ),
  8129. 'unique keys' => array(
  8130. 'nd_experiment_phenotype_c1' => array(
  8131. 0 => 'nd_experiment_id',
  8132. 1 => 'phenotype_id',
  8133. ),
  8134. ),
  8135. 'foreign keys' => array(
  8136. 'phenotype' => array(
  8137. 'table' => 'phenotype',
  8138. 'columns' => array(
  8139. 'phenotype_id' => 'phenotype_id',
  8140. ),
  8141. ),
  8142. 'nd_experiment' => array(
  8143. 'table' => 'nd_experiment',
  8144. 'columns' => array(
  8145. 'nd_experiment_id' => 'nd_experiment_id',
  8146. ),
  8147. ),
  8148. ),
  8149. 'table' => 'nd_experiment_phenotype',
  8150. 'referring_tables' => NULL,
  8151. );
  8152. return $description;
  8153. }
  8154. /**
  8155. * Implements hook_chado_schema_v1_2_nd_experiment_project()
  8156. * Purpose: To describe the structure of 'nd_experiment_project' to tripal
  8157. * @see tripal_core_chado_insert()
  8158. * @see tripal_core_chado_update()
  8159. * @see tripal_core_chado_select()
  8160. *
  8161. * @return
  8162. * An array describing the 'nd_experiment_project' table
  8163. *
  8164. * @ingroup tripal_chado_v1.2_schema_api
  8165. *
  8166. */
  8167. function tripal_core_chado_schema_v1_2_nd_experiment_project() {
  8168. $description = array(
  8169. 'description' => 'TODO: please describe this table!',
  8170. 'fields' => array(
  8171. 'nd_experiment_project_id' => array(
  8172. 'description' => 'TODO: please describe this field!',
  8173. 'type' => 'serial',
  8174. 'not null' => TRUE,
  8175. ),
  8176. 'project_id' => array(
  8177. 'description' => 'TODO: please describe this field!',
  8178. 'type' => 'int',
  8179. 'not null' => TRUE,
  8180. ),
  8181. 'nd_experiment_id' => array(
  8182. 'description' => 'TODO: please describe this field!',
  8183. 'type' => 'int',
  8184. 'not null' => TRUE,
  8185. ),
  8186. ),
  8187. 'primary key' => array(
  8188. 0 => 'nd_experiment_project_id',
  8189. ),
  8190. 'foreign keys' => array(
  8191. 'project' => array(
  8192. 'table' => 'project',
  8193. 'columns' => array(
  8194. 'project_id' => 'project_id',
  8195. ),
  8196. ),
  8197. 'nd_experiment' => array(
  8198. 'table' => 'nd_experiment',
  8199. 'columns' => array(
  8200. 'nd_experiment_id' => 'nd_experiment_id',
  8201. ),
  8202. ),
  8203. ),
  8204. 'table' => 'nd_experiment_project',
  8205. 'referring_tables' => NULL,
  8206. );
  8207. return $description;
  8208. }
  8209. /**
  8210. * Implements hook_chado_schema_v1_2_nd_experiment_protocol()
  8211. * Purpose: To describe the structure of 'nd_experiment_protocol' to tripal
  8212. * @see tripal_core_chado_insert()
  8213. * @see tripal_core_chado_update()
  8214. * @see tripal_core_chado_select()
  8215. *
  8216. * @return
  8217. * An array describing the 'nd_experiment_protocol' table
  8218. *
  8219. * @ingroup tripal_chado_v1.2_schema_api
  8220. *
  8221. */
  8222. function tripal_core_chado_schema_v1_2_nd_experiment_protocol() {
  8223. $description = array(
  8224. 'description' => 'TODO: please describe this table!',
  8225. 'fields' => array(
  8226. 'nd_experiment_protocol_id' => array(
  8227. 'description' => 'TODO: please describe this field!',
  8228. 'type' => 'serial',
  8229. 'not null' => TRUE,
  8230. ),
  8231. 'nd_experiment_id' => array(
  8232. 'description' => 'TODO: please describe this field!',
  8233. 'type' => 'int',
  8234. 'not null' => TRUE,
  8235. ),
  8236. 'nd_protocol_id' => array(
  8237. 'description' => 'TODO: please describe this field!',
  8238. 'type' => 'int',
  8239. 'not null' => TRUE,
  8240. ),
  8241. ),
  8242. 'primary key' => array(
  8243. 0 => 'nd_experiment_protocol_id',
  8244. ),
  8245. 'foreign keys' => array(
  8246. 'nd_experiment' => array(
  8247. 'table' => 'nd_experiment',
  8248. 'columns' => array(
  8249. 'nd_experiment_id' => 'nd_experiment_id',
  8250. ),
  8251. ),
  8252. 'nd_protocol' => array(
  8253. 'table' => 'nd_protocol',
  8254. 'columns' => array(
  8255. 'nd_protocol_id' => 'nd_protocol_id',
  8256. ),
  8257. ),
  8258. ),
  8259. 'table' => 'nd_experiment_protocol',
  8260. 'referring_tables' => NULL,
  8261. );
  8262. return $description;
  8263. }
  8264. /**
  8265. * Implements hook_chado_schema_v1_2_nd_experiment_pub()
  8266. * Purpose: To describe the structure of 'nd_experiment_pub' to tripal
  8267. * @see tripal_core_chado_insert()
  8268. * @see tripal_core_chado_update()
  8269. * @see tripal_core_chado_select()
  8270. *
  8271. * @return
  8272. * An array describing the 'nd_experiment_pub' table
  8273. *
  8274. * @ingroup tripal_chado_v1.2_schema_api
  8275. *
  8276. */
  8277. function tripal_core_chado_schema_v1_2_nd_experiment_pub() {
  8278. $description = array(
  8279. 'description' => 'TODO: please describe this table!',
  8280. 'fields' => array(
  8281. 'nd_experiment_pub_id' => array(
  8282. 'description' => 'TODO: please describe this field!',
  8283. 'type' => 'serial',
  8284. 'not null' => TRUE,
  8285. ),
  8286. 'nd_experiment_id' => array(
  8287. 'description' => 'TODO: please describe this field!',
  8288. 'type' => 'int',
  8289. 'not null' => TRUE,
  8290. ),
  8291. 'pub_id' => array(
  8292. 'description' => 'TODO: please describe this field!',
  8293. 'type' => 'int',
  8294. 'not null' => TRUE,
  8295. ),
  8296. ),
  8297. 'primary key' => array(
  8298. 0 => 'nd_experiment_pub_id',
  8299. ),
  8300. 'unique keys' => array(
  8301. 'nd_experiment_pub_c1' => array(
  8302. 0 => 'nd_experiment_id',
  8303. 1 => 'pub_id',
  8304. ),
  8305. ),
  8306. 'indexes' => array(
  8307. 'nd_experiment_pub_idx1' => array(
  8308. 0 => 'nd_experiment_id',
  8309. ),
  8310. 'nd_experiment_pub_idx2' => array(
  8311. 0 => 'pub_id',
  8312. ),
  8313. ),
  8314. 'foreign keys' => array(
  8315. 'pub' => array(
  8316. 'table' => 'pub',
  8317. 'columns' => array(
  8318. 'pub_id' => 'pub_id',
  8319. ),
  8320. ),
  8321. 'nd_experiment' => array(
  8322. 'table' => 'nd_experiment',
  8323. 'columns' => array(
  8324. 'nd_experiment_id' => 'nd_experiment_id',
  8325. ),
  8326. ),
  8327. ),
  8328. 'table' => 'nd_experiment_pub',
  8329. 'referring_tables' => NULL,
  8330. );
  8331. return $description;
  8332. }
  8333. /**
  8334. * Implements hook_chado_schema_v1_2_nd_experiment_stock()
  8335. * Purpose: To describe the structure of 'nd_experiment_stock' to tripal
  8336. * @see tripal_core_chado_insert()
  8337. * @see tripal_core_chado_update()
  8338. * @see tripal_core_chado_select()
  8339. *
  8340. * @return
  8341. * An array describing the 'nd_experiment_stock' table
  8342. *
  8343. * @ingroup tripal_chado_v1.2_schema_api
  8344. *
  8345. */
  8346. function tripal_core_chado_schema_v1_2_nd_experiment_stock() {
  8347. $description = array(
  8348. 'description' => 'TODO: please describe this table!',
  8349. 'fields' => array(
  8350. 'nd_experiment_stock_id' => array(
  8351. 'description' => 'TODO: please describe this field!',
  8352. 'type' => 'serial',
  8353. 'not null' => TRUE,
  8354. ),
  8355. 'nd_experiment_id' => array(
  8356. 'description' => 'TODO: please describe this field!',
  8357. 'type' => 'int',
  8358. 'not null' => TRUE,
  8359. ),
  8360. 'stock_id' => array(
  8361. 'description' => 'TODO: please describe this field!',
  8362. 'type' => 'int',
  8363. 'not null' => TRUE,
  8364. ),
  8365. 'type_id' => array(
  8366. 'description' => 'TODO: please describe this field!',
  8367. 'type' => 'int',
  8368. 'not null' => TRUE,
  8369. ),
  8370. ),
  8371. 'primary key' => array(
  8372. 0 => 'nd_experiment_stock_id',
  8373. ),
  8374. 'foreign keys' => array(
  8375. 'cvterm' => array(
  8376. 'table' => 'cvterm',
  8377. 'columns' => array(
  8378. 'type_id' => 'cvterm_id',
  8379. ),
  8380. ),
  8381. 'stock' => array(
  8382. 'table' => 'stock',
  8383. 'columns' => array(
  8384. 'stock_id' => 'stock_id',
  8385. ),
  8386. ),
  8387. 'nd_experiment' => array(
  8388. 'table' => 'nd_experiment',
  8389. 'columns' => array(
  8390. 'nd_experiment_id' => 'nd_experiment_id',
  8391. ),
  8392. ),
  8393. ),
  8394. 'table' => 'nd_experiment_stock',
  8395. 'referring_tables' => array(
  8396. 0 => 'nd_experiment_stock_dbxref',
  8397. 1 => 'nd_experiment_stockprop',
  8398. ),
  8399. );
  8400. return $description;
  8401. }
  8402. /**
  8403. * Implements hook_chado_schema_v1_2_nd_experiment_stock_dbxref()
  8404. * Purpose: To describe the structure of 'nd_experiment_stock_dbxref' to tripal
  8405. * @see tripal_core_chado_insert()
  8406. * @see tripal_core_chado_update()
  8407. * @see tripal_core_chado_select()
  8408. *
  8409. * @return
  8410. * An array describing the 'nd_experiment_stock_dbxref' table
  8411. *
  8412. * @ingroup tripal_chado_v1.2_schema_api
  8413. *
  8414. */
  8415. function tripal_core_chado_schema_v1_2_nd_experiment_stock_dbxref() {
  8416. $description = array(
  8417. 'description' => 'TODO: please describe this table!',
  8418. 'fields' => array(
  8419. 'nd_experiment_stock_dbxref_id' => array(
  8420. 'description' => 'TODO: please describe this field!',
  8421. 'type' => 'serial',
  8422. 'not null' => TRUE,
  8423. ),
  8424. 'nd_experiment_stock_id' => array(
  8425. 'description' => 'TODO: please describe this field!',
  8426. 'type' => 'int',
  8427. 'not null' => TRUE,
  8428. ),
  8429. 'dbxref_id' => array(
  8430. 'description' => 'TODO: please describe this field!',
  8431. 'type' => 'int',
  8432. 'not null' => TRUE,
  8433. ),
  8434. ),
  8435. 'primary key' => array(
  8436. 0 => 'nd_experiment_stock_dbxref_id',
  8437. ),
  8438. 'foreign keys' => array(
  8439. 'dbxref' => array(
  8440. 'table' => 'dbxref',
  8441. 'columns' => array(
  8442. 'dbxref_id' => 'dbxref_id',
  8443. ),
  8444. ),
  8445. 'nd_experiment_stock' => array(
  8446. 'table' => 'nd_experiment_stock',
  8447. 'columns' => array(
  8448. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  8449. ),
  8450. ),
  8451. ),
  8452. 'table' => 'nd_experiment_stock_dbxref',
  8453. 'referring_tables' => NULL,
  8454. );
  8455. return $description;
  8456. }
  8457. /**
  8458. * Implements hook_chado_schema_v1_2_nd_experiment_stockprop()
  8459. * Purpose: To describe the structure of 'nd_experiment_stockprop' to tripal
  8460. * @see tripal_core_chado_insert()
  8461. * @see tripal_core_chado_update()
  8462. * @see tripal_core_chado_select()
  8463. *
  8464. * @return
  8465. * An array describing the 'nd_experiment_stockprop' table
  8466. *
  8467. * @ingroup tripal_chado_v1.2_schema_api
  8468. *
  8469. */
  8470. function tripal_core_chado_schema_v1_2_nd_experiment_stockprop() {
  8471. $description = array(
  8472. 'description' => 'TODO: please describe this table!',
  8473. 'fields' => array(
  8474. 'nd_experiment_stockprop_id' => array(
  8475. 'description' => 'TODO: please describe this field!',
  8476. 'type' => 'serial',
  8477. 'not null' => TRUE,
  8478. ),
  8479. 'nd_experiment_stock_id' => array(
  8480. 'description' => 'TODO: please describe this field!',
  8481. 'type' => 'int',
  8482. 'not null' => TRUE,
  8483. ),
  8484. 'type_id' => array(
  8485. 'description' => 'TODO: please describe this field!',
  8486. 'type' => 'int',
  8487. 'not null' => TRUE,
  8488. ),
  8489. 'value' => array(
  8490. 'description' => 'TODO: please describe this field!',
  8491. 'type' => 'text',
  8492. 'not null' => FALSE,
  8493. ),
  8494. 'rank' => array(
  8495. 'description' => 'TODO: please describe this field!',
  8496. 'type' => 'int',
  8497. 'not null' => TRUE,
  8498. 'default' => 0,
  8499. ),
  8500. ),
  8501. 'primary key' => array(
  8502. 0 => 'nd_experiment_stockprop_id',
  8503. ),
  8504. 'unique keys' => array(
  8505. 'nd_experiment_stockprop_c1' => array(
  8506. 0 => 'nd_experiment_stock_id',
  8507. 1 => 'type_id',
  8508. 2 => 'rank',
  8509. ),
  8510. ),
  8511. 'foreign keys' => array(
  8512. 'cvterm' => array(
  8513. 'table' => 'cvterm',
  8514. 'columns' => array(
  8515. 'type_id' => 'cvterm_id',
  8516. ),
  8517. ),
  8518. 'nd_experiment_stock' => array(
  8519. 'table' => 'nd_experiment_stock',
  8520. 'columns' => array(
  8521. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  8522. ),
  8523. ),
  8524. ),
  8525. 'table' => 'nd_experiment_stockprop',
  8526. 'referring_tables' => NULL,
  8527. );
  8528. return $description;
  8529. }
  8530. /**
  8531. * Implements hook_chado_schema_v1_2_nd_experimentprop()
  8532. * Purpose: To describe the structure of 'nd_experimentprop' to tripal
  8533. * @see tripal_core_chado_insert()
  8534. * @see tripal_core_chado_update()
  8535. * @see tripal_core_chado_select()
  8536. *
  8537. * @return
  8538. * An array describing the 'nd_experimentprop' table
  8539. *
  8540. * @ingroup tripal_chado_v1.2_schema_api
  8541. *
  8542. */
  8543. function tripal_core_chado_schema_v1_2_nd_experimentprop() {
  8544. $description = array(
  8545. 'description' => 'TODO: please describe this table!',
  8546. 'fields' => array(
  8547. 'nd_experimentprop_id' => array(
  8548. 'description' => 'TODO: please describe this field!',
  8549. 'type' => 'serial',
  8550. 'not null' => TRUE,
  8551. ),
  8552. 'nd_experiment_id' => array(
  8553. 'description' => 'TODO: please describe this field!',
  8554. 'type' => 'int',
  8555. 'not null' => TRUE,
  8556. ),
  8557. 'type_id' => array(
  8558. 'description' => 'TODO: please describe this field!',
  8559. 'type' => 'int',
  8560. 'not null' => TRUE,
  8561. ),
  8562. 'value' => array(
  8563. 'description' => 'TODO: please describe this field!',
  8564. 'type' => 'text',
  8565. 'not null' => FALSE,
  8566. ),
  8567. 'rank' => array(
  8568. 'description' => 'TODO: please describe this field!',
  8569. 'type' => 'int',
  8570. 'not null' => TRUE,
  8571. 'default' => 0,
  8572. ),
  8573. ),
  8574. 'primary key' => array(
  8575. 0 => 'nd_experimentprop_id',
  8576. ),
  8577. 'unique keys' => array(
  8578. 'nd_experimentprop_c1' => array(
  8579. 0 => 'nd_experiment_id',
  8580. 1 => 'type_id',
  8581. 2 => 'rank',
  8582. ),
  8583. ),
  8584. 'foreign keys' => array(
  8585. 'cvterm' => array(
  8586. 'table' => 'cvterm',
  8587. 'columns' => array(
  8588. 'type_id' => 'cvterm_id',
  8589. ),
  8590. ),
  8591. 'nd_experiment' => array(
  8592. 'table' => 'nd_experiment',
  8593. 'columns' => array(
  8594. 'nd_experiment_id' => 'nd_experiment_id',
  8595. ),
  8596. ),
  8597. ),
  8598. 'table' => 'nd_experimentprop',
  8599. 'referring_tables' => NULL,
  8600. );
  8601. return $description;
  8602. }
  8603. /**
  8604. * Implements hook_chado_schema_v1_2_nd_geolocation()
  8605. * Purpose: To describe the structure of 'nd_geolocation' to tripal
  8606. * @see tripal_core_chado_insert()
  8607. * @see tripal_core_chado_update()
  8608. * @see tripal_core_chado_select()
  8609. *
  8610. * @return
  8611. * An array describing the 'nd_geolocation' table
  8612. *
  8613. * @ingroup tripal_chado_v1.2_schema_api
  8614. *
  8615. */
  8616. function tripal_core_chado_schema_v1_2_nd_geolocation() {
  8617. $description = array(
  8618. 'description' => 'TODO: please describe this table!',
  8619. 'fields' => array(
  8620. 'nd_geolocation_id' => array(
  8621. 'description' => 'TODO: please describe this field!',
  8622. 'type' => 'serial',
  8623. 'not null' => TRUE,
  8624. ),
  8625. 'description' => array(
  8626. 'description' => 'TODO: please describe this field!',
  8627. 'type' => 'varchar',
  8628. 'length' => '255',
  8629. 'not null' => FALSE,
  8630. ),
  8631. 'latitude' => array(
  8632. 'description' => 'TODO: please describe this field!',
  8633. 'type' => 'float',
  8634. 'not null' => FALSE,
  8635. ),
  8636. 'longitude' => array(
  8637. 'description' => 'TODO: please describe this field!',
  8638. 'type' => 'float',
  8639. 'not null' => FALSE,
  8640. ),
  8641. 'geodetic_datum' => array(
  8642. 'description' => 'TODO: please describe this field!',
  8643. 'type' => 'varchar',
  8644. 'length' => '32',
  8645. 'not null' => FALSE,
  8646. ),
  8647. 'altitude' => array(
  8648. 'description' => 'TODO: please describe this field!',
  8649. 'type' => 'float',
  8650. 'not null' => FALSE,
  8651. ),
  8652. ),
  8653. 'primary key' => array(
  8654. 0 => 'nd_geolocation_id',
  8655. ),
  8656. 'foreign keys' => array(
  8657. ),
  8658. 'table' => 'nd_geolocation',
  8659. 'referring_tables' => array(
  8660. 0 => 'nd_experiment',
  8661. 1 => 'nd_geolocationprop',
  8662. ),
  8663. );
  8664. return $description;
  8665. }
  8666. /**
  8667. * Implements hook_chado_schema_v1_2_nd_geolocationprop()
  8668. * Purpose: To describe the structure of 'nd_geolocationprop' to tripal
  8669. * @see tripal_core_chado_insert()
  8670. * @see tripal_core_chado_update()
  8671. * @see tripal_core_chado_select()
  8672. *
  8673. * @return
  8674. * An array describing the 'nd_geolocationprop' table
  8675. *
  8676. * @ingroup tripal_chado_v1.2_schema_api
  8677. *
  8678. */
  8679. function tripal_core_chado_schema_v1_2_nd_geolocationprop() {
  8680. $description = array(
  8681. 'description' => 'TODO: please describe this table!',
  8682. 'fields' => array(
  8683. 'nd_geolocationprop_id' => array(
  8684. 'description' => 'TODO: please describe this field!',
  8685. 'type' => 'serial',
  8686. 'not null' => TRUE,
  8687. ),
  8688. 'nd_geolocation_id' => array(
  8689. 'description' => 'TODO: please describe this field!',
  8690. 'type' => 'int',
  8691. 'not null' => TRUE,
  8692. ),
  8693. 'type_id' => array(
  8694. 'description' => 'TODO: please describe this field!',
  8695. 'type' => 'int',
  8696. 'not null' => TRUE,
  8697. ),
  8698. 'value' => array(
  8699. 'description' => 'TODO: please describe this field!',
  8700. 'type' => 'text',
  8701. 'not null' => FALSE,
  8702. ),
  8703. 'rank' => array(
  8704. 'description' => 'TODO: please describe this field!',
  8705. 'type' => 'int',
  8706. 'not null' => TRUE,
  8707. 'default' => 0,
  8708. ),
  8709. ),
  8710. 'primary key' => array(
  8711. 0 => 'nd_geolocationprop_id',
  8712. ),
  8713. 'unique keys' => array(
  8714. 'nd_geolocationprop_c1' => array(
  8715. 0 => 'nd_geolocation_id',
  8716. 1 => 'type_id',
  8717. 2 => 'rank',
  8718. ),
  8719. ),
  8720. 'foreign keys' => array(
  8721. 'cvterm' => array(
  8722. 'table' => 'cvterm',
  8723. 'columns' => array(
  8724. 'type_id' => 'cvterm_id',
  8725. ),
  8726. ),
  8727. 'nd_geolocation' => array(
  8728. 'table' => 'nd_geolocation',
  8729. 'columns' => array(
  8730. 'nd_geolocation_id' => 'nd_geolocation_id',
  8731. ),
  8732. ),
  8733. ),
  8734. 'table' => 'nd_geolocationprop',
  8735. 'referring_tables' => NULL,
  8736. );
  8737. return $description;
  8738. }
  8739. /**
  8740. * Implements hook_chado_schema_v1_2_nd_protocol()
  8741. * Purpose: To describe the structure of 'nd_protocol' to tripal
  8742. * @see tripal_core_chado_insert()
  8743. * @see tripal_core_chado_update()
  8744. * @see tripal_core_chado_select()
  8745. *
  8746. * @return
  8747. * An array describing the 'nd_protocol' table
  8748. *
  8749. * @ingroup tripal_chado_v1.2_schema_api
  8750. *
  8751. */
  8752. function tripal_core_chado_schema_v1_2_nd_protocol() {
  8753. $description = array(
  8754. 'description' => 'TODO: please describe this table!',
  8755. 'fields' => array(
  8756. 'nd_protocol_id' => array(
  8757. 'description' => 'TODO: please describe this field!',
  8758. 'type' => 'serial',
  8759. 'not null' => TRUE,
  8760. ),
  8761. 'name' => array(
  8762. 'description' => 'TODO: please describe this field!',
  8763. 'type' => 'varchar',
  8764. 'length' => '255',
  8765. 'not null' => TRUE,
  8766. ),
  8767. 'type_id' => array(
  8768. 'description' => 'TODO: please describe this field!',
  8769. 'type' => 'int',
  8770. 'not null' => TRUE,
  8771. ),
  8772. ),
  8773. 'primary key' => array(
  8774. 0 => 'nd_protocol_id',
  8775. ),
  8776. 'unique keys' => array(
  8777. 'name' => array(
  8778. 0 => 'name',
  8779. ),
  8780. ),
  8781. 'foreign keys' => array(
  8782. 'cvterm' => array(
  8783. 'table' => 'cvterm',
  8784. 'columns' => array(
  8785. 'type_id' => 'cvterm_id',
  8786. ),
  8787. ),
  8788. ),
  8789. 'table' => 'nd_protocol',
  8790. 'referring_tables' => array(
  8791. 0 => 'nd_experiment_protocol',
  8792. 1 => 'nd_protocol_reagent',
  8793. 2 => 'nd_protocolprop',
  8794. ),
  8795. );
  8796. return $description;
  8797. }
  8798. /**
  8799. * Implements hook_chado_schema_v1_2_nd_protocol_reagent()
  8800. * Purpose: To describe the structure of 'nd_protocol_reagent' to tripal
  8801. * @see tripal_core_chado_insert()
  8802. * @see tripal_core_chado_update()
  8803. * @see tripal_core_chado_select()
  8804. *
  8805. * @return
  8806. * An array describing the 'nd_protocol_reagent' table
  8807. *
  8808. * @ingroup tripal_chado_v1.2_schema_api
  8809. *
  8810. */
  8811. function tripal_core_chado_schema_v1_2_nd_protocol_reagent() {
  8812. $description = array(
  8813. 'description' => 'TODO: please describe this table!',
  8814. 'fields' => array(
  8815. 'nd_protocol_reagent_id' => array(
  8816. 'description' => 'TODO: please describe this field!',
  8817. 'type' => 'serial',
  8818. 'not null' => TRUE,
  8819. ),
  8820. 'nd_protocol_id' => array(
  8821. 'description' => 'TODO: please describe this field!',
  8822. 'type' => 'int',
  8823. 'not null' => TRUE,
  8824. ),
  8825. 'reagent_id' => array(
  8826. 'description' => 'TODO: please describe this field!',
  8827. 'type' => 'int',
  8828. 'not null' => TRUE,
  8829. ),
  8830. 'type_id' => array(
  8831. 'description' => 'TODO: please describe this field!',
  8832. 'type' => 'int',
  8833. 'not null' => TRUE,
  8834. ),
  8835. ),
  8836. 'primary key' => array(
  8837. 0 => 'nd_protocol_reagent_id',
  8838. ),
  8839. 'foreign keys' => array(
  8840. 'cvterm' => array(
  8841. 'table' => 'cvterm',
  8842. 'columns' => array(
  8843. 'type_id' => 'cvterm_id',
  8844. ),
  8845. ),
  8846. 'nd_protocol' => array(
  8847. 'table' => 'nd_protocol',
  8848. 'columns' => array(
  8849. 'nd_protocol_id' => 'nd_protocol_id',
  8850. ),
  8851. ),
  8852. 'nd_reagent' => array(
  8853. 'table' => 'nd_reagent',
  8854. 'columns' => array(
  8855. 'reagent_id' => 'nd_reagent_id',
  8856. ),
  8857. ),
  8858. ),
  8859. 'table' => 'nd_protocol_reagent',
  8860. 'referring_tables' => NULL,
  8861. );
  8862. return $description;
  8863. }
  8864. /**
  8865. * Implements hook_chado_schema_v1_2_nd_protocolprop()
  8866. * Purpose: To describe the structure of 'nd_protocolprop' to tripal
  8867. * @see tripal_core_chado_insert()
  8868. * @see tripal_core_chado_update()
  8869. * @see tripal_core_chado_select()
  8870. *
  8871. * @return
  8872. * An array describing the 'nd_protocolprop' table
  8873. *
  8874. * @ingroup tripal_chado_v1.2_schema_api
  8875. *
  8876. */
  8877. function tripal_core_chado_schema_v1_2_nd_protocolprop() {
  8878. $description = array(
  8879. 'description' => 'TODO: please describe this table!',
  8880. 'fields' => array(
  8881. 'nd_protocolprop_id' => array(
  8882. 'description' => 'TODO: please describe this field!',
  8883. 'type' => 'serial',
  8884. 'not null' => TRUE,
  8885. ),
  8886. 'nd_protocol_id' => array(
  8887. 'description' => 'TODO: please describe this field!',
  8888. 'type' => 'int',
  8889. 'not null' => TRUE,
  8890. ),
  8891. 'type_id' => array(
  8892. 'description' => 'TODO: please describe this field!',
  8893. 'type' => 'int',
  8894. 'not null' => TRUE,
  8895. ),
  8896. 'value' => array(
  8897. 'description' => 'TODO: please describe this field!',
  8898. 'type' => 'text',
  8899. 'not null' => FALSE,
  8900. ),
  8901. 'rank' => array(
  8902. 'description' => 'TODO: please describe this field!',
  8903. 'type' => 'int',
  8904. 'not null' => TRUE,
  8905. 'default' => 0,
  8906. ),
  8907. ),
  8908. 'primary key' => array(
  8909. 0 => 'nd_protocolprop_id',
  8910. ),
  8911. 'unique keys' => array(
  8912. 'nd_protocolprop_c1' => array(
  8913. 0 => 'nd_protocol_id',
  8914. 1 => 'type_id',
  8915. 2 => 'rank',
  8916. ),
  8917. ),
  8918. 'foreign keys' => array(
  8919. 'cvterm' => array(
  8920. 'table' => 'cvterm',
  8921. 'columns' => array(
  8922. 'type_id' => 'cvterm_id',
  8923. ),
  8924. ),
  8925. 'nd_protocol' => array(
  8926. 'table' => 'nd_protocol',
  8927. 'columns' => array(
  8928. 'nd_protocol_id' => 'nd_protocol_id',
  8929. ),
  8930. ),
  8931. ),
  8932. 'table' => 'nd_protocolprop',
  8933. 'referring_tables' => NULL,
  8934. );
  8935. return $description;
  8936. }
  8937. /**
  8938. * Implements hook_chado_schema_v1_2_nd_reagent()
  8939. * Purpose: To describe the structure of 'nd_reagent' to tripal
  8940. * @see tripal_core_chado_insert()
  8941. * @see tripal_core_chado_update()
  8942. * @see tripal_core_chado_select()
  8943. *
  8944. * @return
  8945. * An array describing the 'nd_reagent' table
  8946. *
  8947. * @ingroup tripal_chado_v1.2_schema_api
  8948. *
  8949. */
  8950. function tripal_core_chado_schema_v1_2_nd_reagent() {
  8951. $description = array(
  8952. 'description' => 'TODO: please describe this table!',
  8953. 'fields' => array(
  8954. 'nd_reagent_id' => array(
  8955. 'description' => 'TODO: please describe this field!',
  8956. 'type' => 'serial',
  8957. 'not null' => TRUE,
  8958. ),
  8959. 'name' => array(
  8960. 'description' => 'TODO: please describe this field!',
  8961. 'type' => 'varchar',
  8962. 'length' => '80',
  8963. 'not null' => TRUE,
  8964. ),
  8965. 'type_id' => array(
  8966. 'description' => 'TODO: please describe this field!',
  8967. 'type' => 'int',
  8968. 'not null' => TRUE,
  8969. ),
  8970. 'feature_id' => array(
  8971. 'description' => 'TODO: please describe this field!',
  8972. 'type' => 'int',
  8973. 'not null' => FALSE,
  8974. ),
  8975. ),
  8976. 'primary key' => array(
  8977. 0 => 'nd_reagent_id',
  8978. ),
  8979. 'foreign keys' => array(
  8980. 'cvterm' => array(
  8981. 'table' => 'cvterm',
  8982. 'columns' => array(
  8983. 'type_id' => 'cvterm_id',
  8984. ),
  8985. ),
  8986. ),
  8987. 'table' => 'nd_reagent',
  8988. 'referring_tables' => array(
  8989. 0 => 'nd_protocol_reagent',
  8990. 1 => 'nd_reagent_relationship',
  8991. 3 => 'nd_reagentprop',
  8992. ),
  8993. );
  8994. return $description;
  8995. }
  8996. /**
  8997. * Implements hook_chado_schema_v1_2_nd_reagent_relationship()
  8998. * Purpose: To describe the structure of 'nd_reagent_relationship' to tripal
  8999. * @see tripal_core_chado_insert()
  9000. * @see tripal_core_chado_update()
  9001. * @see tripal_core_chado_select()
  9002. *
  9003. * @return
  9004. * An array describing the 'nd_reagent_relationship' table
  9005. *
  9006. * @ingroup tripal_chado_v1.2_schema_api
  9007. *
  9008. */
  9009. function tripal_core_chado_schema_v1_2_nd_reagent_relationship() {
  9010. $description = array(
  9011. 'description' => 'TODO: please describe this table!',
  9012. 'fields' => array(
  9013. 'nd_reagent_relationship_id' => array(
  9014. 'description' => 'TODO: please describe this field!',
  9015. 'type' => 'serial',
  9016. 'not null' => TRUE,
  9017. ),
  9018. 'subject_reagent_id' => array(
  9019. 'description' => 'TODO: please describe this field!',
  9020. 'type' => 'int',
  9021. 'not null' => TRUE,
  9022. ),
  9023. 'object_reagent_id' => array(
  9024. 'description' => 'TODO: please describe this field!',
  9025. 'type' => 'int',
  9026. 'not null' => TRUE,
  9027. ),
  9028. 'type_id' => array(
  9029. 'description' => 'TODO: please describe this field!',
  9030. 'type' => 'int',
  9031. 'not null' => TRUE,
  9032. ),
  9033. ),
  9034. 'primary key' => array(
  9035. 0 => 'nd_reagent_relationship_id',
  9036. ),
  9037. 'foreign keys' => array(
  9038. 'cvterm' => array(
  9039. 'table' => 'cvterm',
  9040. 'columns' => array(
  9041. 'type_id' => 'cvterm_id',
  9042. ),
  9043. ),
  9044. 'nd_reagent' => array(
  9045. 'table' => 'nd_reagent',
  9046. 'columns' => array(
  9047. 'subject_reagent_id' => 'nd_reagent_id',
  9048. 'object_reagent_id' => 'nd_reagent_id',
  9049. ),
  9050. ),
  9051. ),
  9052. 'table' => 'nd_reagent_relationship',
  9053. 'referring_tables' => NULL,
  9054. );
  9055. return $description;
  9056. }
  9057. /**
  9058. * Implements hook_chado_schema_v1_2_nd_reagentprop()
  9059. * Purpose: To describe the structure of 'nd_reagentprop' to tripal
  9060. * @see tripal_core_chado_insert()
  9061. * @see tripal_core_chado_update()
  9062. * @see tripal_core_chado_select()
  9063. *
  9064. * @return
  9065. * An array describing the 'nd_reagentprop' table
  9066. *
  9067. * @ingroup tripal_chado_v1.2_schema_api
  9068. *
  9069. */
  9070. function tripal_core_chado_schema_v1_2_nd_reagentprop() {
  9071. $description = array(
  9072. 'description' => 'TODO: please describe this table!',
  9073. 'fields' => array(
  9074. 'nd_reagentprop_id' => array(
  9075. 'description' => 'TODO: please describe this field!',
  9076. 'type' => 'serial',
  9077. 'not null' => TRUE,
  9078. ),
  9079. 'nd_reagent_id' => array(
  9080. 'description' => 'TODO: please describe this field!',
  9081. 'type' => 'int',
  9082. 'not null' => TRUE,
  9083. ),
  9084. 'type_id' => array(
  9085. 'description' => 'TODO: please describe this field!',
  9086. 'type' => 'int',
  9087. 'not null' => TRUE,
  9088. ),
  9089. 'value' => array(
  9090. 'description' => 'TODO: please describe this field!',
  9091. 'type' => 'text',
  9092. 'not null' => FALSE,
  9093. ),
  9094. 'rank' => array(
  9095. 'description' => 'TODO: please describe this field!',
  9096. 'type' => 'int',
  9097. 'not null' => TRUE,
  9098. 'default' => 0,
  9099. ),
  9100. ),
  9101. 'primary key' => array(
  9102. 0 => 'nd_reagentprop_id',
  9103. ),
  9104. 'unique keys' => array(
  9105. 'nd_reagentprop_c1' => array(
  9106. 0 => 'nd_reagent_id',
  9107. 1 => 'type_id',
  9108. 2 => 'rank',
  9109. ),
  9110. ),
  9111. 'foreign keys' => array(
  9112. 'cvterm' => array(
  9113. 'table' => 'cvterm',
  9114. 'columns' => array(
  9115. 'type_id' => 'cvterm_id',
  9116. ),
  9117. ),
  9118. 'nd_reagent' => array(
  9119. 'table' => 'nd_reagent',
  9120. 'columns' => array(
  9121. 'nd_reagent_id' => 'nd_reagent_id',
  9122. ),
  9123. ),
  9124. ),
  9125. 'table' => 'nd_reagentprop',
  9126. 'referring_tables' => NULL,
  9127. );
  9128. return $description;
  9129. }
  9130. /**
  9131. * Implements hook_chado_schema_v1_2_organism()
  9132. * Purpose: To describe the structure of 'organism' to tripal
  9133. * @see tripal_core_chado_insert()
  9134. * @see tripal_core_chado_update()
  9135. * @see tripal_core_chado_select()
  9136. *
  9137. * @return
  9138. * An array describing the 'organism' table
  9139. *
  9140. * @ingroup tripal_chado_v1.2_schema_api
  9141. *
  9142. */
  9143. function tripal_core_chado_schema_v1_2_organism() {
  9144. $description = array(
  9145. 'description' => 'TODO: please describe this table!',
  9146. 'fields' => array(
  9147. 'organism_id' => array(
  9148. 'description' => 'TODO: please describe this field!',
  9149. 'type' => 'serial',
  9150. 'not null' => TRUE,
  9151. ),
  9152. 'abbreviation' => array(
  9153. 'description' => 'TODO: please describe this field!',
  9154. 'type' => 'varchar',
  9155. 'length' => '255',
  9156. 'not null' => FALSE,
  9157. ),
  9158. 'genus' => array(
  9159. 'description' => 'TODO: please describe this field!',
  9160. 'type' => 'varchar',
  9161. 'length' => '255',
  9162. 'not null' => TRUE,
  9163. ),
  9164. 'species' => array(
  9165. 'description' => 'TODO: please describe this field!',
  9166. 'type' => 'varchar',
  9167. 'length' => '255',
  9168. 'not null' => TRUE,
  9169. ),
  9170. 'common_name' => array(
  9171. 'description' => 'TODO: please describe this field!',
  9172. 'type' => 'varchar',
  9173. 'length' => '255',
  9174. 'not null' => FALSE,
  9175. ),
  9176. 'comment' => array(
  9177. 'description' => 'TODO: please describe this field!',
  9178. 'type' => 'text',
  9179. 'not null' => FALSE,
  9180. ),
  9181. ),
  9182. 'primary key' => array(
  9183. 0 => 'organism_id',
  9184. ),
  9185. 'unique keys' => array(
  9186. 'organism_c1' => array(
  9187. 0 => 'genus',
  9188. 1 => 'species',
  9189. ),
  9190. ),
  9191. 'foreign keys' => array(
  9192. ),
  9193. 'referring_tables' => array(
  9194. 0 => 'biomaterial',
  9195. 1 => 'cell_line',
  9196. 2 => 'feature',
  9197. 3 => 'library',
  9198. 4 => 'organism_dbxref',
  9199. 5 => 'organismprop',
  9200. 6 => 'phenotype_comparison',
  9201. 7 => 'phylonode_organism',
  9202. 8 => 'stock',
  9203. ),
  9204. 'table' => 'organism',
  9205. );
  9206. return $description;
  9207. }
  9208. /**
  9209. * Implements hook_chado_schema_v1_2_organism_dbxref()
  9210. * Purpose: To describe the structure of 'organism_dbxref' to tripal
  9211. * @see tripal_core_chado_insert()
  9212. * @see tripal_core_chado_update()
  9213. * @see tripal_core_chado_select()
  9214. *
  9215. * @return
  9216. * An array describing the 'organism_dbxref' table
  9217. *
  9218. * @ingroup tripal_chado_v1.2_schema_api
  9219. *
  9220. */
  9221. function tripal_core_chado_schema_v1_2_organism_dbxref() {
  9222. $description = array(
  9223. 'description' => 'TODO: please describe this table!',
  9224. 'fields' => array(
  9225. 'organism_dbxref_id' => array(
  9226. 'description' => 'TODO: please describe this field!',
  9227. 'type' => 'serial',
  9228. 'not null' => TRUE,
  9229. ),
  9230. 'organism_id' => array(
  9231. 'description' => 'TODO: please describe this field!',
  9232. 'type' => 'int',
  9233. 'not null' => TRUE,
  9234. ),
  9235. 'dbxref_id' => array(
  9236. 'description' => 'TODO: please describe this field!',
  9237. 'type' => 'int',
  9238. 'not null' => TRUE,
  9239. ),
  9240. ),
  9241. 'primary key' => array(
  9242. 0 => 'organism_dbxref_id',
  9243. ),
  9244. 'unique keys' => array(
  9245. 'organism_dbxref_c1' => array(
  9246. 0 => 'organism_id',
  9247. 1 => 'dbxref_id',
  9248. ),
  9249. ),
  9250. 'indexes' => array(
  9251. 'organism_dbxref_idx1' => array(
  9252. 0 => 'organism_id',
  9253. ),
  9254. 'organism_dbxref_idx2' => array(
  9255. 0 => 'dbxref_id',
  9256. ),
  9257. ),
  9258. 'foreign keys' => array(
  9259. 'organism' => array(
  9260. 'table' => 'organism',
  9261. 'columns' => array(
  9262. 'organism_id' => 'organism_id',
  9263. ),
  9264. ),
  9265. 'dbxref' => array(
  9266. 'table' => 'dbxref',
  9267. 'columns' => array(
  9268. 'dbxref_id' => 'dbxref_id',
  9269. ),
  9270. ),
  9271. ),
  9272. 'table' => 'organism_dbxref',
  9273. 'referring_tables' => NULL,
  9274. );
  9275. return $description;
  9276. }
  9277. /**
  9278. * Implements hook_chado_schema_v1_2_organismprop()
  9279. * Purpose: To describe the structure of 'organismprop' to tripal
  9280. * @see tripal_core_chado_insert()
  9281. * @see tripal_core_chado_update()
  9282. * @see tripal_core_chado_select()
  9283. *
  9284. * @return
  9285. * An array describing the 'organismprop' table
  9286. *
  9287. * @ingroup tripal_chado_v1.2_schema_api
  9288. *
  9289. */
  9290. function tripal_core_chado_schema_v1_2_organismprop() {
  9291. $description = array(
  9292. 'description' => 'TODO: please describe this table!',
  9293. 'fields' => array(
  9294. 'organismprop_id' => array(
  9295. 'description' => 'TODO: please describe this field!',
  9296. 'type' => 'serial',
  9297. 'not null' => TRUE,
  9298. ),
  9299. 'organism_id' => array(
  9300. 'description' => 'TODO: please describe this field!',
  9301. 'type' => 'int',
  9302. 'not null' => TRUE,
  9303. ),
  9304. 'type_id' => array(
  9305. 'description' => 'TODO: please describe this field!',
  9306. 'type' => 'int',
  9307. 'not null' => TRUE,
  9308. ),
  9309. 'value' => array(
  9310. 'description' => 'TODO: please describe this field!',
  9311. 'type' => 'text',
  9312. 'not null' => FALSE,
  9313. ),
  9314. 'rank' => array(
  9315. 'description' => 'TODO: please describe this field!',
  9316. 'type' => 'int',
  9317. 'not null' => TRUE,
  9318. 'default' => 0,
  9319. ),
  9320. ),
  9321. 'primary key' => array(
  9322. 0 => 'organismprop_id',
  9323. ),
  9324. 'unique keys' => array(
  9325. 'organismprop_c1' => array(
  9326. 0 => 'organism_id',
  9327. 1 => 'type_id',
  9328. 2 => 'rank',
  9329. ),
  9330. ),
  9331. 'indexes' => array(
  9332. 'organismprop_idx1' => array(
  9333. 0 => 'organism_id',
  9334. ),
  9335. 'organismprop_idx2' => array(
  9336. 0 => 'type_id',
  9337. ),
  9338. ),
  9339. 'foreign keys' => array(
  9340. 'organism' => array(
  9341. 'table' => 'organism',
  9342. 'columns' => array(
  9343. 'organism_id' => 'organism_id',
  9344. ),
  9345. ),
  9346. 'cvterm' => array(
  9347. 'table' => 'cvterm',
  9348. 'columns' => array(
  9349. 'type_id' => 'cvterm_id',
  9350. ),
  9351. ),
  9352. ),
  9353. 'table' => 'organismprop',
  9354. 'referring_tables' => NULL,
  9355. );
  9356. return $description;
  9357. }
  9358. /**
  9359. * Implements hook_chado_schema_v1_2_phendesc()
  9360. * Purpose: To describe the structure of 'phendesc' to tripal
  9361. * @see tripal_core_chado_insert()
  9362. * @see tripal_core_chado_update()
  9363. * @see tripal_core_chado_select()
  9364. *
  9365. * @return
  9366. * An array describing the 'phendesc' table
  9367. *
  9368. * @ingroup tripal_chado_v1.2_schema_api
  9369. *
  9370. */
  9371. function tripal_core_chado_schema_v1_2_phendesc() {
  9372. $description = array(
  9373. 'description' => 'TODO: please describe this table!',
  9374. 'fields' => array(
  9375. 'phendesc_id' => array(
  9376. 'description' => 'TODO: please describe this field!',
  9377. 'type' => 'serial',
  9378. 'not null' => TRUE,
  9379. ),
  9380. 'genotype_id' => array(
  9381. 'description' => 'TODO: please describe this field!',
  9382. 'type' => 'int',
  9383. 'not null' => TRUE,
  9384. ),
  9385. 'environment_id' => array(
  9386. 'description' => 'TODO: please describe this field!',
  9387. 'type' => 'int',
  9388. 'not null' => TRUE,
  9389. ),
  9390. 'description' => array(
  9391. 'description' => 'TODO: please describe this field!',
  9392. 'type' => 'text',
  9393. 'not null' => TRUE,
  9394. ),
  9395. 'type_id' => array(
  9396. 'description' => 'TODO: please describe this field!',
  9397. 'type' => 'int',
  9398. 'not null' => TRUE,
  9399. ),
  9400. 'pub_id' => array(
  9401. 'description' => 'TODO: please describe this field!',
  9402. 'type' => 'int',
  9403. 'not null' => TRUE,
  9404. ),
  9405. ),
  9406. 'primary key' => array(
  9407. 0 => 'phendesc_id',
  9408. ),
  9409. 'unique keys' => array(
  9410. 'phendesc_c1' => array(
  9411. 0 => 'genotype_id',
  9412. 1 => 'environment_id',
  9413. 2 => 'type_id',
  9414. 3 => 'pub_id',
  9415. ),
  9416. ),
  9417. 'indexes' => array(
  9418. 'phendesc_idx1' => array(
  9419. 0 => 'genotype_id',
  9420. ),
  9421. 'phendesc_idx2' => array(
  9422. 0 => 'environment_id',
  9423. ),
  9424. 'phendesc_idx3' => array(
  9425. 0 => 'pub_id',
  9426. ),
  9427. ),
  9428. 'foreign keys' => array(
  9429. 'cvterm' => array(
  9430. 'table' => 'cvterm',
  9431. 'columns' => array(
  9432. 'type_id' => 'cvterm_id',
  9433. ),
  9434. ),
  9435. 'pub' => array(
  9436. 'table' => 'pub',
  9437. 'columns' => array(
  9438. 'pub_id' => 'pub_id',
  9439. ),
  9440. ),
  9441. 'genotype' => array(
  9442. 'table' => 'genotype',
  9443. 'columns' => array(
  9444. 'genotype_id' => 'genotype_id',
  9445. ),
  9446. ),
  9447. 'environment' => array(
  9448. 'table' => 'environment',
  9449. 'columns' => array(
  9450. 'environment_id' => 'environment_id',
  9451. ),
  9452. ),
  9453. ),
  9454. 'table' => 'phendesc',
  9455. 'referring_tables' => NULL,
  9456. );
  9457. return $description;
  9458. }
  9459. /**
  9460. * Implements hook_chado_schema_v1_2_phenotype()
  9461. * Purpose: To describe the structure of 'phenotype' to tripal
  9462. * @see tripal_core_chado_insert()
  9463. * @see tripal_core_chado_update()
  9464. * @see tripal_core_chado_select()
  9465. *
  9466. * @return
  9467. * An array describing the 'phenotype' table
  9468. *
  9469. * @ingroup tripal_chado_v1.2_schema_api
  9470. *
  9471. */
  9472. function tripal_core_chado_schema_v1_2_phenotype() {
  9473. $description = array(
  9474. 'description' => 'TODO: please describe this table!',
  9475. 'fields' => array(
  9476. 'phenotype_id' => array(
  9477. 'description' => 'TODO: please describe this field!',
  9478. 'type' => 'serial',
  9479. 'not null' => TRUE,
  9480. ),
  9481. 'uniquename' => array(
  9482. 'description' => 'TODO: please describe this field!',
  9483. 'type' => 'text',
  9484. 'not null' => TRUE,
  9485. ),
  9486. 'name' => array(
  9487. 'description' => 'TODO: please describe this field!',
  9488. 'type' => 'text',
  9489. 'not null' => FALSE,
  9490. ),
  9491. 'observable_id' => array(
  9492. 'description' => 'TODO: please describe this field!',
  9493. 'type' => 'int',
  9494. 'not null' => FALSE,
  9495. ),
  9496. 'attr_id' => array(
  9497. 'description' => 'TODO: please describe this field!',
  9498. 'type' => 'int',
  9499. 'not null' => FALSE,
  9500. ),
  9501. 'value' => array(
  9502. 'description' => 'TODO: please describe this field!',
  9503. 'type' => 'text',
  9504. 'not null' => FALSE,
  9505. ),
  9506. 'cvalue_id' => array(
  9507. 'description' => 'TODO: please describe this field!',
  9508. 'type' => 'int',
  9509. 'not null' => FALSE,
  9510. ),
  9511. 'assay_id' => array(
  9512. 'description' => 'TODO: please describe this field!',
  9513. 'type' => 'int',
  9514. 'not null' => FALSE,
  9515. ),
  9516. ),
  9517. 'primary key' => array(
  9518. 0 => 'phenotype_id',
  9519. ),
  9520. 'unique keys' => array(
  9521. 'phenotype_c1' => array(
  9522. 0 => 'uniquename',
  9523. ),
  9524. ),
  9525. 'indexes' => array(
  9526. 'phenotype_idx1' => array(
  9527. 0 => 'cvalue_id',
  9528. ),
  9529. 'phenotype_idx2' => array(
  9530. 0 => 'observable_id',
  9531. ),
  9532. 'phenotype_idx3' => array(
  9533. 0 => 'attr_id',
  9534. ),
  9535. ),
  9536. 'foreign keys' => array(
  9537. 'cvterm' => array(
  9538. 'table' => 'cvterm',
  9539. 'columns' => array(
  9540. 'observable_id' => 'cvterm_id',
  9541. 'attr_id' => 'cvterm_id',
  9542. 'cvalue_id' => 'cvterm_id',
  9543. 'assay_id' => 'cvterm_id',
  9544. ),
  9545. ),
  9546. ),
  9547. 'table' => 'phenotype',
  9548. 'referring_tables' => array(
  9549. 0 => 'feature_phenotype',
  9550. 1 => 'nd_experiment_phenotype',
  9551. 2 => 'phenotype_comparison',
  9552. 4 => 'phenotype_cvterm',
  9553. 5 => 'phenstatement',
  9554. ),
  9555. );
  9556. return $description;
  9557. }
  9558. /**
  9559. * Implements hook_chado_schema_v1_2_phenotype_comparison()
  9560. * Purpose: To describe the structure of 'phenotype_comparison' to tripal
  9561. * @see tripal_core_chado_insert()
  9562. * @see tripal_core_chado_update()
  9563. * @see tripal_core_chado_select()
  9564. *
  9565. * @return
  9566. * An array describing the 'phenotype_comparison' table
  9567. *
  9568. * @ingroup tripal_chado_v1.2_schema_api
  9569. *
  9570. */
  9571. function tripal_core_chado_schema_v1_2_phenotype_comparison() {
  9572. $description = array(
  9573. 'description' => 'TODO: please describe this table!',
  9574. 'fields' => array(
  9575. 'phenotype_comparison_id' => array(
  9576. 'description' => 'TODO: please describe this field!',
  9577. 'type' => 'serial',
  9578. 'not null' => TRUE,
  9579. ),
  9580. 'genotype1_id' => array(
  9581. 'description' => 'TODO: please describe this field!',
  9582. 'type' => 'int',
  9583. 'not null' => TRUE,
  9584. ),
  9585. 'environment1_id' => array(
  9586. 'description' => 'TODO: please describe this field!',
  9587. 'type' => 'int',
  9588. 'not null' => TRUE,
  9589. ),
  9590. 'genotype2_id' => array(
  9591. 'description' => 'TODO: please describe this field!',
  9592. 'type' => 'int',
  9593. 'not null' => TRUE,
  9594. ),
  9595. 'environment2_id' => array(
  9596. 'description' => 'TODO: please describe this field!',
  9597. 'type' => 'int',
  9598. 'not null' => TRUE,
  9599. ),
  9600. 'phenotype1_id' => array(
  9601. 'description' => 'TODO: please describe this field!',
  9602. 'type' => 'int',
  9603. 'not null' => TRUE,
  9604. ),
  9605. 'phenotype2_id' => array(
  9606. 'description' => 'TODO: please describe this field!',
  9607. 'type' => 'int',
  9608. 'not null' => FALSE,
  9609. ),
  9610. 'pub_id' => array(
  9611. 'description' => 'TODO: please describe this field!',
  9612. 'type' => 'int',
  9613. 'not null' => TRUE,
  9614. ),
  9615. 'organism_id' => array(
  9616. 'description' => 'TODO: please describe this field!',
  9617. 'type' => 'int',
  9618. 'not null' => TRUE,
  9619. ),
  9620. ),
  9621. 'primary key' => array(
  9622. 0 => 'phenotype_comparison_id',
  9623. ),
  9624. 'unique keys' => array(
  9625. 'phenotype_comparison_c1' => array(
  9626. 0 => 'genotype1_id',
  9627. 1 => 'environment1_id',
  9628. 2 => 'genotype2_id',
  9629. 3 => 'environment2_id',
  9630. 4 => 'phenotype1_id',
  9631. 5 => 'pub_id',
  9632. ),
  9633. ),
  9634. 'indexes' => array(
  9635. 'phenotype_comparison_idx1' => array(
  9636. 0 => 'genotype1_id',
  9637. ),
  9638. 'phenotype_comparison_idx2' => array(
  9639. 0 => 'genotype2_id',
  9640. ),
  9641. 'phenotype_comparison_idx4' => array(
  9642. 0 => 'pub_id',
  9643. ),
  9644. ),
  9645. 'foreign keys' => array(
  9646. 'organism' => array(
  9647. 'table' => 'organism',
  9648. 'columns' => array(
  9649. 'organism_id' => 'organism_id',
  9650. ),
  9651. ),
  9652. 'pub' => array(
  9653. 'table' => 'pub',
  9654. 'columns' => array(
  9655. 'pub_id' => 'pub_id',
  9656. ),
  9657. ),
  9658. 'genotype' => array(
  9659. 'table' => 'genotype',
  9660. 'columns' => array(
  9661. 'genotype1_id' => 'genotype_id',
  9662. 'genotype2_id' => 'genotype_id',
  9663. ),
  9664. ),
  9665. 'environment' => array(
  9666. 'table' => 'environment',
  9667. 'columns' => array(
  9668. 'environment1_id' => 'environment_id',
  9669. 'environment2_id' => 'environment_id',
  9670. ),
  9671. ),
  9672. 'phenotype' => array(
  9673. 'table' => 'phenotype',
  9674. 'columns' => array(
  9675. 'phenotype1_id' => 'phenotype_id',
  9676. 'phenotype2_id' => 'phenotype_id',
  9677. ),
  9678. ),
  9679. ),
  9680. 'table' => 'phenotype_comparison',
  9681. 'referring_tables' => array(
  9682. 0 => 'phenotype_comparison_cvterm',
  9683. ),
  9684. );
  9685. return $description;
  9686. }
  9687. /**
  9688. * Implements hook_chado_schema_v1_2_phenotype_comparison_cvterm()
  9689. * Purpose: To describe the structure of 'phenotype_comparison_cvterm' to tripal
  9690. * @see tripal_core_chado_insert()
  9691. * @see tripal_core_chado_update()
  9692. * @see tripal_core_chado_select()
  9693. *
  9694. * @return
  9695. * An array describing the 'phenotype_comparison_cvterm' table
  9696. *
  9697. * @ingroup tripal_chado_v1.2_schema_api
  9698. *
  9699. */
  9700. function tripal_core_chado_schema_v1_2_phenotype_comparison_cvterm() {
  9701. $description = array(
  9702. 'description' => 'TODO: please describe this table!',
  9703. 'fields' => array(
  9704. 'phenotype_comparison_cvterm_id' => array(
  9705. 'description' => 'TODO: please describe this field!',
  9706. 'type' => 'serial',
  9707. 'not null' => TRUE,
  9708. ),
  9709. 'phenotype_comparison_id' => array(
  9710. 'description' => 'TODO: please describe this field!',
  9711. 'type' => 'int',
  9712. 'not null' => TRUE,
  9713. ),
  9714. 'cvterm_id' => array(
  9715. 'description' => 'TODO: please describe this field!',
  9716. 'type' => 'int',
  9717. 'not null' => TRUE,
  9718. ),
  9719. 'pub_id' => array(
  9720. 'description' => 'TODO: please describe this field!',
  9721. 'type' => 'int',
  9722. 'not null' => TRUE,
  9723. ),
  9724. 'rank' => array(
  9725. 'description' => 'TODO: please describe this field!',
  9726. 'type' => 'int',
  9727. 'not null' => TRUE,
  9728. 'default' => 0,
  9729. ),
  9730. ),
  9731. 'primary key' => array(
  9732. 0 => 'phenotype_comparison_cvterm_id',
  9733. ),
  9734. 'unique keys' => array(
  9735. 'phenotype_comparison_cvterm_c1' => array(
  9736. 0 => 'phenotype_comparison_id',
  9737. 1 => 'cvterm_id',
  9738. ),
  9739. ),
  9740. 'indexes' => array(
  9741. 'phenotype_comparison_cvterm_idx1' => array(
  9742. 0 => 'phenotype_comparison_id',
  9743. ),
  9744. 'phenotype_comparison_cvterm_idx2' => array(
  9745. 0 => 'cvterm_id',
  9746. ),
  9747. ),
  9748. 'foreign keys' => array(
  9749. 'cvterm' => array(
  9750. 'table' => 'cvterm',
  9751. 'columns' => array(
  9752. 'cvterm_id' => 'cvterm_id',
  9753. ),
  9754. ),
  9755. 'pub' => array(
  9756. 'table' => 'pub',
  9757. 'columns' => array(
  9758. 'pub_id' => 'pub_id',
  9759. ),
  9760. ),
  9761. 'phenotype_comparison' => array(
  9762. 'table' => 'phenotype_comparison',
  9763. 'columns' => array(
  9764. 'phenotype_comparison_id' => 'phenotype_comparison_id',
  9765. ),
  9766. ),
  9767. ),
  9768. 'table' => 'phenotype_comparison_cvterm',
  9769. 'referring_tables' => NULL,
  9770. );
  9771. return $description;
  9772. }
  9773. /**
  9774. * Implements hook_chado_schema_v1_2_phenotype_cvterm()
  9775. * Purpose: To describe the structure of 'phenotype_cvterm' to tripal
  9776. * @see tripal_core_chado_insert()
  9777. * @see tripal_core_chado_update()
  9778. * @see tripal_core_chado_select()
  9779. *
  9780. * @return
  9781. * An array describing the 'phenotype_cvterm' table
  9782. *
  9783. * @ingroup tripal_chado_v1.2_schema_api
  9784. *
  9785. */
  9786. function tripal_core_chado_schema_v1_2_phenotype_cvterm() {
  9787. $description = array(
  9788. 'description' => 'TODO: please describe this table!',
  9789. 'fields' => array(
  9790. 'phenotype_cvterm_id' => array(
  9791. 'description' => 'TODO: please describe this field!',
  9792. 'type' => 'serial',
  9793. 'not null' => TRUE,
  9794. ),
  9795. 'phenotype_id' => array(
  9796. 'description' => 'TODO: please describe this field!',
  9797. 'type' => 'int',
  9798. 'not null' => TRUE,
  9799. ),
  9800. 'cvterm_id' => array(
  9801. 'description' => 'TODO: please describe this field!',
  9802. 'type' => 'int',
  9803. 'not null' => TRUE,
  9804. ),
  9805. 'rank' => array(
  9806. 'description' => 'TODO: please describe this field!',
  9807. 'type' => 'int',
  9808. 'not null' => TRUE,
  9809. 'default' => 0,
  9810. ),
  9811. ),
  9812. 'primary key' => array(
  9813. 0 => 'phenotype_cvterm_id',
  9814. ),
  9815. 'unique keys' => array(
  9816. 'phenotype_cvterm_c1' => array(
  9817. 0 => 'phenotype_id',
  9818. 1 => 'cvterm_id',
  9819. 2 => 'rank',
  9820. ),
  9821. ),
  9822. 'indexes' => array(
  9823. 'phenotype_cvterm_idx1' => array(
  9824. 0 => 'phenotype_id',
  9825. ),
  9826. 'phenotype_cvterm_idx2' => array(
  9827. 0 => 'cvterm_id',
  9828. ),
  9829. ),
  9830. 'foreign keys' => array(
  9831. 'cvterm' => array(
  9832. 'table' => 'cvterm',
  9833. 'columns' => array(
  9834. 'cvterm_id' => 'cvterm_id',
  9835. ),
  9836. ),
  9837. 'phenotype' => array(
  9838. 'table' => 'phenotype',
  9839. 'columns' => array(
  9840. 'phenotype_id' => 'phenotype_id',
  9841. ),
  9842. ),
  9843. ),
  9844. 'table' => 'phenotype_cvterm',
  9845. 'referring_tables' => NULL,
  9846. );
  9847. return $description;
  9848. }
  9849. /**
  9850. * Implements hook_chado_schema_v1_2_phenstatement()
  9851. * Purpose: To describe the structure of 'phenstatement' to tripal
  9852. * @see tripal_core_chado_insert()
  9853. * @see tripal_core_chado_update()
  9854. * @see tripal_core_chado_select()
  9855. *
  9856. * @return
  9857. * An array describing the 'phenstatement' table
  9858. *
  9859. * @ingroup tripal_chado_v1.2_schema_api
  9860. *
  9861. */
  9862. function tripal_core_chado_schema_v1_2_phenstatement() {
  9863. $description = array(
  9864. 'description' => 'TODO: please describe this table!',
  9865. 'fields' => array(
  9866. 'phenstatement_id' => array(
  9867. 'description' => 'TODO: please describe this field!',
  9868. 'type' => 'serial',
  9869. 'not null' => TRUE,
  9870. ),
  9871. 'genotype_id' => array(
  9872. 'description' => 'TODO: please describe this field!',
  9873. 'type' => 'int',
  9874. 'not null' => TRUE,
  9875. ),
  9876. 'environment_id' => array(
  9877. 'description' => 'TODO: please describe this field!',
  9878. 'type' => 'int',
  9879. 'not null' => TRUE,
  9880. ),
  9881. 'phenotype_id' => array(
  9882. 'description' => 'TODO: please describe this field!',
  9883. 'type' => 'int',
  9884. 'not null' => TRUE,
  9885. ),
  9886. 'type_id' => array(
  9887. 'description' => 'TODO: please describe this field!',
  9888. 'type' => 'int',
  9889. 'not null' => TRUE,
  9890. ),
  9891. 'pub_id' => array(
  9892. 'description' => 'TODO: please describe this field!',
  9893. 'type' => 'int',
  9894. 'not null' => TRUE,
  9895. ),
  9896. ),
  9897. 'primary key' => array(
  9898. 0 => 'phenstatement_id',
  9899. ),
  9900. 'unique keys' => array(
  9901. 'phenstatement_c1' => array(
  9902. 0 => 'genotype_id',
  9903. 1 => 'phenotype_id',
  9904. 2 => 'environment_id',
  9905. 3 => 'type_id',
  9906. 4 => 'pub_id',
  9907. ),
  9908. ),
  9909. 'indexes' => array(
  9910. 'phenstatement_idx1' => array(
  9911. 0 => 'genotype_id',
  9912. ),
  9913. 'phenstatement_idx2' => array(
  9914. 0 => 'phenotype_id',
  9915. ),
  9916. ),
  9917. 'foreign keys' => array(
  9918. 'cvterm' => array(
  9919. 'table' => 'cvterm',
  9920. 'columns' => array(
  9921. 'type_id' => 'cvterm_id',
  9922. ),
  9923. ),
  9924. 'pub' => array(
  9925. 'table' => 'pub',
  9926. 'columns' => array(
  9927. 'pub_id' => 'pub_id',
  9928. ),
  9929. ),
  9930. 'genotype' => array(
  9931. 'table' => 'genotype',
  9932. 'columns' => array(
  9933. 'genotype_id' => 'genotype_id',
  9934. ),
  9935. ),
  9936. 'environment' => array(
  9937. 'table' => 'environment',
  9938. 'columns' => array(
  9939. 'environment_id' => 'environment_id',
  9940. ),
  9941. ),
  9942. 'phenotype' => array(
  9943. 'table' => 'phenotype',
  9944. 'columns' => array(
  9945. 'phenotype_id' => 'phenotype_id',
  9946. ),
  9947. ),
  9948. ),
  9949. 'table' => 'phenstatement',
  9950. 'referring_tables' => NULL,
  9951. );
  9952. return $description;
  9953. }
  9954. /**
  9955. * Implements hook_chado_schema_v1_2_phylonode()
  9956. * Purpose: To describe the structure of 'phylonode' to tripal
  9957. * @see tripal_core_chado_insert()
  9958. * @see tripal_core_chado_update()
  9959. * @see tripal_core_chado_select()
  9960. *
  9961. * @return
  9962. * An array describing the 'phylonode' table
  9963. *
  9964. * @ingroup tripal_chado_v1.2_schema_api
  9965. *
  9966. */
  9967. function tripal_core_chado_schema_v1_2_phylonode() {
  9968. $description = array(
  9969. 'description' => 'TODO: please describe this table!',
  9970. 'fields' => array(
  9971. 'phylonode_id' => array(
  9972. 'description' => 'TODO: please describe this field!',
  9973. 'type' => 'serial',
  9974. 'not null' => TRUE,
  9975. ),
  9976. 'phylotree_id' => array(
  9977. 'description' => 'TODO: please describe this field!',
  9978. 'type' => 'int',
  9979. 'not null' => TRUE,
  9980. ),
  9981. 'parent_phylonode_id' => array(
  9982. 'description' => 'TODO: please describe this field!',
  9983. 'type' => 'int',
  9984. 'not null' => FALSE,
  9985. ),
  9986. 'left_idx' => array(
  9987. 'description' => 'TODO: please describe this field!',
  9988. 'type' => 'int',
  9989. 'not null' => TRUE,
  9990. ),
  9991. 'right_idx' => array(
  9992. 'description' => 'TODO: please describe this field!',
  9993. 'type' => 'int',
  9994. 'not null' => TRUE,
  9995. ),
  9996. 'type_id' => array(
  9997. 'description' => 'TODO: please describe this field!',
  9998. 'type' => 'int',
  9999. 'not null' => FALSE,
  10000. ),
  10001. 'feature_id' => array(
  10002. 'description' => 'TODO: please describe this field!',
  10003. 'type' => 'int',
  10004. 'not null' => FALSE,
  10005. ),
  10006. 'label' => array(
  10007. 'description' => 'TODO: please describe this field!',
  10008. 'type' => 'varchar',
  10009. 'length' => '255',
  10010. 'not null' => FALSE,
  10011. ),
  10012. 'distance' => array(
  10013. 'description' => 'TODO: please describe this field!',
  10014. 'type' => 'float',
  10015. 'size' => 'big',
  10016. 'not null' => FALSE,
  10017. ),
  10018. ),
  10019. 'primary key' => array(
  10020. 0 => 'phylonode_id',
  10021. ),
  10022. 'unique keys' => array(
  10023. 'phylotree_id' => array(
  10024. 0 => 'phylotree_id',
  10025. 1 => 'left_idx',
  10026. ),
  10027. 'phylonode_phylotree_id_key1' => array(
  10028. 0 => 'phylotree_id',
  10029. 1 => 'right_idx',
  10030. ),
  10031. ),
  10032. 'foreign keys' => array(
  10033. 'cvterm' => array(
  10034. 'table' => 'cvterm',
  10035. 'columns' => array(
  10036. 'type_id' => 'cvterm_id',
  10037. ),
  10038. ),
  10039. 'feature' => array(
  10040. 'table' => 'feature',
  10041. 'columns' => array(
  10042. 'feature_id' => 'feature_id',
  10043. ),
  10044. ),
  10045. 'phylonode' => array(
  10046. 'table' => 'phylonode',
  10047. 'columns' => array(
  10048. 'parent_phylonode_id' => 'phylonode_id',
  10049. ),
  10050. ),
  10051. 'phylotree' => array(
  10052. 'table' => 'phylotree',
  10053. 'columns' => array(
  10054. 'phylotree_id' => 'phylotree_id',
  10055. ),
  10056. ),
  10057. ),
  10058. 'table' => 'phylonode',
  10059. 'referring_tables' => array(
  10060. 0 => 'phylonode',
  10061. 1 => 'phylonode_dbxref',
  10062. 2 => 'phylonode_organism',
  10063. 3 => 'phylonode_pub',
  10064. 4 => 'phylonode_relationship',
  10065. 6 => 'phylonodeprop',
  10066. ),
  10067. );
  10068. return $description;
  10069. }
  10070. /**
  10071. * Implements hook_chado_schema_v1_2_phylonode_dbxref()
  10072. * Purpose: To describe the structure of 'phylonode_dbxref' to tripal
  10073. * @see tripal_core_chado_insert()
  10074. * @see tripal_core_chado_update()
  10075. * @see tripal_core_chado_select()
  10076. *
  10077. * @return
  10078. * An array describing the 'phylonode_dbxref' table
  10079. *
  10080. * @ingroup tripal_chado_v1.2_schema_api
  10081. *
  10082. */
  10083. function tripal_core_chado_schema_v1_2_phylonode_dbxref() {
  10084. $description = array(
  10085. 'description' => 'TODO: please describe this table!',
  10086. 'fields' => array(
  10087. 'phylonode_dbxref_id' => array(
  10088. 'description' => 'TODO: please describe this field!',
  10089. 'type' => 'serial',
  10090. 'not null' => TRUE,
  10091. ),
  10092. 'phylonode_id' => array(
  10093. 'description' => 'TODO: please describe this field!',
  10094. 'type' => 'int',
  10095. 'not null' => TRUE,
  10096. ),
  10097. 'dbxref_id' => array(
  10098. 'description' => 'TODO: please describe this field!',
  10099. 'type' => 'int',
  10100. 'not null' => TRUE,
  10101. ),
  10102. ),
  10103. 'primary key' => array(
  10104. 0 => 'phylonode_dbxref_id',
  10105. ),
  10106. 'unique keys' => array(
  10107. 'phylonode_id' => array(
  10108. 0 => 'phylonode_id',
  10109. 1 => 'dbxref_id',
  10110. ),
  10111. ),
  10112. 'indexes' => array(
  10113. 'phylonode_dbxref_idx1' => array(
  10114. 0 => 'phylonode_id',
  10115. ),
  10116. 'phylonode_dbxref_idx2' => array(
  10117. 0 => 'dbxref_id',
  10118. ),
  10119. ),
  10120. 'foreign keys' => array(
  10121. 'dbxref' => array(
  10122. 'table' => 'dbxref',
  10123. 'columns' => array(
  10124. 'dbxref_id' => 'dbxref_id',
  10125. ),
  10126. ),
  10127. 'phylonode' => array(
  10128. 'table' => 'phylonode',
  10129. 'columns' => array(
  10130. 'phylonode_id' => 'phylonode_id',
  10131. ),
  10132. ),
  10133. ),
  10134. 'table' => 'phylonode_dbxref',
  10135. 'referring_tables' => NULL,
  10136. );
  10137. return $description;
  10138. }
  10139. /**
  10140. * Implements hook_chado_schema_v1_2_phylonode_organism()
  10141. * Purpose: To describe the structure of 'phylonode_organism' to tripal
  10142. * @see tripal_core_chado_insert()
  10143. * @see tripal_core_chado_update()
  10144. * @see tripal_core_chado_select()
  10145. *
  10146. * @return
  10147. * An array describing the 'phylonode_organism' table
  10148. *
  10149. * @ingroup tripal_chado_v1.2_schema_api
  10150. *
  10151. */
  10152. function tripal_core_chado_schema_v1_2_phylonode_organism() {
  10153. $description = array(
  10154. 'description' => 'TODO: please describe this table!',
  10155. 'fields' => array(
  10156. 'phylonode_organism_id' => array(
  10157. 'description' => 'TODO: please describe this field!',
  10158. 'type' => 'serial',
  10159. 'not null' => TRUE,
  10160. ),
  10161. 'phylonode_id' => array(
  10162. 'description' => 'TODO: please describe this field!',
  10163. 'type' => 'int',
  10164. 'not null' => TRUE,
  10165. ),
  10166. 'organism_id' => array(
  10167. 'description' => 'TODO: please describe this field!',
  10168. 'type' => 'int',
  10169. 'not null' => TRUE,
  10170. ),
  10171. ),
  10172. 'primary key' => array(
  10173. 0 => 'phylonode_organism_id',
  10174. ),
  10175. 'unique keys' => array(
  10176. 'phylonode_id' => array(
  10177. 0 => 'phylonode_id',
  10178. ),
  10179. ),
  10180. 'indexes' => array(
  10181. 'phylonode_organism_idx1' => array(
  10182. 0 => 'phylonode_id',
  10183. ),
  10184. 'phylonode_organism_idx2' => array(
  10185. 0 => 'organism_id',
  10186. ),
  10187. ),
  10188. 'foreign keys' => array(
  10189. 'organism' => array(
  10190. 'table' => 'organism',
  10191. 'columns' => array(
  10192. 'organism_id' => 'organism_id',
  10193. ),
  10194. ),
  10195. 'phylonode' => array(
  10196. 'table' => 'phylonode',
  10197. 'columns' => array(
  10198. 'phylonode_id' => 'phylonode_id',
  10199. ),
  10200. ),
  10201. ),
  10202. 'table' => 'phylonode_organism',
  10203. 'referring_tables' => NULL,
  10204. );
  10205. return $description;
  10206. }
  10207. /**
  10208. * Implements hook_chado_schema_v1_2_phylonode_pub()
  10209. * Purpose: To describe the structure of 'phylonode_pub' to tripal
  10210. * @see tripal_core_chado_insert()
  10211. * @see tripal_core_chado_update()
  10212. * @see tripal_core_chado_select()
  10213. *
  10214. * @return
  10215. * An array describing the 'phylonode_pub' table
  10216. *
  10217. * @ingroup tripal_chado_v1.2_schema_api
  10218. *
  10219. */
  10220. function tripal_core_chado_schema_v1_2_phylonode_pub() {
  10221. $description = array(
  10222. 'description' => 'TODO: please describe this table!',
  10223. 'fields' => array(
  10224. 'phylonode_pub_id' => array(
  10225. 'description' => 'TODO: please describe this field!',
  10226. 'type' => 'serial',
  10227. 'not null' => TRUE,
  10228. ),
  10229. 'phylonode_id' => array(
  10230. 'description' => 'TODO: please describe this field!',
  10231. 'type' => 'int',
  10232. 'not null' => TRUE,
  10233. ),
  10234. 'pub_id' => array(
  10235. 'description' => 'TODO: please describe this field!',
  10236. 'type' => 'int',
  10237. 'not null' => TRUE,
  10238. ),
  10239. ),
  10240. 'primary key' => array(
  10241. 0 => 'phylonode_pub_id',
  10242. ),
  10243. 'unique keys' => array(
  10244. 'phylonode_id' => array(
  10245. 0 => 'phylonode_id',
  10246. 1 => 'pub_id',
  10247. ),
  10248. ),
  10249. 'indexes' => array(
  10250. 'phylonode_pub_idx1' => array(
  10251. 0 => 'phylonode_id',
  10252. ),
  10253. 'phylonode_pub_idx2' => array(
  10254. 0 => 'pub_id',
  10255. ),
  10256. ),
  10257. 'foreign keys' => array(
  10258. 'pub' => array(
  10259. 'table' => 'pub',
  10260. 'columns' => array(
  10261. 'pub_id' => 'pub_id',
  10262. ),
  10263. ),
  10264. 'phylonode' => array(
  10265. 'table' => 'phylonode',
  10266. 'columns' => array(
  10267. 'phylonode_id' => 'phylonode_id',
  10268. ),
  10269. ),
  10270. ),
  10271. 'table' => 'phylonode_pub',
  10272. 'referring_tables' => NULL,
  10273. );
  10274. return $description;
  10275. }
  10276. /**
  10277. * Implements hook_chado_schema_v1_2_phylonode_relationship()
  10278. * Purpose: To describe the structure of 'phylonode_relationship' to tripal
  10279. * @see tripal_core_chado_insert()
  10280. * @see tripal_core_chado_update()
  10281. * @see tripal_core_chado_select()
  10282. *
  10283. * @return
  10284. * An array describing the 'phylonode_relationship' table
  10285. *
  10286. * @ingroup tripal_chado_v1.2_schema_api
  10287. *
  10288. */
  10289. function tripal_core_chado_schema_v1_2_phylonode_relationship() {
  10290. $description = array(
  10291. 'description' => 'TODO: please describe this table!',
  10292. 'fields' => array(
  10293. 'phylonode_relationship_id' => array(
  10294. 'description' => 'TODO: please describe this field!',
  10295. 'type' => 'serial',
  10296. 'not null' => TRUE,
  10297. ),
  10298. 'subject_id' => array(
  10299. 'description' => 'TODO: please describe this field!',
  10300. 'type' => 'int',
  10301. 'not null' => TRUE,
  10302. ),
  10303. 'object_id' => array(
  10304. 'description' => 'TODO: please describe this field!',
  10305. 'type' => 'int',
  10306. 'not null' => TRUE,
  10307. ),
  10308. 'type_id' => array(
  10309. 'description' => 'TODO: please describe this field!',
  10310. 'type' => 'int',
  10311. 'not null' => TRUE,
  10312. ),
  10313. 'rank' => array(
  10314. 'description' => 'TODO: please describe this field!',
  10315. 'type' => 'int',
  10316. 'not null' => FALSE,
  10317. ),
  10318. 'phylotree_id' => array(
  10319. 'description' => 'TODO: please describe this field!',
  10320. 'type' => 'int',
  10321. 'not null' => TRUE,
  10322. ),
  10323. ),
  10324. 'primary key' => array(
  10325. 0 => 'phylonode_relationship_id',
  10326. ),
  10327. 'unique keys' => array(
  10328. 'subject_id' => array(
  10329. 0 => 'subject_id',
  10330. 1 => 'object_id',
  10331. 2 => 'type_id',
  10332. ),
  10333. ),
  10334. 'indexes' => array(
  10335. 'phylonode_relationship_idx1' => array(
  10336. 0 => 'subject_id',
  10337. ),
  10338. 'phylonode_relationship_idx2' => array(
  10339. 0 => 'object_id',
  10340. ),
  10341. 'phylonode_relationship_idx3' => array(
  10342. 0 => 'type_id',
  10343. ),
  10344. ),
  10345. 'foreign keys' => array(
  10346. 'cvterm' => array(
  10347. 'table' => 'cvterm',
  10348. 'columns' => array(
  10349. 'type_id' => 'cvterm_id',
  10350. ),
  10351. ),
  10352. 'phylonode' => array(
  10353. 'table' => 'phylonode',
  10354. 'columns' => array(
  10355. 'subject_id' => 'phylonode_id',
  10356. 'object_id' => 'phylonode_id',
  10357. ),
  10358. ),
  10359. 'phylotree' => array(
  10360. 'table' => 'phylotree',
  10361. 'columns' => array(
  10362. 'phylotree_id' => 'phylotree_id',
  10363. ),
  10364. ),
  10365. ),
  10366. 'table' => 'phylonode_relationship',
  10367. 'referring_tables' => NULL,
  10368. );
  10369. return $description;
  10370. }
  10371. /**
  10372. * Implements hook_chado_schema_v1_2_phylonodeprop()
  10373. * Purpose: To describe the structure of 'phylonodeprop' to tripal
  10374. * @see tripal_core_chado_insert()
  10375. * @see tripal_core_chado_update()
  10376. * @see tripal_core_chado_select()
  10377. *
  10378. * @return
  10379. * An array describing the 'phylonodeprop' table
  10380. *
  10381. * @ingroup tripal_chado_v1.2_schema_api
  10382. *
  10383. */
  10384. function tripal_core_chado_schema_v1_2_phylonodeprop() {
  10385. $description = array(
  10386. 'description' => 'TODO: please describe this table!',
  10387. 'fields' => array(
  10388. 'phylonodeprop_id' => array(
  10389. 'description' => 'TODO: please describe this field!',
  10390. 'type' => 'serial',
  10391. 'not null' => TRUE,
  10392. ),
  10393. 'phylonode_id' => array(
  10394. 'description' => 'TODO: please describe this field!',
  10395. 'type' => 'int',
  10396. 'not null' => TRUE,
  10397. ),
  10398. 'type_id' => array(
  10399. 'description' => 'TODO: please describe this field!',
  10400. 'type' => 'int',
  10401. 'not null' => TRUE,
  10402. ),
  10403. 'value' => array(
  10404. 'description' => 'TODO: please describe this field!',
  10405. 'type' => 'text',
  10406. 'not null' => TRUE,
  10407. 'default' => '',
  10408. ),
  10409. 'rank' => array(
  10410. 'description' => 'TODO: please describe this field!',
  10411. 'type' => 'int',
  10412. 'not null' => TRUE,
  10413. 'default' => 0,
  10414. ),
  10415. ),
  10416. 'primary key' => array(
  10417. 0 => 'phylonodeprop_id',
  10418. ),
  10419. 'unique keys' => array(
  10420. 'phylonode_id' => array(
  10421. 0 => 'phylonode_id',
  10422. 1 => 'type_id',
  10423. 2 => 'value',
  10424. 3 => 'rank',
  10425. ),
  10426. ),
  10427. 'indexes' => array(
  10428. 'phylonodeprop_idx1' => array(
  10429. 0 => 'phylonode_id',
  10430. ),
  10431. 'phylonodeprop_idx2' => array(
  10432. 0 => 'type_id',
  10433. ),
  10434. ),
  10435. 'foreign keys' => array(
  10436. 'cvterm' => array(
  10437. 'table' => 'cvterm',
  10438. 'columns' => array(
  10439. 'type_id' => 'cvterm_id',
  10440. ),
  10441. ),
  10442. 'phylonode' => array(
  10443. 'table' => 'phylonode',
  10444. 'columns' => array(
  10445. 'phylonode_id' => 'phylonode_id',
  10446. ),
  10447. ),
  10448. ),
  10449. 'table' => 'phylonodeprop',
  10450. 'referring_tables' => NULL,
  10451. );
  10452. return $description;
  10453. }
  10454. /**
  10455. * Implements hook_chado_schema_v1_2_phylotree()
  10456. * Purpose: To describe the structure of 'phylotree' to tripal
  10457. * @see tripal_core_chado_insert()
  10458. * @see tripal_core_chado_update()
  10459. * @see tripal_core_chado_select()
  10460. *
  10461. * @return
  10462. * An array describing the 'phylotree' table
  10463. *
  10464. * @ingroup tripal_chado_v1.2_schema_api
  10465. *
  10466. */
  10467. function tripal_core_chado_schema_v1_2_phylotree() {
  10468. $description = array(
  10469. 'description' => 'TODO: please describe this table!',
  10470. 'fields' => array(
  10471. 'phylotree_id' => array(
  10472. 'description' => 'TODO: please describe this field!',
  10473. 'type' => 'serial',
  10474. 'not null' => TRUE,
  10475. ),
  10476. 'dbxref_id' => array(
  10477. 'description' => 'TODO: please describe this field!',
  10478. 'type' => 'int',
  10479. 'not null' => TRUE,
  10480. ),
  10481. 'name' => array(
  10482. 'description' => 'TODO: please describe this field!',
  10483. 'type' => 'varchar',
  10484. 'length' => '255',
  10485. 'not null' => FALSE,
  10486. ),
  10487. 'type_id' => array(
  10488. 'description' => 'TODO: please describe this field!',
  10489. 'type' => 'int',
  10490. 'not null' => FALSE,
  10491. ),
  10492. 'analysis_id' => array(
  10493. 'description' => 'TODO: please describe this field!',
  10494. 'type' => 'int',
  10495. 'not null' => FALSE,
  10496. ),
  10497. 'comment' => array(
  10498. 'description' => 'TODO: please describe this field!',
  10499. 'type' => 'text',
  10500. 'not null' => FALSE,
  10501. ),
  10502. ),
  10503. 'primary key' => array(
  10504. 0 => 'phylotree_id',
  10505. ),
  10506. 'indexes' => array(
  10507. 'phylotree_idx1' => array(
  10508. 0 => 'phylotree_id',
  10509. ),
  10510. ),
  10511. 'foreign keys' => array(
  10512. 'cvterm' => array(
  10513. 'table' => 'cvterm',
  10514. 'columns' => array(
  10515. 'type_id' => 'cvterm_id',
  10516. ),
  10517. ),
  10518. 'dbxref' => array(
  10519. 'table' => 'dbxref',
  10520. 'columns' => array(
  10521. 'dbxref_id' => 'dbxref_id',
  10522. ),
  10523. ),
  10524. 'analysis' => array(
  10525. 'table' => 'analysis',
  10526. 'columns' => array(
  10527. 'analysis_id' => 'analysis_id',
  10528. ),
  10529. ),
  10530. ),
  10531. 'table' => 'phylotree',
  10532. 'referring_tables' => array(
  10533. 0 => 'phylonode',
  10534. 1 => 'phylonode_relationship',
  10535. 2 => 'phylotree_pub',
  10536. ),
  10537. );
  10538. return $description;
  10539. }
  10540. /**
  10541. * Implements hook_chado_schema_v1_2_phylotree_pub()
  10542. * Purpose: To describe the structure of 'phylotree_pub' to tripal
  10543. * @see tripal_core_chado_insert()
  10544. * @see tripal_core_chado_update()
  10545. * @see tripal_core_chado_select()
  10546. *
  10547. * @return
  10548. * An array describing the 'phylotree_pub' table
  10549. *
  10550. * @ingroup tripal_chado_v1.2_schema_api
  10551. *
  10552. */
  10553. function tripal_core_chado_schema_v1_2_phylotree_pub() {
  10554. $description = array(
  10555. 'description' => 'TODO: please describe this table!',
  10556. 'fields' => array(
  10557. 'phylotree_pub_id' => array(
  10558. 'description' => 'TODO: please describe this field!',
  10559. 'type' => 'serial',
  10560. 'not null' => TRUE,
  10561. ),
  10562. 'phylotree_id' => array(
  10563. 'description' => 'TODO: please describe this field!',
  10564. 'type' => 'int',
  10565. 'not null' => TRUE,
  10566. ),
  10567. 'pub_id' => array(
  10568. 'description' => 'TODO: please describe this field!',
  10569. 'type' => 'int',
  10570. 'not null' => TRUE,
  10571. ),
  10572. ),
  10573. 'primary key' => array(
  10574. 0 => 'phylotree_pub_id',
  10575. ),
  10576. 'unique keys' => array(
  10577. 'phylotree_id' => array(
  10578. 0 => 'phylotree_id',
  10579. 1 => 'pub_id',
  10580. ),
  10581. ),
  10582. 'indexes' => array(
  10583. 'phylotree_pub_idx1' => array(
  10584. 0 => 'phylotree_id',
  10585. ),
  10586. 'phylotree_pub_idx2' => array(
  10587. 0 => 'pub_id',
  10588. ),
  10589. ),
  10590. 'foreign keys' => array(
  10591. 'pub' => array(
  10592. 'table' => 'pub',
  10593. 'columns' => array(
  10594. 'pub_id' => 'pub_id',
  10595. ),
  10596. ),
  10597. 'phylotree' => array(
  10598. 'table' => 'phylotree',
  10599. 'columns' => array(
  10600. 'phylotree_id' => 'phylotree_id',
  10601. ),
  10602. ),
  10603. ),
  10604. 'table' => 'phylotree_pub',
  10605. 'referring_tables' => NULL,
  10606. );
  10607. return $description;
  10608. }
  10609. /**
  10610. * Implements hook_chado_schema_v1_2_project()
  10611. * Purpose: To describe the structure of 'project' to tripal
  10612. * @see tripal_core_chado_insert()
  10613. * @see tripal_core_chado_update()
  10614. * @see tripal_core_chado_select()
  10615. *
  10616. * @return
  10617. * An array describing the 'project' table
  10618. *
  10619. * @ingroup tripal_chado_v1.2_schema_api
  10620. *
  10621. */
  10622. function tripal_core_chado_schema_v1_2_project() {
  10623. $description = array(
  10624. 'description' => 'TODO: please describe this table!',
  10625. 'fields' => array(
  10626. 'project_id' => array(
  10627. 'description' => 'TODO: please describe this field!',
  10628. 'type' => 'serial',
  10629. 'not null' => TRUE,
  10630. ),
  10631. 'name' => array(
  10632. 'description' => 'TODO: please describe this field!',
  10633. 'type' => 'varchar',
  10634. 'length' => '255',
  10635. 'not null' => TRUE,
  10636. ),
  10637. 'description' => array(
  10638. 'description' => 'TODO: please describe this field!',
  10639. 'type' => 'varchar',
  10640. 'length' => '255',
  10641. 'not null' => TRUE,
  10642. ),
  10643. ),
  10644. 'primary key' => array(
  10645. 0 => 'project_id',
  10646. ),
  10647. 'unique keys' => array(
  10648. 'project_c1' => array(
  10649. 0 => 'name',
  10650. ),
  10651. ),
  10652. 'foreign keys' => array(
  10653. ),
  10654. 'table' => 'project',
  10655. 'referring_tables' => array(
  10656. 0 => 'assay_project',
  10657. 1 => 'nd_experiment_project',
  10658. 2 => 'project_contact',
  10659. 10 => 'project_pub',
  10660. 18 => 'project_relationship',
  10661. 34 => 'projectprop',
  10662. ),
  10663. );
  10664. return $description;
  10665. }
  10666. /**
  10667. * Implements hook_chado_schema_v1_2_project_contact()
  10668. * Purpose: To describe the structure of 'project_contact' to tripal
  10669. * @see tripal_core_chado_insert()
  10670. * @see tripal_core_chado_update()
  10671. * @see tripal_core_chado_select()
  10672. *
  10673. * @return
  10674. * An array describing the 'project_contact' table
  10675. *
  10676. * @ingroup tripal_chado_v1.2_schema_api
  10677. *
  10678. */
  10679. function tripal_core_chado_schema_v1_2_project_contact() {
  10680. $description = array(
  10681. 'description' => 'TODO: please describe this table!',
  10682. 'fields' => array(
  10683. 'project_contact_id' => array(
  10684. 'description' => 'TODO: please describe this field!',
  10685. 'type' => 'serial',
  10686. 'not null' => TRUE,
  10687. ),
  10688. 'project_id' => array(
  10689. 'description' => 'TODO: please describe this field!',
  10690. 'type' => 'int',
  10691. 'not null' => TRUE,
  10692. ),
  10693. 'contact_id' => array(
  10694. 'description' => 'TODO: please describe this field!',
  10695. 'type' => 'int',
  10696. 'not null' => TRUE,
  10697. ),
  10698. ),
  10699. 'primary key' => array(
  10700. 0 => 'project_contact_id',
  10701. ),
  10702. 'unique keys' => array(
  10703. 'project_contact_c1' => array(
  10704. 0 => 'project_id',
  10705. 1 => 'contact_id',
  10706. ),
  10707. ),
  10708. 'indexes' => array(
  10709. 'project_contact_idx1' => array(
  10710. 0 => 'project_id',
  10711. ),
  10712. 'project_contact_idx2' => array(
  10713. 0 => 'contact_id',
  10714. ),
  10715. ),
  10716. 'foreign keys' => array(
  10717. 'contact' => array(
  10718. 'table' => 'contact',
  10719. 'columns' => array(
  10720. 'contact_id' => 'contact_id',
  10721. ),
  10722. ),
  10723. 'project' => array(
  10724. 'table' => 'project',
  10725. 'columns' => array(
  10726. 'project_id' => 'project_id',
  10727. ),
  10728. ),
  10729. ),
  10730. 'table' => 'project_contact',
  10731. 'referring_tables' => NULL,
  10732. );
  10733. return $description;
  10734. }
  10735. /**
  10736. * Implements hook_chado_schema_v1_2_project_pub()
  10737. * Purpose: To describe the structure of 'project_pub' to tripal
  10738. * @see tripal_core_chado_insert()
  10739. * @see tripal_core_chado_update()
  10740. * @see tripal_core_chado_select()
  10741. *
  10742. * @return
  10743. * An array describing the 'project_pub' table
  10744. *
  10745. * @ingroup tripal_chado_v1.2_schema_api
  10746. *
  10747. */
  10748. function tripal_core_chado_schema_v1_2_project_pub() {
  10749. $description = array(
  10750. 'description' => 'TODO: please describe this table!',
  10751. 'fields' => array(
  10752. 'project_pub_id' => array(
  10753. 'description' => 'TODO: please describe this field!',
  10754. 'type' => 'serial',
  10755. 'not null' => TRUE,
  10756. ),
  10757. 'project_id' => array(
  10758. 'description' => 'TODO: please describe this field!',
  10759. 'type' => 'int',
  10760. 'not null' => TRUE,
  10761. ),
  10762. 'pub_id' => array(
  10763. 'description' => 'TODO: please describe this field!',
  10764. 'type' => 'int',
  10765. 'not null' => TRUE,
  10766. ),
  10767. ),
  10768. 'primary key' => array(
  10769. 0 => 'project_pub_id',
  10770. ),
  10771. 'unique keys' => array(
  10772. 'project_pub_c1' => array(
  10773. 0 => 'project_id',
  10774. 1 => 'pub_id',
  10775. ),
  10776. ),
  10777. 'indexes' => array(
  10778. 'project_pub_idx1' => array(
  10779. 0 => 'project_id',
  10780. ),
  10781. 'project_pub_idx2' => array(
  10782. 0 => 'pub_id',
  10783. ),
  10784. ),
  10785. 'foreign keys' => array(
  10786. 'pub' => array(
  10787. 'table' => 'pub',
  10788. 'columns' => array(
  10789. 'pub_id' => 'pub_id',
  10790. ),
  10791. ),
  10792. 'project' => array(
  10793. 'table' => 'project',
  10794. 'columns' => array(
  10795. 'project_id' => 'project_id',
  10796. ),
  10797. ),
  10798. ),
  10799. 'table' => 'project_pub',
  10800. 'referring_tables' => NULL,
  10801. );
  10802. return $description;
  10803. }
  10804. /**
  10805. * Implements hook_chado_schema_v1_2_project_relationship()
  10806. * Purpose: To describe the structure of 'project_relationship' to tripal
  10807. * @see tripal_core_chado_insert()
  10808. * @see tripal_core_chado_update()
  10809. * @see tripal_core_chado_select()
  10810. *
  10811. * @return
  10812. * An array describing the 'project_relationship' table
  10813. *
  10814. * @ingroup tripal_chado_v1.2_schema_api
  10815. *
  10816. */
  10817. function tripal_core_chado_schema_v1_2_project_relationship() {
  10818. $description = array(
  10819. 'description' => 'TODO: please describe this table!',
  10820. 'fields' => array(
  10821. 'project_relationship_id' => array(
  10822. 'description' => 'TODO: please describe this field!',
  10823. 'type' => 'serial',
  10824. 'not null' => TRUE,
  10825. ),
  10826. 'subject_project_id' => array(
  10827. 'description' => 'TODO: please describe this field!',
  10828. 'type' => 'int',
  10829. 'not null' => TRUE,
  10830. ),
  10831. 'object_project_id' => array(
  10832. 'description' => 'TODO: please describe this field!',
  10833. 'type' => 'int',
  10834. 'not null' => TRUE,
  10835. ),
  10836. 'type_id' => array(
  10837. 'description' => 'TODO: please describe this field!',
  10838. 'type' => 'int',
  10839. 'not null' => TRUE,
  10840. ),
  10841. ),
  10842. 'primary key' => array(
  10843. 0 => 'project_relationship_id',
  10844. ),
  10845. 'unique keys' => array(
  10846. 'project_relationship_c1' => array(
  10847. 0 => 'subject_project_id',
  10848. 1 => 'object_project_id',
  10849. 2 => 'type_id',
  10850. ),
  10851. ),
  10852. 'foreign keys' => array(
  10853. 'cvterm' => array(
  10854. 'table' => 'cvterm',
  10855. 'columns' => array(
  10856. 'type_id' => 'cvterm_id',
  10857. ),
  10858. ),
  10859. 'project' => array(
  10860. 'table' => 'project',
  10861. 'columns' => array(
  10862. 'subject_project_id' => 'project_id',
  10863. 'object_project_id' => 'project_id',
  10864. ),
  10865. ),
  10866. ),
  10867. 'table' => 'project_relationship',
  10868. 'referring_tables' => NULL,
  10869. );
  10870. return $description;
  10871. }
  10872. /**
  10873. * Implements hook_chado_schema_v1_2_projectprop()
  10874. * Purpose: To describe the structure of 'projectprop' to tripal
  10875. * @see tripal_core_chado_insert()
  10876. * @see tripal_core_chado_update()
  10877. * @see tripal_core_chado_select()
  10878. *
  10879. * @return
  10880. * An array describing the 'projectprop' table
  10881. *
  10882. * @ingroup tripal_chado_v1.2_schema_api
  10883. *
  10884. */
  10885. function tripal_core_chado_schema_v1_2_projectprop() {
  10886. $description = array(
  10887. 'description' => 'TODO: please describe this table!',
  10888. 'fields' => array(
  10889. 'projectprop_id' => array(
  10890. 'description' => 'TODO: please describe this field!',
  10891. 'type' => 'serial',
  10892. 'not null' => TRUE,
  10893. ),
  10894. 'project_id' => array(
  10895. 'description' => 'TODO: please describe this field!',
  10896. 'type' => 'int',
  10897. 'not null' => TRUE,
  10898. ),
  10899. 'type_id' => array(
  10900. 'description' => 'TODO: please describe this field!',
  10901. 'type' => 'int',
  10902. 'not null' => TRUE,
  10903. ),
  10904. 'value' => array(
  10905. 'description' => 'TODO: please describe this field!',
  10906. 'type' => 'text',
  10907. 'not null' => FALSE,
  10908. ),
  10909. 'rank' => array(
  10910. 'description' => 'TODO: please describe this field!',
  10911. 'type' => 'int',
  10912. 'not null' => TRUE,
  10913. 'default' => 0,
  10914. ),
  10915. ),
  10916. 'primary key' => array(
  10917. 0 => 'projectprop_id',
  10918. ),
  10919. 'unique keys' => array(
  10920. 'projectprop_c1' => array(
  10921. 0 => 'project_id',
  10922. 1 => 'type_id',
  10923. 2 => 'rank',
  10924. ),
  10925. ),
  10926. 'foreign keys' => array(
  10927. 'cvterm' => array(
  10928. 'table' => 'cvterm',
  10929. 'columns' => array(
  10930. 'type_id' => 'cvterm_id',
  10931. ),
  10932. ),
  10933. 'project' => array(
  10934. 'table' => 'project',
  10935. 'columns' => array(
  10936. 'project_id' => 'project_id',
  10937. ),
  10938. ),
  10939. ),
  10940. 'table' => 'projectprop',
  10941. 'referring_tables' => NULL,
  10942. );
  10943. return $description;
  10944. }
  10945. /**
  10946. * Implements hook_chado_schema_v1_2_protocol()
  10947. * Purpose: To describe the structure of 'protocol' to tripal
  10948. * @see tripal_core_chado_insert()
  10949. * @see tripal_core_chado_update()
  10950. * @see tripal_core_chado_select()
  10951. *
  10952. * @return
  10953. * An array describing the 'protocol' table
  10954. *
  10955. * @ingroup tripal_chado_v1.2_schema_api
  10956. *
  10957. */
  10958. function tripal_core_chado_schema_v1_2_protocol() {
  10959. $description = array(
  10960. 'description' => 'TODO: please describe this table!',
  10961. 'fields' => array(
  10962. 'protocol_id' => array(
  10963. 'description' => 'TODO: please describe this field!',
  10964. 'type' => 'serial',
  10965. 'not null' => TRUE,
  10966. ),
  10967. 'type_id' => array(
  10968. 'description' => 'TODO: please describe this field!',
  10969. 'type' => 'int',
  10970. 'not null' => TRUE,
  10971. ),
  10972. 'pub_id' => array(
  10973. 'description' => 'TODO: please describe this field!',
  10974. 'type' => 'int',
  10975. 'not null' => FALSE,
  10976. ),
  10977. 'dbxref_id' => array(
  10978. 'description' => 'TODO: please describe this field!',
  10979. 'type' => 'int',
  10980. 'not null' => FALSE,
  10981. ),
  10982. 'name' => array(
  10983. 'description' => 'TODO: please describe this field!',
  10984. 'type' => 'text',
  10985. 'not null' => TRUE,
  10986. ),
  10987. 'uri' => array(
  10988. 'description' => 'TODO: please describe this field!',
  10989. 'type' => 'text',
  10990. 'not null' => FALSE,
  10991. ),
  10992. 'protocoldescription' => array(
  10993. 'description' => 'TODO: please describe this field!',
  10994. 'type' => 'text',
  10995. 'not null' => FALSE,
  10996. ),
  10997. 'hardwaredescription' => array(
  10998. 'description' => 'TODO: please describe this field!',
  10999. 'type' => 'text',
  11000. 'not null' => FALSE,
  11001. ),
  11002. 'softwaredescription' => array(
  11003. 'description' => 'TODO: please describe this field!',
  11004. 'type' => 'text',
  11005. 'not null' => FALSE,
  11006. ),
  11007. ),
  11008. 'primary key' => array(
  11009. 0 => 'protocol_id',
  11010. ),
  11011. 'unique keys' => array(
  11012. 'protocol_c1' => array(
  11013. 0 => 'name',
  11014. ),
  11015. ),
  11016. 'indexes' => array(
  11017. 'protocol_idx1' => array(
  11018. 0 => 'type_id',
  11019. ),
  11020. 'protocol_idx2' => array(
  11021. 0 => 'pub_id',
  11022. ),
  11023. 'protocol_idx3' => array(
  11024. 0 => 'dbxref_id',
  11025. ),
  11026. ),
  11027. 'foreign keys' => array(
  11028. 'cvterm' => array(
  11029. 'table' => 'cvterm',
  11030. 'columns' => array(
  11031. 'type_id' => 'cvterm_id',
  11032. ),
  11033. ),
  11034. 'dbxref' => array(
  11035. 'table' => 'dbxref',
  11036. 'columns' => array(
  11037. 'dbxref_id' => 'dbxref_id',
  11038. ),
  11039. ),
  11040. 'pub' => array(
  11041. 'table' => 'pub',
  11042. 'columns' => array(
  11043. 'pub_id' => 'pub_id',
  11044. ),
  11045. ),
  11046. ),
  11047. 'table' => 'protocol',
  11048. 'referring_tables' => array(
  11049. 0 => 'acquisition',
  11050. 1 => 'arraydesign',
  11051. 2 => 'assay',
  11052. 3 => 'protocolparam',
  11053. 4 => 'quantification',
  11054. 5 => 'treatment',
  11055. ),
  11056. );
  11057. return $description;
  11058. }
  11059. /**
  11060. * Implements hook_chado_schema_v1_2_protocolparam()
  11061. * Purpose: To describe the structure of 'protocolparam' to tripal
  11062. * @see tripal_core_chado_insert()
  11063. * @see tripal_core_chado_update()
  11064. * @see tripal_core_chado_select()
  11065. *
  11066. * @return
  11067. * An array describing the 'protocolparam' table
  11068. *
  11069. * @ingroup tripal_chado_v1.2_schema_api
  11070. *
  11071. */
  11072. function tripal_core_chado_schema_v1_2_protocolparam() {
  11073. $description = array(
  11074. 'description' => 'TODO: please describe this table!',
  11075. 'fields' => array(
  11076. 'protocolparam_id' => array(
  11077. 'description' => 'TODO: please describe this field!',
  11078. 'type' => 'serial',
  11079. 'not null' => TRUE,
  11080. ),
  11081. 'protocol_id' => array(
  11082. 'description' => 'TODO: please describe this field!',
  11083. 'type' => 'int',
  11084. 'not null' => TRUE,
  11085. ),
  11086. 'name' => array(
  11087. 'description' => 'TODO: please describe this field!',
  11088. 'type' => 'text',
  11089. 'not null' => TRUE,
  11090. ),
  11091. 'datatype_id' => array(
  11092. 'description' => 'TODO: please describe this field!',
  11093. 'type' => 'int',
  11094. 'not null' => FALSE,
  11095. ),
  11096. 'unittype_id' => array(
  11097. 'description' => 'TODO: please describe this field!',
  11098. 'type' => 'int',
  11099. 'not null' => FALSE,
  11100. ),
  11101. 'value' => array(
  11102. 'description' => 'TODO: please describe this field!',
  11103. 'type' => 'text',
  11104. 'not null' => FALSE,
  11105. ),
  11106. 'rank' => array(
  11107. 'description' => 'TODO: please describe this field!',
  11108. 'type' => 'int',
  11109. 'not null' => TRUE,
  11110. 'default' => 0,
  11111. ),
  11112. ),
  11113. 'primary key' => array(
  11114. 0 => 'protocolparam_id',
  11115. ),
  11116. 'indexes' => array(
  11117. 'protocolparam_idx1' => array(
  11118. 0 => 'protocol_id',
  11119. ),
  11120. 'protocolparam_idx2' => array(
  11121. 0 => 'datatype_id',
  11122. ),
  11123. 'protocolparam_idx3' => array(
  11124. 0 => 'unittype_id',
  11125. ),
  11126. ),
  11127. 'foreign keys' => array(
  11128. 'cvterm' => array(
  11129. 'table' => 'cvterm',
  11130. 'columns' => array(
  11131. 'datatype_id' => 'cvterm_id',
  11132. 'unittype_id' => 'cvterm_id',
  11133. ),
  11134. ),
  11135. 'protocol' => array(
  11136. 'table' => 'protocol',
  11137. 'columns' => array(
  11138. 'protocol_id' => 'protocol_id',
  11139. ),
  11140. ),
  11141. ),
  11142. 'table' => 'protocolparam',
  11143. 'referring_tables' => NULL,
  11144. );
  11145. return $description;
  11146. }
  11147. /**
  11148. * Implements hook_chado_schema_v1_2_pub()
  11149. * Purpose: To describe the structure of 'pub' to tripal
  11150. * @see tripal_core_chado_insert()
  11151. * @see tripal_core_chado_update()
  11152. * @see tripal_core_chado_select()
  11153. *
  11154. * @return
  11155. * An array describing the 'pub' table
  11156. *
  11157. * @ingroup tripal_chado_v1.2_schema_api
  11158. *
  11159. */
  11160. function tripal_core_chado_schema_v1_2_pub() {
  11161. $description = array(
  11162. 'description' => 'TODO: please describe this table!',
  11163. 'fields' => array(
  11164. 'pub_id' => array(
  11165. 'description' => 'TODO: please describe this field!',
  11166. 'type' => 'serial',
  11167. 'not null' => TRUE,
  11168. ),
  11169. 'title' => array(
  11170. 'description' => 'TODO: please describe this field!',
  11171. 'type' => 'text',
  11172. 'not null' => FALSE,
  11173. ),
  11174. 'volumetitle' => array(
  11175. 'description' => 'TODO: please describe this field!',
  11176. 'type' => 'text',
  11177. 'not null' => FALSE,
  11178. ),
  11179. 'volume' => array(
  11180. 'description' => 'TODO: please describe this field!',
  11181. 'type' => 'varchar',
  11182. 'length' => '255',
  11183. 'not null' => FALSE,
  11184. ),
  11185. 'series_name' => array(
  11186. 'description' => 'TODO: please describe this field!',
  11187. 'type' => 'varchar',
  11188. 'length' => '255',
  11189. 'not null' => FALSE,
  11190. ),
  11191. 'issue' => array(
  11192. 'description' => 'TODO: please describe this field!',
  11193. 'type' => 'varchar',
  11194. 'length' => '255',
  11195. 'not null' => FALSE,
  11196. ),
  11197. 'pyear' => array(
  11198. 'description' => 'TODO: please describe this field!',
  11199. 'type' => 'varchar',
  11200. 'length' => '255',
  11201. 'not null' => FALSE,
  11202. ),
  11203. 'pages' => array(
  11204. 'description' => 'TODO: please describe this field!',
  11205. 'type' => 'varchar',
  11206. 'length' => '255',
  11207. 'not null' => FALSE,
  11208. ),
  11209. 'miniref' => array(
  11210. 'description' => 'TODO: please describe this field!',
  11211. 'type' => 'varchar',
  11212. 'length' => '255',
  11213. 'not null' => FALSE,
  11214. ),
  11215. 'uniquename' => array(
  11216. 'description' => 'TODO: please describe this field!',
  11217. 'type' => 'text',
  11218. 'not null' => TRUE,
  11219. ),
  11220. 'type_id' => array(
  11221. 'description' => 'TODO: please describe this field!',
  11222. 'type' => 'int',
  11223. 'not null' => TRUE,
  11224. ),
  11225. 'is_obsolete' => array(
  11226. 'description' => 'TODO: please describe this field!',
  11227. 'type' => 'boolean',
  11228. 'not null' => FALSE,
  11229. 'default' => 'als',
  11230. ),
  11231. 'publisher' => array(
  11232. 'description' => 'TODO: please describe this field!',
  11233. 'type' => 'varchar',
  11234. 'length' => '255',
  11235. 'not null' => FALSE,
  11236. ),
  11237. 'pubplace' => array(
  11238. 'description' => 'TODO: please describe this field!',
  11239. 'type' => 'varchar',
  11240. 'length' => '255',
  11241. 'not null' => FALSE,
  11242. ),
  11243. ),
  11244. 'primary key' => array(
  11245. 0 => 'pub_id',
  11246. ),
  11247. 'unique keys' => array(
  11248. 'pub_c1' => array(
  11249. 0 => 'uniquename',
  11250. ),
  11251. ),
  11252. 'indexes' => array(
  11253. 'pub_idx1' => array(
  11254. 0 => 'type_id',
  11255. ),
  11256. ),
  11257. 'foreign keys' => array(
  11258. 'cvterm' => array(
  11259. 'table' => 'cvterm',
  11260. 'columns' => array(
  11261. 'type_id' => 'cvterm_id',
  11262. ),
  11263. ),
  11264. ),
  11265. 'table' => 'pub',
  11266. 'referring_tables' => array(
  11267. 0 => 'cell_line_cvterm',
  11268. 1 => 'cell_line_feature',
  11269. 2 => 'cell_line_library',
  11270. 3 => 'cell_line_pub',
  11271. 4 => 'cell_line_synonym',
  11272. 5 => 'cell_lineprop_pub',
  11273. 6 => 'expression_pub',
  11274. 7 => 'feature_cvterm',
  11275. 8 => 'feature_cvterm_pub',
  11276. 9 => 'feature_expression',
  11277. 10 => 'feature_pub',
  11278. 11 => 'feature_relationship_pub',
  11279. 12 => 'feature_relationshipprop_pub',
  11280. 13 => 'feature_synonym',
  11281. 14 => 'featureloc_pub',
  11282. 15 => 'featuremap_pub',
  11283. 16 => 'featureprop_pub',
  11284. 17 => 'library_cvterm',
  11285. 18 => 'library_pub',
  11286. 19 => 'library_synonym',
  11287. 20 => 'libraryprop_pub',
  11288. 21 => 'nd_experiment_pub',
  11289. 22 => 'phendesc',
  11290. 23 => 'phenotype_comparison',
  11291. 24 => 'phenotype_comparison_cvterm',
  11292. 25 => 'phenstatement',
  11293. 26 => 'phylonode_pub',
  11294. 27 => 'phylotree_pub',
  11295. 28 => 'project_pub',
  11296. 36 => 'protocol',
  11297. 37 => 'pub_dbxref',
  11298. 38 => 'pub_relationship',
  11299. 40 => 'pubauthor',
  11300. 41 => 'pubprop',
  11301. 42 => 'stock_cvterm',
  11302. 43 => 'stock_pub',
  11303. 44 => 'stock_relationship_cvterm',
  11304. 52 => 'stock_relationship_pub',
  11305. 53 => 'stockprop_pub',
  11306. 54 => 'study',
  11307. ),
  11308. );
  11309. return $description;
  11310. }
  11311. /**
  11312. * Implements hook_chado_schema_v1_2_pub_dbxref()
  11313. * Purpose: To describe the structure of 'pub_dbxref' to tripal
  11314. * @see tripal_core_chado_insert()
  11315. * @see tripal_core_chado_update()
  11316. * @see tripal_core_chado_select()
  11317. *
  11318. * @return
  11319. * An array describing the 'pub_dbxref' table
  11320. *
  11321. * @ingroup tripal_chado_v1.2_schema_api
  11322. *
  11323. */
  11324. function tripal_core_chado_schema_v1_2_pub_dbxref() {
  11325. $description = array(
  11326. 'description' => 'TODO: please describe this table!',
  11327. 'fields' => array(
  11328. 'pub_dbxref_id' => array(
  11329. 'description' => 'TODO: please describe this field!',
  11330. 'type' => 'serial',
  11331. 'not null' => TRUE,
  11332. ),
  11333. 'pub_id' => array(
  11334. 'description' => 'TODO: please describe this field!',
  11335. 'type' => 'int',
  11336. 'not null' => TRUE,
  11337. ),
  11338. 'dbxref_id' => array(
  11339. 'description' => 'TODO: please describe this field!',
  11340. 'type' => 'int',
  11341. 'not null' => TRUE,
  11342. ),
  11343. 'is_current' => array(
  11344. 'description' => 'TODO: please describe this field!',
  11345. 'type' => 'boolean',
  11346. 'not null' => TRUE,
  11347. 'default' => 'ru',
  11348. ),
  11349. ),
  11350. 'primary key' => array(
  11351. 0 => 'pub_dbxref_id',
  11352. ),
  11353. 'unique keys' => array(
  11354. 'pub_dbxref_c1' => array(
  11355. 0 => 'pub_id',
  11356. 1 => 'dbxref_id',
  11357. ),
  11358. ),
  11359. 'indexes' => array(
  11360. 'pub_dbxref_idx1' => array(
  11361. 0 => 'pub_id',
  11362. ),
  11363. 'pub_dbxref_idx2' => array(
  11364. 0 => 'dbxref_id',
  11365. ),
  11366. ),
  11367. 'foreign keys' => array(
  11368. 'dbxref' => array(
  11369. 'table' => 'dbxref',
  11370. 'columns' => array(
  11371. 'dbxref_id' => 'dbxref_id',
  11372. ),
  11373. ),
  11374. 'pub' => array(
  11375. 'table' => 'pub',
  11376. 'columns' => array(
  11377. 'pub_id' => 'pub_id',
  11378. ),
  11379. ),
  11380. ),
  11381. 'table' => 'pub_dbxref',
  11382. 'referring_tables' => NULL,
  11383. );
  11384. return $description;
  11385. }
  11386. /**
  11387. * Implements hook_chado_schema_v1_2_pub_relationship()
  11388. * Purpose: To describe the structure of 'pub_relationship' to tripal
  11389. * @see tripal_core_chado_insert()
  11390. * @see tripal_core_chado_update()
  11391. * @see tripal_core_chado_select()
  11392. *
  11393. * @return
  11394. * An array describing the 'pub_relationship' table
  11395. *
  11396. * @ingroup tripal_chado_v1.2_schema_api
  11397. *
  11398. */
  11399. function tripal_core_chado_schema_v1_2_pub_relationship() {
  11400. $description = array(
  11401. 'description' => 'TODO: please describe this table!',
  11402. 'fields' => array(
  11403. 'pub_relationship_id' => array(
  11404. 'description' => 'TODO: please describe this field!',
  11405. 'type' => 'serial',
  11406. 'not null' => TRUE,
  11407. ),
  11408. 'subject_id' => array(
  11409. 'description' => 'TODO: please describe this field!',
  11410. 'type' => 'int',
  11411. 'not null' => TRUE,
  11412. ),
  11413. 'object_id' => array(
  11414. 'description' => 'TODO: please describe this field!',
  11415. 'type' => 'int',
  11416. 'not null' => TRUE,
  11417. ),
  11418. 'type_id' => array(
  11419. 'description' => 'TODO: please describe this field!',
  11420. 'type' => 'int',
  11421. 'not null' => TRUE,
  11422. ),
  11423. ),
  11424. 'primary key' => array(
  11425. 0 => 'pub_relationship_id',
  11426. ),
  11427. 'unique keys' => array(
  11428. 'pub_relationship_c1' => array(
  11429. 0 => 'subject_id',
  11430. 1 => 'object_id',
  11431. 2 => 'type_id',
  11432. ),
  11433. ),
  11434. 'indexes' => array(
  11435. 'pub_relationship_idx1' => array(
  11436. 0 => 'subject_id',
  11437. ),
  11438. 'pub_relationship_idx2' => array(
  11439. 0 => 'object_id',
  11440. ),
  11441. 'pub_relationship_idx3' => array(
  11442. 0 => 'type_id',
  11443. ),
  11444. ),
  11445. 'foreign keys' => array(
  11446. 'cvterm' => array(
  11447. 'table' => 'cvterm',
  11448. 'columns' => array(
  11449. 'type_id' => 'cvterm_id',
  11450. ),
  11451. ),
  11452. 'pub' => array(
  11453. 'table' => 'pub',
  11454. 'columns' => array(
  11455. 'subject_id' => 'pub_id',
  11456. 'object_id' => 'pub_id',
  11457. ),
  11458. ),
  11459. ),
  11460. 'table' => 'pub_relationship',
  11461. 'referring_tables' => NULL,
  11462. );
  11463. return $description;
  11464. }
  11465. /**
  11466. * Implements hook_chado_schema_v1_2_pubauthor()
  11467. * Purpose: To describe the structure of 'pubauthor' to tripal
  11468. * @see tripal_core_chado_insert()
  11469. * @see tripal_core_chado_update()
  11470. * @see tripal_core_chado_select()
  11471. *
  11472. * @return
  11473. * An array describing the 'pubauthor' table
  11474. *
  11475. * @ingroup tripal_chado_v1.2_schema_api
  11476. *
  11477. */
  11478. function tripal_core_chado_schema_v1_2_pubauthor() {
  11479. $description = array(
  11480. 'description' => 'TODO: please describe this table!',
  11481. 'fields' => array(
  11482. 'pubauthor_id' => array(
  11483. 'description' => 'TODO: please describe this field!',
  11484. 'type' => 'serial',
  11485. 'not null' => TRUE,
  11486. ),
  11487. 'pub_id' => array(
  11488. 'description' => 'TODO: please describe this field!',
  11489. 'type' => 'int',
  11490. 'not null' => TRUE,
  11491. ),
  11492. 'rank' => array(
  11493. 'description' => 'TODO: please describe this field!',
  11494. 'type' => 'int',
  11495. 'not null' => TRUE,
  11496. ),
  11497. 'editor' => array(
  11498. 'description' => 'TODO: please describe this field!',
  11499. 'type' => 'boolean',
  11500. 'not null' => FALSE,
  11501. 'default' => 'als',
  11502. ),
  11503. 'surname' => array(
  11504. 'description' => 'TODO: please describe this field!',
  11505. 'type' => 'varchar',
  11506. 'length' => '100',
  11507. 'not null' => TRUE,
  11508. ),
  11509. 'givennames' => array(
  11510. 'description' => 'TODO: please describe this field!',
  11511. 'type' => 'varchar',
  11512. 'length' => '100',
  11513. 'not null' => FALSE,
  11514. ),
  11515. 'suffix' => array(
  11516. 'description' => 'TODO: please describe this field!',
  11517. 'type' => 'varchar',
  11518. 'length' => '100',
  11519. 'not null' => FALSE,
  11520. ),
  11521. ),
  11522. 'primary key' => array(
  11523. 0 => 'pubauthor_id',
  11524. ),
  11525. 'unique keys' => array(
  11526. 'pubauthor_c1' => array(
  11527. 0 => 'pub_id',
  11528. 1 => 'rank',
  11529. ),
  11530. ),
  11531. 'indexes' => array(
  11532. 'pubauthor_idx2' => array(
  11533. 0 => 'pub_id',
  11534. ),
  11535. ),
  11536. 'foreign keys' => array(
  11537. 'pub' => array(
  11538. 'table' => 'pub',
  11539. 'columns' => array(
  11540. 'pub_id' => 'pub_id',
  11541. ),
  11542. ),
  11543. ),
  11544. 'table' => 'pubauthor',
  11545. 'referring_tables' => NULL,
  11546. );
  11547. return $description;
  11548. }
  11549. /**
  11550. * Implements hook_chado_schema_v1_2_pubprop()
  11551. * Purpose: To describe the structure of 'pubprop' to tripal
  11552. * @see tripal_core_chado_insert()
  11553. * @see tripal_core_chado_update()
  11554. * @see tripal_core_chado_select()
  11555. *
  11556. * @return
  11557. * An array describing the 'pubprop' table
  11558. *
  11559. * @ingroup tripal_chado_v1.2_schema_api
  11560. *
  11561. */
  11562. function tripal_core_chado_schema_v1_2_pubprop() {
  11563. $description = array(
  11564. 'description' => 'TODO: please describe this table!',
  11565. 'fields' => array(
  11566. 'pubprop_id' => array(
  11567. 'description' => 'TODO: please describe this field!',
  11568. 'type' => 'serial',
  11569. 'not null' => TRUE,
  11570. ),
  11571. 'pub_id' => array(
  11572. 'description' => 'TODO: please describe this field!',
  11573. 'type' => 'int',
  11574. 'not null' => TRUE,
  11575. ),
  11576. 'type_id' => array(
  11577. 'description' => 'TODO: please describe this field!',
  11578. 'type' => 'int',
  11579. 'not null' => TRUE,
  11580. ),
  11581. 'value' => array(
  11582. 'description' => 'TODO: please describe this field!',
  11583. 'type' => 'text',
  11584. 'not null' => TRUE,
  11585. ),
  11586. 'rank' => array(
  11587. 'description' => 'TODO: please describe this field!',
  11588. 'type' => 'int',
  11589. 'not null' => FALSE,
  11590. ),
  11591. ),
  11592. 'primary key' => array(
  11593. 0 => 'pubprop_id',
  11594. ),
  11595. 'unique keys' => array(
  11596. 'pubprop_c1' => array(
  11597. 0 => 'pub_id',
  11598. 1 => 'type_id',
  11599. 2 => 'rank',
  11600. ),
  11601. ),
  11602. 'indexes' => array(
  11603. 'pubprop_idx1' => array(
  11604. 0 => 'pub_id',
  11605. ),
  11606. 'pubprop_idx2' => array(
  11607. 0 => 'type_id',
  11608. ),
  11609. ),
  11610. 'foreign keys' => array(
  11611. 'cvterm' => array(
  11612. 'table' => 'cvterm',
  11613. 'columns' => array(
  11614. 'type_id' => 'cvterm_id',
  11615. ),
  11616. ),
  11617. 'pub' => array(
  11618. 'table' => 'pub',
  11619. 'columns' => array(
  11620. 'pub_id' => 'pub_id',
  11621. ),
  11622. ),
  11623. ),
  11624. 'table' => 'pubprop',
  11625. 'referring_tables' => NULL,
  11626. );
  11627. return $description;
  11628. }
  11629. /**
  11630. * Implements hook_chado_schema_v1_2_quantification()
  11631. * Purpose: To describe the structure of 'quantification' to tripal
  11632. * @see tripal_core_chado_insert()
  11633. * @see tripal_core_chado_update()
  11634. * @see tripal_core_chado_select()
  11635. *
  11636. * @return
  11637. * An array describing the 'quantification' table
  11638. *
  11639. * @ingroup tripal_chado_v1.2_schema_api
  11640. *
  11641. */
  11642. function tripal_core_chado_schema_v1_2_quantification() {
  11643. $description = array(
  11644. 'description' => 'TODO: please describe this table!',
  11645. 'fields' => array(
  11646. 'quantification_id' => array(
  11647. 'description' => 'TODO: please describe this field!',
  11648. 'type' => 'serial',
  11649. 'not null' => TRUE,
  11650. ),
  11651. 'acquisition_id' => array(
  11652. 'description' => 'TODO: please describe this field!',
  11653. 'type' => 'int',
  11654. 'not null' => TRUE,
  11655. ),
  11656. 'operator_id' => array(
  11657. 'description' => 'TODO: please describe this field!',
  11658. 'type' => 'int',
  11659. 'not null' => FALSE,
  11660. ),
  11661. 'protocol_id' => array(
  11662. 'description' => 'TODO: please describe this field!',
  11663. 'type' => 'int',
  11664. 'not null' => FALSE,
  11665. ),
  11666. 'analysis_id' => array(
  11667. 'description' => 'TODO: please describe this field!',
  11668. 'type' => 'int',
  11669. 'not null' => TRUE,
  11670. ),
  11671. 'quantificationdate' => array(
  11672. 'description' => 'TODO: please describe this field!',
  11673. 'type' => 'datetime',
  11674. 'not null' => FALSE,
  11675. 'default' => 'ow(',
  11676. ),
  11677. 'name' => array(
  11678. 'description' => 'TODO: please describe this field!',
  11679. 'type' => 'text',
  11680. 'not null' => FALSE,
  11681. ),
  11682. 'uri' => array(
  11683. 'description' => 'TODO: please describe this field!',
  11684. 'type' => 'text',
  11685. 'not null' => FALSE,
  11686. ),
  11687. ),
  11688. 'primary key' => array(
  11689. 0 => 'quantification_id',
  11690. ),
  11691. 'unique keys' => array(
  11692. 'quantification_c1' => array(
  11693. 0 => 'name',
  11694. 1 => 'analysis_id',
  11695. ),
  11696. ),
  11697. 'indexes' => array(
  11698. 'quantification_idx1' => array(
  11699. 0 => 'acquisition_id',
  11700. ),
  11701. 'quantification_idx2' => array(
  11702. 0 => 'operator_id',
  11703. ),
  11704. 'quantification_idx3' => array(
  11705. 0 => 'protocol_id',
  11706. ),
  11707. 'quantification_idx4' => array(
  11708. 0 => 'analysis_id',
  11709. ),
  11710. ),
  11711. 'foreign keys' => array(
  11712. 'analysis' => array(
  11713. 'table' => 'analysis',
  11714. 'columns' => array(
  11715. 'analysis_id' => 'analysis_id',
  11716. ),
  11717. ),
  11718. 'contact' => array(
  11719. 'table' => 'contact',
  11720. 'columns' => array(
  11721. 'operator_id' => 'contact_id',
  11722. ),
  11723. ),
  11724. 'protocol' => array(
  11725. 'table' => 'protocol',
  11726. 'columns' => array(
  11727. 'protocol_id' => 'protocol_id',
  11728. ),
  11729. ),
  11730. 'acquisition' => array(
  11731. 'table' => 'acquisition',
  11732. 'columns' => array(
  11733. 'acquisition_id' => 'acquisition_id',
  11734. ),
  11735. ),
  11736. ),
  11737. 'table' => 'quantification',
  11738. 'referring_tables' => array(
  11739. 0 => 'elementresult',
  11740. 1 => 'quantification_relationship',
  11741. 3 => 'quantificationprop',
  11742. ),
  11743. );
  11744. return $description;
  11745. }
  11746. /**
  11747. * Implements hook_chado_schema_v1_2_quantification_relationship()
  11748. * Purpose: To describe the structure of 'quantification_relationship' to tripal
  11749. * @see tripal_core_chado_insert()
  11750. * @see tripal_core_chado_update()
  11751. * @see tripal_core_chado_select()
  11752. *
  11753. * @return
  11754. * An array describing the 'quantification_relationship' table
  11755. *
  11756. * @ingroup tripal_chado_v1.2_schema_api
  11757. *
  11758. */
  11759. function tripal_core_chado_schema_v1_2_quantification_relationship() {
  11760. $description = array(
  11761. 'description' => 'TODO: please describe this table!',
  11762. 'fields' => array(
  11763. 'quantification_relationship_id' => array(
  11764. 'description' => 'TODO: please describe this field!',
  11765. 'type' => 'serial',
  11766. 'not null' => TRUE,
  11767. ),
  11768. 'subject_id' => array(
  11769. 'description' => 'TODO: please describe this field!',
  11770. 'type' => 'int',
  11771. 'not null' => TRUE,
  11772. ),
  11773. 'type_id' => array(
  11774. 'description' => 'TODO: please describe this field!',
  11775. 'type' => 'int',
  11776. 'not null' => TRUE,
  11777. ),
  11778. 'object_id' => array(
  11779. 'description' => 'TODO: please describe this field!',
  11780. 'type' => 'int',
  11781. 'not null' => TRUE,
  11782. ),
  11783. ),
  11784. 'primary key' => array(
  11785. 0 => 'quantification_relationship_id',
  11786. ),
  11787. 'unique keys' => array(
  11788. 'quantification_relationship_c1' => array(
  11789. 0 => 'subject_id',
  11790. 1 => 'object_id',
  11791. 2 => 'type_id',
  11792. ),
  11793. ),
  11794. 'indexes' => array(
  11795. 'quantification_relationship_idx1' => array(
  11796. 0 => 'subject_id',
  11797. ),
  11798. 'quantification_relationship_idx2' => array(
  11799. 0 => 'type_id',
  11800. ),
  11801. 'quantification_relationship_idx3' => array(
  11802. 0 => 'object_id',
  11803. ),
  11804. ),
  11805. 'foreign keys' => array(
  11806. 'cvterm' => array(
  11807. 'table' => 'cvterm',
  11808. 'columns' => array(
  11809. 'type_id' => 'cvterm_id',
  11810. ),
  11811. ),
  11812. 'quantification' => array(
  11813. 'table' => 'quantification',
  11814. 'columns' => array(
  11815. 'subject_id' => 'quantification_id',
  11816. 'object_id' => 'quantification_id',
  11817. ),
  11818. ),
  11819. ),
  11820. 'table' => 'quantification_relationship',
  11821. 'referring_tables' => NULL,
  11822. );
  11823. return $description;
  11824. }
  11825. /**
  11826. * Implements hook_chado_schema_v1_2_quantificationprop()
  11827. * Purpose: To describe the structure of 'quantificationprop' to tripal
  11828. * @see tripal_core_chado_insert()
  11829. * @see tripal_core_chado_update()
  11830. * @see tripal_core_chado_select()
  11831. *
  11832. * @return
  11833. * An array describing the 'quantificationprop' table
  11834. *
  11835. * @ingroup tripal_chado_v1.2_schema_api
  11836. *
  11837. */
  11838. function tripal_core_chado_schema_v1_2_quantificationprop() {
  11839. $description = array(
  11840. 'description' => 'TODO: please describe this table!',
  11841. 'fields' => array(
  11842. 'quantificationprop_id' => array(
  11843. 'description' => 'TODO: please describe this field!',
  11844. 'type' => 'serial',
  11845. 'not null' => TRUE,
  11846. ),
  11847. 'quantification_id' => array(
  11848. 'description' => 'TODO: please describe this field!',
  11849. 'type' => 'int',
  11850. 'not null' => TRUE,
  11851. ),
  11852. 'type_id' => array(
  11853. 'description' => 'TODO: please describe this field!',
  11854. 'type' => 'int',
  11855. 'not null' => TRUE,
  11856. ),
  11857. 'value' => array(
  11858. 'description' => 'TODO: please describe this field!',
  11859. 'type' => 'text',
  11860. 'not null' => FALSE,
  11861. ),
  11862. 'rank' => array(
  11863. 'description' => 'TODO: please describe this field!',
  11864. 'type' => 'int',
  11865. 'not null' => TRUE,
  11866. 'default' => 0,
  11867. ),
  11868. ),
  11869. 'primary key' => array(
  11870. 0 => 'quantificationprop_id',
  11871. ),
  11872. 'unique keys' => array(
  11873. 'quantificationprop_c1' => array(
  11874. 0 => 'quantification_id',
  11875. 1 => 'type_id',
  11876. 2 => 'rank',
  11877. ),
  11878. ),
  11879. 'indexes' => array(
  11880. 'quantificationprop_idx1' => array(
  11881. 0 => 'quantification_id',
  11882. ),
  11883. 'quantificationprop_idx2' => array(
  11884. 0 => 'type_id',
  11885. ),
  11886. ),
  11887. 'foreign keys' => array(
  11888. 'cvterm' => array(
  11889. 'table' => 'cvterm',
  11890. 'columns' => array(
  11891. 'type_id' => 'cvterm_id',
  11892. ),
  11893. ),
  11894. 'quantification' => array(
  11895. 'table' => 'quantification',
  11896. 'columns' => array(
  11897. 'quantification_id' => 'quantification_id',
  11898. ),
  11899. ),
  11900. ),
  11901. 'table' => 'quantificationprop',
  11902. 'referring_tables' => NULL,
  11903. );
  11904. return $description;
  11905. }
  11906. /**
  11907. * Implements hook_chado_schema_v1_2_stock()
  11908. * Purpose: To describe the structure of 'stock' to tripal
  11909. * @see tripal_core_chado_insert()
  11910. * @see tripal_core_chado_update()
  11911. * @see tripal_core_chado_select()
  11912. *
  11913. * @return
  11914. * An array describing the 'stock' table
  11915. *
  11916. * @ingroup tripal_chado_v1.2_schema_api
  11917. *
  11918. */
  11919. function tripal_core_chado_schema_v1_2_stock() {
  11920. $description = array(
  11921. '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.',
  11922. 'fields' => array(
  11923. 'stock_id' => array(
  11924. 'description' => 'TODO: please describe this field!',
  11925. 'type' => 'serial',
  11926. 'not null' => TRUE,
  11927. ),
  11928. 'dbxref_id' => array(
  11929. 'description' => 'TODO: please describe this field!',
  11930. 'type' => 'int',
  11931. 'not null' => FALSE,
  11932. ),
  11933. 'organism_id' => array(
  11934. 'description' => 'TODO: please describe this field!',
  11935. 'type' => 'int',
  11936. 'not null' => FALSE,
  11937. ),
  11938. 'name' => array(
  11939. 'description' => 'TODO: please describe this field!',
  11940. 'type' => 'varchar',
  11941. 'length' => '255',
  11942. 'not null' => FALSE,
  11943. ),
  11944. 'uniquename' => array(
  11945. 'description' => 'TODO: please describe this field!',
  11946. 'type' => 'text',
  11947. 'not null' => TRUE,
  11948. ),
  11949. 'description' => array(
  11950. 'description' => 'TODO: please describe this field!',
  11951. 'type' => 'text',
  11952. 'not null' => FALSE,
  11953. ),
  11954. 'type_id' => array(
  11955. 'description' => 'TODO: please describe this field!',
  11956. 'type' => 'int',
  11957. 'not null' => TRUE,
  11958. ),
  11959. 'is_obsolete' => array(
  11960. 'description' => 'TODO: please describe this field!',
  11961. 'type' => 'boolean',
  11962. 'not null' => TRUE,
  11963. 'default' => 'als',
  11964. ),
  11965. ),
  11966. 'primary key' => array(
  11967. 0 => 'stock_id',
  11968. ),
  11969. 'unique keys' => array(
  11970. 'stock_c1' => array(
  11971. 0 => 'organism_id',
  11972. 1 => 'uniquename',
  11973. 2 => 'type_id',
  11974. ),
  11975. ),
  11976. 'indexes' => array(
  11977. 'stock_idx1' => array(
  11978. 0 => 'dbxref_id',
  11979. ),
  11980. 'stock_idx2' => array(
  11981. 0 => 'organism_id',
  11982. ),
  11983. 'stock_idx3' => array(
  11984. 0 => 'type_id',
  11985. ),
  11986. 'stock_idx4' => array(
  11987. 0 => 'uniquename',
  11988. ),
  11989. 'stock_name_ind1' => array(
  11990. 0 => 'name',
  11991. ),
  11992. ),
  11993. 'foreign keys' => array(
  11994. 'organism' => array(
  11995. 'table' => 'organism',
  11996. 'columns' => array(
  11997. 'organism_id' => 'organism_id',
  11998. ),
  11999. ),
  12000. 'cvterm' => array(
  12001. 'table' => 'cvterm',
  12002. 'columns' => array(
  12003. 'type_id' => 'cvterm_id',
  12004. ),
  12005. ),
  12006. 'dbxref' => array(
  12007. 'table' => 'dbxref',
  12008. 'columns' => array(
  12009. 'dbxref_id' => 'dbxref_id',
  12010. ),
  12011. ),
  12012. ),
  12013. 'referring_tables' => array(
  12014. 0 => 'nd_experiment_stock',
  12015. 1 => 'stock_cvterm',
  12016. 2 => 'stock_dbxref',
  12017. 3 => 'stock_genotype',
  12018. 4 => 'stock_pub',
  12019. 5 => 'stock_relationship',
  12020. 7 => 'stockcollection_stock',
  12021. 8 => 'stockprop',
  12022. ),
  12023. 'table' => 'stock',
  12024. );
  12025. return $description;
  12026. }
  12027. /**
  12028. * Implements hook_chado_schema_v1_2_stock_cvterm()
  12029. * Purpose: To describe the structure of 'stock_cvterm' to tripal
  12030. * @see tripal_core_chado_insert()
  12031. * @see tripal_core_chado_update()
  12032. * @see tripal_core_chado_select()
  12033. *
  12034. * @return
  12035. * An array describing the 'stock_cvterm' table
  12036. *
  12037. * @ingroup tripal_chado_v1.2_schema_api
  12038. *
  12039. */
  12040. function tripal_core_chado_schema_v1_2_stock_cvterm() {
  12041. $description = array(
  12042. 'description' => 'TODO: please describe this table!',
  12043. 'fields' => array(
  12044. 'stock_cvterm_id' => array(
  12045. 'description' => 'TODO: please describe this field!',
  12046. 'type' => 'serial',
  12047. 'not null' => TRUE,
  12048. ),
  12049. 'stock_id' => array(
  12050. 'description' => 'TODO: please describe this field!',
  12051. 'type' => 'int',
  12052. 'not null' => TRUE,
  12053. ),
  12054. 'cvterm_id' => array(
  12055. 'description' => 'TODO: please describe this field!',
  12056. 'type' => 'int',
  12057. 'not null' => TRUE,
  12058. ),
  12059. 'pub_id' => array(
  12060. 'description' => 'TODO: please describe this field!',
  12061. 'type' => 'int',
  12062. 'not null' => TRUE,
  12063. ),
  12064. 'is_not' => array(
  12065. 'description' => 'TODO: please describe this field!',
  12066. 'type' => 'boolean',
  12067. 'not null' => TRUE,
  12068. 'default' => 'als',
  12069. ),
  12070. 'rank' => array(
  12071. 'description' => 'TODO: please describe this field!',
  12072. 'type' => 'int',
  12073. 'not null' => TRUE,
  12074. 'default' => 0,
  12075. ),
  12076. ),
  12077. 'primary key' => array(
  12078. 0 => 'stock_cvterm_id',
  12079. ),
  12080. 'unique keys' => array(
  12081. 'stock_cvterm_c1' => array(
  12082. 0 => 'stock_id',
  12083. 1 => 'cvterm_id',
  12084. 2 => 'pub_id',
  12085. 3 => 'rank',
  12086. ),
  12087. ),
  12088. 'indexes' => array(
  12089. 'stock_cvterm_idx1' => array(
  12090. 0 => 'stock_id',
  12091. ),
  12092. 'stock_cvterm_idx2' => array(
  12093. 0 => 'cvterm_id',
  12094. ),
  12095. 'stock_cvterm_idx3' => array(
  12096. 0 => 'pub_id',
  12097. ),
  12098. ),
  12099. 'foreign keys' => array(
  12100. 'cvterm' => array(
  12101. 'table' => 'cvterm',
  12102. 'columns' => array(
  12103. 'cvterm_id' => 'cvterm_id',
  12104. ),
  12105. ),
  12106. 'pub' => array(
  12107. 'table' => 'pub',
  12108. 'columns' => array(
  12109. 'pub_id' => 'pub_id',
  12110. ),
  12111. ),
  12112. 'stock' => array(
  12113. 'table' => 'stock',
  12114. 'columns' => array(
  12115. 'stock_id' => 'stock_id',
  12116. ),
  12117. ),
  12118. ),
  12119. 'table' => 'stock_cvterm',
  12120. 'referring_tables' => array(
  12121. 0 => 'stock_cvtermprop',
  12122. ),
  12123. );
  12124. return $description;
  12125. }
  12126. /**
  12127. * Implements hook_chado_schema_v1_2_stock_cvtermprop()
  12128. * Purpose: To describe the structure of 'stock_cvtermprop' to tripal
  12129. * @see tripal_core_chado_insert()
  12130. * @see tripal_core_chado_update()
  12131. * @see tripal_core_chado_select()
  12132. *
  12133. * @return
  12134. * An array describing the 'stock_cvtermprop' table
  12135. *
  12136. * @ingroup tripal_chado_v1.2_schema_api
  12137. *
  12138. */
  12139. function tripal_core_chado_schema_v1_2_stock_cvtermprop() {
  12140. $description = array(
  12141. 'description' => 'TODO: please describe this table!',
  12142. 'fields' => array(
  12143. 'stock_cvtermprop_id' => array(
  12144. 'description' => 'TODO: please describe this field!',
  12145. 'type' => 'serial',
  12146. 'not null' => TRUE,
  12147. ),
  12148. 'stock_cvterm_id' => array(
  12149. 'description' => 'TODO: please describe this field!',
  12150. 'type' => 'int',
  12151. 'not null' => TRUE,
  12152. ),
  12153. 'type_id' => array(
  12154. 'description' => 'TODO: please describe this field!',
  12155. 'type' => 'int',
  12156. 'not null' => TRUE,
  12157. ),
  12158. 'value' => array(
  12159. 'description' => 'TODO: please describe this field!',
  12160. 'type' => 'text',
  12161. 'not null' => FALSE,
  12162. ),
  12163. 'rank' => array(
  12164. 'description' => 'TODO: please describe this field!',
  12165. 'type' => 'int',
  12166. 'not null' => TRUE,
  12167. 'default' => 0,
  12168. ),
  12169. ),
  12170. 'primary key' => array(
  12171. 0 => 'stock_cvtermprop_id',
  12172. ),
  12173. 'unique keys' => array(
  12174. 'stock_cvtermprop_c1' => array(
  12175. 0 => 'stock_cvterm_id',
  12176. 1 => 'type_id',
  12177. 2 => 'rank',
  12178. ),
  12179. ),
  12180. 'indexes' => array(
  12181. 'stock_cvtermprop_idx1' => array(
  12182. 0 => 'stock_cvterm_id',
  12183. ),
  12184. 'stock_cvtermprop_idx2' => array(
  12185. 0 => 'type_id',
  12186. ),
  12187. ),
  12188. 'foreign keys' => array(
  12189. 'cvterm' => array(
  12190. 'table' => 'cvterm',
  12191. 'columns' => array(
  12192. 'type_id' => 'cvterm_id',
  12193. ),
  12194. ),
  12195. 'stock_cvterm' => array(
  12196. 'table' => 'stock_cvterm',
  12197. 'columns' => array(
  12198. 'stock_cvterm_id' => 'stock_cvterm_id',
  12199. ),
  12200. ),
  12201. ),
  12202. 'table' => 'stock_cvtermprop',
  12203. 'referring_tables' => NULL,
  12204. );
  12205. return $description;
  12206. }
  12207. /**
  12208. * Implements hook_chado_schema_v1_2_stock_dbxref()
  12209. * Purpose: To describe the structure of 'stock_dbxref' to tripal
  12210. * @see tripal_core_chado_insert()
  12211. * @see tripal_core_chado_update()
  12212. * @see tripal_core_chado_select()
  12213. *
  12214. * @return
  12215. * An array describing the 'stock_dbxref' table
  12216. *
  12217. * @ingroup tripal_chado_v1.2_schema_api
  12218. *
  12219. */
  12220. function tripal_core_chado_schema_v1_2_stock_dbxref() {
  12221. $description = array(
  12222. 'description' => 'TODO: please describe this table!',
  12223. 'fields' => array(
  12224. 'stock_dbxref_id' => array(
  12225. 'description' => 'TODO: please describe this field!',
  12226. 'type' => 'serial',
  12227. 'not null' => TRUE,
  12228. ),
  12229. 'stock_id' => array(
  12230. 'description' => 'TODO: please describe this field!',
  12231. 'type' => 'int',
  12232. 'not null' => TRUE,
  12233. ),
  12234. 'dbxref_id' => array(
  12235. 'description' => 'TODO: please describe this field!',
  12236. 'type' => 'int',
  12237. 'not null' => TRUE,
  12238. ),
  12239. 'is_current' => array(
  12240. 'description' => 'TODO: please describe this field!',
  12241. 'type' => 'boolean',
  12242. 'not null' => TRUE,
  12243. 'default' => 'ru',
  12244. ),
  12245. ),
  12246. 'primary key' => array(
  12247. 0 => 'stock_dbxref_id',
  12248. ),
  12249. 'unique keys' => array(
  12250. 'stock_dbxref_c1' => array(
  12251. 0 => 'stock_id',
  12252. 1 => 'dbxref_id',
  12253. ),
  12254. ),
  12255. 'indexes' => array(
  12256. 'stock_dbxref_idx1' => array(
  12257. 0 => 'stock_id',
  12258. ),
  12259. 'stock_dbxref_idx2' => array(
  12260. 0 => 'dbxref_id',
  12261. ),
  12262. ),
  12263. 'foreign keys' => array(
  12264. 'dbxref' => array(
  12265. 'table' => 'dbxref',
  12266. 'columns' => array(
  12267. 'dbxref_id' => 'dbxref_id',
  12268. ),
  12269. ),
  12270. 'stock' => array(
  12271. 'table' => 'stock',
  12272. 'columns' => array(
  12273. 'stock_id' => 'stock_id',
  12274. ),
  12275. ),
  12276. ),
  12277. 'table' => 'stock_dbxref',
  12278. 'referring_tables' => array(
  12279. 0 => 'stock_dbxrefprop',
  12280. ),
  12281. );
  12282. return $description;
  12283. }
  12284. /**
  12285. * Implements hook_chado_schema_v1_2_stock_dbxrefprop()
  12286. * Purpose: To describe the structure of 'stock_dbxrefprop' to tripal
  12287. * @see tripal_core_chado_insert()
  12288. * @see tripal_core_chado_update()
  12289. * @see tripal_core_chado_select()
  12290. *
  12291. * @return
  12292. * An array describing the 'stock_dbxrefprop' table
  12293. *
  12294. * @ingroup tripal_chado_v1.2_schema_api
  12295. *
  12296. */
  12297. function tripal_core_chado_schema_v1_2_stock_dbxrefprop() {
  12298. $description = array(
  12299. 'description' => 'TODO: please describe this table!',
  12300. 'fields' => array(
  12301. 'stock_dbxrefprop_id' => array(
  12302. 'description' => 'TODO: please describe this field!',
  12303. 'type' => 'serial',
  12304. 'not null' => TRUE,
  12305. ),
  12306. 'stock_dbxref_id' => array(
  12307. 'description' => 'TODO: please describe this field!',
  12308. 'type' => 'int',
  12309. 'not null' => TRUE,
  12310. ),
  12311. 'type_id' => array(
  12312. 'description' => 'TODO: please describe this field!',
  12313. 'type' => 'int',
  12314. 'not null' => TRUE,
  12315. ),
  12316. 'value' => array(
  12317. 'description' => 'TODO: please describe this field!',
  12318. 'type' => 'text',
  12319. 'not null' => FALSE,
  12320. ),
  12321. 'rank' => array(
  12322. 'description' => 'TODO: please describe this field!',
  12323. 'type' => 'int',
  12324. 'not null' => TRUE,
  12325. 'default' => 0,
  12326. ),
  12327. ),
  12328. 'primary key' => array(
  12329. 0 => 'stock_dbxrefprop_id',
  12330. ),
  12331. 'unique keys' => array(
  12332. 'stock_dbxrefprop_c1' => array(
  12333. 0 => 'stock_dbxref_id',
  12334. 1 => 'type_id',
  12335. 2 => 'rank',
  12336. ),
  12337. ),
  12338. 'indexes' => array(
  12339. 'stock_dbxrefprop_idx1' => array(
  12340. 0 => 'stock_dbxref_id',
  12341. ),
  12342. 'stock_dbxrefprop_idx2' => array(
  12343. 0 => 'type_id',
  12344. ),
  12345. ),
  12346. 'foreign keys' => array(
  12347. 'cvterm' => array(
  12348. 'table' => 'cvterm',
  12349. 'columns' => array(
  12350. 'type_id' => 'cvterm_id',
  12351. ),
  12352. ),
  12353. 'stock_dbxref' => array(
  12354. 'table' => 'stock_dbxref',
  12355. 'columns' => array(
  12356. 'stock_dbxref_id' => 'stock_dbxref_id',
  12357. ),
  12358. ),
  12359. ),
  12360. 'table' => 'stock_dbxrefprop',
  12361. 'referring_tables' => NULL,
  12362. );
  12363. return $description;
  12364. }
  12365. /**
  12366. * Implements hook_chado_schema_v1_2_stock_genotype()
  12367. * Purpose: To describe the structure of 'stock_genotype' to tripal
  12368. * @see tripal_core_chado_insert()
  12369. * @see tripal_core_chado_update()
  12370. * @see tripal_core_chado_select()
  12371. *
  12372. * @return
  12373. * An array describing the 'stock_genotype' table
  12374. *
  12375. * @ingroup tripal_chado_v1.2_schema_api
  12376. *
  12377. */
  12378. function tripal_core_chado_schema_v1_2_stock_genotype() {
  12379. $description = array(
  12380. 'description' => 'TODO: please describe this table!',
  12381. 'fields' => array(
  12382. 'stock_genotype_id' => array(
  12383. 'description' => 'TODO: please describe this field!',
  12384. 'type' => 'serial',
  12385. 'not null' => TRUE,
  12386. ),
  12387. 'stock_id' => array(
  12388. 'description' => 'TODO: please describe this field!',
  12389. 'type' => 'int',
  12390. 'not null' => TRUE,
  12391. ),
  12392. 'genotype_id' => array(
  12393. 'description' => 'TODO: please describe this field!',
  12394. 'type' => 'int',
  12395. 'not null' => TRUE,
  12396. ),
  12397. ),
  12398. 'primary key' => array(
  12399. 0 => 'stock_genotype_id',
  12400. ),
  12401. 'unique keys' => array(
  12402. 'stock_genotype_c1' => array(
  12403. 0 => 'stock_id',
  12404. 1 => 'genotype_id',
  12405. ),
  12406. ),
  12407. 'indexes' => array(
  12408. 'stock_genotype_idx1' => array(
  12409. 0 => 'stock_id',
  12410. ),
  12411. 'stock_genotype_idx2' => array(
  12412. 0 => 'genotype_id',
  12413. ),
  12414. ),
  12415. 'foreign keys' => array(
  12416. 'genotype' => array(
  12417. 'table' => 'genotype',
  12418. 'columns' => array(
  12419. 'genotype_id' => 'genotype_id',
  12420. ),
  12421. ),
  12422. 'stock' => array(
  12423. 'table' => 'stock',
  12424. 'columns' => array(
  12425. 'stock_id' => 'stock_id',
  12426. ),
  12427. ),
  12428. ),
  12429. 'table' => 'stock_genotype',
  12430. 'referring_tables' => NULL,
  12431. );
  12432. return $description;
  12433. }
  12434. /**
  12435. * Implements hook_chado_schema_v1_2_stock_pub()
  12436. * Purpose: To describe the structure of 'stock_pub' to tripal
  12437. * @see tripal_core_chado_insert()
  12438. * @see tripal_core_chado_update()
  12439. * @see tripal_core_chado_select()
  12440. *
  12441. * @return
  12442. * An array describing the 'stock_pub' table
  12443. *
  12444. * @ingroup tripal_chado_v1.2_schema_api
  12445. *
  12446. */
  12447. function tripal_core_chado_schema_v1_2_stock_pub() {
  12448. $description = array(
  12449. 'description' => 'TODO: please describe this table!',
  12450. 'fields' => array(
  12451. 'stock_pub_id' => array(
  12452. 'description' => 'TODO: please describe this field!',
  12453. 'type' => 'serial',
  12454. 'not null' => TRUE,
  12455. ),
  12456. 'stock_id' => array(
  12457. 'description' => 'TODO: please describe this field!',
  12458. 'type' => 'int',
  12459. 'not null' => TRUE,
  12460. ),
  12461. 'pub_id' => array(
  12462. 'description' => 'TODO: please describe this field!',
  12463. 'type' => 'int',
  12464. 'not null' => TRUE,
  12465. ),
  12466. ),
  12467. 'primary key' => array(
  12468. 0 => 'stock_pub_id',
  12469. ),
  12470. 'unique keys' => array(
  12471. 'stock_pub_c1' => array(
  12472. 0 => 'stock_id',
  12473. 1 => 'pub_id',
  12474. ),
  12475. ),
  12476. 'indexes' => array(
  12477. 'stock_pub_idx1' => array(
  12478. 0 => 'stock_id',
  12479. ),
  12480. 'stock_pub_idx2' => array(
  12481. 0 => 'pub_id',
  12482. ),
  12483. ),
  12484. 'foreign keys' => array(
  12485. 'pub' => array(
  12486. 'table' => 'pub',
  12487. 'columns' => array(
  12488. 'pub_id' => 'pub_id',
  12489. ),
  12490. ),
  12491. 'stock' => array(
  12492. 'table' => 'stock',
  12493. 'columns' => array(
  12494. 'stock_id' => 'stock_id',
  12495. ),
  12496. ),
  12497. ),
  12498. 'table' => 'stock_pub',
  12499. 'referring_tables' => NULL,
  12500. );
  12501. return $description;
  12502. }
  12503. /**
  12504. * Implements hook_chado_schema_v1_2_stock_relationship()
  12505. * Purpose: To describe the structure of 'stock_relationship' to tripal
  12506. * @see tripal_core_chado_insert()
  12507. * @see tripal_core_chado_update()
  12508. * @see tripal_core_chado_select()
  12509. *
  12510. * @return
  12511. * An array describing the 'stock_relationship' table
  12512. *
  12513. * @ingroup tripal_chado_v1.2_schema_api
  12514. *
  12515. */
  12516. function tripal_core_chado_schema_v1_2_stock_relationship() {
  12517. $description = array(
  12518. 'description' => 'TODO: please describe this table!',
  12519. 'fields' => array(
  12520. 'stock_relationship_id' => array(
  12521. 'description' => 'TODO: please describe this field!',
  12522. 'type' => 'serial',
  12523. 'not null' => TRUE,
  12524. ),
  12525. 'subject_id' => array(
  12526. 'description' => 'TODO: please describe this field!',
  12527. 'type' => 'int',
  12528. 'not null' => TRUE,
  12529. ),
  12530. 'object_id' => array(
  12531. 'description' => 'TODO: please describe this field!',
  12532. 'type' => 'int',
  12533. 'not null' => TRUE,
  12534. ),
  12535. 'type_id' => array(
  12536. 'description' => 'TODO: please describe this field!',
  12537. 'type' => 'int',
  12538. 'not null' => TRUE,
  12539. ),
  12540. 'value' => array(
  12541. 'description' => 'TODO: please describe this field!',
  12542. 'type' => 'text',
  12543. 'not null' => FALSE,
  12544. ),
  12545. 'rank' => array(
  12546. 'description' => 'TODO: please describe this field!',
  12547. 'type' => 'int',
  12548. 'not null' => TRUE,
  12549. 'default' => 0,
  12550. ),
  12551. ),
  12552. 'primary key' => array(
  12553. 0 => 'stock_relationship_id',
  12554. ),
  12555. 'unique keys' => array(
  12556. 'stock_relationship_c1' => array(
  12557. 0 => 'subject_id',
  12558. 1 => 'object_id',
  12559. 2 => 'type_id',
  12560. 3 => 'rank',
  12561. ),
  12562. ),
  12563. 'indexes' => array(
  12564. 'stock_relationship_idx1' => array(
  12565. 0 => 'subject_id',
  12566. ),
  12567. 'stock_relationship_idx2' => array(
  12568. 0 => 'object_id',
  12569. ),
  12570. 'stock_relationship_idx3' => array(
  12571. 0 => 'type_id',
  12572. ),
  12573. ),
  12574. 'foreign keys' => array(
  12575. 'cvterm' => array(
  12576. 'table' => 'cvterm',
  12577. 'columns' => array(
  12578. 'type_id' => 'cvterm_id',
  12579. ),
  12580. ),
  12581. 'stock' => array(
  12582. 'table' => 'stock',
  12583. 'columns' => array(
  12584. 'subject_id' => 'stock_id',
  12585. 'object_id' => 'stock_id',
  12586. ),
  12587. ),
  12588. ),
  12589. 'table' => 'stock_relationship',
  12590. 'referring_tables' => array(
  12591. 0 => 'stock_relationship_cvterm',
  12592. 8 => 'stock_relationship_pub',
  12593. ),
  12594. );
  12595. return $description;
  12596. }
  12597. /**
  12598. * Implements hook_chado_schema_v1_2_stock_relationship_cvterm()
  12599. * Purpose: To describe the structure of 'stock_relationship_cvterm' to tripal
  12600. * @see tripal_core_chado_insert()
  12601. * @see tripal_core_chado_update()
  12602. * @see tripal_core_chado_select()
  12603. *
  12604. * @return
  12605. * An array describing the 'stock_relationship_cvterm' table
  12606. *
  12607. * @ingroup tripal_chado_v1.2_schema_api
  12608. *
  12609. */
  12610. function tripal_core_chado_schema_v1_2_stock_relationship_cvterm() {
  12611. $description = array(
  12612. 'description' => 'TODO: please describe this table!',
  12613. 'fields' => array(
  12614. 'stock_relationship_cvterm_id' => array(
  12615. 'description' => 'TODO: please describe this field!',
  12616. 'type' => 'serial',
  12617. 'not null' => TRUE,
  12618. ),
  12619. 'stock_relationship_id' => array(
  12620. 'description' => 'TODO: please describe this field!',
  12621. 'type' => 'int',
  12622. 'not null' => TRUE,
  12623. ),
  12624. 'cvterm_id' => array(
  12625. 'description' => 'TODO: please describe this field!',
  12626. 'type' => 'int',
  12627. 'not null' => TRUE,
  12628. ),
  12629. 'pub_id' => array(
  12630. 'description' => 'TODO: please describe this field!',
  12631. 'type' => 'int',
  12632. 'not null' => FALSE,
  12633. ),
  12634. ),
  12635. 'primary key' => array(
  12636. 0 => 'stock_relationship_cvterm_id',
  12637. ),
  12638. 'foreign keys' => array(
  12639. 'cvterm' => array(
  12640. 'table' => 'cvterm',
  12641. 'columns' => array(
  12642. 'cvterm_id' => 'cvterm_id',
  12643. ),
  12644. ),
  12645. 'pub' => array(
  12646. 'table' => 'pub',
  12647. 'columns' => array(
  12648. 'pub_id' => 'pub_id',
  12649. ),
  12650. ),
  12651. 'stock_relationship' => array(
  12652. 'table' => 'stock_relationship',
  12653. 'columns' => array(
  12654. 'stock_relationship_id' => 'stock_relationship_id',
  12655. ),
  12656. ),
  12657. ),
  12658. 'table' => 'stock_relationship_cvterm',
  12659. 'referring_tables' => NULL,
  12660. );
  12661. return $description;
  12662. }
  12663. /**
  12664. * Implements hook_chado_schema_v1_2_stock_relationship_pub()
  12665. * Purpose: To describe the structure of 'stock_relationship_pub' to tripal
  12666. * @see tripal_core_chado_insert()
  12667. * @see tripal_core_chado_update()
  12668. * @see tripal_core_chado_select()
  12669. *
  12670. * @return
  12671. * An array describing the 'stock_relationship_pub' table
  12672. *
  12673. * @ingroup tripal_chado_v1.2_schema_api
  12674. *
  12675. */
  12676. function tripal_core_chado_schema_v1_2_stock_relationship_pub() {
  12677. $description = array(
  12678. 'description' => 'TODO: please describe this table!',
  12679. 'fields' => array(
  12680. 'stock_relationship_pub_id' => array(
  12681. 'description' => 'TODO: please describe this field!',
  12682. 'type' => 'serial',
  12683. 'not null' => TRUE,
  12684. ),
  12685. 'stock_relationship_id' => array(
  12686. 'description' => 'TODO: please describe this field!',
  12687. 'type' => 'int',
  12688. 'not null' => TRUE,
  12689. ),
  12690. 'pub_id' => array(
  12691. 'description' => 'TODO: please describe this field!',
  12692. 'type' => 'int',
  12693. 'not null' => TRUE,
  12694. ),
  12695. ),
  12696. 'primary key' => array(
  12697. 0 => 'stock_relationship_pub_id',
  12698. ),
  12699. 'unique keys' => array(
  12700. 'stock_relationship_pub_c1' => array(
  12701. 0 => 'stock_relationship_id',
  12702. 1 => 'pub_id',
  12703. ),
  12704. ),
  12705. 'indexes' => array(
  12706. 'stock_relationship_pub_idx1' => array(
  12707. 0 => 'stock_relationship_id',
  12708. ),
  12709. 'stock_relationship_pub_idx2' => array(
  12710. 0 => 'pub_id',
  12711. ),
  12712. ),
  12713. 'foreign keys' => array(
  12714. 'pub' => array(
  12715. 'table' => 'pub',
  12716. 'columns' => array(
  12717. 'pub_id' => 'pub_id',
  12718. ),
  12719. ),
  12720. 'stock_relationship' => array(
  12721. 'table' => 'stock_relationship',
  12722. 'columns' => array(
  12723. 'stock_relationship_id' => 'stock_relationship_id',
  12724. ),
  12725. ),
  12726. ),
  12727. 'table' => 'stock_relationship_pub',
  12728. 'referring_tables' => NULL,
  12729. );
  12730. return $description;
  12731. }
  12732. /**
  12733. * Implements hook_chado_schema_v1_2_stockcollection()
  12734. * Purpose: To describe the structure of 'stockcollection' to tripal
  12735. * @see tripal_core_chado_insert()
  12736. * @see tripal_core_chado_update()
  12737. * @see tripal_core_chado_select()
  12738. *
  12739. * @return
  12740. * An array describing the 'stockcollection' table
  12741. *
  12742. * @ingroup tripal_chado_v1.2_schema_api
  12743. *
  12744. */
  12745. function tripal_core_chado_schema_v1_2_stockcollection() {
  12746. $description = array(
  12747. 'description' => 'TODO: please describe this table!',
  12748. 'fields' => array(
  12749. 'stockcollection_id' => array(
  12750. 'description' => 'TODO: please describe this field!',
  12751. 'type' => 'serial',
  12752. 'not null' => TRUE,
  12753. ),
  12754. 'type_id' => array(
  12755. 'description' => 'TODO: please describe this field!',
  12756. 'type' => 'int',
  12757. 'not null' => TRUE,
  12758. ),
  12759. 'contact_id' => array(
  12760. 'description' => 'TODO: please describe this field!',
  12761. 'type' => 'int',
  12762. 'not null' => FALSE,
  12763. ),
  12764. 'name' => array(
  12765. 'description' => 'TODO: please describe this field!',
  12766. 'type' => 'varchar',
  12767. 'length' => '255',
  12768. 'not null' => FALSE,
  12769. ),
  12770. 'uniquename' => array(
  12771. 'description' => 'TODO: please describe this field!',
  12772. 'type' => 'text',
  12773. 'not null' => TRUE,
  12774. ),
  12775. ),
  12776. 'primary key' => array(
  12777. 0 => 'stockcollection_id',
  12778. ),
  12779. 'unique keys' => array(
  12780. 'stockcollection_c1' => array(
  12781. 0 => 'uniquename',
  12782. 1 => 'type_id',
  12783. ),
  12784. ),
  12785. 'indexes' => array(
  12786. 'stockcollection_idx1' => array(
  12787. 0 => 'contact_id',
  12788. ),
  12789. 'stockcollection_idx2' => array(
  12790. 0 => 'type_id',
  12791. ),
  12792. 'stockcollection_idx3' => array(
  12793. 0 => 'uniquename',
  12794. ),
  12795. 'stockcollection_name_ind1' => array(
  12796. 0 => 'name',
  12797. ),
  12798. ),
  12799. 'foreign keys' => array(
  12800. 'cvterm' => array(
  12801. 'table' => 'cvterm',
  12802. 'columns' => array(
  12803. 'type_id' => 'cvterm_id',
  12804. ),
  12805. ),
  12806. 'contact' => array(
  12807. 'table' => 'contact',
  12808. 'columns' => array(
  12809. 'contact_id' => 'contact_id',
  12810. ),
  12811. ),
  12812. ),
  12813. 'table' => 'stockcollection',
  12814. 'referring_tables' => array(
  12815. 0 => 'stockcollection_stock',
  12816. 1 => 'stockcollectionprop',
  12817. ),
  12818. );
  12819. return $description;
  12820. }
  12821. /**
  12822. * Implements hook_chado_schema_v1_2_stockcollection_stock()
  12823. * Purpose: To describe the structure of 'stockcollection_stock' to tripal
  12824. * @see tripal_core_chado_insert()
  12825. * @see tripal_core_chado_update()
  12826. * @see tripal_core_chado_select()
  12827. *
  12828. * @return
  12829. * An array describing the 'stockcollection_stock' table
  12830. *
  12831. * @ingroup tripal_chado_v1.2_schema_api
  12832. *
  12833. */
  12834. function tripal_core_chado_schema_v1_2_stockcollection_stock() {
  12835. $description = array(
  12836. 'description' => 'TODO: please describe this table!',
  12837. 'fields' => array(
  12838. 'stockcollection_stock_id' => array(
  12839. 'description' => 'TODO: please describe this field!',
  12840. 'type' => 'serial',
  12841. 'not null' => TRUE,
  12842. ),
  12843. 'stockcollection_id' => array(
  12844. 'description' => 'TODO: please describe this field!',
  12845. 'type' => 'int',
  12846. 'not null' => TRUE,
  12847. ),
  12848. 'stock_id' => array(
  12849. 'description' => 'TODO: please describe this field!',
  12850. 'type' => 'int',
  12851. 'not null' => TRUE,
  12852. ),
  12853. ),
  12854. 'primary key' => array(
  12855. 0 => 'stockcollection_stock_id',
  12856. ),
  12857. 'unique keys' => array(
  12858. 'stockcollection_stock_c1' => array(
  12859. 0 => 'stockcollection_id',
  12860. 1 => 'stock_id',
  12861. ),
  12862. ),
  12863. 'indexes' => array(
  12864. 'stockcollection_stock_idx1' => array(
  12865. 0 => 'stockcollection_id',
  12866. ),
  12867. 'stockcollection_stock_idx2' => array(
  12868. 0 => 'stock_id',
  12869. ),
  12870. ),
  12871. 'foreign keys' => array(
  12872. 'stock' => array(
  12873. 'table' => 'stock',
  12874. 'columns' => array(
  12875. 'stock_id' => 'stock_id',
  12876. ),
  12877. ),
  12878. 'stockcollection' => array(
  12879. 'table' => 'stockcollection',
  12880. 'columns' => array(
  12881. 'stockcollection_id' => 'stockcollection_id',
  12882. ),
  12883. ),
  12884. ),
  12885. 'table' => 'stockcollection_stock',
  12886. 'referring_tables' => NULL,
  12887. );
  12888. return $description;
  12889. }
  12890. /**
  12891. * Implements hook_chado_schema_v1_2_stockcollectionprop()
  12892. * Purpose: To describe the structure of 'stockcollectionprop' to tripal
  12893. * @see tripal_core_chado_insert()
  12894. * @see tripal_core_chado_update()
  12895. * @see tripal_core_chado_select()
  12896. *
  12897. * @return
  12898. * An array describing the 'stockcollectionprop' table
  12899. *
  12900. * @ingroup tripal_chado_v1.2_schema_api
  12901. *
  12902. */
  12903. function tripal_core_chado_schema_v1_2_stockcollectionprop() {
  12904. $description = array(
  12905. 'description' => 'TODO: please describe this table!',
  12906. 'fields' => array(
  12907. 'stockcollectionprop_id' => array(
  12908. 'description' => 'TODO: please describe this field!',
  12909. 'type' => 'serial',
  12910. 'not null' => TRUE,
  12911. ),
  12912. 'stockcollection_id' => array(
  12913. 'description' => 'TODO: please describe this field!',
  12914. 'type' => 'int',
  12915. 'not null' => TRUE,
  12916. ),
  12917. 'type_id' => array(
  12918. 'description' => 'TODO: please describe this field!',
  12919. 'type' => 'int',
  12920. 'not null' => TRUE,
  12921. ),
  12922. 'value' => array(
  12923. 'description' => 'TODO: please describe this field!',
  12924. 'type' => 'text',
  12925. 'not null' => FALSE,
  12926. ),
  12927. 'rank' => array(
  12928. 'description' => 'TODO: please describe this field!',
  12929. 'type' => 'int',
  12930. 'not null' => TRUE,
  12931. 'default' => 0,
  12932. ),
  12933. ),
  12934. 'primary key' => array(
  12935. 0 => 'stockcollectionprop_id',
  12936. ),
  12937. 'unique keys' => array(
  12938. 'stockcollectionprop_c1' => array(
  12939. 0 => 'stockcollection_id',
  12940. 1 => 'type_id',
  12941. 2 => 'rank',
  12942. ),
  12943. ),
  12944. 'indexes' => array(
  12945. 'stockcollectionprop_idx1' => array(
  12946. 0 => 'stockcollection_id',
  12947. ),
  12948. 'stockcollectionprop_idx2' => array(
  12949. 0 => 'type_id',
  12950. ),
  12951. ),
  12952. 'foreign keys' => array(
  12953. 'cvterm' => array(
  12954. 'table' => 'cvterm',
  12955. 'columns' => array(
  12956. 'type_id' => 'cvterm_id',
  12957. ),
  12958. ),
  12959. 'stockcollection' => array(
  12960. 'table' => 'stockcollection',
  12961. 'columns' => array(
  12962. 'stockcollection_id' => 'stockcollection_id',
  12963. ),
  12964. ),
  12965. ),
  12966. 'table' => 'stockcollectionprop',
  12967. 'referring_tables' => NULL,
  12968. );
  12969. return $description;
  12970. }
  12971. /**
  12972. * Implements hook_chado_schema_v1_2_stockprop()
  12973. * Purpose: To describe the structure of 'stockprop' to tripal
  12974. * @see tripal_core_chado_insert()
  12975. * @see tripal_core_chado_update()
  12976. * @see tripal_core_chado_select()
  12977. *
  12978. * @return
  12979. * An array describing the 'stockprop' table
  12980. *
  12981. * @ingroup tripal_chado_v1.2_schema_api
  12982. *
  12983. */
  12984. function tripal_core_chado_schema_v1_2_stockprop() {
  12985. $description = array(
  12986. 'description' => 'TODO: please describe this table!',
  12987. 'fields' => array(
  12988. 'stockprop_id' => array(
  12989. 'description' => 'TODO: please describe this field!',
  12990. 'type' => 'serial',
  12991. 'not null' => TRUE,
  12992. ),
  12993. 'stock_id' => array(
  12994. 'description' => 'TODO: please describe this field!',
  12995. 'type' => 'int',
  12996. 'not null' => TRUE,
  12997. ),
  12998. 'type_id' => array(
  12999. 'description' => 'TODO: please describe this field!',
  13000. 'type' => 'int',
  13001. 'not null' => TRUE,
  13002. ),
  13003. 'value' => array(
  13004. 'description' => 'TODO: please describe this field!',
  13005. 'type' => 'text',
  13006. 'not null' => FALSE,
  13007. ),
  13008. 'rank' => array(
  13009. 'description' => 'TODO: please describe this field!',
  13010. 'type' => 'int',
  13011. 'not null' => TRUE,
  13012. 'default' => 0,
  13013. ),
  13014. ),
  13015. 'primary key' => array(
  13016. 0 => 'stockprop_id',
  13017. ),
  13018. 'unique keys' => array(
  13019. 'stockprop_c1' => array(
  13020. 0 => 'stock_id',
  13021. 1 => 'type_id',
  13022. 2 => 'rank',
  13023. ),
  13024. ),
  13025. 'indexes' => array(
  13026. 'stockprop_idx1' => array(
  13027. 0 => 'stock_id',
  13028. ),
  13029. 'stockprop_idx2' => array(
  13030. 0 => 'type_id',
  13031. ),
  13032. ),
  13033. 'foreign keys' => array(
  13034. 'cvterm' => array(
  13035. 'table' => 'cvterm',
  13036. 'columns' => array(
  13037. 'type_id' => 'cvterm_id',
  13038. ),
  13039. ),
  13040. 'stock' => array(
  13041. 'table' => 'stock',
  13042. 'columns' => array(
  13043. 'stock_id' => 'stock_id',
  13044. ),
  13045. ),
  13046. ),
  13047. 'table' => 'stockprop',
  13048. 'referring_tables' => array(
  13049. 0 => 'stockprop_pub',
  13050. ),
  13051. );
  13052. return $description;
  13053. }
  13054. /**
  13055. * Implements hook_chado_schema_v1_2_stockprop_pub()
  13056. * Purpose: To describe the structure of 'stockprop_pub' to tripal
  13057. * @see tripal_core_chado_insert()
  13058. * @see tripal_core_chado_update()
  13059. * @see tripal_core_chado_select()
  13060. *
  13061. * @return
  13062. * An array describing the 'stockprop_pub' table
  13063. *
  13064. * @ingroup tripal_chado_v1.2_schema_api
  13065. *
  13066. */
  13067. function tripal_core_chado_schema_v1_2_stockprop_pub() {
  13068. $description = array(
  13069. 'description' => 'TODO: please describe this table!',
  13070. 'fields' => array(
  13071. 'stockprop_pub_id' => array(
  13072. 'description' => 'TODO: please describe this field!',
  13073. 'type' => 'serial',
  13074. 'not null' => TRUE,
  13075. ),
  13076. 'stockprop_id' => array(
  13077. 'description' => 'TODO: please describe this field!',
  13078. 'type' => 'int',
  13079. 'not null' => TRUE,
  13080. ),
  13081. 'pub_id' => array(
  13082. 'description' => 'TODO: please describe this field!',
  13083. 'type' => 'int',
  13084. 'not null' => TRUE,
  13085. ),
  13086. ),
  13087. 'primary key' => array(
  13088. 0 => 'stockprop_pub_id',
  13089. ),
  13090. 'unique keys' => array(
  13091. 'stockprop_pub_c1' => array(
  13092. 0 => 'stockprop_id',
  13093. 1 => 'pub_id',
  13094. ),
  13095. ),
  13096. 'indexes' => array(
  13097. 'stockprop_pub_idx1' => array(
  13098. 0 => 'stockprop_id',
  13099. ),
  13100. 'stockprop_pub_idx2' => array(
  13101. 0 => 'pub_id',
  13102. ),
  13103. ),
  13104. 'foreign keys' => array(
  13105. 'pub' => array(
  13106. 'table' => 'pub',
  13107. 'columns' => array(
  13108. 'pub_id' => 'pub_id',
  13109. ),
  13110. ),
  13111. 'stockprop' => array(
  13112. 'table' => 'stockprop',
  13113. 'columns' => array(
  13114. 'stockprop_id' => 'stockprop_id',
  13115. ),
  13116. ),
  13117. ),
  13118. 'table' => 'stockprop_pub',
  13119. 'referring_tables' => NULL,
  13120. );
  13121. return $description;
  13122. }
  13123. /**
  13124. * Implements hook_chado_schema_v1_2_study()
  13125. * Purpose: To describe the structure of 'study' to tripal
  13126. * @see tripal_core_chado_insert()
  13127. * @see tripal_core_chado_update()
  13128. * @see tripal_core_chado_select()
  13129. *
  13130. * @return
  13131. * An array describing the 'study' table
  13132. *
  13133. * @ingroup tripal_chado_v1.2_schema_api
  13134. *
  13135. */
  13136. function tripal_core_chado_schema_v1_2_study() {
  13137. $description = array(
  13138. 'description' => 'TODO: please describe this table!',
  13139. 'fields' => array(
  13140. 'study_id' => array(
  13141. 'description' => 'TODO: please describe this field!',
  13142. 'type' => 'serial',
  13143. 'not null' => TRUE,
  13144. ),
  13145. 'contact_id' => array(
  13146. 'description' => 'TODO: please describe this field!',
  13147. 'type' => 'int',
  13148. 'not null' => TRUE,
  13149. ),
  13150. 'pub_id' => array(
  13151. 'description' => 'TODO: please describe this field!',
  13152. 'type' => 'int',
  13153. 'not null' => FALSE,
  13154. ),
  13155. 'dbxref_id' => array(
  13156. 'description' => 'TODO: please describe this field!',
  13157. 'type' => 'int',
  13158. 'not null' => FALSE,
  13159. ),
  13160. 'name' => array(
  13161. 'description' => 'TODO: please describe this field!',
  13162. 'type' => 'text',
  13163. 'not null' => TRUE,
  13164. ),
  13165. 'description' => array(
  13166. 'description' => 'TODO: please describe this field!',
  13167. 'type' => 'text',
  13168. 'not null' => FALSE,
  13169. ),
  13170. ),
  13171. 'primary key' => array(
  13172. 0 => 'study_id',
  13173. ),
  13174. 'unique keys' => array(
  13175. 'study_c1' => array(
  13176. 0 => 'name',
  13177. ),
  13178. ),
  13179. 'indexes' => array(
  13180. 'study_idx1' => array(
  13181. 0 => 'contact_id',
  13182. ),
  13183. 'study_idx2' => array(
  13184. 0 => 'pub_id',
  13185. ),
  13186. 'study_idx3' => array(
  13187. 0 => 'dbxref_id',
  13188. ),
  13189. ),
  13190. 'foreign keys' => array(
  13191. 'dbxref' => array(
  13192. 'table' => 'dbxref',
  13193. 'columns' => array(
  13194. 'dbxref_id' => 'dbxref_id',
  13195. ),
  13196. ),
  13197. 'pub' => array(
  13198. 'table' => 'pub',
  13199. 'columns' => array(
  13200. 'pub_id' => 'pub_id',
  13201. ),
  13202. ),
  13203. 'contact' => array(
  13204. 'table' => 'contact',
  13205. 'columns' => array(
  13206. 'contact_id' => 'contact_id',
  13207. ),
  13208. ),
  13209. ),
  13210. 'table' => 'study',
  13211. 'referring_tables' => array(
  13212. 0 => 'study_assay',
  13213. 1 => 'studydesign',
  13214. 2 => 'studyprop',
  13215. ),
  13216. );
  13217. return $description;
  13218. }
  13219. /**
  13220. * Implements hook_chado_schema_v1_2_study_assay()
  13221. * Purpose: To describe the structure of 'study_assay' to tripal
  13222. * @see tripal_core_chado_insert()
  13223. * @see tripal_core_chado_update()
  13224. * @see tripal_core_chado_select()
  13225. *
  13226. * @return
  13227. * An array describing the 'study_assay' table
  13228. *
  13229. * @ingroup tripal_chado_v1.2_schema_api
  13230. *
  13231. */
  13232. function tripal_core_chado_schema_v1_2_study_assay() {
  13233. $description = array(
  13234. 'description' => 'TODO: please describe this table!',
  13235. 'fields' => array(
  13236. 'study_assay_id' => array(
  13237. 'description' => 'TODO: please describe this field!',
  13238. 'type' => 'serial',
  13239. 'not null' => TRUE,
  13240. ),
  13241. 'study_id' => array(
  13242. 'description' => 'TODO: please describe this field!',
  13243. 'type' => 'int',
  13244. 'not null' => TRUE,
  13245. ),
  13246. 'assay_id' => array(
  13247. 'description' => 'TODO: please describe this field!',
  13248. 'type' => 'int',
  13249. 'not null' => TRUE,
  13250. ),
  13251. ),
  13252. 'primary key' => array(
  13253. 0 => 'study_assay_id',
  13254. ),
  13255. 'unique keys' => array(
  13256. 'study_assay_c1' => array(
  13257. 0 => 'study_id',
  13258. 1 => 'assay_id',
  13259. ),
  13260. ),
  13261. 'indexes' => array(
  13262. 'study_assay_idx1' => array(
  13263. 0 => 'study_id',
  13264. ),
  13265. 'study_assay_idx2' => array(
  13266. 0 => 'assay_id',
  13267. ),
  13268. ),
  13269. 'foreign keys' => array(
  13270. 'assay' => array(
  13271. 'table' => 'assay',
  13272. 'columns' => array(
  13273. 'assay_id' => 'assay_id',
  13274. ),
  13275. ),
  13276. 'study' => array(
  13277. 'table' => 'study',
  13278. 'columns' => array(
  13279. 'study_id' => 'study_id',
  13280. ),
  13281. ),
  13282. ),
  13283. 'table' => 'study_assay',
  13284. 'referring_tables' => NULL,
  13285. );
  13286. return $description;
  13287. }
  13288. /**
  13289. * Implements hook_chado_schema_v1_2_studydesign()
  13290. * Purpose: To describe the structure of 'studydesign' to tripal
  13291. * @see tripal_core_chado_insert()
  13292. * @see tripal_core_chado_update()
  13293. * @see tripal_core_chado_select()
  13294. *
  13295. * @return
  13296. * An array describing the 'studydesign' table
  13297. *
  13298. * @ingroup tripal_chado_v1.2_schema_api
  13299. *
  13300. */
  13301. function tripal_core_chado_schema_v1_2_studydesign() {
  13302. $description = array(
  13303. 'description' => 'TODO: please describe this table!',
  13304. 'fields' => array(
  13305. 'studydesign_id' => array(
  13306. 'description' => 'TODO: please describe this field!',
  13307. 'type' => 'serial',
  13308. 'not null' => TRUE,
  13309. ),
  13310. 'study_id' => array(
  13311. 'description' => 'TODO: please describe this field!',
  13312. 'type' => 'int',
  13313. 'not null' => TRUE,
  13314. ),
  13315. 'description' => array(
  13316. 'description' => 'TODO: please describe this field!',
  13317. 'type' => 'text',
  13318. 'not null' => FALSE,
  13319. ),
  13320. ),
  13321. 'primary key' => array(
  13322. 0 => 'studydesign_id',
  13323. ),
  13324. 'indexes' => array(
  13325. 'studydesign_idx1' => array(
  13326. 0 => 'study_id',
  13327. ),
  13328. ),
  13329. 'foreign keys' => array(
  13330. 'study' => array(
  13331. 'table' => 'study',
  13332. 'columns' => array(
  13333. 'study_id' => 'study_id',
  13334. ),
  13335. ),
  13336. ),
  13337. 'table' => 'studydesign',
  13338. 'referring_tables' => array(
  13339. 0 => 'studydesignprop',
  13340. 1 => 'studyfactor',
  13341. ),
  13342. );
  13343. return $description;
  13344. }
  13345. /**
  13346. * Implements hook_chado_schema_v1_2_studydesignprop()
  13347. * Purpose: To describe the structure of 'studydesignprop' to tripal
  13348. * @see tripal_core_chado_insert()
  13349. * @see tripal_core_chado_update()
  13350. * @see tripal_core_chado_select()
  13351. *
  13352. * @return
  13353. * An array describing the 'studydesignprop' table
  13354. *
  13355. * @ingroup tripal_chado_v1.2_schema_api
  13356. *
  13357. */
  13358. function tripal_core_chado_schema_v1_2_studydesignprop() {
  13359. $description = array(
  13360. 'description' => 'TODO: please describe this table!',
  13361. 'fields' => array(
  13362. 'studydesignprop_id' => array(
  13363. 'description' => 'TODO: please describe this field!',
  13364. 'type' => 'serial',
  13365. 'not null' => TRUE,
  13366. ),
  13367. 'studydesign_id' => array(
  13368. 'description' => 'TODO: please describe this field!',
  13369. 'type' => 'int',
  13370. 'not null' => TRUE,
  13371. ),
  13372. 'type_id' => array(
  13373. 'description' => 'TODO: please describe this field!',
  13374. 'type' => 'int',
  13375. 'not null' => TRUE,
  13376. ),
  13377. 'value' => array(
  13378. 'description' => 'TODO: please describe this field!',
  13379. 'type' => 'text',
  13380. 'not null' => FALSE,
  13381. ),
  13382. 'rank' => array(
  13383. 'description' => 'TODO: please describe this field!',
  13384. 'type' => 'int',
  13385. 'not null' => TRUE,
  13386. 'default' => 0,
  13387. ),
  13388. ),
  13389. 'primary key' => array(
  13390. 0 => 'studydesignprop_id',
  13391. ),
  13392. 'unique keys' => array(
  13393. 'studydesignprop_c1' => array(
  13394. 0 => 'studydesign_id',
  13395. 1 => 'type_id',
  13396. 2 => 'rank',
  13397. ),
  13398. ),
  13399. 'indexes' => array(
  13400. 'studydesignprop_idx1' => array(
  13401. 0 => 'studydesign_id',
  13402. ),
  13403. 'studydesignprop_idx2' => array(
  13404. 0 => 'type_id',
  13405. ),
  13406. ),
  13407. 'foreign keys' => array(
  13408. 'cvterm' => array(
  13409. 'table' => 'cvterm',
  13410. 'columns' => array(
  13411. 'type_id' => 'cvterm_id',
  13412. ),
  13413. ),
  13414. 'studydesign' => array(
  13415. 'table' => 'studydesign',
  13416. 'columns' => array(
  13417. 'studydesign_id' => 'studydesign_id',
  13418. ),
  13419. ),
  13420. ),
  13421. 'table' => 'studydesignprop',
  13422. 'referring_tables' => NULL,
  13423. );
  13424. return $description;
  13425. }
  13426. /**
  13427. * Implements hook_chado_schema_v1_2_studyfactor()
  13428. * Purpose: To describe the structure of 'studyfactor' to tripal
  13429. * @see tripal_core_chado_insert()
  13430. * @see tripal_core_chado_update()
  13431. * @see tripal_core_chado_select()
  13432. *
  13433. * @return
  13434. * An array describing the 'studyfactor' table
  13435. *
  13436. * @ingroup tripal_chado_v1.2_schema_api
  13437. *
  13438. */
  13439. function tripal_core_chado_schema_v1_2_studyfactor() {
  13440. $description = array(
  13441. 'description' => 'TODO: please describe this table!',
  13442. 'fields' => array(
  13443. 'studyfactor_id' => array(
  13444. 'description' => 'TODO: please describe this field!',
  13445. 'type' => 'serial',
  13446. 'not null' => TRUE,
  13447. ),
  13448. 'studydesign_id' => array(
  13449. 'description' => 'TODO: please describe this field!',
  13450. 'type' => 'int',
  13451. 'not null' => TRUE,
  13452. ),
  13453. 'type_id' => array(
  13454. 'description' => 'TODO: please describe this field!',
  13455. 'type' => 'int',
  13456. 'not null' => FALSE,
  13457. ),
  13458. 'name' => array(
  13459. 'description' => 'TODO: please describe this field!',
  13460. 'type' => 'text',
  13461. 'not null' => TRUE,
  13462. ),
  13463. 'description' => array(
  13464. 'description' => 'TODO: please describe this field!',
  13465. 'type' => 'text',
  13466. 'not null' => FALSE,
  13467. ),
  13468. ),
  13469. 'primary key' => array(
  13470. 0 => 'studyfactor_id',
  13471. ),
  13472. 'indexes' => array(
  13473. 'studyfactor_idx1' => array(
  13474. 0 => 'studydesign_id',
  13475. ),
  13476. 'studyfactor_idx2' => array(
  13477. 0 => 'type_id',
  13478. ),
  13479. ),
  13480. 'foreign keys' => array(
  13481. 'cvterm' => array(
  13482. 'table' => 'cvterm',
  13483. 'columns' => array(
  13484. 'type_id' => 'cvterm_id',
  13485. ),
  13486. ),
  13487. 'studydesign' => array(
  13488. 'table' => 'studydesign',
  13489. 'columns' => array(
  13490. 'studydesign_id' => 'studydesign_id',
  13491. ),
  13492. ),
  13493. ),
  13494. 'table' => 'studyfactor',
  13495. 'referring_tables' => array(
  13496. 0 => 'studyfactorvalue',
  13497. ),
  13498. );
  13499. return $description;
  13500. }
  13501. /**
  13502. * Implements hook_chado_schema_v1_2_studyfactorvalue()
  13503. * Purpose: To describe the structure of 'studyfactorvalue' to tripal
  13504. * @see tripal_core_chado_insert()
  13505. * @see tripal_core_chado_update()
  13506. * @see tripal_core_chado_select()
  13507. *
  13508. * @return
  13509. * An array describing the 'studyfactorvalue' table
  13510. *
  13511. * @ingroup tripal_chado_v1.2_schema_api
  13512. *
  13513. */
  13514. function tripal_core_chado_schema_v1_2_studyfactorvalue() {
  13515. $description = array(
  13516. 'description' => 'TODO: please describe this table!',
  13517. 'fields' => array(
  13518. 'studyfactorvalue_id' => array(
  13519. 'description' => 'TODO: please describe this field!',
  13520. 'type' => 'serial',
  13521. 'not null' => TRUE,
  13522. ),
  13523. 'studyfactor_id' => array(
  13524. 'description' => 'TODO: please describe this field!',
  13525. 'type' => 'int',
  13526. 'not null' => TRUE,
  13527. ),
  13528. 'assay_id' => array(
  13529. 'description' => 'TODO: please describe this field!',
  13530. 'type' => 'int',
  13531. 'not null' => TRUE,
  13532. ),
  13533. 'factorvalue' => array(
  13534. 'description' => 'TODO: please describe this field!',
  13535. 'type' => 'text',
  13536. 'not null' => FALSE,
  13537. ),
  13538. 'name' => array(
  13539. 'description' => 'TODO: please describe this field!',
  13540. 'type' => 'text',
  13541. 'not null' => FALSE,
  13542. ),
  13543. 'rank' => array(
  13544. 'description' => 'TODO: please describe this field!',
  13545. 'type' => 'int',
  13546. 'not null' => TRUE,
  13547. 'default' => 0,
  13548. ),
  13549. ),
  13550. 'primary key' => array(
  13551. 0 => 'studyfactorvalue_id',
  13552. ),
  13553. 'indexes' => array(
  13554. 'studyfactorvalue_idx1' => array(
  13555. 0 => 'studyfactor_id',
  13556. ),
  13557. 'studyfactorvalue_idx2' => array(
  13558. 0 => 'assay_id',
  13559. ),
  13560. ),
  13561. 'foreign keys' => array(
  13562. 'assay' => array(
  13563. 'table' => 'assay',
  13564. 'columns' => array(
  13565. 'assay_id' => 'assay_id',
  13566. ),
  13567. ),
  13568. 'studyfactor' => array(
  13569. 'table' => 'studyfactor',
  13570. 'columns' => array(
  13571. 'studyfactor_id' => 'studyfactor_id',
  13572. ),
  13573. ),
  13574. ),
  13575. 'table' => 'studyfactorvalue',
  13576. 'referring_tables' => NULL,
  13577. );
  13578. return $description;
  13579. }
  13580. /**
  13581. * Implements hook_chado_schema_v1_2_studyprop()
  13582. * Purpose: To describe the structure of 'studyprop' to tripal
  13583. * @see tripal_core_chado_insert()
  13584. * @see tripal_core_chado_update()
  13585. * @see tripal_core_chado_select()
  13586. *
  13587. * @return
  13588. * An array describing the 'studyprop' table
  13589. *
  13590. * @ingroup tripal_chado_v1.2_schema_api
  13591. *
  13592. */
  13593. function tripal_core_chado_schema_v1_2_studyprop() {
  13594. $description = array(
  13595. 'description' => 'TODO: please describe this table!',
  13596. 'fields' => array(
  13597. 'studyprop_id' => array(
  13598. 'description' => 'TODO: please describe this field!',
  13599. 'type' => 'serial',
  13600. 'not null' => TRUE,
  13601. ),
  13602. 'study_id' => array(
  13603. 'description' => 'TODO: please describe this field!',
  13604. 'type' => 'int',
  13605. 'not null' => TRUE,
  13606. ),
  13607. 'type_id' => array(
  13608. 'description' => 'TODO: please describe this field!',
  13609. 'type' => 'int',
  13610. 'not null' => TRUE,
  13611. ),
  13612. 'value' => array(
  13613. 'description' => 'TODO: please describe this field!',
  13614. 'type' => 'text',
  13615. 'not null' => FALSE,
  13616. ),
  13617. 'rank' => array(
  13618. 'description' => 'TODO: please describe this field!',
  13619. 'type' => 'int',
  13620. 'not null' => TRUE,
  13621. 'default' => 0,
  13622. ),
  13623. ),
  13624. 'primary key' => array(
  13625. 0 => 'studyprop_id',
  13626. ),
  13627. 'unique keys' => array(
  13628. 'study_id' => array(
  13629. 0 => 'study_id',
  13630. 1 => 'type_id',
  13631. 2 => 'rank',
  13632. ),
  13633. ),
  13634. 'indexes' => array(
  13635. 'studyprop_idx1' => array(
  13636. 0 => 'study_id',
  13637. ),
  13638. 'studyprop_idx2' => array(
  13639. 0 => 'type_id',
  13640. ),
  13641. ),
  13642. 'foreign keys' => array(
  13643. 'cvterm' => array(
  13644. 'table' => 'cvterm',
  13645. 'columns' => array(
  13646. 'type_id' => 'cvterm_id',
  13647. ),
  13648. ),
  13649. 'study' => array(
  13650. 'table' => 'study',
  13651. 'columns' => array(
  13652. 'study_id' => 'study_id',
  13653. ),
  13654. ),
  13655. ),
  13656. 'table' => 'studyprop',
  13657. 'referring_tables' => array(
  13658. 0 => 'studyprop_feature',
  13659. ),
  13660. );
  13661. return $description;
  13662. }
  13663. /**
  13664. * Implements hook_chado_schema_v1_2_studyprop_feature()
  13665. * Purpose: To describe the structure of 'studyprop_feature' to tripal
  13666. * @see tripal_core_chado_insert()
  13667. * @see tripal_core_chado_update()
  13668. * @see tripal_core_chado_select()
  13669. *
  13670. * @return
  13671. * An array describing the 'studyprop_feature' table
  13672. *
  13673. * @ingroup tripal_chado_v1.2_schema_api
  13674. *
  13675. */
  13676. function tripal_core_chado_schema_v1_2_studyprop_feature() {
  13677. $description = array(
  13678. 'description' => 'TODO: please describe this table!',
  13679. 'fields' => array(
  13680. 'studyprop_feature_id' => array(
  13681. 'description' => 'TODO: please describe this field!',
  13682. 'type' => 'serial',
  13683. 'not null' => TRUE,
  13684. ),
  13685. 'studyprop_id' => array(
  13686. 'description' => 'TODO: please describe this field!',
  13687. 'type' => 'int',
  13688. 'not null' => TRUE,
  13689. ),
  13690. 'feature_id' => array(
  13691. 'description' => 'TODO: please describe this field!',
  13692. 'type' => 'int',
  13693. 'not null' => TRUE,
  13694. ),
  13695. 'type_id' => array(
  13696. 'description' => 'TODO: please describe this field!',
  13697. 'type' => 'int',
  13698. 'not null' => FALSE,
  13699. ),
  13700. ),
  13701. 'primary key' => array(
  13702. 0 => 'studyprop_feature_id',
  13703. ),
  13704. 'unique keys' => array(
  13705. 'studyprop_id' => array(
  13706. 0 => 'studyprop_id',
  13707. 1 => 'feature_id',
  13708. ),
  13709. ),
  13710. 'indexes' => array(
  13711. 'studyprop_feature_idx1' => array(
  13712. 0 => 'studyprop_id',
  13713. ),
  13714. 'studyprop_feature_idx2' => array(
  13715. 0 => 'feature_id',
  13716. ),
  13717. ),
  13718. 'foreign keys' => array(
  13719. 'cvterm' => array(
  13720. 'table' => 'cvterm',
  13721. 'columns' => array(
  13722. 'type_id' => 'cvterm_id',
  13723. ),
  13724. ),
  13725. 'feature' => array(
  13726. 'table' => 'feature',
  13727. 'columns' => array(
  13728. 'feature_id' => 'feature_id',
  13729. ),
  13730. ),
  13731. 'studyprop' => array(
  13732. 'table' => 'studyprop',
  13733. 'columns' => array(
  13734. 'studyprop_id' => 'studyprop_id',
  13735. ),
  13736. ),
  13737. ),
  13738. 'table' => 'studyprop_feature',
  13739. 'referring_tables' => NULL,
  13740. );
  13741. return $description;
  13742. }
  13743. /**
  13744. * Implements hook_chado_schema_v1_2_synonym()
  13745. * Purpose: To describe the structure of 'synonym' to tripal
  13746. * @see tripal_core_chado_insert()
  13747. * @see tripal_core_chado_update()
  13748. * @see tripal_core_chado_select()
  13749. *
  13750. * @return
  13751. * An array describing the 'synonym' table
  13752. *
  13753. * @ingroup tripal_chado_v1.2_schema_api
  13754. *
  13755. */
  13756. function tripal_core_chado_schema_v1_2_synonym() {
  13757. $description = array(
  13758. 'description' => 'TODO: please describe this table!',
  13759. 'fields' => array(
  13760. 'synonym_id' => array(
  13761. 'description' => 'TODO: please describe this field!',
  13762. 'type' => 'serial',
  13763. 'not null' => TRUE,
  13764. ),
  13765. 'name' => array(
  13766. 'description' => 'TODO: please describe this field!',
  13767. 'type' => 'varchar',
  13768. 'length' => '255',
  13769. 'not null' => TRUE,
  13770. ),
  13771. 'type_id' => array(
  13772. 'description' => 'TODO: please describe this field!',
  13773. 'type' => 'int',
  13774. 'not null' => TRUE,
  13775. ),
  13776. 'synonym_sgml' => array(
  13777. 'description' => 'TODO: please describe this field!',
  13778. 'type' => 'varchar',
  13779. 'length' => '255',
  13780. 'not null' => TRUE,
  13781. ),
  13782. ),
  13783. 'primary key' => array(
  13784. 0 => 'synonym_id',
  13785. ),
  13786. 'unique keys' => array(
  13787. 'synonym_c1' => array(
  13788. 0 => 'name',
  13789. 1 => 'type_id',
  13790. ),
  13791. ),
  13792. 'indexes' => array(
  13793. 'synonym_idx1' => array(
  13794. 0 => 'type_id',
  13795. ),
  13796. ),
  13797. 'foreign keys' => array(
  13798. 'cvterm' => array(
  13799. 'table' => 'cvterm',
  13800. 'columns' => array(
  13801. 'type_id' => 'cvterm_id',
  13802. ),
  13803. ),
  13804. ),
  13805. 'table' => 'synonym',
  13806. 'referring_tables' => array(
  13807. 0 => 'cell_line_synonym',
  13808. 1 => 'feature_synonym',
  13809. 2 => 'library_synonym',
  13810. ),
  13811. );
  13812. return $description;
  13813. }
  13814. /**
  13815. * Implements hook_chado_schema_v1_2_tableinfo()
  13816. * Purpose: To describe the structure of 'tableinfo' to tripal
  13817. * @see tripal_core_chado_insert()
  13818. * @see tripal_core_chado_update()
  13819. * @see tripal_core_chado_select()
  13820. *
  13821. * @return
  13822. * An array describing the 'tableinfo' table
  13823. *
  13824. * @ingroup tripal_chado_v1.2_schema_api
  13825. *
  13826. */
  13827. function tripal_core_chado_schema_v1_2_tableinfo() {
  13828. $description = array(
  13829. 'description' => 'TODO: please describe this table!',
  13830. 'fields' => array(
  13831. 'tableinfo_id' => array(
  13832. 'description' => 'TODO: please describe this field!',
  13833. 'type' => 'serial',
  13834. 'not null' => TRUE,
  13835. ),
  13836. 'name' => array(
  13837. 'description' => 'TODO: please describe this field!',
  13838. 'type' => 'varchar',
  13839. 'length' => '30',
  13840. 'not null' => TRUE,
  13841. ),
  13842. 'primary_key_column' => array(
  13843. 'description' => 'TODO: please describe this field!',
  13844. 'type' => 'varchar',
  13845. 'length' => '30',
  13846. 'not null' => FALSE,
  13847. ),
  13848. 'is_view' => array(
  13849. 'description' => 'TODO: please describe this field!',
  13850. 'type' => 'int',
  13851. 'not null' => TRUE,
  13852. 'default' => 0,
  13853. ),
  13854. 'view_on_table_id' => array(
  13855. 'description' => 'TODO: please describe this field!',
  13856. 'type' => 'int',
  13857. 'not null' => FALSE,
  13858. ),
  13859. 'superclass_table_id' => array(
  13860. 'description' => 'TODO: please describe this field!',
  13861. 'type' => 'int',
  13862. 'not null' => FALSE,
  13863. ),
  13864. 'is_updateable' => array(
  13865. 'description' => 'TODO: please describe this field!',
  13866. 'type' => 'int',
  13867. 'not null' => TRUE,
  13868. 'default' => 1,
  13869. ),
  13870. 'modification_date' => array(
  13871. 'description' => 'TODO: please describe this field!',
  13872. 'type' => 'date',
  13873. 'not null' => TRUE,
  13874. 'default' => 'ow(',
  13875. ),
  13876. ),
  13877. 'primary key' => array(
  13878. 0 => 'tableinfo_id',
  13879. ),
  13880. 'unique keys' => array(
  13881. 'tableinfo_c1' => array(
  13882. 0 => 'name',
  13883. ),
  13884. ),
  13885. 'foreign keys' => array(
  13886. ),
  13887. 'table' => 'tableinfo',
  13888. 'referring_tables' => array(
  13889. 0 => 'control',
  13890. 1 => 'magedocumentation',
  13891. ),
  13892. );
  13893. return $description;
  13894. }
  13895. /**
  13896. * Implements hook_chado_schema_v1_2_treatment()
  13897. * Purpose: To describe the structure of 'treatment' to tripal
  13898. * @see tripal_core_chado_insert()
  13899. * @see tripal_core_chado_update()
  13900. * @see tripal_core_chado_select()
  13901. *
  13902. * @return
  13903. * An array describing the 'treatment' table
  13904. *
  13905. * @ingroup tripal_chado_v1.2_schema_api
  13906. *
  13907. */
  13908. function tripal_core_chado_schema_v1_2_treatment() {
  13909. $description = array(
  13910. 'description' => 'TODO: please describe this table!',
  13911. 'fields' => array(
  13912. 'treatment_id' => array(
  13913. 'description' => 'TODO: please describe this field!',
  13914. 'type' => 'serial',
  13915. 'not null' => TRUE,
  13916. ),
  13917. 'rank' => array(
  13918. 'description' => 'TODO: please describe this field!',
  13919. 'type' => 'int',
  13920. 'not null' => TRUE,
  13921. 'default' => 0,
  13922. ),
  13923. 'biomaterial_id' => array(
  13924. 'description' => 'TODO: please describe this field!',
  13925. 'type' => 'int',
  13926. 'not null' => TRUE,
  13927. ),
  13928. 'type_id' => array(
  13929. 'description' => 'TODO: please describe this field!',
  13930. 'type' => 'int',
  13931. 'not null' => TRUE,
  13932. ),
  13933. 'protocol_id' => array(
  13934. 'description' => 'TODO: please describe this field!',
  13935. 'type' => 'int',
  13936. 'not null' => FALSE,
  13937. ),
  13938. 'name' => array(
  13939. 'description' => 'TODO: please describe this field!',
  13940. 'type' => 'text',
  13941. 'not null' => FALSE,
  13942. ),
  13943. ),
  13944. 'primary key' => array(
  13945. 0 => 'treatment_id',
  13946. ),
  13947. 'indexes' => array(
  13948. 'treatment_idx1' => array(
  13949. 0 => 'biomaterial_id',
  13950. ),
  13951. 'treatment_idx2' => array(
  13952. 0 => 'type_id',
  13953. ),
  13954. 'treatment_idx3' => array(
  13955. 0 => 'protocol_id',
  13956. ),
  13957. ),
  13958. 'foreign keys' => array(
  13959. 'cvterm' => array(
  13960. 'table' => 'cvterm',
  13961. 'columns' => array(
  13962. 'type_id' => 'cvterm_id',
  13963. ),
  13964. ),
  13965. 'protocol' => array(
  13966. 'table' => 'protocol',
  13967. 'columns' => array(
  13968. 'protocol_id' => 'protocol_id',
  13969. ),
  13970. ),
  13971. 'biomaterial' => array(
  13972. 'table' => 'biomaterial',
  13973. 'columns' => array(
  13974. 'biomaterial_id' => 'biomaterial_id',
  13975. ),
  13976. ),
  13977. ),
  13978. 'table' => 'treatment',
  13979. 'referring_tables' => array(
  13980. 0 => 'biomaterial_treatment',
  13981. ),
  13982. );
  13983. return $description;
  13984. }
  13985. /**
  13986. * Lists the table names in the v1.2 chado schema
  13987. *
  13988. * @return
  13989. * An array containing all of the table names
  13990. *
  13991. * @ingroup tripal_chado_v1.2_schema_api
  13992. *
  13993. */
  13994. function tripal_core_chado_get_v1_2_tables() {
  13995. $tables = array(
  13996. 'acquisition',
  13997. 'acquisition_relationship',
  13998. 'acquisitionprop',
  13999. 'analysis',
  14000. 'analysisfeature',
  14001. 'analysisfeatureprop',
  14002. 'analysisprop',
  14003. 'arraydesign',
  14004. 'arraydesignprop',
  14005. 'assay',
  14006. 'assay_biomaterial',
  14007. 'assay_project',
  14008. 'assayprop',
  14009. 'biomaterial',
  14010. 'biomaterial_dbxref',
  14011. 'biomaterial_relationship',
  14012. 'biomaterial_treatment',
  14013. 'biomaterialprop',
  14014. 'cell_line',
  14015. 'cell_line_cvterm',
  14016. 'cell_line_cvtermprop',
  14017. 'cell_line_dbxref',
  14018. 'cell_line_feature',
  14019. 'cell_line_library',
  14020. 'cell_line_pub',
  14021. 'cell_line_relationship',
  14022. 'cell_line_synonym',
  14023. 'cell_lineprop',
  14024. 'cell_lineprop_pub',
  14025. 'chadoprop',
  14026. 'channel',
  14027. 'contact',
  14028. 'contact_relationship',
  14029. 'control',
  14030. 'cv',
  14031. 'cvprop',
  14032. 'cvterm',
  14033. 'cvterm_dbxref',
  14034. 'cvterm_relationship',
  14035. 'cvtermpath',
  14036. 'cvtermprop',
  14037. 'cvtermsynonym',
  14038. 'db',
  14039. 'dbxref',
  14040. 'dbxrefprop',
  14041. 'eimage',
  14042. 'element',
  14043. 'element_relationship',
  14044. 'elementresult',
  14045. 'elementresult_relationship',
  14046. 'environment',
  14047. 'environment_cvterm',
  14048. 'expression',
  14049. 'expression_cvterm',
  14050. 'expression_cvtermprop',
  14051. 'expression_image',
  14052. 'expression_pub',
  14053. 'expressionprop',
  14054. 'feature',
  14055. 'feature_cvterm',
  14056. 'feature_cvterm_dbxref',
  14057. 'feature_cvterm_pub',
  14058. 'feature_cvtermprop',
  14059. 'feature_dbxref',
  14060. 'feature_expression',
  14061. 'feature_expressionprop',
  14062. 'feature_genotype',
  14063. 'feature_phenotype',
  14064. 'feature_pub',
  14065. 'feature_pubprop',
  14066. 'feature_relationship',
  14067. 'feature_relationship_pub',
  14068. 'feature_relationshipprop',
  14069. 'feature_relationshipprop_pub',
  14070. 'feature_synonym',
  14071. 'featureloc',
  14072. 'featureloc_pub',
  14073. 'featuremap',
  14074. 'featuremap_pub',
  14075. 'featurepos',
  14076. 'featureprop',
  14077. 'featureprop_pub',
  14078. 'featurerange',
  14079. 'genotype',
  14080. 'genotypeprop',
  14081. 'library',
  14082. 'library_cvterm',
  14083. 'library_dbxref',
  14084. 'library_feature',
  14085. 'library_pub',
  14086. 'library_synonym',
  14087. 'libraryprop',
  14088. 'libraryprop_pub',
  14089. 'magedocumentation',
  14090. 'mageml',
  14091. 'nd_experiment',
  14092. 'nd_experiment_contact',
  14093. 'nd_experiment_dbxref',
  14094. 'nd_experiment_genotype',
  14095. 'nd_experiment_phenotype',
  14096. 'nd_experiment_project',
  14097. 'nd_experiment_protocol',
  14098. 'nd_experiment_pub',
  14099. 'nd_experiment_stock',
  14100. 'nd_experiment_stock_dbxref',
  14101. 'nd_experiment_stockprop',
  14102. 'nd_experimentprop',
  14103. 'nd_geolocation',
  14104. 'nd_geolocationprop',
  14105. 'nd_protocol',
  14106. 'nd_protocol_reagent',
  14107. 'nd_protocolprop',
  14108. 'nd_reagent',
  14109. 'nd_reagent_relationship',
  14110. 'nd_reagentprop',
  14111. 'organism',
  14112. 'organism_dbxref',
  14113. 'organismprop',
  14114. 'phendesc',
  14115. 'phenotype',
  14116. 'phenotype_comparison',
  14117. 'phenotype_comparison_cvterm',
  14118. 'phenotype_cvterm',
  14119. 'phenstatement',
  14120. 'phylonode',
  14121. 'phylonode_dbxref',
  14122. 'phylonode_organism',
  14123. 'phylonode_pub',
  14124. 'phylonode_relationship',
  14125. 'phylonodeprop',
  14126. 'phylotree',
  14127. 'phylotree_pub',
  14128. 'project',
  14129. 'project_contact',
  14130. 'project_pub',
  14131. 'project_relationship',
  14132. 'projectprop',
  14133. 'protocol',
  14134. 'protocolparam',
  14135. 'pub',
  14136. 'pub_dbxref',
  14137. 'pub_relationship',
  14138. 'pubauthor',
  14139. 'pubprop',
  14140. 'quantification',
  14141. 'quantification_relationship',
  14142. 'quantificationprop',
  14143. 'stock',
  14144. 'stock_cvterm',
  14145. 'stock_cvtermprop',
  14146. 'stock_dbxref',
  14147. 'stock_dbxrefprop',
  14148. 'stock_genotype',
  14149. 'stock_pub',
  14150. 'stock_relationship',
  14151. 'stock_relationship_cvterm',
  14152. 'stock_relationship_pub',
  14153. 'stockcollection',
  14154. 'stockcollection_stock',
  14155. 'stockcollectionprop',
  14156. 'stockprop',
  14157. 'stockprop_pub',
  14158. 'study',
  14159. 'study_assay',
  14160. 'studydesign',
  14161. 'studydesignprop',
  14162. 'studyfactor',
  14163. 'studyfactorvalue',
  14164. 'studyprop',
  14165. 'studyprop_feature',
  14166. 'synonym',
  14167. 'tableinfo',
  14168. 'treatment'
  14169. );
  14170. return $tables;
  14171. }