tripal_core.schema_v1.2.api.inc 346 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235
  1. <?php
  2. /**
  3. * Implements hook_chado_schema_v1_2_acquisition()
  4. * Purpose: To describe the structure of 'acquisition' to tripal
  5. * @see tripal_core_chado_insert()
  6. * @see tripal_core_chado_update()
  7. * @see tripal_core_chado_select()
  8. *
  9. * @return
  10. * An array describing the 'acquisition' table
  11. *
  12. * @ingroup tripal_chado_v1.2_schema_api
  13. *
  14. */
  15. function tripal_core_chado_schema_v1_2_acquisition() {
  16. $description = array (
  17. 'description' => 'TODO: please describe this table!',
  18. 'fields' => array (
  19. 'acquisition_id' => array (
  20. 'description' => 'TODO: please describe this field!',
  21. 'type' => 'serial',
  22. 'not null' => true,
  23. ),
  24. 'assay_id' => array (
  25. 'description' => 'TODO: please describe this field!',
  26. 'type' => 'int',
  27. 'not null' => true,
  28. ),
  29. 'protocol_id' => array (
  30. 'description' => 'TODO: please describe this field!',
  31. 'type' => 'int',
  32. 'not null' => false,
  33. ),
  34. 'channel_id' => array (
  35. 'description' => 'TODO: please describe this field!',
  36. 'type' => 'int',
  37. 'not null' => false,
  38. ),
  39. 'acquisitiondate' => array (
  40. 'description' => 'TODO: please describe this field!',
  41. 'type' => 'datetime',
  42. 'not null' => false,
  43. 'default' => 'ow(',
  44. ),
  45. 'name' => array (
  46. 'description' => 'TODO: please describe this field!',
  47. 'type' => 'text',
  48. 'not null' => false,
  49. ),
  50. 'uri' => array (
  51. 'description' => 'TODO: please describe this field!',
  52. 'type' => 'text',
  53. 'not null' => false,
  54. ),
  55. ),
  56. 'primary key' => array (
  57. 0 => 'acquisition_id',
  58. ),
  59. 'unique keys' => array (
  60. 'acquisition_c1' => array (
  61. 0 => 'name',
  62. ),
  63. ),
  64. 'indexes' => array (
  65. 'acquisition_idx1' => array (
  66. 0 => 'assay_id',
  67. ),
  68. 'acquisition_idx2' => array (
  69. 0 => 'protocol_id',
  70. ),
  71. 'acquisition_idx3' => array (
  72. 0 => 'channel_id',
  73. ),
  74. ),
  75. 'foreign keys' => array (
  76. 'protocol' => array (
  77. 'table' => 'protocol',
  78. 'columns' => array (
  79. 'protocol_id' => 'protocol_id',
  80. ),
  81. ),
  82. 'assay' => array (
  83. 'table' => 'assay',
  84. 'columns' => array (
  85. 'assay_id' => 'assay_id',
  86. ),
  87. ),
  88. 'channel' => array (
  89. 'table' => 'channel',
  90. 'columns' => array (
  91. 'channel_id' => 'channel_id',
  92. ),
  93. ),
  94. ),
  95. );
  96. return $description;
  97. }
  98. /**
  99. * Implements hook_chado_schema_v1_2_acquisition_relationship()
  100. * Purpose: To describe the structure of 'acquisition_relationship' to tripal
  101. * @see tripal_core_chado_insert()
  102. * @see tripal_core_chado_update()
  103. * @see tripal_core_chado_select()
  104. *
  105. * @return
  106. * An array describing the 'acquisition_relationship' table
  107. *
  108. * @ingroup tripal_chado_v1.2_schema_api
  109. *
  110. */
  111. function tripal_core_chado_schema_v1_2_acquisition_relationship() {
  112. $description = array (
  113. 'description' => 'TODO: please describe this table!',
  114. 'fields' => array (
  115. 'acquisition_relationship_id' => array (
  116. 'description' => 'TODO: please describe this field!',
  117. 'type' => 'serial',
  118. 'not null' => true,
  119. ),
  120. 'subject_id' => array (
  121. 'description' => 'TODO: please describe this field!',
  122. 'type' => 'int',
  123. 'not null' => true,
  124. ),
  125. 'type_id' => array (
  126. 'description' => 'TODO: please describe this field!',
  127. 'type' => 'int',
  128. 'not null' => true,
  129. ),
  130. 'object_id' => array (
  131. 'description' => 'TODO: please describe this field!',
  132. 'type' => 'int',
  133. 'not null' => true,
  134. ),
  135. 'value' => array (
  136. 'description' => 'TODO: please describe this field!',
  137. 'type' => 'text',
  138. 'not null' => false,
  139. ),
  140. 'rank' => array (
  141. 'description' => 'TODO: please describe this field!',
  142. 'type' => 'int',
  143. 'not null' => true,
  144. 'default' => 0,
  145. ),
  146. ),
  147. 'primary key' => array (
  148. 0 => 'acquisition_relationship_id',
  149. ),
  150. 'unique keys' => array (
  151. 'acquisition_relationship_c1' => array (
  152. 0 => 'subject_id',
  153. 1 => 'object_id',
  154. 2 => 'type_id',
  155. 3 => 'rank',
  156. ),
  157. ),
  158. 'indexes' => array (
  159. 'acquisition_relationship_idx1' => array (
  160. 0 => 'subject_id',
  161. ),
  162. 'acquisition_relationship_idx2' => array (
  163. 0 => 'type_id',
  164. ),
  165. 'acquisition_relationship_idx3' => array (
  166. 0 => 'object_id',
  167. ),
  168. ),
  169. 'foreign keys' => array (
  170. 'cvterm' => array (
  171. 'table' => 'cvterm',
  172. 'columns' => array (
  173. 'type_id' => 'cvterm_id',
  174. ),
  175. ),
  176. 'acquisition' => array (
  177. 'table' => 'acquisition',
  178. 'columns' => array (
  179. 'subject_id' => 'acquisition_id',
  180. 'object_id' => 'acquisition_id',
  181. ),
  182. ),
  183. ),
  184. );
  185. return $description;
  186. }
  187. /**
  188. * Implements hook_chado_schema_v1_2_acquisitionprop()
  189. * Purpose: To describe the structure of 'acquisitionprop' to tripal
  190. * @see tripal_core_chado_insert()
  191. * @see tripal_core_chado_update()
  192. * @see tripal_core_chado_select()
  193. *
  194. * @return
  195. * An array describing the 'acquisitionprop' table
  196. *
  197. * @ingroup tripal_chado_v1.2_schema_api
  198. *
  199. */
  200. function tripal_core_chado_schema_v1_2_acquisitionprop() {
  201. $description = array (
  202. 'description' => 'TODO: please describe this table!',
  203. 'fields' => array (
  204. 'acquisitionprop_id' => array (
  205. 'description' => 'TODO: please describe this field!',
  206. 'type' => 'serial',
  207. 'not null' => true,
  208. ),
  209. 'acquisition_id' => array (
  210. 'description' => 'TODO: please describe this field!',
  211. 'type' => 'int',
  212. 'not null' => true,
  213. ),
  214. 'type_id' => array (
  215. 'description' => 'TODO: please describe this field!',
  216. 'type' => 'int',
  217. 'not null' => true,
  218. ),
  219. 'value' => array (
  220. 'description' => 'TODO: please describe this field!',
  221. 'type' => 'text',
  222. 'not null' => false,
  223. ),
  224. 'rank' => array (
  225. 'description' => 'TODO: please describe this field!',
  226. 'type' => 'int',
  227. 'not null' => true,
  228. 'default' => 0,
  229. ),
  230. ),
  231. 'primary key' => array (
  232. 0 => 'acquisitionprop_id',
  233. ),
  234. 'unique keys' => array (
  235. 'acquisitionprop_c1' => array (
  236. 0 => 'acquisition_id',
  237. 1 => 'type_id',
  238. 2 => 'rank',
  239. ),
  240. ),
  241. 'indexes' => array (
  242. 'acquisitionprop_idx1' => array (
  243. 0 => 'acquisition_id',
  244. ),
  245. 'acquisitionprop_idx2' => array (
  246. 0 => 'type_id',
  247. ),
  248. ),
  249. 'foreign keys' => array (
  250. 'cvterm' => array (
  251. 'table' => 'cvterm',
  252. 'columns' => array (
  253. 'type_id' => 'cvterm_id',
  254. ),
  255. ),
  256. 'acquisition' => array (
  257. 'table' => 'acquisition',
  258. 'columns' => array (
  259. 'acquisition_id' => 'acquisition_id',
  260. ),
  261. ),
  262. ),
  263. );
  264. return $description;
  265. }
  266. /**
  267. * Implements hook_chado_schema_v1_2_analysis()
  268. * Purpose: To describe the structure of 'analysis' to tripal
  269. * @see tripal_core_chado_insert()
  270. * @see tripal_core_chado_update()
  271. * @see tripal_core_chado_select()
  272. *
  273. * @return
  274. * An array describing the 'analysis' table
  275. *
  276. * @ingroup tripal_chado_v1.2_schema_api
  277. *
  278. */
  279. function tripal_core_chado_schema_v1_2_analysis() {
  280. $description = array (
  281. 'description' => 'TODO: please describe this table!',
  282. 'fields' => array (
  283. 'analysis_id' => array (
  284. 'description' => 'TODO: please describe this field!',
  285. 'type' => 'serial',
  286. 'not null' => true,
  287. ),
  288. 'name' => array (
  289. 'description' => 'TODO: please describe this field!',
  290. 'type' => 'varchar',
  291. 'length' => '255',
  292. 'not null' => false,
  293. ),
  294. 'description' => array (
  295. 'description' => 'TODO: please describe this field!',
  296. 'type' => 'text',
  297. 'not null' => false,
  298. ),
  299. 'program' => array (
  300. 'description' => 'TODO: please describe this field!',
  301. 'type' => 'varchar',
  302. 'length' => '255',
  303. 'not null' => true,
  304. ),
  305. 'programversion' => array (
  306. 'description' => 'TODO: please describe this field!',
  307. 'type' => 'varchar',
  308. 'length' => '255',
  309. 'not null' => true,
  310. ),
  311. 'algorithm' => array (
  312. 'description' => 'TODO: please describe this field!',
  313. 'type' => 'varchar',
  314. 'length' => '255',
  315. 'not null' => false,
  316. ),
  317. 'sourcename' => array (
  318. 'description' => 'TODO: please describe this field!',
  319. 'type' => 'varchar',
  320. 'length' => '255',
  321. 'not null' => false,
  322. ),
  323. 'sourceversion' => array (
  324. 'description' => 'TODO: please describe this field!',
  325. 'type' => 'varchar',
  326. 'length' => '255',
  327. 'not null' => false,
  328. ),
  329. 'sourceuri' => array (
  330. 'description' => 'TODO: please describe this field!',
  331. 'type' => 'text',
  332. 'not null' => false,
  333. ),
  334. 'timeexecuted' => array (
  335. 'description' => 'TODO: please describe this field!',
  336. 'type' => 'datetime',
  337. 'not null' => true,
  338. 'default' => 'ow(',
  339. ),
  340. ),
  341. 'primary key' => array (
  342. 0 => 'analysis_id',
  343. ),
  344. 'unique keys' => array (
  345. 'analysis_c1' => array (
  346. 0 => 'program',
  347. 1 => 'programversion',
  348. 2 => 'sourcename',
  349. ),
  350. ),
  351. 'foreign keys' => array (
  352. ),
  353. );
  354. return $description;
  355. }
  356. /**
  357. * Implements hook_chado_schema_v1_2_analysisfeature()
  358. * Purpose: To describe the structure of 'analysisfeature' to tripal
  359. * @see tripal_core_chado_insert()
  360. * @see tripal_core_chado_update()
  361. * @see tripal_core_chado_select()
  362. *
  363. * @return
  364. * An array describing the 'analysisfeature' table
  365. *
  366. * @ingroup tripal_chado_v1.2_schema_api
  367. *
  368. */
  369. function tripal_core_chado_schema_v1_2_analysisfeature() {
  370. $description = array (
  371. 'description' => 'TODO: please describe this table!',
  372. 'fields' => array (
  373. 'analysisfeature_id' => array (
  374. 'description' => 'TODO: please describe this field!',
  375. 'type' => 'serial',
  376. 'not null' => true,
  377. ),
  378. 'feature_id' => array (
  379. 'description' => 'TODO: please describe this field!',
  380. 'type' => 'int',
  381. 'not null' => true,
  382. ),
  383. 'analysis_id' => array (
  384. 'description' => 'TODO: please describe this field!',
  385. 'type' => 'int',
  386. 'not null' => true,
  387. ),
  388. 'rawscore' => array (
  389. 'description' => 'TODO: please describe this field!',
  390. 'type' => 'float',
  391. 'size' => 'big',
  392. 'not null' => false,
  393. ),
  394. 'normscore' => array (
  395. 'description' => 'TODO: please describe this field!',
  396. 'type' => 'float',
  397. 'size' => 'big',
  398. 'not null' => false,
  399. ),
  400. 'significance' => array (
  401. 'description' => 'TODO: please describe this field!',
  402. 'type' => 'float',
  403. 'size' => 'big',
  404. 'not null' => false,
  405. ),
  406. 'identity' => array (
  407. 'description' => 'TODO: please describe this field!',
  408. 'type' => 'float',
  409. 'size' => 'big',
  410. 'not null' => false,
  411. ),
  412. ),
  413. 'primary key' => array (
  414. 0 => 'analysisfeature_id',
  415. ),
  416. 'unique keys' => array (
  417. 'analysisfeature_c1' => array (
  418. 0 => 'feature_id',
  419. 1 => 'analysis_id',
  420. ),
  421. ),
  422. 'indexes' => array (
  423. 'analysisfeature_idx1' => array (
  424. 0 => 'feature_id',
  425. ),
  426. 'analysisfeature_idx2' => array (
  427. 0 => 'analysis_id',
  428. ),
  429. ),
  430. 'foreign keys' => array (
  431. 'analysis' => array (
  432. 'table' => 'analysis',
  433. 'columns' => array (
  434. 'analysis_id' => 'analysis_id',
  435. ),
  436. ),
  437. 'feature' => array (
  438. 'table' => 'feature',
  439. 'columns' => array (
  440. 'feature_id' => 'feature_id',
  441. ),
  442. ),
  443. ),
  444. );
  445. return $description;
  446. }
  447. /**
  448. * Implements hook_chado_schema_v1_2_analysisfeatureprop()
  449. * Purpose: To describe the structure of 'analysisfeatureprop' to tripal
  450. * @see tripal_core_chado_insert()
  451. * @see tripal_core_chado_update()
  452. * @see tripal_core_chado_select()
  453. *
  454. * @return
  455. * An array describing the 'analysisfeatureprop' table
  456. *
  457. * @ingroup tripal_chado_v1.2_schema_api
  458. *
  459. */
  460. function tripal_core_chado_schema_v1_2_analysisfeatureprop() {
  461. $description = array (
  462. 'description' => 'TODO: please describe this table!',
  463. 'fields' => array (
  464. 'analysisfeatureprop_id' => array (
  465. 'description' => 'TODO: please describe this field!',
  466. 'type' => 'serial',
  467. 'not null' => true,
  468. ),
  469. 'analysisfeature_id' => array (
  470. 'description' => 'TODO: please describe this field!',
  471. 'type' => 'int',
  472. 'not null' => true,
  473. ),
  474. 'type_id' => array (
  475. 'description' => 'TODO: please describe this field!',
  476. 'type' => 'int',
  477. 'not null' => true,
  478. ),
  479. 'value' => array (
  480. 'description' => 'TODO: please describe this field!',
  481. 'type' => 'text',
  482. 'not null' => false,
  483. ),
  484. 'rank' => array (
  485. 'description' => 'TODO: please describe this field!',
  486. 'type' => 'int',
  487. 'not null' => true,
  488. ),
  489. ),
  490. 'primary key' => array (
  491. 0 => 'analysisfeatureprop_id',
  492. ),
  493. 'unique keys' => array (
  494. 'analysisfeature_id_type_id_rank' => array (
  495. 0 => 'analysisfeature_id',
  496. 1 => 'type_id',
  497. 2 => 'rank',
  498. ),
  499. ),
  500. 'foreign keys' => array (
  501. 'cvterm' => array (
  502. 'table' => 'cvterm',
  503. 'columns' => array (
  504. 'type_id' => 'cvterm_id',
  505. ),
  506. ),
  507. 'analysisfeature' => array (
  508. 'table' => 'analysisfeature',
  509. 'columns' => array (
  510. 'analysisfeature_id' => 'analysisfeature_id',
  511. ),
  512. ),
  513. ),
  514. );
  515. return $description;
  516. }
  517. /**
  518. * Implements hook_chado_schema_v1_2_analysisprop()
  519. * Purpose: To describe the structure of 'analysisprop' to tripal
  520. * @see tripal_core_chado_insert()
  521. * @see tripal_core_chado_update()
  522. * @see tripal_core_chado_select()
  523. *
  524. * @return
  525. * An array describing the 'analysisprop' table
  526. *
  527. * @ingroup tripal_chado_v1.2_schema_api
  528. *
  529. */
  530. function tripal_core_chado_schema_v1_2_analysisprop() {
  531. $description = array (
  532. 'description' => 'TODO: please describe this table!',
  533. 'fields' => array (
  534. 'analysisprop_id' => array (
  535. 'description' => 'TODO: please describe this field!',
  536. 'type' => 'serial',
  537. 'not null' => true,
  538. ),
  539. 'analysis_id' => array (
  540. 'description' => 'TODO: please describe this field!',
  541. 'type' => 'int',
  542. 'not null' => true,
  543. ),
  544. 'type_id' => array (
  545. 'description' => 'TODO: please describe this field!',
  546. 'type' => 'int',
  547. 'not null' => true,
  548. ),
  549. 'value' => array (
  550. 'description' => 'TODO: please describe this field!',
  551. 'type' => 'text',
  552. 'not null' => false,
  553. ),
  554. 'rank' => array (
  555. 'description' => 'TODO: please describe this field!',
  556. 'type' => 'int',
  557. 'not null' => true,
  558. 'default' => 0,
  559. ),
  560. ),
  561. 'primary key' => array (
  562. 0 => 'analysisprop_id',
  563. ),
  564. 'unique keys' => array (
  565. 'analysisprop_c1' => array (
  566. 0 => 'analysis_id',
  567. 1 => 'type_id',
  568. 2 => 'rank',
  569. ),
  570. ),
  571. 'indexes' => array (
  572. 'analysisprop_idx1' => array (
  573. 0 => 'analysis_id',
  574. ),
  575. 'analysisprop_idx2' => array (
  576. 0 => 'type_id',
  577. ),
  578. ),
  579. 'foreign keys' => array (
  580. 'cvterm' => array (
  581. 'table' => 'cvterm',
  582. 'columns' => array (
  583. 'type_id' => 'cvterm_id',
  584. ),
  585. ),
  586. 'analysis' => array (
  587. 'table' => 'analysis',
  588. 'columns' => array (
  589. 'analysis_id' => 'analysis_id',
  590. ),
  591. ),
  592. ),
  593. );
  594. return $description;
  595. }
  596. /**
  597. * Implements hook_chado_schema_v1_2_arraydesign()
  598. * Purpose: To describe the structure of 'arraydesign' to tripal
  599. * @see tripal_core_chado_insert()
  600. * @see tripal_core_chado_update()
  601. * @see tripal_core_chado_select()
  602. *
  603. * @return
  604. * An array describing the 'arraydesign' table
  605. *
  606. * @ingroup tripal_chado_v1.2_schema_api
  607. *
  608. */
  609. function tripal_core_chado_schema_v1_2_arraydesign() {
  610. $description = array (
  611. 'description' => 'TODO: please describe this table!',
  612. 'fields' => array (
  613. 'arraydesign_id' => array (
  614. 'description' => 'TODO: please describe this field!',
  615. 'type' => 'serial',
  616. 'not null' => true,
  617. ),
  618. 'manufacturer_id' => array (
  619. 'description' => 'TODO: please describe this field!',
  620. 'type' => 'int',
  621. 'not null' => true,
  622. ),
  623. 'platformtype_id' => array (
  624. 'description' => 'TODO: please describe this field!',
  625. 'type' => 'int',
  626. 'not null' => true,
  627. ),
  628. 'substratetype_id' => array (
  629. 'description' => 'TODO: please describe this field!',
  630. 'type' => 'int',
  631. 'not null' => false,
  632. ),
  633. 'protocol_id' => array (
  634. 'description' => 'TODO: please describe this field!',
  635. 'type' => 'int',
  636. 'not null' => false,
  637. ),
  638. 'dbxref_id' => array (
  639. 'description' => 'TODO: please describe this field!',
  640. 'type' => 'int',
  641. 'not null' => false,
  642. ),
  643. 'name' => array (
  644. 'description' => 'TODO: please describe this field!',
  645. 'type' => 'text',
  646. 'not null' => true,
  647. ),
  648. 'version' => array (
  649. 'description' => 'TODO: please describe this field!',
  650. 'type' => 'text',
  651. 'not null' => false,
  652. ),
  653. 'description' => array (
  654. 'description' => 'TODO: please describe this field!',
  655. 'type' => 'text',
  656. 'not null' => false,
  657. ),
  658. 'array_dimensions' => array (
  659. 'description' => 'TODO: please describe this field!',
  660. 'type' => 'text',
  661. 'not null' => false,
  662. ),
  663. 'element_dimensions' => array (
  664. 'description' => 'TODO: please describe this field!',
  665. 'type' => 'text',
  666. 'not null' => false,
  667. ),
  668. 'num_of_elements' => array (
  669. 'description' => 'TODO: please describe this field!',
  670. 'type' => 'int',
  671. 'not null' => false,
  672. ),
  673. 'num_array_columns' => array (
  674. 'description' => 'TODO: please describe this field!',
  675. 'type' => 'int',
  676. 'not null' => false,
  677. ),
  678. 'num_array_rows' => array (
  679. 'description' => 'TODO: please describe this field!',
  680. 'type' => 'int',
  681. 'not null' => false,
  682. ),
  683. 'num_grid_columns' => array (
  684. 'description' => 'TODO: please describe this field!',
  685. 'type' => 'int',
  686. 'not null' => false,
  687. ),
  688. 'num_grid_rows' => array (
  689. 'description' => 'TODO: please describe this field!',
  690. 'type' => 'int',
  691. 'not null' => false,
  692. ),
  693. 'num_sub_columns' => array (
  694. 'description' => 'TODO: please describe this field!',
  695. 'type' => 'int',
  696. 'not null' => false,
  697. ),
  698. 'num_sub_rows' => array (
  699. 'description' => 'TODO: please describe this field!',
  700. 'type' => 'int',
  701. 'not null' => false,
  702. ),
  703. ),
  704. 'primary key' => array (
  705. 0 => 'arraydesign_id',
  706. ),
  707. 'unique keys' => array (
  708. 'arraydesign_c1' => array (
  709. 0 => 'name',
  710. ),
  711. ),
  712. 'indexes' => array (
  713. 'arraydesign_idx1' => array (
  714. 0 => 'manufacturer_id',
  715. ),
  716. 'arraydesign_idx2' => array (
  717. 0 => 'platformtype_id',
  718. ),
  719. 'arraydesign_idx3' => array (
  720. 0 => 'substratetype_id',
  721. ),
  722. 'arraydesign_idx4' => array (
  723. 0 => 'protocol_id',
  724. ),
  725. 'arraydesign_idx5' => array (
  726. 0 => 'dbxref_id',
  727. ),
  728. ),
  729. 'foreign keys' => array (
  730. 'cvterm' => array (
  731. 'table' => 'cvterm',
  732. 'columns' => array (
  733. 'platformtype_id' => 'cvterm_id',
  734. 'substratetype_id' => 'cvterm_id',
  735. ),
  736. ),
  737. 'dbxref' => array (
  738. 'table' => 'dbxref',
  739. 'columns' => array (
  740. 'dbxref_id' => 'dbxref_id',
  741. ),
  742. ),
  743. 'contact' => array (
  744. 'table' => 'contact',
  745. 'columns' => array (
  746. 'manufacturer_id' => 'contact_id',
  747. ),
  748. ),
  749. 'protocol' => array (
  750. 'table' => 'protocol',
  751. 'columns' => array (
  752. 'protocol_id' => 'protocol_id',
  753. ),
  754. ),
  755. ),
  756. );
  757. return $description;
  758. }
  759. /**
  760. * Implements hook_chado_schema_v1_2_arraydesignprop()
  761. * Purpose: To describe the structure of 'arraydesignprop' to tripal
  762. * @see tripal_core_chado_insert()
  763. * @see tripal_core_chado_update()
  764. * @see tripal_core_chado_select()
  765. *
  766. * @return
  767. * An array describing the 'arraydesignprop' table
  768. *
  769. * @ingroup tripal_chado_v1.2_schema_api
  770. *
  771. */
  772. function tripal_core_chado_schema_v1_2_arraydesignprop() {
  773. $description = array (
  774. 'description' => 'TODO: please describe this table!',
  775. 'fields' => array (
  776. 'arraydesignprop_id' => array (
  777. 'description' => 'TODO: please describe this field!',
  778. 'type' => 'serial',
  779. 'not null' => true,
  780. ),
  781. 'arraydesign_id' => array (
  782. 'description' => 'TODO: please describe this field!',
  783. 'type' => 'int',
  784. 'not null' => true,
  785. ),
  786. 'type_id' => array (
  787. 'description' => 'TODO: please describe this field!',
  788. 'type' => 'int',
  789. 'not null' => true,
  790. ),
  791. 'value' => array (
  792. 'description' => 'TODO: please describe this field!',
  793. 'type' => 'text',
  794. 'not null' => false,
  795. ),
  796. 'rank' => array (
  797. 'description' => 'TODO: please describe this field!',
  798. 'type' => 'int',
  799. 'not null' => true,
  800. 'default' => 0,
  801. ),
  802. ),
  803. 'primary key' => array (
  804. 0 => 'arraydesignprop_id',
  805. ),
  806. 'unique keys' => array (
  807. 'arraydesignprop_c1' => array (
  808. 0 => 'arraydesign_id',
  809. 1 => 'type_id',
  810. 2 => 'rank',
  811. ),
  812. ),
  813. 'indexes' => array (
  814. 'arraydesignprop_idx1' => array (
  815. 0 => 'arraydesign_id',
  816. ),
  817. 'arraydesignprop_idx2' => array (
  818. 0 => 'type_id',
  819. ),
  820. ),
  821. 'foreign keys' => array (
  822. 'cvterm' => array (
  823. 'table' => 'cvterm',
  824. 'columns' => array (
  825. 'type_id' => 'cvterm_id',
  826. ),
  827. ),
  828. 'arraydesign' => array (
  829. 'table' => 'arraydesign',
  830. 'columns' => array (
  831. 'arraydesign_id' => 'arraydesign_id',
  832. ),
  833. ),
  834. ),
  835. );
  836. return $description;
  837. }
  838. /**
  839. * Implements hook_chado_schema_v1_2_assay()
  840. * Purpose: To describe the structure of 'assay' to tripal
  841. * @see tripal_core_chado_insert()
  842. * @see tripal_core_chado_update()
  843. * @see tripal_core_chado_select()
  844. *
  845. * @return
  846. * An array describing the 'assay' table
  847. *
  848. * @ingroup tripal_chado_v1.2_schema_api
  849. *
  850. */
  851. function tripal_core_chado_schema_v1_2_assay() {
  852. $description = array (
  853. 'description' => 'TODO: please describe this table!',
  854. 'fields' => array (
  855. 'assay_id' => array (
  856. 'description' => 'TODO: please describe this field!',
  857. 'type' => 'serial',
  858. 'not null' => true,
  859. ),
  860. 'arraydesign_id' => array (
  861. 'description' => 'TODO: please describe this field!',
  862. 'type' => 'int',
  863. 'not null' => true,
  864. ),
  865. 'protocol_id' => array (
  866. 'description' => 'TODO: please describe this field!',
  867. 'type' => 'int',
  868. 'not null' => false,
  869. ),
  870. 'assaydate' => array (
  871. 'description' => 'TODO: please describe this field!',
  872. 'type' => 'datetime',
  873. 'not null' => false,
  874. 'default' => 'ow(',
  875. ),
  876. 'arrayidentifier' => array (
  877. 'description' => 'TODO: please describe this field!',
  878. 'type' => 'text',
  879. 'not null' => false,
  880. ),
  881. 'arraybatchidentifier' => array (
  882. 'description' => 'TODO: please describe this field!',
  883. 'type' => 'text',
  884. 'not null' => false,
  885. ),
  886. 'operator_id' => array (
  887. 'description' => 'TODO: please describe this field!',
  888. 'type' => 'int',
  889. 'not null' => true,
  890. ),
  891. 'dbxref_id' => array (
  892. 'description' => 'TODO: please describe this field!',
  893. 'type' => 'int',
  894. 'not null' => false,
  895. ),
  896. 'name' => array (
  897. 'description' => 'TODO: please describe this field!',
  898. 'type' => 'text',
  899. 'not null' => false,
  900. ),
  901. 'description' => array (
  902. 'description' => 'TODO: please describe this field!',
  903. 'type' => 'text',
  904. 'not null' => false,
  905. ),
  906. ),
  907. 'primary key' => array (
  908. 0 => 'assay_id',
  909. ),
  910. 'unique keys' => array (
  911. 'assay_c1' => array (
  912. 0 => 'name',
  913. ),
  914. ),
  915. 'indexes' => array (
  916. 'assay_idx1' => array (
  917. 0 => 'arraydesign_id',
  918. ),
  919. 'assay_idx2' => array (
  920. 0 => 'protocol_id',
  921. ),
  922. 'assay_idx3' => array (
  923. 0 => 'operator_id',
  924. ),
  925. 'assay_idx4' => array (
  926. 0 => 'dbxref_id',
  927. ),
  928. ),
  929. 'foreign keys' => array (
  930. 'dbxref' => array (
  931. 'table' => 'dbxref',
  932. 'columns' => array (
  933. 'dbxref_id' => 'dbxref_id',
  934. ),
  935. ),
  936. 'contact' => array (
  937. 'table' => 'contact',
  938. 'columns' => array (
  939. 'operator_id' => 'contact_id',
  940. ),
  941. ),
  942. 'arraydesign' => array (
  943. 'table' => 'arraydesign',
  944. 'columns' => array (
  945. 'arraydesign_id' => 'arraydesign_id',
  946. ),
  947. ),
  948. 'protocol' => array (
  949. 'table' => 'protocol',
  950. 'columns' => array (
  951. 'protocol_id' => 'protocol_id',
  952. ),
  953. ),
  954. ),
  955. );
  956. return $description;
  957. }
  958. /**
  959. * Implements hook_chado_schema_v1_2_assay_biomaterial()
  960. * Purpose: To describe the structure of 'assay_biomaterial' to tripal
  961. * @see tripal_core_chado_insert()
  962. * @see tripal_core_chado_update()
  963. * @see tripal_core_chado_select()
  964. *
  965. * @return
  966. * An array describing the 'assay_biomaterial' table
  967. *
  968. * @ingroup tripal_chado_v1.2_schema_api
  969. *
  970. */
  971. function tripal_core_chado_schema_v1_2_assay_biomaterial() {
  972. $description = array (
  973. 'description' => 'TODO: please describe this table!',
  974. 'fields' => array (
  975. 'assay_biomaterial_id' => array (
  976. 'description' => 'TODO: please describe this field!',
  977. 'type' => 'serial',
  978. 'not null' => true,
  979. ),
  980. 'assay_id' => array (
  981. 'description' => 'TODO: please describe this field!',
  982. 'type' => 'int',
  983. 'not null' => true,
  984. ),
  985. 'biomaterial_id' => array (
  986. 'description' => 'TODO: please describe this field!',
  987. 'type' => 'int',
  988. 'not null' => true,
  989. ),
  990. 'channel_id' => array (
  991. 'description' => 'TODO: please describe this field!',
  992. 'type' => 'int',
  993. 'not null' => false,
  994. ),
  995. 'rank' => array (
  996. 'description' => 'TODO: please describe this field!',
  997. 'type' => 'int',
  998. 'not null' => true,
  999. 'default' => 0,
  1000. ),
  1001. ),
  1002. 'primary key' => array (
  1003. 0 => 'assay_biomaterial_id',
  1004. ),
  1005. 'unique keys' => array (
  1006. 'assay_biomaterial_c1' => array (
  1007. 0 => 'assay_id',
  1008. 1 => 'biomaterial_id',
  1009. 2 => 'channel_id',
  1010. 3 => 'rank',
  1011. ),
  1012. ),
  1013. 'indexes' => array (
  1014. 'assay_biomaterial_idx1' => array (
  1015. 0 => 'assay_id',
  1016. ),
  1017. 'assay_biomaterial_idx2' => array (
  1018. 0 => 'biomaterial_id',
  1019. ),
  1020. 'assay_biomaterial_idx3' => array (
  1021. 0 => 'channel_id',
  1022. ),
  1023. ),
  1024. 'foreign keys' => array (
  1025. 'assay' => array (
  1026. 'table' => 'assay',
  1027. 'columns' => array (
  1028. 'assay_id' => 'assay_id',
  1029. ),
  1030. ),
  1031. 'biomaterial' => array (
  1032. 'table' => 'biomaterial',
  1033. 'columns' => array (
  1034. 'biomaterial_id' => 'biomaterial_id',
  1035. ),
  1036. ),
  1037. 'channel' => array (
  1038. 'table' => 'channel',
  1039. 'columns' => array (
  1040. 'channel_id' => 'channel_id',
  1041. ),
  1042. ),
  1043. ),
  1044. );
  1045. return $description;
  1046. }
  1047. /**
  1048. * Implements hook_chado_schema_v1_2_assay_project()
  1049. * Purpose: To describe the structure of 'assay_project' to tripal
  1050. * @see tripal_core_chado_insert()
  1051. * @see tripal_core_chado_update()
  1052. * @see tripal_core_chado_select()
  1053. *
  1054. * @return
  1055. * An array describing the 'assay_project' table
  1056. *
  1057. * @ingroup tripal_chado_v1.2_schema_api
  1058. *
  1059. */
  1060. function tripal_core_chado_schema_v1_2_assay_project() {
  1061. $description = array (
  1062. 'description' => 'TODO: please describe this table!',
  1063. 'fields' => array (
  1064. 'assay_project_id' => array (
  1065. 'description' => 'TODO: please describe this field!',
  1066. 'type' => 'serial',
  1067. 'not null' => true,
  1068. ),
  1069. 'assay_id' => array (
  1070. 'description' => 'TODO: please describe this field!',
  1071. 'type' => 'int',
  1072. 'not null' => true,
  1073. ),
  1074. 'project_id' => array (
  1075. 'description' => 'TODO: please describe this field!',
  1076. 'type' => 'int',
  1077. 'not null' => true,
  1078. ),
  1079. ),
  1080. 'primary key' => array (
  1081. 0 => 'assay_project_id',
  1082. ),
  1083. 'unique keys' => array (
  1084. 'assay_project_c1' => array (
  1085. 0 => 'assay_id',
  1086. 1 => 'project_id',
  1087. ),
  1088. ),
  1089. 'indexes' => array (
  1090. 'assay_project_idx1' => array (
  1091. 0 => 'assay_id',
  1092. ),
  1093. 'assay_project_idx2' => array (
  1094. 0 => 'project_id',
  1095. ),
  1096. ),
  1097. 'foreign keys' => array (
  1098. 'project' => array (
  1099. 'table' => 'project',
  1100. 'columns' => array (
  1101. 'project_id' => 'project_id',
  1102. ),
  1103. ),
  1104. 'assay' => array (
  1105. 'table' => 'assay',
  1106. 'columns' => array (
  1107. 'assay_id' => 'assay_id',
  1108. ),
  1109. ),
  1110. ),
  1111. );
  1112. return $description;
  1113. }
  1114. /**
  1115. * Implements hook_chado_schema_v1_2_assayprop()
  1116. * Purpose: To describe the structure of 'assayprop' to tripal
  1117. * @see tripal_core_chado_insert()
  1118. * @see tripal_core_chado_update()
  1119. * @see tripal_core_chado_select()
  1120. *
  1121. * @return
  1122. * An array describing the 'assayprop' table
  1123. *
  1124. * @ingroup tripal_chado_v1.2_schema_api
  1125. *
  1126. */
  1127. function tripal_core_chado_schema_v1_2_assayprop() {
  1128. $description = array (
  1129. 'description' => 'TODO: please describe this table!',
  1130. 'fields' => array (
  1131. 'assayprop_id' => array (
  1132. 'description' => 'TODO: please describe this field!',
  1133. 'type' => 'serial',
  1134. 'not null' => true,
  1135. ),
  1136. 'assay_id' => array (
  1137. 'description' => 'TODO: please describe this field!',
  1138. 'type' => 'int',
  1139. 'not null' => true,
  1140. ),
  1141. 'type_id' => array (
  1142. 'description' => 'TODO: please describe this field!',
  1143. 'type' => 'int',
  1144. 'not null' => true,
  1145. ),
  1146. 'value' => array (
  1147. 'description' => 'TODO: please describe this field!',
  1148. 'type' => 'text',
  1149. 'not null' => false,
  1150. ),
  1151. 'rank' => array (
  1152. 'description' => 'TODO: please describe this field!',
  1153. 'type' => 'int',
  1154. 'not null' => true,
  1155. 'default' => 0,
  1156. ),
  1157. ),
  1158. 'primary key' => array (
  1159. 0 => 'assayprop_id',
  1160. ),
  1161. 'unique keys' => array (
  1162. 'assayprop_c1' => array (
  1163. 0 => 'assay_id',
  1164. 1 => 'type_id',
  1165. 2 => 'rank',
  1166. ),
  1167. ),
  1168. 'indexes' => array (
  1169. 'assayprop_idx1' => array (
  1170. 0 => 'assay_id',
  1171. ),
  1172. 'assayprop_idx2' => array (
  1173. 0 => 'type_id',
  1174. ),
  1175. ),
  1176. 'foreign keys' => array (
  1177. 'cvterm' => array (
  1178. 'table' => 'cvterm',
  1179. 'columns' => array (
  1180. 'type_id' => 'cvterm_id',
  1181. ),
  1182. ),
  1183. 'assay' => array (
  1184. 'table' => 'assay',
  1185. 'columns' => array (
  1186. 'assay_id' => 'assay_id',
  1187. ),
  1188. ),
  1189. ),
  1190. );
  1191. return $description;
  1192. }
  1193. /**
  1194. * Implements hook_chado_schema_v1_2_biomaterial()
  1195. * Purpose: To describe the structure of 'biomaterial' to tripal
  1196. * @see tripal_core_chado_insert()
  1197. * @see tripal_core_chado_update()
  1198. * @see tripal_core_chado_select()
  1199. *
  1200. * @return
  1201. * An array describing the 'biomaterial' table
  1202. *
  1203. * @ingroup tripal_chado_v1.2_schema_api
  1204. *
  1205. */
  1206. function tripal_core_chado_schema_v1_2_biomaterial() {
  1207. $description = array (
  1208. 'description' => 'TODO: please describe this table!',
  1209. 'fields' => array (
  1210. 'biomaterial_id' => array (
  1211. 'description' => 'TODO: please describe this field!',
  1212. 'type' => 'serial',
  1213. 'not null' => true,
  1214. ),
  1215. 'taxon_id' => array (
  1216. 'description' => 'TODO: please describe this field!',
  1217. 'type' => 'int',
  1218. 'not null' => false,
  1219. ),
  1220. 'biosourceprovider_id' => array (
  1221. 'description' => 'TODO: please describe this field!',
  1222. 'type' => 'int',
  1223. 'not null' => false,
  1224. ),
  1225. 'dbxref_id' => array (
  1226. 'description' => 'TODO: please describe this field!',
  1227. 'type' => 'int',
  1228. 'not null' => false,
  1229. ),
  1230. 'name' => array (
  1231. 'description' => 'TODO: please describe this field!',
  1232. 'type' => 'text',
  1233. 'not null' => false,
  1234. ),
  1235. 'description' => array (
  1236. 'description' => 'TODO: please describe this field!',
  1237. 'type' => 'text',
  1238. 'not null' => false,
  1239. ),
  1240. ),
  1241. 'primary key' => array (
  1242. 0 => 'biomaterial_id',
  1243. ),
  1244. 'unique keys' => array (
  1245. 'biomaterial_c1' => array (
  1246. 0 => 'name',
  1247. ),
  1248. ),
  1249. 'indexes' => array (
  1250. 'biomaterial_idx1' => array (
  1251. 0 => 'taxon_id',
  1252. ),
  1253. 'biomaterial_idx2' => array (
  1254. 0 => 'biosourceprovider_id',
  1255. ),
  1256. 'biomaterial_idx3' => array (
  1257. 0 => 'dbxref_id',
  1258. ),
  1259. ),
  1260. 'foreign keys' => array (
  1261. 'organism' => array (
  1262. 'table' => 'organism',
  1263. 'columns' => array (
  1264. 'taxon_id' => 'organism_id',
  1265. ),
  1266. ),
  1267. 'dbxref' => array (
  1268. 'table' => 'dbxref',
  1269. 'columns' => array (
  1270. 'dbxref_id' => 'dbxref_id',
  1271. ),
  1272. ),
  1273. 'contact' => array (
  1274. 'table' => 'contact',
  1275. 'columns' => array (
  1276. 'biosourceprovider_id' => 'contact_id',
  1277. ),
  1278. ),
  1279. ),
  1280. );
  1281. return $description;
  1282. }
  1283. /**
  1284. * Implements hook_chado_schema_v1_2_biomaterial_dbxref()
  1285. * Purpose: To describe the structure of 'biomaterial_dbxref' to tripal
  1286. * @see tripal_core_chado_insert()
  1287. * @see tripal_core_chado_update()
  1288. * @see tripal_core_chado_select()
  1289. *
  1290. * @return
  1291. * An array describing the 'biomaterial_dbxref' table
  1292. *
  1293. * @ingroup tripal_chado_v1.2_schema_api
  1294. *
  1295. */
  1296. function tripal_core_chado_schema_v1_2_biomaterial_dbxref() {
  1297. $description = array (
  1298. 'description' => 'TODO: please describe this table!',
  1299. 'fields' => array (
  1300. 'biomaterial_dbxref_id' => array (
  1301. 'description' => 'TODO: please describe this field!',
  1302. 'type' => 'serial',
  1303. 'not null' => true,
  1304. ),
  1305. 'biomaterial_id' => array (
  1306. 'description' => 'TODO: please describe this field!',
  1307. 'type' => 'int',
  1308. 'not null' => true,
  1309. ),
  1310. 'dbxref_id' => array (
  1311. 'description' => 'TODO: please describe this field!',
  1312. 'type' => 'int',
  1313. 'not null' => true,
  1314. ),
  1315. ),
  1316. 'primary key' => array (
  1317. 0 => 'biomaterial_dbxref_id',
  1318. ),
  1319. 'unique keys' => array (
  1320. 'biomaterial_dbxref_c1' => array (
  1321. 0 => 'biomaterial_id',
  1322. 1 => 'dbxref_id',
  1323. ),
  1324. ),
  1325. 'indexes' => array (
  1326. 'biomaterial_dbxref_idx1' => array (
  1327. 0 => 'biomaterial_id',
  1328. ),
  1329. 'biomaterial_dbxref_idx2' => array (
  1330. 0 => 'dbxref_id',
  1331. ),
  1332. ),
  1333. 'foreign keys' => array (
  1334. 'dbxref' => array (
  1335. 'table' => 'dbxref',
  1336. 'columns' => array (
  1337. 'dbxref_id' => 'dbxref_id',
  1338. ),
  1339. ),
  1340. 'biomaterial' => array (
  1341. 'table' => 'biomaterial',
  1342. 'columns' => array (
  1343. 'biomaterial_id' => 'biomaterial_id',
  1344. ),
  1345. ),
  1346. ),
  1347. );
  1348. return $description;
  1349. }
  1350. /**
  1351. * Implements hook_chado_schema_v1_2_biomaterial_relationship()
  1352. * Purpose: To describe the structure of 'biomaterial_relationship' to tripal
  1353. * @see tripal_core_chado_insert()
  1354. * @see tripal_core_chado_update()
  1355. * @see tripal_core_chado_select()
  1356. *
  1357. * @return
  1358. * An array describing the 'biomaterial_relationship' table
  1359. *
  1360. * @ingroup tripal_chado_v1.2_schema_api
  1361. *
  1362. */
  1363. function tripal_core_chado_schema_v1_2_biomaterial_relationship() {
  1364. $description = array (
  1365. 'description' => 'TODO: please describe this table!',
  1366. 'fields' => array (
  1367. 'biomaterial_relationship_id' => array (
  1368. 'description' => 'TODO: please describe this field!',
  1369. 'type' => 'serial',
  1370. 'not null' => true,
  1371. ),
  1372. 'subject_id' => array (
  1373. 'description' => 'TODO: please describe this field!',
  1374. 'type' => 'int',
  1375. 'not null' => true,
  1376. ),
  1377. 'type_id' => array (
  1378. 'description' => 'TODO: please describe this field!',
  1379. 'type' => 'int',
  1380. 'not null' => true,
  1381. ),
  1382. 'object_id' => array (
  1383. 'description' => 'TODO: please describe this field!',
  1384. 'type' => 'int',
  1385. 'not null' => true,
  1386. ),
  1387. ),
  1388. 'primary key' => array (
  1389. 0 => 'biomaterial_relationship_id',
  1390. ),
  1391. 'unique keys' => array (
  1392. 'biomaterial_relationship_c1' => array (
  1393. 0 => 'subject_id',
  1394. 1 => 'object_id',
  1395. 2 => 'type_id',
  1396. ),
  1397. ),
  1398. 'indexes' => array (
  1399. 'biomaterial_relationship_idx1' => array (
  1400. 0 => 'subject_id',
  1401. ),
  1402. 'biomaterial_relationship_idx2' => array (
  1403. 0 => 'object_id',
  1404. ),
  1405. 'biomaterial_relationship_idx3' => array (
  1406. 0 => 'type_id',
  1407. ),
  1408. ),
  1409. 'foreign keys' => array (
  1410. 'cvterm' => array (
  1411. 'table' => 'cvterm',
  1412. 'columns' => array (
  1413. 'type_id' => 'cvterm_id',
  1414. ),
  1415. ),
  1416. 'biomaterial' => array (
  1417. 'table' => 'biomaterial',
  1418. 'columns' => array (
  1419. 'subject_id' => 'biomaterial_id',
  1420. 'object_id' => 'biomaterial_id',
  1421. ),
  1422. ),
  1423. ),
  1424. );
  1425. return $description;
  1426. }
  1427. /**
  1428. * Implements hook_chado_schema_v1_2_biomaterial_treatment()
  1429. * Purpose: To describe the structure of 'biomaterial_treatment' to tripal
  1430. * @see tripal_core_chado_insert()
  1431. * @see tripal_core_chado_update()
  1432. * @see tripal_core_chado_select()
  1433. *
  1434. * @return
  1435. * An array describing the 'biomaterial_treatment' table
  1436. *
  1437. * @ingroup tripal_chado_v1.2_schema_api
  1438. *
  1439. */
  1440. function tripal_core_chado_schema_v1_2_biomaterial_treatment() {
  1441. $description = array (
  1442. 'description' => 'TODO: please describe this table!',
  1443. 'fields' => array (
  1444. 'biomaterial_treatment_id' => array (
  1445. 'description' => 'TODO: please describe this field!',
  1446. 'type' => 'serial',
  1447. 'not null' => true,
  1448. ),
  1449. 'biomaterial_id' => array (
  1450. 'description' => 'TODO: please describe this field!',
  1451. 'type' => 'int',
  1452. 'not null' => true,
  1453. ),
  1454. 'treatment_id' => array (
  1455. 'description' => 'TODO: please describe this field!',
  1456. 'type' => 'int',
  1457. 'not null' => true,
  1458. ),
  1459. 'unittype_id' => array (
  1460. 'description' => 'TODO: please describe this field!',
  1461. 'type' => 'int',
  1462. 'not null' => false,
  1463. ),
  1464. 'value' => array (
  1465. 'description' => 'TODO: please describe this field!',
  1466. 'type' => 'float',
  1467. 'not null' => false,
  1468. ),
  1469. 'rank' => array (
  1470. 'description' => 'TODO: please describe this field!',
  1471. 'type' => 'int',
  1472. 'not null' => true,
  1473. 'default' => 0,
  1474. ),
  1475. ),
  1476. 'primary key' => array (
  1477. 0 => 'biomaterial_treatment_id',
  1478. ),
  1479. 'unique keys' => array (
  1480. 'biomaterial_treatment_c1' => array (
  1481. 0 => 'biomaterial_id',
  1482. 1 => 'treatment_id',
  1483. ),
  1484. ),
  1485. 'indexes' => array (
  1486. 'biomaterial_treatment_idx1' => array (
  1487. 0 => 'biomaterial_id',
  1488. ),
  1489. 'biomaterial_treatment_idx2' => array (
  1490. 0 => 'treatment_id',
  1491. ),
  1492. 'biomaterial_treatment_idx3' => array (
  1493. 0 => 'unittype_id',
  1494. ),
  1495. ),
  1496. 'foreign keys' => array (
  1497. 'cvterm' => array (
  1498. 'table' => 'cvterm',
  1499. 'columns' => array (
  1500. 'unittype_id' => 'cvterm_id',
  1501. ),
  1502. ),
  1503. 'biomaterial' => array (
  1504. 'table' => 'biomaterial',
  1505. 'columns' => array (
  1506. 'biomaterial_id' => 'biomaterial_id',
  1507. ),
  1508. ),
  1509. 'treatment' => array (
  1510. 'table' => 'treatment',
  1511. 'columns' => array (
  1512. 'treatment_id' => 'treatment_id',
  1513. ),
  1514. ),
  1515. ),
  1516. );
  1517. return $description;
  1518. }
  1519. /**
  1520. * Implements hook_chado_schema_v1_2_biomaterialprop()
  1521. * Purpose: To describe the structure of 'biomaterialprop' to tripal
  1522. * @see tripal_core_chado_insert()
  1523. * @see tripal_core_chado_update()
  1524. * @see tripal_core_chado_select()
  1525. *
  1526. * @return
  1527. * An array describing the 'biomaterialprop' table
  1528. *
  1529. * @ingroup tripal_chado_v1.2_schema_api
  1530. *
  1531. */
  1532. function tripal_core_chado_schema_v1_2_biomaterialprop() {
  1533. $description = array (
  1534. 'description' => 'TODO: please describe this table!',
  1535. 'fields' => array (
  1536. 'biomaterialprop_id' => array (
  1537. 'description' => 'TODO: please describe this field!',
  1538. 'type' => 'serial',
  1539. 'not null' => true,
  1540. ),
  1541. 'biomaterial_id' => array (
  1542. 'description' => 'TODO: please describe this field!',
  1543. 'type' => 'int',
  1544. 'not null' => true,
  1545. ),
  1546. 'type_id' => array (
  1547. 'description' => 'TODO: please describe this field!',
  1548. 'type' => 'int',
  1549. 'not null' => true,
  1550. ),
  1551. 'value' => array (
  1552. 'description' => 'TODO: please describe this field!',
  1553. 'type' => 'text',
  1554. 'not null' => false,
  1555. ),
  1556. 'rank' => array (
  1557. 'description' => 'TODO: please describe this field!',
  1558. 'type' => 'int',
  1559. 'not null' => true,
  1560. 'default' => 0,
  1561. ),
  1562. ),
  1563. 'primary key' => array (
  1564. 0 => 'biomaterialprop_id',
  1565. ),
  1566. 'unique keys' => array (
  1567. 'biomaterialprop_c1' => array (
  1568. 0 => 'biomaterial_id',
  1569. 1 => 'type_id',
  1570. 2 => 'rank',
  1571. ),
  1572. ),
  1573. 'indexes' => array (
  1574. 'biomaterialprop_idx1' => array (
  1575. 0 => 'biomaterial_id',
  1576. ),
  1577. 'biomaterialprop_idx2' => array (
  1578. 0 => 'type_id',
  1579. ),
  1580. ),
  1581. 'foreign keys' => array (
  1582. 'cvterm' => array (
  1583. 'table' => 'cvterm',
  1584. 'columns' => array (
  1585. 'type_id' => 'cvterm_id',
  1586. ),
  1587. ),
  1588. 'biomaterial' => array (
  1589. 'table' => 'biomaterial',
  1590. 'columns' => array (
  1591. 'biomaterial_id' => 'biomaterial_id',
  1592. ),
  1593. ),
  1594. ),
  1595. );
  1596. return $description;
  1597. }
  1598. /**
  1599. * Implements hook_chado_schema_v1_2_cell_line()
  1600. * Purpose: To describe the structure of 'cell_line' to tripal
  1601. * @see tripal_core_chado_insert()
  1602. * @see tripal_core_chado_update()
  1603. * @see tripal_core_chado_select()
  1604. *
  1605. * @return
  1606. * An array describing the 'cell_line' table
  1607. *
  1608. * @ingroup tripal_chado_v1.2_schema_api
  1609. *
  1610. */
  1611. function tripal_core_chado_schema_v1_2_cell_line() {
  1612. $description = array (
  1613. 'description' => 'TODO: please describe this table!',
  1614. 'fields' => array (
  1615. 'cell_line_id' => array (
  1616. 'description' => 'TODO: please describe this field!',
  1617. 'type' => 'serial',
  1618. 'not null' => true,
  1619. ),
  1620. 'name' => array (
  1621. 'description' => 'TODO: please describe this field!',
  1622. 'type' => 'varchar',
  1623. 'length' => '255',
  1624. 'not null' => false,
  1625. ),
  1626. 'uniquename' => array (
  1627. 'description' => 'TODO: please describe this field!',
  1628. 'type' => 'varchar',
  1629. 'length' => '255',
  1630. 'not null' => true,
  1631. ),
  1632. 'organism_id' => array (
  1633. 'description' => 'TODO: please describe this field!',
  1634. 'type' => 'int',
  1635. 'not null' => true,
  1636. ),
  1637. 'timeaccessioned' => array (
  1638. 'description' => 'TODO: please describe this field!',
  1639. 'type' => 'datetime',
  1640. 'not null' => true,
  1641. 'default' => 'ow(',
  1642. ),
  1643. 'timelastmodified' => array (
  1644. 'description' => 'TODO: please describe this field!',
  1645. 'type' => 'datetime',
  1646. 'not null' => true,
  1647. 'default' => 'ow(',
  1648. ),
  1649. ),
  1650. 'primary key' => array (
  1651. 0 => 'cell_line_id',
  1652. ),
  1653. 'unique keys' => array (
  1654. 'cell_line_c1' => array (
  1655. 0 => 'uniquename',
  1656. 1 => 'organism_id',
  1657. ),
  1658. ),
  1659. 'foreign keys' => array (
  1660. 'organism' => array (
  1661. 'table' => 'organism',
  1662. 'columns' => array (
  1663. 'organism_id' => 'organism_id',
  1664. ),
  1665. ),
  1666. ),
  1667. );
  1668. return $description;
  1669. }
  1670. /**
  1671. * Implements hook_chado_schema_v1_2_cell_line_cvterm()
  1672. * Purpose: To describe the structure of 'cell_line_cvterm' to tripal
  1673. * @see tripal_core_chado_insert()
  1674. * @see tripal_core_chado_update()
  1675. * @see tripal_core_chado_select()
  1676. *
  1677. * @return
  1678. * An array describing the 'cell_line_cvterm' table
  1679. *
  1680. * @ingroup tripal_chado_v1.2_schema_api
  1681. *
  1682. */
  1683. function tripal_core_chado_schema_v1_2_cell_line_cvterm() {
  1684. $description = array (
  1685. 'description' => 'TODO: please describe this table!',
  1686. 'fields' => array (
  1687. 'cell_line_cvterm_id' => array (
  1688. 'description' => 'TODO: please describe this field!',
  1689. 'type' => 'serial',
  1690. 'not null' => true,
  1691. ),
  1692. 'cell_line_id' => array (
  1693. 'description' => 'TODO: please describe this field!',
  1694. 'type' => 'int',
  1695. 'not null' => true,
  1696. ),
  1697. 'cvterm_id' => array (
  1698. 'description' => 'TODO: please describe this field!',
  1699. 'type' => 'int',
  1700. 'not null' => true,
  1701. ),
  1702. 'pub_id' => array (
  1703. 'description' => 'TODO: please describe this field!',
  1704. 'type' => 'int',
  1705. 'not null' => true,
  1706. ),
  1707. 'rank' => array (
  1708. 'description' => 'TODO: please describe this field!',
  1709. 'type' => 'int',
  1710. 'not null' => true,
  1711. 'default' => 0,
  1712. ),
  1713. ),
  1714. 'primary key' => array (
  1715. 0 => 'cell_line_cvterm_id',
  1716. ),
  1717. 'unique keys' => array (
  1718. 'cell_line_cvterm_c1' => array (
  1719. 0 => 'cell_line_id',
  1720. 1 => 'cvterm_id',
  1721. 2 => 'pub_id',
  1722. 3 => 'rank',
  1723. ),
  1724. ),
  1725. 'foreign keys' => array (
  1726. 'cvterm' => array (
  1727. 'table' => 'cvterm',
  1728. 'columns' => array (
  1729. 'cvterm_id' => 'cvterm_id',
  1730. ),
  1731. ),
  1732. 'pub' => array (
  1733. 'table' => 'pub',
  1734. 'columns' => array (
  1735. 'pub_id' => 'pub_id',
  1736. ),
  1737. ),
  1738. 'cell_line' => array (
  1739. 'table' => 'cell_line',
  1740. 'columns' => array (
  1741. 'cell_line_id' => 'cell_line_id',
  1742. ),
  1743. ),
  1744. ),
  1745. );
  1746. return $description;
  1747. }
  1748. /**
  1749. * Implements hook_chado_schema_v1_2_cell_line_cvtermprop()
  1750. * Purpose: To describe the structure of 'cell_line_cvtermprop' to tripal
  1751. * @see tripal_core_chado_insert()
  1752. * @see tripal_core_chado_update()
  1753. * @see tripal_core_chado_select()
  1754. *
  1755. * @return
  1756. * An array describing the 'cell_line_cvtermprop' table
  1757. *
  1758. * @ingroup tripal_chado_v1.2_schema_api
  1759. *
  1760. */
  1761. function tripal_core_chado_schema_v1_2_cell_line_cvtermprop() {
  1762. $description = array (
  1763. 'description' => 'TODO: please describe this table!',
  1764. 'fields' => array (
  1765. 'cell_line_cvtermprop_id' => array (
  1766. 'description' => 'TODO: please describe this field!',
  1767. 'type' => 'serial',
  1768. 'not null' => true,
  1769. ),
  1770. 'cell_line_cvterm_id' => array (
  1771. 'description' => 'TODO: please describe this field!',
  1772. 'type' => 'int',
  1773. 'not null' => true,
  1774. ),
  1775. 'type_id' => array (
  1776. 'description' => 'TODO: please describe this field!',
  1777. 'type' => 'int',
  1778. 'not null' => true,
  1779. ),
  1780. 'value' => array (
  1781. 'description' => 'TODO: please describe this field!',
  1782. 'type' => 'text',
  1783. 'not null' => false,
  1784. ),
  1785. 'rank' => array (
  1786. 'description' => 'TODO: please describe this field!',
  1787. 'type' => 'int',
  1788. 'not null' => true,
  1789. 'default' => 0,
  1790. ),
  1791. ),
  1792. 'primary key' => array (
  1793. 0 => 'cell_line_cvtermprop_id',
  1794. ),
  1795. 'unique keys' => array (
  1796. 'cell_line_cvtermprop_c1' => array (
  1797. 0 => 'cell_line_cvterm_id',
  1798. 1 => 'type_id',
  1799. 2 => 'rank',
  1800. ),
  1801. ),
  1802. 'foreign keys' => array (
  1803. 'cvterm' => array (
  1804. 'table' => 'cvterm',
  1805. 'columns' => array (
  1806. 'type_id' => 'cvterm_id',
  1807. ),
  1808. ),
  1809. 'cell_line_cvterm' => array (
  1810. 'table' => 'cell_line_cvterm',
  1811. 'columns' => array (
  1812. 'cell_line_cvterm_id' => 'cell_line_cvterm_id',
  1813. ),
  1814. ),
  1815. ),
  1816. );
  1817. return $description;
  1818. }
  1819. /**
  1820. * Implements hook_chado_schema_v1_2_cell_line_dbxref()
  1821. * Purpose: To describe the structure of 'cell_line_dbxref' to tripal
  1822. * @see tripal_core_chado_insert()
  1823. * @see tripal_core_chado_update()
  1824. * @see tripal_core_chado_select()
  1825. *
  1826. * @return
  1827. * An array describing the 'cell_line_dbxref' table
  1828. *
  1829. * @ingroup tripal_chado_v1.2_schema_api
  1830. *
  1831. */
  1832. function tripal_core_chado_schema_v1_2_cell_line_dbxref() {
  1833. $description = array (
  1834. 'description' => 'TODO: please describe this table!',
  1835. 'fields' => array (
  1836. 'cell_line_dbxref_id' => array (
  1837. 'description' => 'TODO: please describe this field!',
  1838. 'type' => 'serial',
  1839. 'not null' => true,
  1840. ),
  1841. 'cell_line_id' => array (
  1842. 'description' => 'TODO: please describe this field!',
  1843. 'type' => 'int',
  1844. 'not null' => true,
  1845. ),
  1846. 'dbxref_id' => array (
  1847. 'description' => 'TODO: please describe this field!',
  1848. 'type' => 'int',
  1849. 'not null' => true,
  1850. ),
  1851. 'is_current' => array (
  1852. 'description' => 'TODO: please describe this field!',
  1853. 'type' => 'boolean',
  1854. 'not null' => true,
  1855. 'default' => 'ru',
  1856. ),
  1857. ),
  1858. 'primary key' => array (
  1859. 0 => 'cell_line_dbxref_id',
  1860. ),
  1861. 'unique keys' => array (
  1862. 'cell_line_dbxref_c1' => array (
  1863. 0 => 'cell_line_id',
  1864. 1 => 'dbxref_id',
  1865. ),
  1866. ),
  1867. 'foreign keys' => array (
  1868. 'dbxref' => array (
  1869. 'table' => 'dbxref',
  1870. 'columns' => array (
  1871. 'dbxref_id' => 'dbxref_id',
  1872. ),
  1873. ),
  1874. 'cell_line' => array (
  1875. 'table' => 'cell_line',
  1876. 'columns' => array (
  1877. 'cell_line_id' => 'cell_line_id',
  1878. ),
  1879. ),
  1880. ),
  1881. );
  1882. return $description;
  1883. }
  1884. /**
  1885. * Implements hook_chado_schema_v1_2_cell_line_feature()
  1886. * Purpose: To describe the structure of 'cell_line_feature' to tripal
  1887. * @see tripal_core_chado_insert()
  1888. * @see tripal_core_chado_update()
  1889. * @see tripal_core_chado_select()
  1890. *
  1891. * @return
  1892. * An array describing the 'cell_line_feature' table
  1893. *
  1894. * @ingroup tripal_chado_v1.2_schema_api
  1895. *
  1896. */
  1897. function tripal_core_chado_schema_v1_2_cell_line_feature() {
  1898. $description = array (
  1899. 'description' => 'TODO: please describe this table!',
  1900. 'fields' => array (
  1901. 'cell_line_feature_id' => array (
  1902. 'description' => 'TODO: please describe this field!',
  1903. 'type' => 'serial',
  1904. 'not null' => true,
  1905. ),
  1906. 'cell_line_id' => array (
  1907. 'description' => 'TODO: please describe this field!',
  1908. 'type' => 'int',
  1909. 'not null' => true,
  1910. ),
  1911. 'feature_id' => array (
  1912. 'description' => 'TODO: please describe this field!',
  1913. 'type' => 'int',
  1914. 'not null' => true,
  1915. ),
  1916. 'pub_id' => array (
  1917. 'description' => 'TODO: please describe this field!',
  1918. 'type' => 'int',
  1919. 'not null' => true,
  1920. ),
  1921. ),
  1922. 'primary key' => array (
  1923. 0 => 'cell_line_feature_id',
  1924. ),
  1925. 'unique keys' => array (
  1926. 'cell_line_feature_c1' => array (
  1927. 0 => 'cell_line_id',
  1928. 1 => 'feature_id',
  1929. 2 => 'pub_id',
  1930. ),
  1931. ),
  1932. 'foreign keys' => array (
  1933. 'pub' => array (
  1934. 'table' => 'pub',
  1935. 'columns' => array (
  1936. 'pub_id' => 'pub_id',
  1937. ),
  1938. ),
  1939. 'feature' => array (
  1940. 'table' => 'feature',
  1941. 'columns' => array (
  1942. 'feature_id' => 'feature_id',
  1943. ),
  1944. ),
  1945. 'cell_line' => array (
  1946. 'table' => 'cell_line',
  1947. 'columns' => array (
  1948. 'cell_line_id' => 'cell_line_id',
  1949. ),
  1950. ),
  1951. ),
  1952. );
  1953. return $description;
  1954. }
  1955. /**
  1956. * Implements hook_chado_schema_v1_2_cell_line_library()
  1957. * Purpose: To describe the structure of 'cell_line_library' to tripal
  1958. * @see tripal_core_chado_insert()
  1959. * @see tripal_core_chado_update()
  1960. * @see tripal_core_chado_select()
  1961. *
  1962. * @return
  1963. * An array describing the 'cell_line_library' table
  1964. *
  1965. * @ingroup tripal_chado_v1.2_schema_api
  1966. *
  1967. */
  1968. function tripal_core_chado_schema_v1_2_cell_line_library() {
  1969. $description = array (
  1970. 'description' => 'TODO: please describe this table!',
  1971. 'fields' => array (
  1972. 'cell_line_library_id' => array (
  1973. 'description' => 'TODO: please describe this field!',
  1974. 'type' => 'serial',
  1975. 'not null' => true,
  1976. ),
  1977. 'cell_line_id' => array (
  1978. 'description' => 'TODO: please describe this field!',
  1979. 'type' => 'int',
  1980. 'not null' => true,
  1981. ),
  1982. 'library_id' => array (
  1983. 'description' => 'TODO: please describe this field!',
  1984. 'type' => 'int',
  1985. 'not null' => true,
  1986. ),
  1987. 'pub_id' => array (
  1988. 'description' => 'TODO: please describe this field!',
  1989. 'type' => 'int',
  1990. 'not null' => true,
  1991. ),
  1992. ),
  1993. 'primary key' => array (
  1994. 0 => 'cell_line_library_id',
  1995. ),
  1996. 'unique keys' => array (
  1997. 'cell_line_library_c1' => array (
  1998. 0 => 'cell_line_id',
  1999. 1 => 'library_id',
  2000. 2 => 'pub_id',
  2001. ),
  2002. ),
  2003. 'foreign keys' => array (
  2004. 'pub' => array (
  2005. 'table' => 'pub',
  2006. 'columns' => array (
  2007. 'pub_id' => 'pub_id',
  2008. ),
  2009. ),
  2010. 'library' => array (
  2011. 'table' => 'library',
  2012. 'columns' => array (
  2013. 'library_id' => 'library_id',
  2014. ),
  2015. ),
  2016. 'cell_line' => array (
  2017. 'table' => 'cell_line',
  2018. 'columns' => array (
  2019. 'cell_line_id' => 'cell_line_id',
  2020. ),
  2021. ),
  2022. ),
  2023. );
  2024. return $description;
  2025. }
  2026. /**
  2027. * Implements hook_chado_schema_v1_2_cell_line_pub()
  2028. * Purpose: To describe the structure of 'cell_line_pub' to tripal
  2029. * @see tripal_core_chado_insert()
  2030. * @see tripal_core_chado_update()
  2031. * @see tripal_core_chado_select()
  2032. *
  2033. * @return
  2034. * An array describing the 'cell_line_pub' table
  2035. *
  2036. * @ingroup tripal_chado_v1.2_schema_api
  2037. *
  2038. */
  2039. function tripal_core_chado_schema_v1_2_cell_line_pub() {
  2040. $description = array (
  2041. 'description' => 'TODO: please describe this table!',
  2042. 'fields' => array (
  2043. 'cell_line_pub_id' => array (
  2044. 'description' => 'TODO: please describe this field!',
  2045. 'type' => 'serial',
  2046. 'not null' => true,
  2047. ),
  2048. 'cell_line_id' => array (
  2049. 'description' => 'TODO: please describe this field!',
  2050. 'type' => 'int',
  2051. 'not null' => true,
  2052. ),
  2053. 'pub_id' => array (
  2054. 'description' => 'TODO: please describe this field!',
  2055. 'type' => 'int',
  2056. 'not null' => true,
  2057. ),
  2058. ),
  2059. 'primary key' => array (
  2060. 0 => 'cell_line_pub_id',
  2061. ),
  2062. 'unique keys' => array (
  2063. 'cell_line_pub_c1' => array (
  2064. 0 => 'cell_line_id',
  2065. 1 => 'pub_id',
  2066. ),
  2067. ),
  2068. 'foreign keys' => array (
  2069. 'pub' => array (
  2070. 'table' => 'pub',
  2071. 'columns' => array (
  2072. 'pub_id' => 'pub_id',
  2073. ),
  2074. ),
  2075. 'cell_line' => array (
  2076. 'table' => 'cell_line',
  2077. 'columns' => array (
  2078. 'cell_line_id' => 'cell_line_id',
  2079. ),
  2080. ),
  2081. ),
  2082. );
  2083. return $description;
  2084. }
  2085. /**
  2086. * Implements hook_chado_schema_v1_2_cell_line_relationship()
  2087. * Purpose: To describe the structure of 'cell_line_relationship' to tripal
  2088. * @see tripal_core_chado_insert()
  2089. * @see tripal_core_chado_update()
  2090. * @see tripal_core_chado_select()
  2091. *
  2092. * @return
  2093. * An array describing the 'cell_line_relationship' table
  2094. *
  2095. * @ingroup tripal_chado_v1.2_schema_api
  2096. *
  2097. */
  2098. function tripal_core_chado_schema_v1_2_cell_line_relationship() {
  2099. $description = array (
  2100. 'description' => 'TODO: please describe this table!',
  2101. 'fields' => array (
  2102. 'cell_line_relationship_id' => array (
  2103. 'description' => 'TODO: please describe this field!',
  2104. 'type' => 'serial',
  2105. 'not null' => true,
  2106. ),
  2107. 'subject_id' => array (
  2108. 'description' => 'TODO: please describe this field!',
  2109. 'type' => 'int',
  2110. 'not null' => true,
  2111. ),
  2112. 'object_id' => array (
  2113. 'description' => 'TODO: please describe this field!',
  2114. 'type' => 'int',
  2115. 'not null' => true,
  2116. ),
  2117. 'type_id' => array (
  2118. 'description' => 'TODO: please describe this field!',
  2119. 'type' => 'int',
  2120. 'not null' => true,
  2121. ),
  2122. ),
  2123. 'primary key' => array (
  2124. 0 => 'cell_line_relationship_id',
  2125. ),
  2126. 'unique keys' => array (
  2127. 'cell_line_relationship_c1' => array (
  2128. 0 => 'subject_id',
  2129. 1 => 'object_id',
  2130. 2 => 'type_id',
  2131. ),
  2132. ),
  2133. 'foreign keys' => array (
  2134. 'cvterm' => array (
  2135. 'table' => 'cvterm',
  2136. 'columns' => array (
  2137. 'type_id' => 'cvterm_id',
  2138. ),
  2139. ),
  2140. 'cell_line' => array (
  2141. 'table' => 'cell_line',
  2142. 'columns' => array (
  2143. 'subject_id' => 'cell_line_id',
  2144. 'object_id' => 'cell_line_id',
  2145. ),
  2146. ),
  2147. ),
  2148. );
  2149. return $description;
  2150. }
  2151. /**
  2152. * Implements hook_chado_schema_v1_2_cell_line_synonym()
  2153. * Purpose: To describe the structure of 'cell_line_synonym' to tripal
  2154. * @see tripal_core_chado_insert()
  2155. * @see tripal_core_chado_update()
  2156. * @see tripal_core_chado_select()
  2157. *
  2158. * @return
  2159. * An array describing the 'cell_line_synonym' table
  2160. *
  2161. * @ingroup tripal_chado_v1.2_schema_api
  2162. *
  2163. */
  2164. function tripal_core_chado_schema_v1_2_cell_line_synonym() {
  2165. $description = array (
  2166. 'description' => 'TODO: please describe this table!',
  2167. 'fields' => array (
  2168. 'cell_line_synonym_id' => array (
  2169. 'description' => 'TODO: please describe this field!',
  2170. 'type' => 'serial',
  2171. 'not null' => true,
  2172. ),
  2173. 'cell_line_id' => array (
  2174. 'description' => 'TODO: please describe this field!',
  2175. 'type' => 'int',
  2176. 'not null' => true,
  2177. ),
  2178. 'synonym_id' => array (
  2179. 'description' => 'TODO: please describe this field!',
  2180. 'type' => 'int',
  2181. 'not null' => true,
  2182. ),
  2183. 'pub_id' => array (
  2184. 'description' => 'TODO: please describe this field!',
  2185. 'type' => 'int',
  2186. 'not null' => true,
  2187. ),
  2188. 'is_current' => array (
  2189. 'description' => 'TODO: please describe this field!',
  2190. 'type' => 'boolean',
  2191. 'not null' => true,
  2192. 'default' => 'als',
  2193. ),
  2194. 'is_internal' => array (
  2195. 'description' => 'TODO: please describe this field!',
  2196. 'type' => 'boolean',
  2197. 'not null' => true,
  2198. 'default' => 'als',
  2199. ),
  2200. ),
  2201. 'primary key' => array (
  2202. 0 => 'cell_line_synonym_id',
  2203. ),
  2204. 'unique keys' => array (
  2205. 'cell_line_synonym_c1' => array (
  2206. 0 => 'synonym_id',
  2207. 1 => 'cell_line_id',
  2208. 2 => 'pub_id',
  2209. ),
  2210. ),
  2211. 'foreign keys' => array (
  2212. 'pub' => array (
  2213. 'table' => 'pub',
  2214. 'columns' => array (
  2215. 'pub_id' => 'pub_id',
  2216. ),
  2217. ),
  2218. 'synonym' => array (
  2219. 'table' => 'synonym',
  2220. 'columns' => array (
  2221. 'synonym_id' => 'synonym_id',
  2222. ),
  2223. ),
  2224. 'cell_line' => array (
  2225. 'table' => 'cell_line',
  2226. 'columns' => array (
  2227. 'cell_line_id' => 'cell_line_id',
  2228. ),
  2229. ),
  2230. ),
  2231. );
  2232. return $description;
  2233. }
  2234. /**
  2235. * Implements hook_chado_schema_v1_2_cell_lineprop()
  2236. * Purpose: To describe the structure of 'cell_lineprop' to tripal
  2237. * @see tripal_core_chado_insert()
  2238. * @see tripal_core_chado_update()
  2239. * @see tripal_core_chado_select()
  2240. *
  2241. * @return
  2242. * An array describing the 'cell_lineprop' table
  2243. *
  2244. * @ingroup tripal_chado_v1.2_schema_api
  2245. *
  2246. */
  2247. function tripal_core_chado_schema_v1_2_cell_lineprop() {
  2248. $description = array (
  2249. 'description' => 'TODO: please describe this table!',
  2250. 'fields' => array (
  2251. 'cell_lineprop_id' => array (
  2252. 'description' => 'TODO: please describe this field!',
  2253. 'type' => 'serial',
  2254. 'not null' => true,
  2255. ),
  2256. 'cell_line_id' => array (
  2257. 'description' => 'TODO: please describe this field!',
  2258. 'type' => 'int',
  2259. 'not null' => true,
  2260. ),
  2261. 'type_id' => array (
  2262. 'description' => 'TODO: please describe this field!',
  2263. 'type' => 'int',
  2264. 'not null' => true,
  2265. ),
  2266. 'value' => array (
  2267. 'description' => 'TODO: please describe this field!',
  2268. 'type' => 'text',
  2269. 'not null' => false,
  2270. ),
  2271. 'rank' => array (
  2272. 'description' => 'TODO: please describe this field!',
  2273. 'type' => 'int',
  2274. 'not null' => true,
  2275. 'default' => 0,
  2276. ),
  2277. ),
  2278. 'primary key' => array (
  2279. 0 => 'cell_lineprop_id',
  2280. ),
  2281. 'unique keys' => array (
  2282. 'cell_lineprop_c1' => array (
  2283. 0 => 'cell_line_id',
  2284. 1 => 'type_id',
  2285. 2 => 'rank',
  2286. ),
  2287. ),
  2288. 'foreign keys' => array (
  2289. 'cvterm' => array (
  2290. 'table' => 'cvterm',
  2291. 'columns' => array (
  2292. 'type_id' => 'cvterm_id',
  2293. ),
  2294. ),
  2295. 'cell_line' => array (
  2296. 'table' => 'cell_line',
  2297. 'columns' => array (
  2298. 'cell_line_id' => 'cell_line_id',
  2299. ),
  2300. ),
  2301. ),
  2302. );
  2303. return $description;
  2304. }
  2305. /**
  2306. * Implements hook_chado_schema_v1_2_cell_lineprop_pub()
  2307. * Purpose: To describe the structure of 'cell_lineprop_pub' to tripal
  2308. * @see tripal_core_chado_insert()
  2309. * @see tripal_core_chado_update()
  2310. * @see tripal_core_chado_select()
  2311. *
  2312. * @return
  2313. * An array describing the 'cell_lineprop_pub' table
  2314. *
  2315. * @ingroup tripal_chado_v1.2_schema_api
  2316. *
  2317. */
  2318. function tripal_core_chado_schema_v1_2_cell_lineprop_pub() {
  2319. $description = array (
  2320. 'description' => 'TODO: please describe this table!',
  2321. 'fields' => array (
  2322. 'cell_lineprop_pub_id' => array (
  2323. 'description' => 'TODO: please describe this field!',
  2324. 'type' => 'serial',
  2325. 'not null' => true,
  2326. ),
  2327. 'cell_lineprop_id' => array (
  2328. 'description' => 'TODO: please describe this field!',
  2329. 'type' => 'int',
  2330. 'not null' => true,
  2331. ),
  2332. 'pub_id' => array (
  2333. 'description' => 'TODO: please describe this field!',
  2334. 'type' => 'int',
  2335. 'not null' => true,
  2336. ),
  2337. ),
  2338. 'primary key' => array (
  2339. 0 => 'cell_lineprop_pub_id',
  2340. ),
  2341. 'unique keys' => array (
  2342. 'cell_lineprop_pub_c1' => array (
  2343. 0 => 'cell_lineprop_id',
  2344. 1 => 'pub_id',
  2345. ),
  2346. ),
  2347. 'foreign keys' => array (
  2348. 'pub' => array (
  2349. 'table' => 'pub',
  2350. 'columns' => array (
  2351. 'pub_id' => 'pub_id',
  2352. ),
  2353. ),
  2354. 'cell_lineprop' => array (
  2355. 'table' => 'cell_lineprop',
  2356. 'columns' => array (
  2357. 'cell_lineprop_id' => 'cell_lineprop_id',
  2358. ),
  2359. ),
  2360. ),
  2361. );
  2362. return $description;
  2363. }
  2364. /**
  2365. * Implements hook_chado_schema_v1_2_chadoprop()
  2366. * Purpose: To describe the structure of 'chadoprop' to tripal
  2367. * @see tripal_core_chado_insert()
  2368. * @see tripal_core_chado_update()
  2369. * @see tripal_core_chado_select()
  2370. *
  2371. * @return
  2372. * An array describing the 'chadoprop' table
  2373. *
  2374. * @ingroup tripal_chado_v1.2_schema_api
  2375. *
  2376. */
  2377. function tripal_core_chado_schema_v1_2_chadoprop() {
  2378. $description = array (
  2379. 'description' => 'TODO: please describe this table!',
  2380. 'fields' => array (
  2381. 'chadoprop_id' => array (
  2382. 'description' => 'TODO: please describe this field!',
  2383. 'type' => 'serial',
  2384. 'not null' => true,
  2385. ),
  2386. 'type_id' => array (
  2387. 'description' => 'TODO: please describe this field!',
  2388. 'type' => 'int',
  2389. 'not null' => true,
  2390. ),
  2391. 'value' => array (
  2392. 'description' => 'TODO: please describe this field!',
  2393. 'type' => 'text',
  2394. 'not null' => false,
  2395. ),
  2396. 'rank' => array (
  2397. 'description' => 'TODO: please describe this field!',
  2398. 'type' => 'int',
  2399. 'not null' => true,
  2400. 'default' => 0,
  2401. ),
  2402. ),
  2403. 'primary key' => array (
  2404. 0 => 'chadoprop_id',
  2405. ),
  2406. 'unique keys' => array (
  2407. 'chadoprop_c1' => array (
  2408. 0 => 'type_id',
  2409. 1 => 'rank',
  2410. ),
  2411. ),
  2412. 'foreign keys' => array (
  2413. 'cvterm' => array (
  2414. 'table' => 'cvterm',
  2415. 'columns' => array (
  2416. 'type_id' => 'cvterm_id',
  2417. ),
  2418. ),
  2419. ),
  2420. );
  2421. return $description;
  2422. }
  2423. /**
  2424. * Implements hook_chado_schema_v1_2_channel()
  2425. * Purpose: To describe the structure of 'channel' to tripal
  2426. * @see tripal_core_chado_insert()
  2427. * @see tripal_core_chado_update()
  2428. * @see tripal_core_chado_select()
  2429. *
  2430. * @return
  2431. * An array describing the 'channel' table
  2432. *
  2433. * @ingroup tripal_chado_v1.2_schema_api
  2434. *
  2435. */
  2436. function tripal_core_chado_schema_v1_2_channel() {
  2437. $description = array (
  2438. 'description' => 'TODO: please describe this table!',
  2439. 'fields' => array (
  2440. 'channel_id' => array (
  2441. 'description' => 'TODO: please describe this field!',
  2442. 'type' => 'serial',
  2443. 'not null' => true,
  2444. ),
  2445. 'name' => array (
  2446. 'description' => 'TODO: please describe this field!',
  2447. 'type' => 'text',
  2448. 'not null' => true,
  2449. ),
  2450. 'definition' => array (
  2451. 'description' => 'TODO: please describe this field!',
  2452. 'type' => 'text',
  2453. 'not null' => true,
  2454. ),
  2455. ),
  2456. 'primary key' => array (
  2457. 0 => 'channel_id',
  2458. ),
  2459. 'unique keys' => array (
  2460. 'channel_c1' => array (
  2461. 0 => 'name',
  2462. ),
  2463. ),
  2464. 'foreign keys' => array (
  2465. ),
  2466. );
  2467. return $description;
  2468. }
  2469. /**
  2470. * Implements hook_chado_schema_v1_2_contact()
  2471. * Purpose: To describe the structure of 'contact' to tripal
  2472. * @see tripal_core_chado_insert()
  2473. * @see tripal_core_chado_update()
  2474. * @see tripal_core_chado_select()
  2475. *
  2476. * @return
  2477. * An array describing the 'contact' table
  2478. *
  2479. * @ingroup tripal_chado_v1.2_schema_api
  2480. *
  2481. */
  2482. function tripal_core_chado_schema_v1_2_contact() {
  2483. $description = array (
  2484. 'description' => 'TODO: please describe this table!',
  2485. 'fields' => array (
  2486. 'contact_id' => array (
  2487. 'description' => 'TODO: please describe this field!',
  2488. 'type' => 'serial',
  2489. 'not null' => true,
  2490. ),
  2491. 'type_id' => array (
  2492. 'description' => 'TODO: please describe this field!',
  2493. 'type' => 'int',
  2494. 'not null' => false,
  2495. ),
  2496. 'name' => array (
  2497. 'description' => 'TODO: please describe this field!',
  2498. 'type' => 'varchar',
  2499. 'length' => '255',
  2500. 'not null' => true,
  2501. ),
  2502. 'description' => array (
  2503. 'description' => 'TODO: please describe this field!',
  2504. 'type' => 'varchar',
  2505. 'length' => '255',
  2506. 'not null' => false,
  2507. ),
  2508. ),
  2509. 'primary key' => array (
  2510. 0 => 'contact_id',
  2511. ),
  2512. 'unique keys' => array (
  2513. 'contact_c1' => array (
  2514. 0 => 'name',
  2515. ),
  2516. ),
  2517. 'foreign keys' => array (
  2518. 'cvterm' => array (
  2519. 'table' => 'cvterm',
  2520. 'columns' => array (
  2521. 'type_id' => 'cvterm_id',
  2522. ),
  2523. ),
  2524. ),
  2525. );
  2526. return $description;
  2527. }
  2528. /**
  2529. * Implements hook_chado_schema_v1_2_contact_relationship()
  2530. * Purpose: To describe the structure of 'contact_relationship' to tripal
  2531. * @see tripal_core_chado_insert()
  2532. * @see tripal_core_chado_update()
  2533. * @see tripal_core_chado_select()
  2534. *
  2535. * @return
  2536. * An array describing the 'contact_relationship' table
  2537. *
  2538. * @ingroup tripal_chado_v1.2_schema_api
  2539. *
  2540. */
  2541. function tripal_core_chado_schema_v1_2_contact_relationship() {
  2542. $description = array (
  2543. 'description' => 'TODO: please describe this table!',
  2544. 'fields' => array (
  2545. 'contact_relationship_id' => array (
  2546. 'description' => 'TODO: please describe this field!',
  2547. 'type' => 'serial',
  2548. 'not null' => true,
  2549. ),
  2550. 'type_id' => array (
  2551. 'description' => 'TODO: please describe this field!',
  2552. 'type' => 'int',
  2553. 'not null' => true,
  2554. ),
  2555. 'subject_id' => array (
  2556. 'description' => 'TODO: please describe this field!',
  2557. 'type' => 'int',
  2558. 'not null' => true,
  2559. ),
  2560. 'object_id' => array (
  2561. 'description' => 'TODO: please describe this field!',
  2562. 'type' => 'int',
  2563. 'not null' => true,
  2564. ),
  2565. ),
  2566. 'primary key' => array (
  2567. 0 => 'contact_relationship_id',
  2568. ),
  2569. 'unique keys' => array (
  2570. 'contact_relationship_c1' => array (
  2571. 0 => 'subject_id',
  2572. 1 => 'object_id',
  2573. 2 => 'type_id',
  2574. ),
  2575. ),
  2576. 'indexes' => array (
  2577. 'contact_relationship_idx1' => array (
  2578. 0 => 'type_id',
  2579. ),
  2580. 'contact_relationship_idx2' => array (
  2581. 0 => 'subject_id',
  2582. ),
  2583. 'contact_relationship_idx3' => array (
  2584. 0 => 'object_id',
  2585. ),
  2586. ),
  2587. 'foreign keys' => array (
  2588. 'cvterm' => array (
  2589. 'table' => 'cvterm',
  2590. 'columns' => array (
  2591. 'type_id' => 'cvterm_id',
  2592. ),
  2593. ),
  2594. 'contact' => array (
  2595. 'table' => 'contact',
  2596. 'columns' => array (
  2597. 'subject_id' => 'contact_id',
  2598. 'object_id' => 'contact_id',
  2599. ),
  2600. ),
  2601. ),
  2602. );
  2603. return $description;
  2604. }
  2605. /**
  2606. * Implements hook_chado_schema_v1_2_control()
  2607. * Purpose: To describe the structure of 'control' to tripal
  2608. * @see tripal_core_chado_insert()
  2609. * @see tripal_core_chado_update()
  2610. * @see tripal_core_chado_select()
  2611. *
  2612. * @return
  2613. * An array describing the 'control' table
  2614. *
  2615. * @ingroup tripal_chado_v1.2_schema_api
  2616. *
  2617. */
  2618. function tripal_core_chado_schema_v1_2_control() {
  2619. $description = array (
  2620. 'description' => 'TODO: please describe this table!',
  2621. 'fields' => array (
  2622. 'control_id' => array (
  2623. 'description' => 'TODO: please describe this field!',
  2624. 'type' => 'serial',
  2625. 'not null' => true,
  2626. ),
  2627. 'type_id' => array (
  2628. 'description' => 'TODO: please describe this field!',
  2629. 'type' => 'int',
  2630. 'not null' => true,
  2631. ),
  2632. 'assay_id' => array (
  2633. 'description' => 'TODO: please describe this field!',
  2634. 'type' => 'int',
  2635. 'not null' => true,
  2636. ),
  2637. 'tableinfo_id' => array (
  2638. 'description' => 'TODO: please describe this field!',
  2639. 'type' => 'int',
  2640. 'not null' => true,
  2641. ),
  2642. 'row_id' => array (
  2643. 'description' => 'TODO: please describe this field!',
  2644. 'type' => 'int',
  2645. 'not null' => true,
  2646. ),
  2647. 'name' => array (
  2648. 'description' => 'TODO: please describe this field!',
  2649. 'type' => 'text',
  2650. 'not null' => false,
  2651. ),
  2652. 'value' => array (
  2653. 'description' => 'TODO: please describe this field!',
  2654. 'type' => 'text',
  2655. 'not null' => false,
  2656. ),
  2657. 'rank' => array (
  2658. 'description' => 'TODO: please describe this field!',
  2659. 'type' => 'int',
  2660. 'not null' => true,
  2661. 'default' => 0,
  2662. ),
  2663. ),
  2664. 'primary key' => array (
  2665. 0 => 'control_id',
  2666. ),
  2667. 'indexes' => array (
  2668. 'control_idx1' => array (
  2669. 0 => 'type_id',
  2670. ),
  2671. 'control_idx2' => array (
  2672. 0 => 'assay_id',
  2673. ),
  2674. 'control_idx3' => array (
  2675. 0 => 'tableinfo_id',
  2676. ),
  2677. 'control_idx4' => array (
  2678. 0 => 'row_id',
  2679. ),
  2680. ),
  2681. 'foreign keys' => array (
  2682. 'cvterm' => array (
  2683. 'table' => 'cvterm',
  2684. 'columns' => array (
  2685. 'type_id' => 'cvterm_id',
  2686. ),
  2687. ),
  2688. 'tableinfo' => array (
  2689. 'table' => 'tableinfo',
  2690. 'columns' => array (
  2691. 'tableinfo_id' => 'tableinfo_id',
  2692. ),
  2693. ),
  2694. 'assay' => array (
  2695. 'table' => 'assay',
  2696. 'columns' => array (
  2697. 'assay_id' => 'assay_id',
  2698. ),
  2699. ),
  2700. ),
  2701. );
  2702. return $description;
  2703. }
  2704. /**
  2705. * Implements hook_chado_schema_v1_2_cv()
  2706. * Purpose: To describe the structure of 'cv' to tripal
  2707. * @see tripal_core_chado_insert()
  2708. * @see tripal_core_chado_update()
  2709. * @see tripal_core_chado_select()
  2710. *
  2711. * @return
  2712. * An array describing the 'cv' table
  2713. *
  2714. * @ingroup tripal_chado_v1.2_schema_api
  2715. *
  2716. */
  2717. function tripal_core_chado_schema_v1_2_cv() {
  2718. $description = array (
  2719. 'description' => 'TODO: please describe this table!',
  2720. 'fields' => array (
  2721. 'cv_id' => array (
  2722. 'description' => 'TODO: please describe this field!',
  2723. 'type' => 'serial',
  2724. 'not null' => true,
  2725. ),
  2726. 'name' => array (
  2727. 'description' => 'TODO: please describe this field!',
  2728. 'type' => 'varchar',
  2729. 'length' => '255',
  2730. 'not null' => true,
  2731. ),
  2732. 'definition' => array (
  2733. 'description' => 'TODO: please describe this field!',
  2734. 'type' => 'text',
  2735. 'not null' => false,
  2736. ),
  2737. ),
  2738. 'primary key' => array (
  2739. 0 => 'cv_id',
  2740. ),
  2741. 'unique keys' => array (
  2742. 'cv_c1' => array (
  2743. 0 => 'name',
  2744. ),
  2745. ),
  2746. 'foreign keys' => array (
  2747. ),
  2748. );
  2749. return $description;
  2750. }
  2751. /**
  2752. * Implements hook_chado_schema_v1_2_cvprop()
  2753. * Purpose: To describe the structure of 'cvprop' to tripal
  2754. * @see tripal_core_chado_insert()
  2755. * @see tripal_core_chado_update()
  2756. * @see tripal_core_chado_select()
  2757. *
  2758. * @return
  2759. * An array describing the 'cvprop' table
  2760. *
  2761. * @ingroup tripal_chado_v1.2_schema_api
  2762. *
  2763. */
  2764. function tripal_core_chado_schema_v1_2_cvprop() {
  2765. $description = array (
  2766. 'description' => 'TODO: please describe this table!',
  2767. 'fields' => array (
  2768. 'cvprop_id' => array (
  2769. 'description' => 'TODO: please describe this field!',
  2770. 'type' => 'serial',
  2771. 'not null' => true,
  2772. ),
  2773. 'cv_id' => array (
  2774. 'description' => 'TODO: please describe this field!',
  2775. 'type' => 'int',
  2776. 'not null' => true,
  2777. ),
  2778. 'type_id' => array (
  2779. 'description' => 'TODO: please describe this field!',
  2780. 'type' => 'int',
  2781. 'not null' => true,
  2782. ),
  2783. 'value' => array (
  2784. 'description' => 'TODO: please describe this field!',
  2785. 'type' => 'text',
  2786. 'not null' => false,
  2787. ),
  2788. 'rank' => array (
  2789. 'description' => 'TODO: please describe this field!',
  2790. 'type' => 'int',
  2791. 'not null' => true,
  2792. 'default' => 0,
  2793. ),
  2794. ),
  2795. 'primary key' => array (
  2796. 0 => 'cvprop_id',
  2797. ),
  2798. 'unique keys' => array (
  2799. 'cvprop_c1' => array (
  2800. 0 => 'cv_id',
  2801. 1 => 'type_id',
  2802. 2 => 'rank',
  2803. ),
  2804. ),
  2805. 'foreign keys' => array (
  2806. 'cvterm' => array (
  2807. 'table' => 'cvterm',
  2808. 'columns' => array (
  2809. 'type_id' => 'cvterm_id',
  2810. ),
  2811. ),
  2812. 'cv' => array (
  2813. 'table' => 'cv',
  2814. 'columns' => array (
  2815. 'cv_id' => 'cv_id',
  2816. ),
  2817. ),
  2818. ),
  2819. );
  2820. return $description;
  2821. }
  2822. /**
  2823. * Implements hook_chado_schema_v1_2_cvterm()
  2824. * Purpose: To describe the structure of 'cvterm' to tripal
  2825. * @see tripal_core_chado_insert()
  2826. * @see tripal_core_chado_update()
  2827. * @see tripal_core_chado_select()
  2828. *
  2829. * @return
  2830. * An array describing the 'cvterm' table
  2831. *
  2832. * @ingroup tripal_chado_v1.2_schema_api
  2833. *
  2834. */
  2835. function tripal_core_chado_schema_v1_2_cvterm() {
  2836. $description = array (
  2837. 'description' => 'TODO: please describe this table!',
  2838. 'fields' => array (
  2839. 'cvterm_id' => array (
  2840. 'description' => 'TODO: please describe this field!',
  2841. 'type' => 'serial',
  2842. 'not null' => true,
  2843. ),
  2844. 'cv_id' => array (
  2845. 'description' => 'TODO: please describe this field!',
  2846. 'type' => 'int',
  2847. 'not null' => true,
  2848. ),
  2849. 'name' => array (
  2850. 'description' => 'TODO: please describe this field!',
  2851. 'type' => 'varchar',
  2852. 'length' => '1024',
  2853. 'not null' => true,
  2854. ),
  2855. 'definition' => array (
  2856. 'description' => 'TODO: please describe this field!',
  2857. 'type' => 'text',
  2858. 'not null' => false,
  2859. ),
  2860. 'dbxref_id' => array (
  2861. 'description' => 'TODO: please describe this field!',
  2862. 'type' => 'int',
  2863. 'not null' => true,
  2864. ),
  2865. 'is_obsolete' => array (
  2866. 'description' => 'TODO: please describe this field!',
  2867. 'type' => 'int',
  2868. 'not null' => true,
  2869. 'default' => 0,
  2870. ),
  2871. 'is_relationshiptype' => array (
  2872. 'description' => 'TODO: please describe this field!',
  2873. 'type' => 'int',
  2874. 'not null' => true,
  2875. 'default' => 0,
  2876. ),
  2877. ),
  2878. 'primary key' => array (
  2879. 0 => 'cvterm_id',
  2880. ),
  2881. 'unique keys' => array (
  2882. 'cvterm_c1' => array (
  2883. 0 => 'name',
  2884. 1 => 'cv_id',
  2885. 2 => 'is_obsolete',
  2886. ),
  2887. 'cvterm_c2' => array (
  2888. 0 => 'dbxref_id',
  2889. ),
  2890. ),
  2891. 'indexes' => array (
  2892. 'cvterm_idx1' => array (
  2893. 0 => 'cv_id',
  2894. ),
  2895. 'cvterm_idx2' => array (
  2896. 0 => 'name',
  2897. ),
  2898. 'cvterm_idx3' => array (
  2899. 0 => 'dbxref_id',
  2900. ),
  2901. ),
  2902. 'foreign keys' => array (
  2903. 'cv' => array (
  2904. 'table' => 'cv',
  2905. 'columns' => array (
  2906. 'cv_id' => 'cv_id',
  2907. ),
  2908. ),
  2909. 'dbxref' => array (
  2910. 'table' => 'dbxref',
  2911. 'columns' => array (
  2912. 'dbxref_id' => 'dbxref_id',
  2913. ),
  2914. ),
  2915. ),
  2916. );
  2917. return $description;
  2918. }
  2919. /**
  2920. * Implements hook_chado_schema_v1_2_cvterm_dbxref()
  2921. * Purpose: To describe the structure of 'cvterm_dbxref' to tripal
  2922. * @see tripal_core_chado_insert()
  2923. * @see tripal_core_chado_update()
  2924. * @see tripal_core_chado_select()
  2925. *
  2926. * @return
  2927. * An array describing the 'cvterm_dbxref' table
  2928. *
  2929. * @ingroup tripal_chado_v1.2_schema_api
  2930. *
  2931. */
  2932. function tripal_core_chado_schema_v1_2_cvterm_dbxref() {
  2933. $description = array (
  2934. 'description' => 'TODO: please describe this table!',
  2935. 'fields' => array (
  2936. 'cvterm_dbxref_id' => array (
  2937. 'description' => 'TODO: please describe this field!',
  2938. 'type' => 'serial',
  2939. 'not null' => true,
  2940. ),
  2941. 'cvterm_id' => array (
  2942. 'description' => 'TODO: please describe this field!',
  2943. 'type' => 'int',
  2944. 'not null' => true,
  2945. ),
  2946. 'dbxref_id' => array (
  2947. 'description' => 'TODO: please describe this field!',
  2948. 'type' => 'int',
  2949. 'not null' => true,
  2950. ),
  2951. 'is_for_definition' => array (
  2952. 'description' => 'TODO: please describe this field!',
  2953. 'type' => 'int',
  2954. 'not null' => true,
  2955. 'default' => 0,
  2956. ),
  2957. ),
  2958. 'primary key' => array (
  2959. 0 => 'cvterm_dbxref_id',
  2960. ),
  2961. 'unique keys' => array (
  2962. 'cvterm_dbxref_c1' => array (
  2963. 0 => 'cvterm_id',
  2964. 1 => 'dbxref_id',
  2965. ),
  2966. ),
  2967. 'indexes' => array (
  2968. 'cvterm_dbxref_idx1' => array (
  2969. 0 => 'cvterm_id',
  2970. ),
  2971. 'cvterm_dbxref_idx2' => array (
  2972. 0 => 'dbxref_id',
  2973. ),
  2974. ),
  2975. 'foreign keys' => array (
  2976. 'cvterm' => array (
  2977. 'table' => 'cvterm',
  2978. 'columns' => array (
  2979. 'cvterm_id' => 'cvterm_id',
  2980. ),
  2981. ),
  2982. 'dbxref' => array (
  2983. 'table' => 'dbxref',
  2984. 'columns' => array (
  2985. 'dbxref_id' => 'dbxref_id',
  2986. ),
  2987. ),
  2988. ),
  2989. );
  2990. return $description;
  2991. }
  2992. /**
  2993. * Implements hook_chado_schema_v1_2_cvterm_relationship()
  2994. * Purpose: To describe the structure of 'cvterm_relationship' to tripal
  2995. * @see tripal_core_chado_insert()
  2996. * @see tripal_core_chado_update()
  2997. * @see tripal_core_chado_select()
  2998. *
  2999. * @return
  3000. * An array describing the 'cvterm_relationship' table
  3001. *
  3002. * @ingroup tripal_chado_v1.2_schema_api
  3003. *
  3004. */
  3005. function tripal_core_chado_schema_v1_2_cvterm_relationship() {
  3006. $description = array (
  3007. 'description' => 'TODO: please describe this table!',
  3008. 'fields' => array (
  3009. 'cvterm_relationship_id' => array (
  3010. 'description' => 'TODO: please describe this field!',
  3011. 'type' => 'serial',
  3012. 'not null' => true,
  3013. ),
  3014. 'type_id' => array (
  3015. 'description' => 'TODO: please describe this field!',
  3016. 'type' => 'int',
  3017. 'not null' => true,
  3018. ),
  3019. 'subject_id' => array (
  3020. 'description' => 'TODO: please describe this field!',
  3021. 'type' => 'int',
  3022. 'not null' => true,
  3023. ),
  3024. 'object_id' => array (
  3025. 'description' => 'TODO: please describe this field!',
  3026. 'type' => 'int',
  3027. 'not null' => true,
  3028. ),
  3029. ),
  3030. 'primary key' => array (
  3031. 0 => 'cvterm_relationship_id',
  3032. ),
  3033. 'unique keys' => array (
  3034. 'cvterm_relationship_c1' => array (
  3035. 0 => 'subject_id',
  3036. 1 => 'object_id',
  3037. 2 => 'type_id',
  3038. ),
  3039. ),
  3040. 'indexes' => array (
  3041. 'cvterm_relationship_idx1' => array (
  3042. 0 => 'type_id',
  3043. ),
  3044. 'cvterm_relationship_idx2' => array (
  3045. 0 => 'subject_id',
  3046. ),
  3047. 'cvterm_relationship_idx3' => array (
  3048. 0 => 'object_id',
  3049. ),
  3050. ),
  3051. 'foreign keys' => array (
  3052. 'cvterm' => array (
  3053. 'table' => 'cvterm',
  3054. 'columns' => array (
  3055. 'type_id' => 'cvterm_id',
  3056. 'subject_id' => 'cvterm_id',
  3057. 'object_id' => 'cvterm_id',
  3058. ),
  3059. ),
  3060. ),
  3061. );
  3062. return $description;
  3063. }
  3064. /**
  3065. * Implements hook_chado_schema_v1_2_cvtermpath()
  3066. * Purpose: To describe the structure of 'cvtermpath' to tripal
  3067. * @see tripal_core_chado_insert()
  3068. * @see tripal_core_chado_update()
  3069. * @see tripal_core_chado_select()
  3070. *
  3071. * @return
  3072. * An array describing the 'cvtermpath' table
  3073. *
  3074. * @ingroup tripal_chado_v1.2_schema_api
  3075. *
  3076. */
  3077. function tripal_core_chado_schema_v1_2_cvtermpath() {
  3078. $description = array (
  3079. 'description' => 'TODO: please describe this table!',
  3080. 'fields' => array (
  3081. 'cvtermpath_id' => array (
  3082. 'description' => 'TODO: please describe this field!',
  3083. 'type' => 'serial',
  3084. 'not null' => true,
  3085. ),
  3086. 'type_id' => array (
  3087. 'description' => 'TODO: please describe this field!',
  3088. 'type' => 'int',
  3089. 'not null' => false,
  3090. ),
  3091. 'subject_id' => array (
  3092. 'description' => 'TODO: please describe this field!',
  3093. 'type' => 'int',
  3094. 'not null' => true,
  3095. ),
  3096. 'object_id' => array (
  3097. 'description' => 'TODO: please describe this field!',
  3098. 'type' => 'int',
  3099. 'not null' => true,
  3100. ),
  3101. 'cv_id' => array (
  3102. 'description' => 'TODO: please describe this field!',
  3103. 'type' => 'int',
  3104. 'not null' => true,
  3105. ),
  3106. 'pathdistance' => array (
  3107. 'description' => 'TODO: please describe this field!',
  3108. 'type' => 'int',
  3109. 'not null' => false,
  3110. ),
  3111. ),
  3112. 'primary key' => array (
  3113. 0 => 'cvtermpath_id',
  3114. ),
  3115. 'unique keys' => array (
  3116. 'cvtermpath_c1' => array (
  3117. 0 => 'subject_id',
  3118. 1 => 'object_id',
  3119. 2 => 'type_id',
  3120. 3 => 'pathdistance',
  3121. ),
  3122. ),
  3123. 'indexes' => array (
  3124. 'cvtermpath_idx1' => array (
  3125. 0 => 'type_id',
  3126. ),
  3127. 'cvtermpath_idx2' => array (
  3128. 0 => 'subject_id',
  3129. ),
  3130. 'cvtermpath_idx3' => array (
  3131. 0 => 'object_id',
  3132. ),
  3133. 'cvtermpath_idx4' => array (
  3134. 0 => 'cv_id',
  3135. ),
  3136. ),
  3137. 'foreign keys' => array (
  3138. 'cvterm' => array (
  3139. 'table' => 'cvterm',
  3140. 'columns' => array (
  3141. 'type_id' => 'cvterm_id',
  3142. 'subject_id' => 'cvterm_id',
  3143. 'object_id' => 'cvterm_id',
  3144. ),
  3145. ),
  3146. 'cv' => array (
  3147. 'table' => 'cv',
  3148. 'columns' => array (
  3149. 'cv_id' => 'cv_id',
  3150. ),
  3151. ),
  3152. ),
  3153. );
  3154. return $description;
  3155. }
  3156. /**
  3157. * Implements hook_chado_schema_v1_2_cvtermprop()
  3158. * Purpose: To describe the structure of 'cvtermprop' to tripal
  3159. * @see tripal_core_chado_insert()
  3160. * @see tripal_core_chado_update()
  3161. * @see tripal_core_chado_select()
  3162. *
  3163. * @return
  3164. * An array describing the 'cvtermprop' table
  3165. *
  3166. * @ingroup tripal_chado_v1.2_schema_api
  3167. *
  3168. */
  3169. function tripal_core_chado_schema_v1_2_cvtermprop() {
  3170. $description = array (
  3171. 'description' => 'TODO: please describe this table!',
  3172. 'fields' => array (
  3173. 'cvtermprop_id' => array (
  3174. 'description' => 'TODO: please describe this field!',
  3175. 'type' => 'serial',
  3176. 'not null' => true,
  3177. ),
  3178. 'cvterm_id' => array (
  3179. 'description' => 'TODO: please describe this field!',
  3180. 'type' => 'int',
  3181. 'not null' => true,
  3182. ),
  3183. 'type_id' => array (
  3184. 'description' => 'TODO: please describe this field!',
  3185. 'type' => 'int',
  3186. 'not null' => true,
  3187. ),
  3188. 'value' => array (
  3189. 'description' => 'TODO: please describe this field!',
  3190. 'type' => 'text',
  3191. 'not null' => true,
  3192. 'default' => '',
  3193. ),
  3194. 'rank' => array (
  3195. 'description' => 'TODO: please describe this field!',
  3196. 'type' => 'int',
  3197. 'not null' => true,
  3198. 'default' => 0,
  3199. ),
  3200. ),
  3201. 'primary key' => array (
  3202. 0 => 'cvtermprop_id',
  3203. ),
  3204. 'unique keys' => array (
  3205. 'cvterm_id' => array (
  3206. 0 => 'cvterm_id',
  3207. 1 => 'type_id',
  3208. 2 => 'value',
  3209. 3 => 'rank',
  3210. ),
  3211. ),
  3212. 'indexes' => array (
  3213. 'cvtermprop_idx1' => array (
  3214. 0 => 'cvterm_id',
  3215. ),
  3216. 'cvtermprop_idx2' => array (
  3217. 0 => 'type_id',
  3218. ),
  3219. ),
  3220. 'foreign keys' => array (
  3221. 'cvterm' => array (
  3222. 'table' => 'cvterm',
  3223. 'columns' => array (
  3224. 'cvterm_id' => 'cvterm_id',
  3225. 'type_id' => 'cvterm_id',
  3226. ),
  3227. ),
  3228. ),
  3229. );
  3230. return $description;
  3231. }
  3232. /**
  3233. * Implements hook_chado_schema_v1_2_cvtermsynonym()
  3234. * Purpose: To describe the structure of 'cvtermsynonym' to tripal
  3235. * @see tripal_core_chado_insert()
  3236. * @see tripal_core_chado_update()
  3237. * @see tripal_core_chado_select()
  3238. *
  3239. * @return
  3240. * An array describing the 'cvtermsynonym' table
  3241. *
  3242. * @ingroup tripal_chado_v1.2_schema_api
  3243. *
  3244. */
  3245. function tripal_core_chado_schema_v1_2_cvtermsynonym() {
  3246. $description = array (
  3247. 'description' => 'TODO: please describe this table!',
  3248. 'fields' => array (
  3249. 'cvtermsynonym_id' => array (
  3250. 'description' => 'TODO: please describe this field!',
  3251. 'type' => 'serial',
  3252. 'not null' => true,
  3253. ),
  3254. 'cvterm_id' => array (
  3255. 'description' => 'TODO: please describe this field!',
  3256. 'type' => 'int',
  3257. 'not null' => true,
  3258. ),
  3259. 'synonym' => array (
  3260. 'description' => 'TODO: please describe this field!',
  3261. 'type' => 'varchar',
  3262. 'length' => '1024',
  3263. 'not null' => true,
  3264. ),
  3265. 'type_id' => array (
  3266. 'description' => 'TODO: please describe this field!',
  3267. 'type' => 'int',
  3268. 'not null' => false,
  3269. ),
  3270. ),
  3271. 'primary key' => array (
  3272. 0 => 'cvtermsynonym_id',
  3273. ),
  3274. 'unique keys' => array (
  3275. 'cvtermsynonym_c1' => array (
  3276. 0 => 'cvterm_id',
  3277. 1 => 'synonym',
  3278. ),
  3279. ),
  3280. 'indexes' => array (
  3281. 'cvtermsynonym_idx1' => array (
  3282. 0 => 'cvterm_id',
  3283. ),
  3284. ),
  3285. 'foreign keys' => array (
  3286. 'cvterm' => array (
  3287. 'table' => 'cvterm',
  3288. 'columns' => array (
  3289. 'cvterm_id' => 'cvterm_id',
  3290. 'type_id' => 'cvterm_id',
  3291. ),
  3292. ),
  3293. ),
  3294. );
  3295. return $description;
  3296. }
  3297. /**
  3298. * Implements hook_chado_schema_v1_2_db()
  3299. * Purpose: To describe the structure of 'db' to tripal
  3300. * @see tripal_core_chado_insert()
  3301. * @see tripal_core_chado_update()
  3302. * @see tripal_core_chado_select()
  3303. *
  3304. * @return
  3305. * An array describing the 'db' table
  3306. *
  3307. * @ingroup tripal_chado_v1.2_schema_api
  3308. *
  3309. */
  3310. function tripal_core_chado_schema_v1_2_db() {
  3311. $description = array (
  3312. 'description' => 'TODO: please describe this table!',
  3313. 'fields' => array (
  3314. 'db_id' => array (
  3315. 'description' => 'TODO: please describe this field!',
  3316. 'type' => 'serial',
  3317. 'not null' => true,
  3318. ),
  3319. 'name' => array (
  3320. 'description' => 'TODO: please describe this field!',
  3321. 'type' => 'varchar',
  3322. 'length' => '255',
  3323. 'not null' => true,
  3324. ),
  3325. 'description' => array (
  3326. 'description' => 'TODO: please describe this field!',
  3327. 'type' => 'varchar',
  3328. 'length' => '255',
  3329. 'not null' => false,
  3330. ),
  3331. 'urlprefix' => array (
  3332. 'description' => 'TODO: please describe this field!',
  3333. 'type' => 'varchar',
  3334. 'length' => '255',
  3335. 'not null' => false,
  3336. ),
  3337. 'url' => array (
  3338. 'description' => 'TODO: please describe this field!',
  3339. 'type' => 'varchar',
  3340. 'length' => '255',
  3341. 'not null' => false,
  3342. ),
  3343. ),
  3344. 'primary key' => array (
  3345. 0 => 'db_id',
  3346. ),
  3347. 'unique keys' => array (
  3348. 'db_c1' => array (
  3349. 0 => 'name',
  3350. ),
  3351. ),
  3352. 'foreign keys' => array (
  3353. ),
  3354. );
  3355. return $description;
  3356. }
  3357. /**
  3358. * Implements hook_chado_schema_v1_2_dbxref()
  3359. * Purpose: To describe the structure of 'dbxref' to tripal
  3360. * @see tripal_core_chado_insert()
  3361. * @see tripal_core_chado_update()
  3362. * @see tripal_core_chado_select()
  3363. *
  3364. * @return
  3365. * An array describing the 'dbxref' table
  3366. *
  3367. * @ingroup tripal_chado_v1.2_schema_api
  3368. *
  3369. */
  3370. function tripal_core_chado_schema_v1_2_dbxref() {
  3371. $description = array (
  3372. 'description' => 'TODO: please describe this table!',
  3373. 'fields' => array (
  3374. 'dbxref_id' => array (
  3375. 'description' => 'TODO: please describe this field!',
  3376. 'type' => 'serial',
  3377. 'not null' => true,
  3378. ),
  3379. 'db_id' => array (
  3380. 'description' => 'TODO: please describe this field!',
  3381. 'type' => 'int',
  3382. 'not null' => true,
  3383. ),
  3384. 'accession' => array (
  3385. 'description' => 'TODO: please describe this field!',
  3386. 'type' => 'varchar',
  3387. 'length' => '255',
  3388. 'not null' => true,
  3389. ),
  3390. 'version' => array (
  3391. 'description' => 'TODO: please describe this field!',
  3392. 'type' => 'varchar',
  3393. 'length' => '255',
  3394. 'not null' => true,
  3395. 'default' => '',
  3396. ),
  3397. 'description' => array (
  3398. 'description' => 'TODO: please describe this field!',
  3399. 'type' => 'text',
  3400. 'not null' => false,
  3401. ),
  3402. ),
  3403. 'primary key' => array (
  3404. 0 => 'dbxref_id',
  3405. ),
  3406. 'unique keys' => array (
  3407. 'dbxref_c1' => array (
  3408. 0 => 'db_id',
  3409. 1 => 'accession',
  3410. 2 => 'version',
  3411. ),
  3412. ),
  3413. 'indexes' => array (
  3414. 'dbxref_idx1' => array (
  3415. 0 => 'db_id',
  3416. ),
  3417. 'dbxref_idx2' => array (
  3418. 0 => 'accession',
  3419. ),
  3420. 'dbxref_idx3' => array (
  3421. 0 => 'version',
  3422. ),
  3423. ),
  3424. 'foreign keys' => array (
  3425. 'db' => array (
  3426. 'table' => 'db',
  3427. 'columns' => array (
  3428. 'db_id' => 'db_id',
  3429. ),
  3430. ),
  3431. ),
  3432. );
  3433. return $description;
  3434. }
  3435. /**
  3436. * Implements hook_chado_schema_v1_2_dbxrefprop()
  3437. * Purpose: To describe the structure of 'dbxrefprop' to tripal
  3438. * @see tripal_core_chado_insert()
  3439. * @see tripal_core_chado_update()
  3440. * @see tripal_core_chado_select()
  3441. *
  3442. * @return
  3443. * An array describing the 'dbxrefprop' table
  3444. *
  3445. * @ingroup tripal_chado_v1.2_schema_api
  3446. *
  3447. */
  3448. function tripal_core_chado_schema_v1_2_dbxrefprop() {
  3449. $description = array (
  3450. 'description' => 'TODO: please describe this table!',
  3451. 'fields' => array (
  3452. 'dbxrefprop_id' => array (
  3453. 'description' => 'TODO: please describe this field!',
  3454. 'type' => 'serial',
  3455. 'not null' => true,
  3456. ),
  3457. 'dbxref_id' => array (
  3458. 'description' => 'TODO: please describe this field!',
  3459. 'type' => 'int',
  3460. 'not null' => true,
  3461. ),
  3462. 'type_id' => array (
  3463. 'description' => 'TODO: please describe this field!',
  3464. 'type' => 'int',
  3465. 'not null' => true,
  3466. ),
  3467. 'value' => array (
  3468. 'description' => 'TODO: please describe this field!',
  3469. 'type' => 'text',
  3470. 'not null' => true,
  3471. 'default' => '',
  3472. ),
  3473. 'rank' => array (
  3474. 'description' => 'TODO: please describe this field!',
  3475. 'type' => 'int',
  3476. 'not null' => true,
  3477. 'default' => 0,
  3478. ),
  3479. ),
  3480. 'primary key' => array (
  3481. 0 => 'dbxrefprop_id',
  3482. ),
  3483. 'unique keys' => array (
  3484. 'dbxrefprop_c1' => array (
  3485. 0 => 'dbxref_id',
  3486. 1 => 'type_id',
  3487. 2 => 'rank',
  3488. ),
  3489. ),
  3490. 'indexes' => array (
  3491. 'dbxrefprop_idx1' => array (
  3492. 0 => 'dbxref_id',
  3493. ),
  3494. 'dbxrefprop_idx2' => array (
  3495. 0 => 'type_id',
  3496. ),
  3497. ),
  3498. 'foreign keys' => array (
  3499. 'cvterm' => array (
  3500. 'table' => 'cvterm',
  3501. 'columns' => array (
  3502. 'type_id' => 'cvterm_id',
  3503. ),
  3504. ),
  3505. 'dbxref' => array (
  3506. 'table' => 'dbxref',
  3507. 'columns' => array (
  3508. 'dbxref_id' => 'dbxref_id',
  3509. ),
  3510. ),
  3511. ),
  3512. );
  3513. return $description;
  3514. }
  3515. /**
  3516. * Implements hook_chado_schema_v1_2_eimage()
  3517. * Purpose: To describe the structure of 'eimage' to tripal
  3518. * @see tripal_core_chado_insert()
  3519. * @see tripal_core_chado_update()
  3520. * @see tripal_core_chado_select()
  3521. *
  3522. * @return
  3523. * An array describing the 'eimage' table
  3524. *
  3525. * @ingroup tripal_chado_v1.2_schema_api
  3526. *
  3527. */
  3528. function tripal_core_chado_schema_v1_2_eimage() {
  3529. $description = array (
  3530. 'description' => 'TODO: please describe this table!',
  3531. 'fields' => array (
  3532. 'eimage_id' => array (
  3533. 'description' => 'TODO: please describe this field!',
  3534. 'type' => 'serial',
  3535. 'not null' => true,
  3536. ),
  3537. 'eimage_data' => array (
  3538. 'description' => 'TODO: please describe this field!',
  3539. 'type' => 'text',
  3540. 'not null' => false,
  3541. ),
  3542. 'eimage_type' => array (
  3543. 'description' => 'TODO: please describe this field!',
  3544. 'type' => 'varchar',
  3545. 'length' => '255',
  3546. 'not null' => true,
  3547. ),
  3548. 'image_uri' => array (
  3549. 'description' => 'TODO: please describe this field!',
  3550. 'type' => 'varchar',
  3551. 'length' => '255',
  3552. 'not null' => false,
  3553. ),
  3554. ),
  3555. 'primary key' => array (
  3556. 0 => 'eimage_id',
  3557. ),
  3558. 'foreign keys' => array (
  3559. ),
  3560. );
  3561. return $description;
  3562. }
  3563. /**
  3564. * Implements hook_chado_schema_v1_2_element()
  3565. * Purpose: To describe the structure of 'element' to tripal
  3566. * @see tripal_core_chado_insert()
  3567. * @see tripal_core_chado_update()
  3568. * @see tripal_core_chado_select()
  3569. *
  3570. * @return
  3571. * An array describing the 'element' table
  3572. *
  3573. * @ingroup tripal_chado_v1.2_schema_api
  3574. *
  3575. */
  3576. function tripal_core_chado_schema_v1_2_element() {
  3577. $description = array (
  3578. 'description' => 'TODO: please describe this table!',
  3579. 'fields' => array (
  3580. 'element_id' => array (
  3581. 'description' => 'TODO: please describe this field!',
  3582. 'type' => 'serial',
  3583. 'not null' => true,
  3584. ),
  3585. 'feature_id' => array (
  3586. 'description' => 'TODO: please describe this field!',
  3587. 'type' => 'int',
  3588. 'not null' => false,
  3589. ),
  3590. 'arraydesign_id' => array (
  3591. 'description' => 'TODO: please describe this field!',
  3592. 'type' => 'int',
  3593. 'not null' => true,
  3594. ),
  3595. 'type_id' => array (
  3596. 'description' => 'TODO: please describe this field!',
  3597. 'type' => 'int',
  3598. 'not null' => false,
  3599. ),
  3600. 'dbxref_id' => array (
  3601. 'description' => 'TODO: please describe this field!',
  3602. 'type' => 'int',
  3603. 'not null' => false,
  3604. ),
  3605. ),
  3606. 'primary key' => array (
  3607. 0 => 'element_id',
  3608. ),
  3609. 'unique keys' => array (
  3610. 'element_c1' => array (
  3611. 0 => 'feature_id',
  3612. 1 => 'arraydesign_id',
  3613. ),
  3614. ),
  3615. 'indexes' => array (
  3616. 'element_idx1' => array (
  3617. 0 => 'feature_id',
  3618. ),
  3619. 'element_idx2' => array (
  3620. 0 => 'arraydesign_id',
  3621. ),
  3622. 'element_idx3' => array (
  3623. 0 => 'type_id',
  3624. ),
  3625. 'element_idx4' => array (
  3626. 0 => 'dbxref_id',
  3627. ),
  3628. ),
  3629. 'foreign keys' => array (
  3630. 'cvterm' => array (
  3631. 'table' => 'cvterm',
  3632. 'columns' => array (
  3633. 'type_id' => 'cvterm_id',
  3634. ),
  3635. ),
  3636. 'dbxref' => array (
  3637. 'table' => 'dbxref',
  3638. 'columns' => array (
  3639. 'dbxref_id' => 'dbxref_id',
  3640. ),
  3641. ),
  3642. 'feature' => array (
  3643. 'table' => 'feature',
  3644. 'columns' => array (
  3645. 'feature_id' => 'feature_id',
  3646. ),
  3647. ),
  3648. 'arraydesign' => array (
  3649. 'table' => 'arraydesign',
  3650. 'columns' => array (
  3651. 'arraydesign_id' => 'arraydesign_id',
  3652. ),
  3653. ),
  3654. ),
  3655. );
  3656. return $description;
  3657. }
  3658. /**
  3659. * Implements hook_chado_schema_v1_2_element_relationship()
  3660. * Purpose: To describe the structure of 'element_relationship' to tripal
  3661. * @see tripal_core_chado_insert()
  3662. * @see tripal_core_chado_update()
  3663. * @see tripal_core_chado_select()
  3664. *
  3665. * @return
  3666. * An array describing the 'element_relationship' table
  3667. *
  3668. * @ingroup tripal_chado_v1.2_schema_api
  3669. *
  3670. */
  3671. function tripal_core_chado_schema_v1_2_element_relationship() {
  3672. $description = array (
  3673. 'description' => 'TODO: please describe this table!',
  3674. 'fields' => array (
  3675. 'element_relationship_id' => array (
  3676. 'description' => 'TODO: please describe this field!',
  3677. 'type' => 'serial',
  3678. 'not null' => true,
  3679. ),
  3680. 'subject_id' => array (
  3681. 'description' => 'TODO: please describe this field!',
  3682. 'type' => 'int',
  3683. 'not null' => true,
  3684. ),
  3685. 'type_id' => array (
  3686. 'description' => 'TODO: please describe this field!',
  3687. 'type' => 'int',
  3688. 'not null' => true,
  3689. ),
  3690. 'object_id' => array (
  3691. 'description' => 'TODO: please describe this field!',
  3692. 'type' => 'int',
  3693. 'not null' => true,
  3694. ),
  3695. 'value' => array (
  3696. 'description' => 'TODO: please describe this field!',
  3697. 'type' => 'text',
  3698. 'not null' => false,
  3699. ),
  3700. 'rank' => array (
  3701. 'description' => 'TODO: please describe this field!',
  3702. 'type' => 'int',
  3703. 'not null' => true,
  3704. 'default' => 0,
  3705. ),
  3706. ),
  3707. 'primary key' => array (
  3708. 0 => 'element_relationship_id',
  3709. ),
  3710. 'unique keys' => array (
  3711. 'element_relationship_c1' => array (
  3712. 0 => 'subject_id',
  3713. 1 => 'object_id',
  3714. 2 => 'type_id',
  3715. 3 => 'rank',
  3716. ),
  3717. ),
  3718. 'indexes' => array (
  3719. 'element_relationship_idx1' => array (
  3720. 0 => 'subject_id',
  3721. ),
  3722. 'element_relationship_idx2' => array (
  3723. 0 => 'type_id',
  3724. ),
  3725. 'element_relationship_idx3' => array (
  3726. 0 => 'object_id',
  3727. ),
  3728. 'element_relationship_idx4' => array (
  3729. 0 => 'value',
  3730. ),
  3731. ),
  3732. 'foreign keys' => array (
  3733. 'cvterm' => array (
  3734. 'table' => 'cvterm',
  3735. 'columns' => array (
  3736. 'type_id' => 'cvterm_id',
  3737. ),
  3738. ),
  3739. 'element' => array (
  3740. 'table' => 'element',
  3741. 'columns' => array (
  3742. 'subject_id' => 'element_id',
  3743. 'object_id' => 'element_id',
  3744. ),
  3745. ),
  3746. ),
  3747. );
  3748. return $description;
  3749. }
  3750. /**
  3751. * Implements hook_chado_schema_v1_2_elementresult()
  3752. * Purpose: To describe the structure of 'elementresult' to tripal
  3753. * @see tripal_core_chado_insert()
  3754. * @see tripal_core_chado_update()
  3755. * @see tripal_core_chado_select()
  3756. *
  3757. * @return
  3758. * An array describing the 'elementresult' table
  3759. *
  3760. * @ingroup tripal_chado_v1.2_schema_api
  3761. *
  3762. */
  3763. function tripal_core_chado_schema_v1_2_elementresult() {
  3764. $description = array (
  3765. 'description' => 'TODO: please describe this table!',
  3766. 'fields' => array (
  3767. 'elementresult_id' => array (
  3768. 'description' => 'TODO: please describe this field!',
  3769. 'type' => 'serial',
  3770. 'not null' => true,
  3771. ),
  3772. 'element_id' => array (
  3773. 'description' => 'TODO: please describe this field!',
  3774. 'type' => 'int',
  3775. 'not null' => true,
  3776. ),
  3777. 'quantification_id' => array (
  3778. 'description' => 'TODO: please describe this field!',
  3779. 'type' => 'int',
  3780. 'not null' => true,
  3781. ),
  3782. 'signal' => array (
  3783. 'description' => 'TODO: please describe this field!',
  3784. 'type' => 'float',
  3785. 'size' => 'big',
  3786. 'not null' => true,
  3787. ),
  3788. ),
  3789. 'primary key' => array (
  3790. 0 => 'elementresult_id',
  3791. ),
  3792. 'unique keys' => array (
  3793. 'elementresult_c1' => array (
  3794. 0 => 'element_id',
  3795. 1 => 'quantification_id',
  3796. ),
  3797. ),
  3798. 'indexes' => array (
  3799. 'elementresult_idx1' => array (
  3800. 0 => 'element_id',
  3801. ),
  3802. 'elementresult_idx2' => array (
  3803. 0 => 'quantification_id',
  3804. ),
  3805. 'elementresult_idx3' => array (
  3806. 0 => 'signal',
  3807. ),
  3808. ),
  3809. 'foreign keys' => array (
  3810. 'quantification' => array (
  3811. 'table' => 'quantification',
  3812. 'columns' => array (
  3813. 'quantification_id' => 'quantification_id',
  3814. ),
  3815. ),
  3816. 'element' => array (
  3817. 'table' => 'element',
  3818. 'columns' => array (
  3819. 'element_id' => 'element_id',
  3820. ),
  3821. ),
  3822. ),
  3823. );
  3824. return $description;
  3825. }
  3826. /**
  3827. * Implements hook_chado_schema_v1_2_elementresult_relationship()
  3828. * Purpose: To describe the structure of 'elementresult_relationship' to tripal
  3829. * @see tripal_core_chado_insert()
  3830. * @see tripal_core_chado_update()
  3831. * @see tripal_core_chado_select()
  3832. *
  3833. * @return
  3834. * An array describing the 'elementresult_relationship' table
  3835. *
  3836. * @ingroup tripal_chado_v1.2_schema_api
  3837. *
  3838. */
  3839. function tripal_core_chado_schema_v1_2_elementresult_relationship() {
  3840. $description = array (
  3841. 'description' => 'TODO: please describe this table!',
  3842. 'fields' => array (
  3843. 'elementresult_relationship_id' => array (
  3844. 'description' => 'TODO: please describe this field!',
  3845. 'type' => 'serial',
  3846. 'not null' => true,
  3847. ),
  3848. 'subject_id' => array (
  3849. 'description' => 'TODO: please describe this field!',
  3850. 'type' => 'int',
  3851. 'not null' => true,
  3852. ),
  3853. 'type_id' => array (
  3854. 'description' => 'TODO: please describe this field!',
  3855. 'type' => 'int',
  3856. 'not null' => true,
  3857. ),
  3858. 'object_id' => array (
  3859. 'description' => 'TODO: please describe this field!',
  3860. 'type' => 'int',
  3861. 'not null' => true,
  3862. ),
  3863. 'value' => array (
  3864. 'description' => 'TODO: please describe this field!',
  3865. 'type' => 'text',
  3866. 'not null' => false,
  3867. ),
  3868. 'rank' => array (
  3869. 'description' => 'TODO: please describe this field!',
  3870. 'type' => 'int',
  3871. 'not null' => true,
  3872. 'default' => 0,
  3873. ),
  3874. ),
  3875. 'primary key' => array (
  3876. 0 => 'elementresult_relationship_id',
  3877. ),
  3878. 'unique keys' => array (
  3879. 'elementresult_relationship_c1' => array (
  3880. 0 => 'subject_id',
  3881. 1 => 'object_id',
  3882. 2 => 'type_id',
  3883. 3 => 'rank',
  3884. ),
  3885. ),
  3886. 'indexes' => array (
  3887. 'elementresult_relationship_idx1' => array (
  3888. 0 => 'subject_id',
  3889. ),
  3890. 'elementresult_relationship_idx2' => array (
  3891. 0 => 'type_id',
  3892. ),
  3893. 'elementresult_relationship_idx3' => array (
  3894. 0 => 'object_id',
  3895. ),
  3896. 'elementresult_relationship_idx4' => array (
  3897. 0 => 'value',
  3898. ),
  3899. ),
  3900. 'foreign keys' => array (
  3901. 'cvterm' => array (
  3902. 'table' => 'cvterm',
  3903. 'columns' => array (
  3904. 'type_id' => 'cvterm_id',
  3905. ),
  3906. ),
  3907. 'elementresult' => array (
  3908. 'table' => 'elementresult',
  3909. 'columns' => array (
  3910. 'subject_id' => 'elementresult_id',
  3911. 'object_id' => 'elementresult_id',
  3912. ),
  3913. ),
  3914. ),
  3915. );
  3916. return $description;
  3917. }
  3918. /**
  3919. * Implements hook_chado_schema_v1_2_environment()
  3920. * Purpose: To describe the structure of 'environment' to tripal
  3921. * @see tripal_core_chado_insert()
  3922. * @see tripal_core_chado_update()
  3923. * @see tripal_core_chado_select()
  3924. *
  3925. * @return
  3926. * An array describing the 'environment' table
  3927. *
  3928. * @ingroup tripal_chado_v1.2_schema_api
  3929. *
  3930. */
  3931. function tripal_core_chado_schema_v1_2_environment() {
  3932. $description = array (
  3933. 'description' => 'TODO: please describe this table!',
  3934. 'fields' => array (
  3935. 'environment_id' => array (
  3936. 'description' => 'TODO: please describe this field!',
  3937. 'type' => 'serial',
  3938. 'not null' => true,
  3939. ),
  3940. 'uniquename' => array (
  3941. 'description' => 'TODO: please describe this field!',
  3942. 'type' => 'text',
  3943. 'not null' => true,
  3944. ),
  3945. 'description' => array (
  3946. 'description' => 'TODO: please describe this field!',
  3947. 'type' => 'text',
  3948. 'not null' => false,
  3949. ),
  3950. ),
  3951. 'primary key' => array (
  3952. 0 => 'environment_id',
  3953. ),
  3954. 'unique keys' => array (
  3955. 'environment_c1' => array (
  3956. 0 => 'uniquename',
  3957. ),
  3958. ),
  3959. 'indexes' => array (
  3960. 'environment_idx1' => array (
  3961. 0 => 'uniquename',
  3962. ),
  3963. ),
  3964. 'foreign keys' => array (
  3965. ),
  3966. );
  3967. return $description;
  3968. }
  3969. /**
  3970. * Implements hook_chado_schema_v1_2_environment_cvterm()
  3971. * Purpose: To describe the structure of 'environment_cvterm' to tripal
  3972. * @see tripal_core_chado_insert()
  3973. * @see tripal_core_chado_update()
  3974. * @see tripal_core_chado_select()
  3975. *
  3976. * @return
  3977. * An array describing the 'environment_cvterm' table
  3978. *
  3979. * @ingroup tripal_chado_v1.2_schema_api
  3980. *
  3981. */
  3982. function tripal_core_chado_schema_v1_2_environment_cvterm() {
  3983. $description = array (
  3984. 'description' => 'TODO: please describe this table!',
  3985. 'fields' => array (
  3986. 'environment_cvterm_id' => array (
  3987. 'description' => 'TODO: please describe this field!',
  3988. 'type' => 'serial',
  3989. 'not null' => true,
  3990. ),
  3991. 'environment_id' => array (
  3992. 'description' => 'TODO: please describe this field!',
  3993. 'type' => 'int',
  3994. 'not null' => true,
  3995. ),
  3996. 'cvterm_id' => array (
  3997. 'description' => 'TODO: please describe this field!',
  3998. 'type' => 'int',
  3999. 'not null' => true,
  4000. ),
  4001. ),
  4002. 'primary key' => array (
  4003. 0 => 'environment_cvterm_id',
  4004. ),
  4005. 'unique keys' => array (
  4006. 'environment_cvterm_c1' => array (
  4007. 0 => 'environment_id',
  4008. 1 => 'cvterm_id',
  4009. ),
  4010. ),
  4011. 'indexes' => array (
  4012. 'environment_cvterm_idx1' => array (
  4013. 0 => 'environment_id',
  4014. ),
  4015. 'environment_cvterm_idx2' => array (
  4016. 0 => 'cvterm_id',
  4017. ),
  4018. ),
  4019. 'foreign keys' => array (
  4020. 'cvterm' => array (
  4021. 'table' => 'cvterm',
  4022. 'columns' => array (
  4023. 'cvterm_id' => 'cvterm_id',
  4024. ),
  4025. ),
  4026. 'environment' => array (
  4027. 'table' => 'environment',
  4028. 'columns' => array (
  4029. 'environment_id' => 'environment_id',
  4030. ),
  4031. ),
  4032. ),
  4033. );
  4034. return $description;
  4035. }
  4036. /**
  4037. * Implements hook_chado_schema_v1_2_expression()
  4038. * Purpose: To describe the structure of 'expression' to tripal
  4039. * @see tripal_core_chado_insert()
  4040. * @see tripal_core_chado_update()
  4041. * @see tripal_core_chado_select()
  4042. *
  4043. * @return
  4044. * An array describing the 'expression' table
  4045. *
  4046. * @ingroup tripal_chado_v1.2_schema_api
  4047. *
  4048. */
  4049. function tripal_core_chado_schema_v1_2_expression() {
  4050. $description = array (
  4051. 'description' => 'TODO: please describe this table!',
  4052. 'fields' => array (
  4053. 'expression_id' => array (
  4054. 'description' => 'TODO: please describe this field!',
  4055. 'type' => 'serial',
  4056. 'not null' => true,
  4057. ),
  4058. 'uniquename' => array (
  4059. 'description' => 'TODO: please describe this field!',
  4060. 'type' => 'text',
  4061. 'not null' => true,
  4062. ),
  4063. 'md5checksum' => array (
  4064. 'description' => 'TODO: please describe this field!',
  4065. 'type' => 'char',
  4066. 'length' => '32',
  4067. 'not null' => false,
  4068. ),
  4069. 'description' => array (
  4070. 'description' => 'TODO: please describe this field!',
  4071. 'type' => 'text',
  4072. 'not null' => false,
  4073. ),
  4074. ),
  4075. 'primary key' => array (
  4076. 0 => 'expression_id',
  4077. ),
  4078. 'unique keys' => array (
  4079. 'expression_c1' => array (
  4080. 0 => 'uniquename',
  4081. ),
  4082. ),
  4083. 'foreign keys' => array (
  4084. ),
  4085. );
  4086. return $description;
  4087. }
  4088. /**
  4089. * Implements hook_chado_schema_v1_2_expression_cvterm()
  4090. * Purpose: To describe the structure of 'expression_cvterm' to tripal
  4091. * @see tripal_core_chado_insert()
  4092. * @see tripal_core_chado_update()
  4093. * @see tripal_core_chado_select()
  4094. *
  4095. * @return
  4096. * An array describing the 'expression_cvterm' table
  4097. *
  4098. * @ingroup tripal_chado_v1.2_schema_api
  4099. *
  4100. */
  4101. function tripal_core_chado_schema_v1_2_expression_cvterm() {
  4102. $description = array (
  4103. 'description' => 'TODO: please describe this table!',
  4104. 'fields' => array (
  4105. 'expression_cvterm_id' => array (
  4106. 'description' => 'TODO: please describe this field!',
  4107. 'type' => 'serial',
  4108. 'not null' => true,
  4109. ),
  4110. 'expression_id' => array (
  4111. 'description' => 'TODO: please describe this field!',
  4112. 'type' => 'int',
  4113. 'not null' => true,
  4114. ),
  4115. 'cvterm_id' => array (
  4116. 'description' => 'TODO: please describe this field!',
  4117. 'type' => 'int',
  4118. 'not null' => true,
  4119. ),
  4120. 'rank' => array (
  4121. 'description' => 'TODO: please describe this field!',
  4122. 'type' => 'int',
  4123. 'not null' => true,
  4124. 'default' => 0,
  4125. ),
  4126. 'cvterm_type_id' => array (
  4127. 'description' => 'TODO: please describe this field!',
  4128. 'type' => 'int',
  4129. 'not null' => true,
  4130. ),
  4131. ),
  4132. 'primary key' => array (
  4133. 0 => 'expression_cvterm_id',
  4134. ),
  4135. 'unique keys' => array (
  4136. 'expression_cvterm_c1' => array (
  4137. 0 => 'expression_id',
  4138. 1 => 'cvterm_id',
  4139. 2 => 'cvterm_type_id',
  4140. ),
  4141. ),
  4142. 'indexes' => array (
  4143. 'expression_cvterm_idx1' => array (
  4144. 0 => 'expression_id',
  4145. ),
  4146. 'expression_cvterm_idx2' => array (
  4147. 0 => 'cvterm_id',
  4148. ),
  4149. 'expression_cvterm_idx3' => array (
  4150. 0 => 'cvterm_type_id',
  4151. ),
  4152. ),
  4153. 'foreign keys' => array (
  4154. 'cvterm' => array (
  4155. 'table' => 'cvterm',
  4156. 'columns' => array (
  4157. 'cvterm_id' => 'cvterm_id',
  4158. 'cvterm_type_id' => 'cvterm_id',
  4159. ),
  4160. ),
  4161. 'expression' => array (
  4162. 'table' => 'expression',
  4163. 'columns' => array (
  4164. 'expression_id' => 'expression_id',
  4165. ),
  4166. ),
  4167. ),
  4168. );
  4169. return $description;
  4170. }
  4171. /**
  4172. * Implements hook_chado_schema_v1_2_expression_cvtermprop()
  4173. * Purpose: To describe the structure of 'expression_cvtermprop' to tripal
  4174. * @see tripal_core_chado_insert()
  4175. * @see tripal_core_chado_update()
  4176. * @see tripal_core_chado_select()
  4177. *
  4178. * @return
  4179. * An array describing the 'expression_cvtermprop' table
  4180. *
  4181. * @ingroup tripal_chado_v1.2_schema_api
  4182. *
  4183. */
  4184. function tripal_core_chado_schema_v1_2_expression_cvtermprop() {
  4185. $description = array (
  4186. 'description' => 'TODO: please describe this table!',
  4187. 'fields' => array (
  4188. 'expression_cvtermprop_id' => array (
  4189. 'description' => 'TODO: please describe this field!',
  4190. 'type' => 'serial',
  4191. 'not null' => true,
  4192. ),
  4193. 'expression_cvterm_id' => array (
  4194. 'description' => 'TODO: please describe this field!',
  4195. 'type' => 'int',
  4196. 'not null' => true,
  4197. ),
  4198. 'type_id' => array (
  4199. 'description' => 'TODO: please describe this field!',
  4200. 'type' => 'int',
  4201. 'not null' => true,
  4202. ),
  4203. 'value' => array (
  4204. 'description' => 'TODO: please describe this field!',
  4205. 'type' => 'text',
  4206. 'not null' => false,
  4207. ),
  4208. 'rank' => array (
  4209. 'description' => 'TODO: please describe this field!',
  4210. 'type' => 'int',
  4211. 'not null' => true,
  4212. 'default' => 0,
  4213. ),
  4214. ),
  4215. 'primary key' => array (
  4216. 0 => 'expression_cvtermprop_id',
  4217. ),
  4218. 'unique keys' => array (
  4219. 'expression_cvtermprop_c1' => array (
  4220. 0 => 'expression_cvterm_id',
  4221. 1 => 'type_id',
  4222. 2 => 'rank',
  4223. ),
  4224. ),
  4225. 'indexes' => array (
  4226. 'expression_cvtermprop_idx1' => array (
  4227. 0 => 'expression_cvterm_id',
  4228. ),
  4229. 'expression_cvtermprop_idx2' => array (
  4230. 0 => 'type_id',
  4231. ),
  4232. ),
  4233. 'foreign keys' => array (
  4234. 'cvterm' => array (
  4235. 'table' => 'cvterm',
  4236. 'columns' => array (
  4237. 'type_id' => 'cvterm_id',
  4238. ),
  4239. ),
  4240. 'expression_cvterm' => array (
  4241. 'table' => 'expression_cvterm',
  4242. 'columns' => array (
  4243. 'expression_cvterm_id' => 'expression_cvterm_id',
  4244. ),
  4245. ),
  4246. ),
  4247. );
  4248. return $description;
  4249. }
  4250. /**
  4251. * Implements hook_chado_schema_v1_2_expression_image()
  4252. * Purpose: To describe the structure of 'expression_image' to tripal
  4253. * @see tripal_core_chado_insert()
  4254. * @see tripal_core_chado_update()
  4255. * @see tripal_core_chado_select()
  4256. *
  4257. * @return
  4258. * An array describing the 'expression_image' table
  4259. *
  4260. * @ingroup tripal_chado_v1.2_schema_api
  4261. *
  4262. */
  4263. function tripal_core_chado_schema_v1_2_expression_image() {
  4264. $description = array (
  4265. 'description' => 'TODO: please describe this table!',
  4266. 'fields' => array (
  4267. 'expression_image_id' => array (
  4268. 'description' => 'TODO: please describe this field!',
  4269. 'type' => 'serial',
  4270. 'not null' => true,
  4271. ),
  4272. 'expression_id' => array (
  4273. 'description' => 'TODO: please describe this field!',
  4274. 'type' => 'int',
  4275. 'not null' => true,
  4276. ),
  4277. 'eimage_id' => array (
  4278. 'description' => 'TODO: please describe this field!',
  4279. 'type' => 'int',
  4280. 'not null' => true,
  4281. ),
  4282. ),
  4283. 'primary key' => array (
  4284. 0 => 'expression_image_id',
  4285. ),
  4286. 'unique keys' => array (
  4287. 'expression_image_c1' => array (
  4288. 0 => 'expression_id',
  4289. 1 => 'eimage_id',
  4290. ),
  4291. ),
  4292. 'indexes' => array (
  4293. 'expression_image_idx1' => array (
  4294. 0 => 'expression_id',
  4295. ),
  4296. 'expression_image_idx2' => array (
  4297. 0 => 'eimage_id',
  4298. ),
  4299. ),
  4300. 'foreign keys' => array (
  4301. 'expression' => array (
  4302. 'table' => 'expression',
  4303. 'columns' => array (
  4304. 'expression_id' => 'expression_id',
  4305. ),
  4306. ),
  4307. 'eimage' => array (
  4308. 'table' => 'eimage',
  4309. 'columns' => array (
  4310. 'eimage_id' => 'eimage_id',
  4311. ),
  4312. ),
  4313. ),
  4314. );
  4315. return $description;
  4316. }
  4317. /**
  4318. * Implements hook_chado_schema_v1_2_expression_pub()
  4319. * Purpose: To describe the structure of 'expression_pub' to tripal
  4320. * @see tripal_core_chado_insert()
  4321. * @see tripal_core_chado_update()
  4322. * @see tripal_core_chado_select()
  4323. *
  4324. * @return
  4325. * An array describing the 'expression_pub' table
  4326. *
  4327. * @ingroup tripal_chado_v1.2_schema_api
  4328. *
  4329. */
  4330. function tripal_core_chado_schema_v1_2_expression_pub() {
  4331. $description = array (
  4332. 'description' => 'TODO: please describe this table!',
  4333. 'fields' => array (
  4334. 'expression_pub_id' => array (
  4335. 'description' => 'TODO: please describe this field!',
  4336. 'type' => 'serial',
  4337. 'not null' => true,
  4338. ),
  4339. 'expression_id' => array (
  4340. 'description' => 'TODO: please describe this field!',
  4341. 'type' => 'int',
  4342. 'not null' => true,
  4343. ),
  4344. 'pub_id' => array (
  4345. 'description' => 'TODO: please describe this field!',
  4346. 'type' => 'int',
  4347. 'not null' => true,
  4348. ),
  4349. ),
  4350. 'primary key' => array (
  4351. 0 => 'expression_pub_id',
  4352. ),
  4353. 'unique keys' => array (
  4354. 'expression_pub_c1' => array (
  4355. 0 => 'expression_id',
  4356. 1 => 'pub_id',
  4357. ),
  4358. ),
  4359. 'indexes' => array (
  4360. 'expression_pub_idx1' => array (
  4361. 0 => 'expression_id',
  4362. ),
  4363. 'expression_pub_idx2' => array (
  4364. 0 => 'pub_id',
  4365. ),
  4366. ),
  4367. 'foreign keys' => array (
  4368. 'pub' => array (
  4369. 'table' => 'pub',
  4370. 'columns' => array (
  4371. 'pub_id' => 'pub_id',
  4372. ),
  4373. ),
  4374. 'expression' => array (
  4375. 'table' => 'expression',
  4376. 'columns' => array (
  4377. 'expression_id' => 'expression_id',
  4378. ),
  4379. ),
  4380. ),
  4381. );
  4382. return $description;
  4383. }
  4384. /**
  4385. * Implements hook_chado_schema_v1_2_expressionprop()
  4386. * Purpose: To describe the structure of 'expressionprop' to tripal
  4387. * @see tripal_core_chado_insert()
  4388. * @see tripal_core_chado_update()
  4389. * @see tripal_core_chado_select()
  4390. *
  4391. * @return
  4392. * An array describing the 'expressionprop' table
  4393. *
  4394. * @ingroup tripal_chado_v1.2_schema_api
  4395. *
  4396. */
  4397. function tripal_core_chado_schema_v1_2_expressionprop() {
  4398. $description = array (
  4399. 'description' => 'TODO: please describe this table!',
  4400. 'fields' => array (
  4401. 'expressionprop_id' => array (
  4402. 'description' => 'TODO: please describe this field!',
  4403. 'type' => 'serial',
  4404. 'not null' => true,
  4405. ),
  4406. 'expression_id' => array (
  4407. 'description' => 'TODO: please describe this field!',
  4408. 'type' => 'int',
  4409. 'not null' => true,
  4410. ),
  4411. 'type_id' => array (
  4412. 'description' => 'TODO: please describe this field!',
  4413. 'type' => 'int',
  4414. 'not null' => true,
  4415. ),
  4416. 'value' => array (
  4417. 'description' => 'TODO: please describe this field!',
  4418. 'type' => 'text',
  4419. 'not null' => false,
  4420. ),
  4421. 'rank' => array (
  4422. 'description' => 'TODO: please describe this field!',
  4423. 'type' => 'int',
  4424. 'not null' => true,
  4425. 'default' => 0,
  4426. ),
  4427. ),
  4428. 'primary key' => array (
  4429. 0 => 'expressionprop_id',
  4430. ),
  4431. 'unique keys' => array (
  4432. 'expressionprop_c1' => array (
  4433. 0 => 'expression_id',
  4434. 1 => 'type_id',
  4435. 2 => 'rank',
  4436. ),
  4437. ),
  4438. 'indexes' => array (
  4439. 'expressionprop_idx1' => array (
  4440. 0 => 'expression_id',
  4441. ),
  4442. 'expressionprop_idx2' => array (
  4443. 0 => 'type_id',
  4444. ),
  4445. ),
  4446. 'foreign keys' => array (
  4447. 'cvterm' => array (
  4448. 'table' => 'cvterm',
  4449. 'columns' => array (
  4450. 'type_id' => 'cvterm_id',
  4451. ),
  4452. ),
  4453. 'expression' => array (
  4454. 'table' => 'expression',
  4455. 'columns' => array (
  4456. 'expression_id' => 'expression_id',
  4457. ),
  4458. ),
  4459. ),
  4460. );
  4461. return $description;
  4462. }
  4463. /**
  4464. * Implements hook_chado_schema_v1_2_feature()
  4465. * Purpose: To describe the structure of 'feature' to tripal
  4466. * @see tripal_core_chado_insert()
  4467. * @see tripal_core_chado_update()
  4468. * @see tripal_core_chado_select()
  4469. *
  4470. * @return
  4471. * An array describing the 'feature' table
  4472. *
  4473. * @ingroup tripal_chado_v1.2_schema_api
  4474. *
  4475. */
  4476. function tripal_core_chado_schema_v1_2_feature() {
  4477. $description = array (
  4478. 'description' => 'TODO: please describe this table!',
  4479. 'fields' => array (
  4480. 'feature_id' => array (
  4481. 'description' => 'TODO: please describe this field!',
  4482. 'type' => 'serial',
  4483. 'not null' => true,
  4484. ),
  4485. 'dbxref_id' => array (
  4486. 'description' => 'TODO: please describe this field!',
  4487. 'type' => 'int',
  4488. 'not null' => false,
  4489. ),
  4490. 'organism_id' => array (
  4491. 'description' => 'TODO: please describe this field!',
  4492. 'type' => 'int',
  4493. 'not null' => true,
  4494. ),
  4495. 'name' => array (
  4496. 'description' => 'TODO: please describe this field!',
  4497. 'type' => 'varchar',
  4498. 'length' => '255',
  4499. 'not null' => false,
  4500. ),
  4501. 'uniquename' => array (
  4502. 'description' => 'TODO: please describe this field!',
  4503. 'type' => 'text',
  4504. 'not null' => true,
  4505. ),
  4506. 'residues' => array (
  4507. 'description' => 'TODO: please describe this field!',
  4508. 'type' => 'text',
  4509. 'not null' => false,
  4510. ),
  4511. 'seqlen' => array (
  4512. 'description' => 'TODO: please describe this field!',
  4513. 'type' => 'int',
  4514. 'not null' => false,
  4515. ),
  4516. 'md5checksum' => array (
  4517. 'description' => 'TODO: please describe this field!',
  4518. 'type' => 'char',
  4519. 'length' => '32',
  4520. 'not null' => false,
  4521. ),
  4522. 'type_id' => array (
  4523. 'description' => 'TODO: please describe this field!',
  4524. 'type' => 'int',
  4525. 'not null' => true,
  4526. ),
  4527. 'is_analysis' => array (
  4528. 'description' => 'TODO: please describe this field!',
  4529. 'type' => 'boolean',
  4530. 'not null' => true,
  4531. 'default' => 'als',
  4532. ),
  4533. 'is_obsolete' => array (
  4534. 'description' => 'TODO: please describe this field!',
  4535. 'type' => 'boolean',
  4536. 'not null' => true,
  4537. 'default' => 'als',
  4538. ),
  4539. 'timeaccessioned' => array (
  4540. 'description' => 'TODO: please describe this field!',
  4541. 'type' => 'datetime',
  4542. 'not null' => true,
  4543. 'default' => 'ow(',
  4544. ),
  4545. 'timelastmodified' => array (
  4546. 'description' => 'TODO: please describe this field!',
  4547. 'type' => 'datetime',
  4548. 'not null' => true,
  4549. 'default' => 'ow(',
  4550. ),
  4551. ),
  4552. 'primary key' => array (
  4553. 0 => 'feature_id',
  4554. ),
  4555. 'unique keys' => array (
  4556. 'feature_c1' => array (
  4557. 0 => 'organism_id',
  4558. 1 => 'uniquename',
  4559. 2 => 'type_id',
  4560. ),
  4561. ),
  4562. 'indexes' => array (
  4563. 'feature_idx1' => array (
  4564. 0 => 'dbxref_id',
  4565. ),
  4566. 'feature_idx2' => array (
  4567. 0 => 'organism_id',
  4568. ),
  4569. 'feature_idx3' => array (
  4570. 0 => 'type_id',
  4571. ),
  4572. 'feature_idx4' => array (
  4573. 0 => 'uniquename',
  4574. ),
  4575. 'feature_name_ind1' => array (
  4576. 0 => 'name',
  4577. ),
  4578. ),
  4579. 'foreign keys' => array (
  4580. 'organism' => array (
  4581. 'table' => 'organism',
  4582. 'columns' => array (
  4583. 'organism_id' => 'organism_id',
  4584. ),
  4585. ),
  4586. 'cvterm' => array (
  4587. 'table' => 'cvterm',
  4588. 'columns' => array (
  4589. 'type_id' => 'cvterm_id',
  4590. ),
  4591. ),
  4592. 'dbxref' => array (
  4593. 'table' => 'dbxref',
  4594. 'columns' => array (
  4595. 'dbxref_id' => 'dbxref_id',
  4596. ),
  4597. ),
  4598. ),
  4599. );
  4600. return $description;
  4601. }
  4602. /**
  4603. * Implements hook_chado_schema_v1_2_feature_cvterm()
  4604. * Purpose: To describe the structure of 'feature_cvterm' to tripal
  4605. * @see tripal_core_chado_insert()
  4606. * @see tripal_core_chado_update()
  4607. * @see tripal_core_chado_select()
  4608. *
  4609. * @return
  4610. * An array describing the 'feature_cvterm' table
  4611. *
  4612. * @ingroup tripal_chado_v1.2_schema_api
  4613. *
  4614. */
  4615. function tripal_core_chado_schema_v1_2_feature_cvterm() {
  4616. $description = array (
  4617. 'description' => 'TODO: please describe this table!',
  4618. 'fields' => array (
  4619. 'feature_cvterm_id' => array (
  4620. 'description' => 'TODO: please describe this field!',
  4621. 'type' => 'serial',
  4622. 'not null' => true,
  4623. ),
  4624. 'feature_id' => array (
  4625. 'description' => 'TODO: please describe this field!',
  4626. 'type' => 'int',
  4627. 'not null' => true,
  4628. ),
  4629. 'cvterm_id' => array (
  4630. 'description' => 'TODO: please describe this field!',
  4631. 'type' => 'int',
  4632. 'not null' => true,
  4633. ),
  4634. 'pub_id' => array (
  4635. 'description' => 'TODO: please describe this field!',
  4636. 'type' => 'int',
  4637. 'not null' => true,
  4638. ),
  4639. 'is_not' => array (
  4640. 'description' => 'TODO: please describe this field!',
  4641. 'type' => 'boolean',
  4642. 'not null' => true,
  4643. 'default' => 'als',
  4644. ),
  4645. 'rank' => array (
  4646. 'description' => 'TODO: please describe this field!',
  4647. 'type' => 'int',
  4648. 'not null' => true,
  4649. 'default' => 0,
  4650. ),
  4651. ),
  4652. 'primary key' => array (
  4653. 0 => 'feature_cvterm_id',
  4654. ),
  4655. 'unique keys' => array (
  4656. 'feature_cvterm_c1' => array (
  4657. 0 => 'feature_id',
  4658. 1 => 'cvterm_id',
  4659. 2 => 'pub_id',
  4660. 3 => 'rank',
  4661. ),
  4662. ),
  4663. 'indexes' => array (
  4664. 'feature_cvterm_idx1' => array (
  4665. 0 => 'feature_id',
  4666. ),
  4667. 'feature_cvterm_idx2' => array (
  4668. 0 => 'cvterm_id',
  4669. ),
  4670. 'feature_cvterm_idx3' => array (
  4671. 0 => 'pub_id',
  4672. ),
  4673. ),
  4674. 'foreign keys' => array (
  4675. 'cvterm' => array (
  4676. 'table' => 'cvterm',
  4677. 'columns' => array (
  4678. 'cvterm_id' => 'cvterm_id',
  4679. ),
  4680. ),
  4681. 'pub' => array (
  4682. 'table' => 'pub',
  4683. 'columns' => array (
  4684. 'pub_id' => 'pub_id',
  4685. ),
  4686. ),
  4687. 'feature' => array (
  4688. 'table' => 'feature',
  4689. 'columns' => array (
  4690. 'feature_id' => 'feature_id',
  4691. ),
  4692. ),
  4693. ),
  4694. );
  4695. return $description;
  4696. }
  4697. /**
  4698. * Implements hook_chado_schema_v1_2_feature_cvterm_dbxref()
  4699. * Purpose: To describe the structure of 'feature_cvterm_dbxref' to tripal
  4700. * @see tripal_core_chado_insert()
  4701. * @see tripal_core_chado_update()
  4702. * @see tripal_core_chado_select()
  4703. *
  4704. * @return
  4705. * An array describing the 'feature_cvterm_dbxref' table
  4706. *
  4707. * @ingroup tripal_chado_v1.2_schema_api
  4708. *
  4709. */
  4710. function tripal_core_chado_schema_v1_2_feature_cvterm_dbxref() {
  4711. $description = array (
  4712. 'description' => 'TODO: please describe this table!',
  4713. 'fields' => array (
  4714. 'feature_cvterm_dbxref_id' => array (
  4715. 'description' => 'TODO: please describe this field!',
  4716. 'type' => 'serial',
  4717. 'not null' => true,
  4718. ),
  4719. 'feature_cvterm_id' => array (
  4720. 'description' => 'TODO: please describe this field!',
  4721. 'type' => 'int',
  4722. 'not null' => true,
  4723. ),
  4724. 'dbxref_id' => array (
  4725. 'description' => 'TODO: please describe this field!',
  4726. 'type' => 'int',
  4727. 'not null' => true,
  4728. ),
  4729. ),
  4730. 'primary key' => array (
  4731. 0 => 'feature_cvterm_dbxref_id',
  4732. ),
  4733. 'unique keys' => array (
  4734. 'feature_cvterm_dbxref_c1' => array (
  4735. 0 => 'feature_cvterm_id',
  4736. 1 => 'dbxref_id',
  4737. ),
  4738. ),
  4739. 'indexes' => array (
  4740. 'feature_cvterm_dbxref_idx1' => array (
  4741. 0 => 'feature_cvterm_id',
  4742. ),
  4743. 'feature_cvterm_dbxref_idx2' => array (
  4744. 0 => 'dbxref_id',
  4745. ),
  4746. ),
  4747. 'foreign keys' => array (
  4748. 'feature_cvterm' => array (
  4749. 'table' => 'feature_cvterm',
  4750. 'columns' => array (
  4751. 'feature_cvterm_id' => 'feature_cvterm_id',
  4752. ),
  4753. ),
  4754. 'dbxref' => array (
  4755. 'table' => 'dbxref',
  4756. 'columns' => array (
  4757. 'dbxref_id' => 'dbxref_id',
  4758. ),
  4759. ),
  4760. ),
  4761. );
  4762. return $description;
  4763. }
  4764. /**
  4765. * Implements hook_chado_schema_v1_2_feature_cvterm_pub()
  4766. * Purpose: To describe the structure of 'feature_cvterm_pub' to tripal
  4767. * @see tripal_core_chado_insert()
  4768. * @see tripal_core_chado_update()
  4769. * @see tripal_core_chado_select()
  4770. *
  4771. * @return
  4772. * An array describing the 'feature_cvterm_pub' table
  4773. *
  4774. * @ingroup tripal_chado_v1.2_schema_api
  4775. *
  4776. */
  4777. function tripal_core_chado_schema_v1_2_feature_cvterm_pub() {
  4778. $description = array (
  4779. 'description' => 'TODO: please describe this table!',
  4780. 'fields' => array (
  4781. 'feature_cvterm_pub_id' => array (
  4782. 'description' => 'TODO: please describe this field!',
  4783. 'type' => 'serial',
  4784. 'not null' => true,
  4785. ),
  4786. 'feature_cvterm_id' => array (
  4787. 'description' => 'TODO: please describe this field!',
  4788. 'type' => 'int',
  4789. 'not null' => true,
  4790. ),
  4791. 'pub_id' => array (
  4792. 'description' => 'TODO: please describe this field!',
  4793. 'type' => 'int',
  4794. 'not null' => true,
  4795. ),
  4796. ),
  4797. 'primary key' => array (
  4798. 0 => 'feature_cvterm_pub_id',
  4799. ),
  4800. 'unique keys' => array (
  4801. 'feature_cvterm_pub_c1' => array (
  4802. 0 => 'feature_cvterm_id',
  4803. 1 => 'pub_id',
  4804. ),
  4805. ),
  4806. 'indexes' => array (
  4807. 'feature_cvterm_pub_idx1' => array (
  4808. 0 => 'feature_cvterm_id',
  4809. ),
  4810. 'feature_cvterm_pub_idx2' => array (
  4811. 0 => 'pub_id',
  4812. ),
  4813. ),
  4814. 'foreign keys' => array (
  4815. 'feature_cvterm' => array (
  4816. 'table' => 'feature_cvterm',
  4817. 'columns' => array (
  4818. 'feature_cvterm_id' => 'feature_cvterm_id',
  4819. ),
  4820. ),
  4821. 'pub' => array (
  4822. 'table' => 'pub',
  4823. 'columns' => array (
  4824. 'pub_id' => 'pub_id',
  4825. ),
  4826. ),
  4827. ),
  4828. );
  4829. return $description;
  4830. }
  4831. /**
  4832. * Implements hook_chado_schema_v1_2_feature_cvtermprop()
  4833. * Purpose: To describe the structure of 'feature_cvtermprop' to tripal
  4834. * @see tripal_core_chado_insert()
  4835. * @see tripal_core_chado_update()
  4836. * @see tripal_core_chado_select()
  4837. *
  4838. * @return
  4839. * An array describing the 'feature_cvtermprop' table
  4840. *
  4841. * @ingroup tripal_chado_v1.2_schema_api
  4842. *
  4843. */
  4844. function tripal_core_chado_schema_v1_2_feature_cvtermprop() {
  4845. $description = array (
  4846. 'description' => 'TODO: please describe this table!',
  4847. 'fields' => array (
  4848. 'feature_cvtermprop_id' => array (
  4849. 'description' => 'TODO: please describe this field!',
  4850. 'type' => 'serial',
  4851. 'not null' => true,
  4852. ),
  4853. 'feature_cvterm_id' => array (
  4854. 'description' => 'TODO: please describe this field!',
  4855. 'type' => 'int',
  4856. 'not null' => true,
  4857. ),
  4858. 'type_id' => array (
  4859. 'description' => 'TODO: please describe this field!',
  4860. 'type' => 'int',
  4861. 'not null' => true,
  4862. ),
  4863. 'value' => array (
  4864. 'description' => 'TODO: please describe this field!',
  4865. 'type' => 'text',
  4866. 'not null' => false,
  4867. ),
  4868. 'rank' => array (
  4869. 'description' => 'TODO: please describe this field!',
  4870. 'type' => 'int',
  4871. 'not null' => true,
  4872. 'default' => 0,
  4873. ),
  4874. ),
  4875. 'primary key' => array (
  4876. 0 => 'feature_cvtermprop_id',
  4877. ),
  4878. 'unique keys' => array (
  4879. 'feature_cvtermprop_c1' => array (
  4880. 0 => 'feature_cvterm_id',
  4881. 1 => 'type_id',
  4882. 2 => 'rank',
  4883. ),
  4884. ),
  4885. 'indexes' => array (
  4886. 'feature_cvtermprop_idx1' => array (
  4887. 0 => 'feature_cvterm_id',
  4888. ),
  4889. 'feature_cvtermprop_idx2' => array (
  4890. 0 => 'type_id',
  4891. ),
  4892. ),
  4893. 'foreign keys' => array (
  4894. 'cvterm' => array (
  4895. 'table' => 'cvterm',
  4896. 'columns' => array (
  4897. 'type_id' => 'cvterm_id',
  4898. ),
  4899. ),
  4900. 'feature_cvterm' => array (
  4901. 'table' => 'feature_cvterm',
  4902. 'columns' => array (
  4903. 'feature_cvterm_id' => 'feature_cvterm_id',
  4904. ),
  4905. ),
  4906. ),
  4907. );
  4908. return $description;
  4909. }
  4910. /**
  4911. * Implements hook_chado_schema_v1_2_feature_dbxref()
  4912. * Purpose: To describe the structure of 'feature_dbxref' to tripal
  4913. * @see tripal_core_chado_insert()
  4914. * @see tripal_core_chado_update()
  4915. * @see tripal_core_chado_select()
  4916. *
  4917. * @return
  4918. * An array describing the 'feature_dbxref' table
  4919. *
  4920. * @ingroup tripal_chado_v1.2_schema_api
  4921. *
  4922. */
  4923. function tripal_core_chado_schema_v1_2_feature_dbxref() {
  4924. $description = array (
  4925. 'description' => 'TODO: please describe this table!',
  4926. 'fields' => array (
  4927. 'feature_dbxref_id' => array (
  4928. 'description' => 'TODO: please describe this field!',
  4929. 'type' => 'serial',
  4930. 'not null' => true,
  4931. ),
  4932. 'feature_id' => array (
  4933. 'description' => 'TODO: please describe this field!',
  4934. 'type' => 'int',
  4935. 'not null' => true,
  4936. ),
  4937. 'dbxref_id' => array (
  4938. 'description' => 'TODO: please describe this field!',
  4939. 'type' => 'int',
  4940. 'not null' => true,
  4941. ),
  4942. 'is_current' => array (
  4943. 'description' => 'TODO: please describe this field!',
  4944. 'type' => 'boolean',
  4945. 'not null' => true,
  4946. 'default' => 'ru',
  4947. ),
  4948. ),
  4949. 'primary key' => array (
  4950. 0 => 'feature_dbxref_id',
  4951. ),
  4952. 'unique keys' => array (
  4953. 'feature_dbxref_c1' => array (
  4954. 0 => 'feature_id',
  4955. 1 => 'dbxref_id',
  4956. ),
  4957. ),
  4958. 'indexes' => array (
  4959. 'feature_dbxref_idx1' => array (
  4960. 0 => 'feature_id',
  4961. ),
  4962. 'feature_dbxref_idx2' => array (
  4963. 0 => 'dbxref_id',
  4964. ),
  4965. ),
  4966. 'foreign keys' => array (
  4967. 'dbxref' => array (
  4968. 'table' => 'dbxref',
  4969. 'columns' => array (
  4970. 'dbxref_id' => 'dbxref_id',
  4971. ),
  4972. ),
  4973. 'feature' => array (
  4974. 'table' => 'feature',
  4975. 'columns' => array (
  4976. 'feature_id' => 'feature_id',
  4977. ),
  4978. ),
  4979. ),
  4980. );
  4981. return $description;
  4982. }
  4983. /**
  4984. * Implements hook_chado_schema_v1_2_feature_expression()
  4985. * Purpose: To describe the structure of 'feature_expression' to tripal
  4986. * @see tripal_core_chado_insert()
  4987. * @see tripal_core_chado_update()
  4988. * @see tripal_core_chado_select()
  4989. *
  4990. * @return
  4991. * An array describing the 'feature_expression' table
  4992. *
  4993. * @ingroup tripal_chado_v1.2_schema_api
  4994. *
  4995. */
  4996. function tripal_core_chado_schema_v1_2_feature_expression() {
  4997. $description = array (
  4998. 'description' => 'TODO: please describe this table!',
  4999. 'fields' => array (
  5000. 'feature_expression_id' => array (
  5001. 'description' => 'TODO: please describe this field!',
  5002. 'type' => 'serial',
  5003. 'not null' => true,
  5004. ),
  5005. 'expression_id' => array (
  5006. 'description' => 'TODO: please describe this field!',
  5007. 'type' => 'int',
  5008. 'not null' => true,
  5009. ),
  5010. 'feature_id' => array (
  5011. 'description' => 'TODO: please describe this field!',
  5012. 'type' => 'int',
  5013. 'not null' => true,
  5014. ),
  5015. 'pub_id' => array (
  5016. 'description' => 'TODO: please describe this field!',
  5017. 'type' => 'int',
  5018. 'not null' => true,
  5019. ),
  5020. ),
  5021. 'primary key' => array (
  5022. 0 => 'feature_expression_id',
  5023. ),
  5024. 'unique keys' => array (
  5025. 'feature_expression_c1' => array (
  5026. 0 => 'expression_id',
  5027. 1 => 'feature_id',
  5028. 2 => 'pub_id',
  5029. ),
  5030. ),
  5031. 'indexes' => array (
  5032. 'feature_expression_idx1' => array (
  5033. 0 => 'expression_id',
  5034. ),
  5035. 'feature_expression_idx2' => array (
  5036. 0 => 'feature_id',
  5037. ),
  5038. 'feature_expression_idx3' => array (
  5039. 0 => 'pub_id',
  5040. ),
  5041. ),
  5042. 'foreign keys' => array (
  5043. 'pub' => array (
  5044. 'table' => 'pub',
  5045. 'columns' => array (
  5046. 'pub_id' => 'pub_id',
  5047. ),
  5048. ),
  5049. 'feature' => array (
  5050. 'table' => 'feature',
  5051. 'columns' => array (
  5052. 'feature_id' => 'feature_id',
  5053. ),
  5054. ),
  5055. 'expression' => array (
  5056. 'table' => 'expression',
  5057. 'columns' => array (
  5058. 'expression_id' => 'expression_id',
  5059. ),
  5060. ),
  5061. ),
  5062. );
  5063. return $description;
  5064. }
  5065. /**
  5066. * Implements hook_chado_schema_v1_2_feature_expressionprop()
  5067. * Purpose: To describe the structure of 'feature_expressionprop' to tripal
  5068. * @see tripal_core_chado_insert()
  5069. * @see tripal_core_chado_update()
  5070. * @see tripal_core_chado_select()
  5071. *
  5072. * @return
  5073. * An array describing the 'feature_expressionprop' table
  5074. *
  5075. * @ingroup tripal_chado_v1.2_schema_api
  5076. *
  5077. */
  5078. function tripal_core_chado_schema_v1_2_feature_expressionprop() {
  5079. $description = array (
  5080. 'description' => 'TODO: please describe this table!',
  5081. 'fields' => array (
  5082. 'feature_expressionprop_id' => array (
  5083. 'description' => 'TODO: please describe this field!',
  5084. 'type' => 'serial',
  5085. 'not null' => true,
  5086. ),
  5087. 'feature_expression_id' => array (
  5088. 'description' => 'TODO: please describe this field!',
  5089. 'type' => 'int',
  5090. 'not null' => true,
  5091. ),
  5092. 'type_id' => array (
  5093. 'description' => 'TODO: please describe this field!',
  5094. 'type' => 'int',
  5095. 'not null' => true,
  5096. ),
  5097. 'value' => array (
  5098. 'description' => 'TODO: please describe this field!',
  5099. 'type' => 'text',
  5100. 'not null' => false,
  5101. ),
  5102. 'rank' => array (
  5103. 'description' => 'TODO: please describe this field!',
  5104. 'type' => 'int',
  5105. 'not null' => true,
  5106. 'default' => 0,
  5107. ),
  5108. ),
  5109. 'primary key' => array (
  5110. 0 => 'feature_expressionprop_id',
  5111. ),
  5112. 'unique keys' => array (
  5113. 'feature_expressionprop_c1' => array (
  5114. 0 => 'feature_expression_id',
  5115. 1 => 'type_id',
  5116. 2 => 'rank',
  5117. ),
  5118. ),
  5119. 'indexes' => array (
  5120. 'feature_expressionprop_idx1' => array (
  5121. 0 => 'feature_expression_id',
  5122. ),
  5123. 'feature_expressionprop_idx2' => array (
  5124. 0 => 'type_id',
  5125. ),
  5126. ),
  5127. 'foreign keys' => array (
  5128. 'cvterm' => array (
  5129. 'table' => 'cvterm',
  5130. 'columns' => array (
  5131. 'type_id' => 'cvterm_id',
  5132. ),
  5133. ),
  5134. 'feature_expression' => array (
  5135. 'table' => 'feature_expression',
  5136. 'columns' => array (
  5137. 'feature_expression_id' => 'feature_expression_id',
  5138. ),
  5139. ),
  5140. ),
  5141. );
  5142. return $description;
  5143. }
  5144. /**
  5145. * Implements hook_chado_schema_v1_2_feature_genotype()
  5146. * Purpose: To describe the structure of 'feature_genotype' to tripal
  5147. * @see tripal_core_chado_insert()
  5148. * @see tripal_core_chado_update()
  5149. * @see tripal_core_chado_select()
  5150. *
  5151. * @return
  5152. * An array describing the 'feature_genotype' table
  5153. *
  5154. * @ingroup tripal_chado_v1.2_schema_api
  5155. *
  5156. */
  5157. function tripal_core_chado_schema_v1_2_feature_genotype() {
  5158. $description = array (
  5159. 'description' => 'TODO: please describe this table!',
  5160. 'fields' => array (
  5161. 'feature_genotype_id' => array (
  5162. 'description' => 'TODO: please describe this field!',
  5163. 'type' => 'serial',
  5164. 'not null' => true,
  5165. ),
  5166. 'feature_id' => array (
  5167. 'description' => 'TODO: please describe this field!',
  5168. 'type' => 'int',
  5169. 'not null' => true,
  5170. ),
  5171. 'genotype_id' => array (
  5172. 'description' => 'TODO: please describe this field!',
  5173. 'type' => 'int',
  5174. 'not null' => true,
  5175. ),
  5176. 'chromosome_id' => array (
  5177. 'description' => 'TODO: please describe this field!',
  5178. 'type' => 'int',
  5179. 'not null' => false,
  5180. ),
  5181. 'rank' => array (
  5182. 'description' => 'TODO: please describe this field!',
  5183. 'type' => 'int',
  5184. 'not null' => true,
  5185. ),
  5186. 'cgroup' => array (
  5187. 'description' => 'TODO: please describe this field!',
  5188. 'type' => 'int',
  5189. 'not null' => true,
  5190. ),
  5191. 'cvterm_id' => array (
  5192. 'description' => 'TODO: please describe this field!',
  5193. 'type' => 'int',
  5194. 'not null' => true,
  5195. ),
  5196. ),
  5197. 'primary key' => array (
  5198. 0 => 'feature_genotype_id',
  5199. ),
  5200. 'unique keys' => array (
  5201. 'feature_genotype_c1' => array (
  5202. 0 => 'feature_id',
  5203. 1 => 'genotype_id',
  5204. 2 => 'cvterm_id',
  5205. 3 => 'chromosome_id',
  5206. 4 => 'rank',
  5207. 5 => 'cgroup',
  5208. ),
  5209. ),
  5210. 'indexes' => array (
  5211. 'feature_genotype_idx1' => array (
  5212. 0 => 'feature_id',
  5213. ),
  5214. 'feature_genotype_idx2' => array (
  5215. 0 => 'genotype_id',
  5216. ),
  5217. ),
  5218. 'foreign keys' => array (
  5219. 'cvterm' => array (
  5220. 'table' => 'cvterm',
  5221. 'columns' => array (
  5222. 'cvterm_id' => 'cvterm_id',
  5223. ),
  5224. ),
  5225. 'feature' => array (
  5226. 'table' => 'feature',
  5227. 'columns' => array (
  5228. 'feature_id' => 'feature_id',
  5229. 'chromosome_id' => 'feature_id',
  5230. ),
  5231. ),
  5232. 'genotype' => array (
  5233. 'table' => 'genotype',
  5234. 'columns' => array (
  5235. 'genotype_id' => 'genotype_id',
  5236. ),
  5237. ),
  5238. ),
  5239. );
  5240. return $description;
  5241. }
  5242. /**
  5243. * Implements hook_chado_schema_v1_2_feature_phenotype()
  5244. * Purpose: To describe the structure of 'feature_phenotype' to tripal
  5245. * @see tripal_core_chado_insert()
  5246. * @see tripal_core_chado_update()
  5247. * @see tripal_core_chado_select()
  5248. *
  5249. * @return
  5250. * An array describing the 'feature_phenotype' table
  5251. *
  5252. * @ingroup tripal_chado_v1.2_schema_api
  5253. *
  5254. */
  5255. function tripal_core_chado_schema_v1_2_feature_phenotype() {
  5256. $description = array (
  5257. 'description' => 'TODO: please describe this table!',
  5258. 'fields' => array (
  5259. 'feature_phenotype_id' => array (
  5260. 'description' => 'TODO: please describe this field!',
  5261. 'type' => 'serial',
  5262. 'not null' => true,
  5263. ),
  5264. 'feature_id' => array (
  5265. 'description' => 'TODO: please describe this field!',
  5266. 'type' => 'int',
  5267. 'not null' => true,
  5268. ),
  5269. 'phenotype_id' => array (
  5270. 'description' => 'TODO: please describe this field!',
  5271. 'type' => 'int',
  5272. 'not null' => true,
  5273. ),
  5274. ),
  5275. 'primary key' => array (
  5276. 0 => 'feature_phenotype_id',
  5277. ),
  5278. 'unique keys' => array (
  5279. 'feature_phenotype_c1' => array (
  5280. 0 => 'feature_id',
  5281. 1 => 'phenotype_id',
  5282. ),
  5283. ),
  5284. 'indexes' => array (
  5285. 'feature_phenotype_idx1' => array (
  5286. 0 => 'feature_id',
  5287. ),
  5288. 'feature_phenotype_idx2' => array (
  5289. 0 => 'phenotype_id',
  5290. ),
  5291. ),
  5292. 'foreign keys' => array (
  5293. 'feature' => array (
  5294. 'table' => 'feature',
  5295. 'columns' => array (
  5296. 'feature_id' => 'feature_id',
  5297. ),
  5298. ),
  5299. 'phenotype' => array (
  5300. 'table' => 'phenotype',
  5301. 'columns' => array (
  5302. 'phenotype_id' => 'phenotype_id',
  5303. ),
  5304. ),
  5305. ),
  5306. );
  5307. return $description;
  5308. }
  5309. /**
  5310. * Implements hook_chado_schema_v1_2_feature_pub()
  5311. * Purpose: To describe the structure of 'feature_pub' to tripal
  5312. * @see tripal_core_chado_insert()
  5313. * @see tripal_core_chado_update()
  5314. * @see tripal_core_chado_select()
  5315. *
  5316. * @return
  5317. * An array describing the 'feature_pub' table
  5318. *
  5319. * @ingroup tripal_chado_v1.2_schema_api
  5320. *
  5321. */
  5322. function tripal_core_chado_schema_v1_2_feature_pub() {
  5323. $description = array (
  5324. 'description' => 'TODO: please describe this table!',
  5325. 'fields' => array (
  5326. 'feature_pub_id' => array (
  5327. 'description' => 'TODO: please describe this field!',
  5328. 'type' => 'serial',
  5329. 'not null' => true,
  5330. ),
  5331. 'feature_id' => array (
  5332. 'description' => 'TODO: please describe this field!',
  5333. 'type' => 'int',
  5334. 'not null' => true,
  5335. ),
  5336. 'pub_id' => array (
  5337. 'description' => 'TODO: please describe this field!',
  5338. 'type' => 'int',
  5339. 'not null' => true,
  5340. ),
  5341. ),
  5342. 'primary key' => array (
  5343. 0 => 'feature_pub_id',
  5344. ),
  5345. 'unique keys' => array (
  5346. 'feature_pub_c1' => array (
  5347. 0 => 'feature_id',
  5348. 1 => 'pub_id',
  5349. ),
  5350. ),
  5351. 'indexes' => array (
  5352. 'feature_pub_idx1' => array (
  5353. 0 => 'feature_id',
  5354. ),
  5355. 'feature_pub_idx2' => array (
  5356. 0 => 'pub_id',
  5357. ),
  5358. ),
  5359. 'foreign keys' => array (
  5360. 'pub' => array (
  5361. 'table' => 'pub',
  5362. 'columns' => array (
  5363. 'pub_id' => 'pub_id',
  5364. ),
  5365. ),
  5366. 'feature' => array (
  5367. 'table' => 'feature',
  5368. 'columns' => array (
  5369. 'feature_id' => 'feature_id',
  5370. ),
  5371. ),
  5372. ),
  5373. );
  5374. return $description;
  5375. }
  5376. /**
  5377. * Implements hook_chado_schema_v1_2_feature_pubprop()
  5378. * Purpose: To describe the structure of 'feature_pubprop' to tripal
  5379. * @see tripal_core_chado_insert()
  5380. * @see tripal_core_chado_update()
  5381. * @see tripal_core_chado_select()
  5382. *
  5383. * @return
  5384. * An array describing the 'feature_pubprop' table
  5385. *
  5386. * @ingroup tripal_chado_v1.2_schema_api
  5387. *
  5388. */
  5389. function tripal_core_chado_schema_v1_2_feature_pubprop() {
  5390. $description = array (
  5391. 'description' => 'TODO: please describe this table!',
  5392. 'fields' => array (
  5393. 'feature_pubprop_id' => array (
  5394. 'description' => 'TODO: please describe this field!',
  5395. 'type' => 'serial',
  5396. 'not null' => true,
  5397. ),
  5398. 'feature_pub_id' => array (
  5399. 'description' => 'TODO: please describe this field!',
  5400. 'type' => 'int',
  5401. 'not null' => true,
  5402. ),
  5403. 'type_id' => array (
  5404. 'description' => 'TODO: please describe this field!',
  5405. 'type' => 'int',
  5406. 'not null' => true,
  5407. ),
  5408. 'value' => array (
  5409. 'description' => 'TODO: please describe this field!',
  5410. 'type' => 'text',
  5411. 'not null' => false,
  5412. ),
  5413. 'rank' => array (
  5414. 'description' => 'TODO: please describe this field!',
  5415. 'type' => 'int',
  5416. 'not null' => true,
  5417. 'default' => 0,
  5418. ),
  5419. ),
  5420. 'primary key' => array (
  5421. 0 => 'feature_pubprop_id',
  5422. ),
  5423. 'unique keys' => array (
  5424. 'feature_pubprop_c1' => array (
  5425. 0 => 'feature_pub_id',
  5426. 1 => 'type_id',
  5427. 2 => 'rank',
  5428. ),
  5429. ),
  5430. 'indexes' => array (
  5431. 'feature_pubprop_idx1' => array (
  5432. 0 => 'feature_pub_id',
  5433. ),
  5434. ),
  5435. 'foreign keys' => array (
  5436. 'cvterm' => array (
  5437. 'table' => 'cvterm',
  5438. 'columns' => array (
  5439. 'type_id' => 'cvterm_id',
  5440. ),
  5441. ),
  5442. 'feature_pub' => array (
  5443. 'table' => 'feature_pub',
  5444. 'columns' => array (
  5445. 'feature_pub_id' => 'feature_pub_id',
  5446. ),
  5447. ),
  5448. ),
  5449. );
  5450. return $description;
  5451. }
  5452. /**
  5453. * Implements hook_chado_schema_v1_2_feature_relationship()
  5454. * Purpose: To describe the structure of 'feature_relationship' to tripal
  5455. * @see tripal_core_chado_insert()
  5456. * @see tripal_core_chado_update()
  5457. * @see tripal_core_chado_select()
  5458. *
  5459. * @return
  5460. * An array describing the 'feature_relationship' table
  5461. *
  5462. * @ingroup tripal_chado_v1.2_schema_api
  5463. *
  5464. */
  5465. function tripal_core_chado_schema_v1_2_feature_relationship() {
  5466. $description = array (
  5467. 'description' => 'TODO: please describe this table!',
  5468. 'fields' => array (
  5469. 'feature_relationship_id' => array (
  5470. 'description' => 'TODO: please describe this field!',
  5471. 'type' => 'serial',
  5472. 'not null' => true,
  5473. ),
  5474. 'subject_id' => array (
  5475. 'description' => 'TODO: please describe this field!',
  5476. 'type' => 'int',
  5477. 'not null' => true,
  5478. ),
  5479. 'object_id' => array (
  5480. 'description' => 'TODO: please describe this field!',
  5481. 'type' => 'int',
  5482. 'not null' => true,
  5483. ),
  5484. 'type_id' => array (
  5485. 'description' => 'TODO: please describe this field!',
  5486. 'type' => 'int',
  5487. 'not null' => true,
  5488. ),
  5489. 'value' => array (
  5490. 'description' => 'TODO: please describe this field!',
  5491. 'type' => 'text',
  5492. 'not null' => false,
  5493. ),
  5494. 'rank' => array (
  5495. 'description' => 'TODO: please describe this field!',
  5496. 'type' => 'int',
  5497. 'not null' => true,
  5498. 'default' => 0,
  5499. ),
  5500. ),
  5501. 'primary key' => array (
  5502. 0 => 'feature_relationship_id',
  5503. ),
  5504. 'unique keys' => array (
  5505. 'feature_relationship_c1' => array (
  5506. 0 => 'subject_id',
  5507. 1 => 'object_id',
  5508. 2 => 'type_id',
  5509. 3 => 'rank',
  5510. ),
  5511. ),
  5512. 'indexes' => array (
  5513. 'feature_relationship_idx1' => array (
  5514. 0 => 'subject_id',
  5515. ),
  5516. 'feature_relationship_idx2' => array (
  5517. 0 => 'object_id',
  5518. ),
  5519. 'feature_relationship_idx3' => array (
  5520. 0 => 'type_id',
  5521. ),
  5522. ),
  5523. 'foreign keys' => array (
  5524. 'cvterm' => array (
  5525. 'table' => 'cvterm',
  5526. 'columns' => array (
  5527. 'type_id' => 'cvterm_id',
  5528. ),
  5529. ),
  5530. 'feature' => array (
  5531. 'table' => 'feature',
  5532. 'columns' => array (
  5533. 'subject_id' => 'feature_id',
  5534. 'object_id' => 'feature_id',
  5535. ),
  5536. ),
  5537. ),
  5538. );
  5539. return $description;
  5540. }
  5541. /**
  5542. * Implements hook_chado_schema_v1_2_feature_relationship_pub()
  5543. * Purpose: To describe the structure of 'feature_relationship_pub' to tripal
  5544. * @see tripal_core_chado_insert()
  5545. * @see tripal_core_chado_update()
  5546. * @see tripal_core_chado_select()
  5547. *
  5548. * @return
  5549. * An array describing the 'feature_relationship_pub' table
  5550. *
  5551. * @ingroup tripal_chado_v1.2_schema_api
  5552. *
  5553. */
  5554. function tripal_core_chado_schema_v1_2_feature_relationship_pub() {
  5555. $description = array (
  5556. 'description' => 'TODO: please describe this table!',
  5557. 'fields' => array (
  5558. 'feature_relationship_pub_id' => array (
  5559. 'description' => 'TODO: please describe this field!',
  5560. 'type' => 'serial',
  5561. 'not null' => true,
  5562. ),
  5563. 'feature_relationship_id' => array (
  5564. 'description' => 'TODO: please describe this field!',
  5565. 'type' => 'int',
  5566. 'not null' => true,
  5567. ),
  5568. 'pub_id' => array (
  5569. 'description' => 'TODO: please describe this field!',
  5570. 'type' => 'int',
  5571. 'not null' => true,
  5572. ),
  5573. ),
  5574. 'primary key' => array (
  5575. 0 => 'feature_relationship_pub_id',
  5576. ),
  5577. 'unique keys' => array (
  5578. 'feature_relationship_pub_c1' => array (
  5579. 0 => 'feature_relationship_id',
  5580. 1 => 'pub_id',
  5581. ),
  5582. ),
  5583. 'indexes' => array (
  5584. 'feature_relationship_pub_idx1' => array (
  5585. 0 => 'feature_relationship_id',
  5586. ),
  5587. 'feature_relationship_pub_idx2' => array (
  5588. 0 => 'pub_id',
  5589. ),
  5590. ),
  5591. 'foreign keys' => array (
  5592. 'feature_relationship' => array (
  5593. 'table' => 'feature_relationship',
  5594. 'columns' => array (
  5595. 'feature_relationship_id' => 'feature_relationship_id',
  5596. ),
  5597. ),
  5598. 'pub' => array (
  5599. 'table' => 'pub',
  5600. 'columns' => array (
  5601. 'pub_id' => 'pub_id',
  5602. ),
  5603. ),
  5604. ),
  5605. );
  5606. return $description;
  5607. }
  5608. /**
  5609. * Implements hook_chado_schema_v1_2_feature_relationshipprop()
  5610. * Purpose: To describe the structure of 'feature_relationshipprop' to tripal
  5611. * @see tripal_core_chado_insert()
  5612. * @see tripal_core_chado_update()
  5613. * @see tripal_core_chado_select()
  5614. *
  5615. * @return
  5616. * An array describing the 'feature_relationshipprop' table
  5617. *
  5618. * @ingroup tripal_chado_v1.2_schema_api
  5619. *
  5620. */
  5621. function tripal_core_chado_schema_v1_2_feature_relationshipprop() {
  5622. $description = array (
  5623. 'description' => 'TODO: please describe this table!',
  5624. 'fields' => array (
  5625. 'feature_relationshipprop_id' => array (
  5626. 'description' => 'TODO: please describe this field!',
  5627. 'type' => 'serial',
  5628. 'not null' => true,
  5629. ),
  5630. 'feature_relationship_id' => array (
  5631. 'description' => 'TODO: please describe this field!',
  5632. 'type' => 'int',
  5633. 'not null' => true,
  5634. ),
  5635. 'type_id' => array (
  5636. 'description' => 'TODO: please describe this field!',
  5637. 'type' => 'int',
  5638. 'not null' => true,
  5639. ),
  5640. 'value' => array (
  5641. 'description' => 'TODO: please describe this field!',
  5642. 'type' => 'text',
  5643. 'not null' => false,
  5644. ),
  5645. 'rank' => array (
  5646. 'description' => 'TODO: please describe this field!',
  5647. 'type' => 'int',
  5648. 'not null' => true,
  5649. 'default' => 0,
  5650. ),
  5651. ),
  5652. 'primary key' => array (
  5653. 0 => 'feature_relationshipprop_id',
  5654. ),
  5655. 'unique keys' => array (
  5656. 'feature_relationshipprop_c1' => array (
  5657. 0 => 'feature_relationship_id',
  5658. 1 => 'type_id',
  5659. 2 => 'rank',
  5660. ),
  5661. ),
  5662. 'indexes' => array (
  5663. 'feature_relationshipprop_idx1' => array (
  5664. 0 => 'feature_relationship_id',
  5665. ),
  5666. 'feature_relationshipprop_idx2' => array (
  5667. 0 => 'type_id',
  5668. ),
  5669. ),
  5670. 'foreign keys' => array (
  5671. 'cvterm' => array (
  5672. 'table' => 'cvterm',
  5673. 'columns' => array (
  5674. 'type_id' => 'cvterm_id',
  5675. ),
  5676. ),
  5677. 'feature_relationship' => array (
  5678. 'table' => 'feature_relationship',
  5679. 'columns' => array (
  5680. 'feature_relationship_id' => 'feature_relationship_id',
  5681. ),
  5682. ),
  5683. ),
  5684. );
  5685. return $description;
  5686. }
  5687. /**
  5688. * Implements hook_chado_schema_v1_2_feature_relationshipprop_pub()
  5689. * Purpose: To describe the structure of 'feature_relationshipprop_pub' to tripal
  5690. * @see tripal_core_chado_insert()
  5691. * @see tripal_core_chado_update()
  5692. * @see tripal_core_chado_select()
  5693. *
  5694. * @return
  5695. * An array describing the 'feature_relationshipprop_pub' table
  5696. *
  5697. * @ingroup tripal_chado_v1.2_schema_api
  5698. *
  5699. */
  5700. function tripal_core_chado_schema_v1_2_feature_relationshipprop_pub() {
  5701. $description = array (
  5702. 'description' => 'TODO: please describe this table!',
  5703. 'fields' => array (
  5704. 'feature_relationshipprop_pub_id' => array (
  5705. 'description' => 'TODO: please describe this field!',
  5706. 'type' => 'serial',
  5707. 'not null' => true,
  5708. ),
  5709. 'feature_relationshipprop_id' => array (
  5710. 'description' => 'TODO: please describe this field!',
  5711. 'type' => 'int',
  5712. 'not null' => true,
  5713. ),
  5714. 'pub_id' => array (
  5715. 'description' => 'TODO: please describe this field!',
  5716. 'type' => 'int',
  5717. 'not null' => true,
  5718. ),
  5719. ),
  5720. 'primary key' => array (
  5721. 0 => 'feature_relationshipprop_pub_id',
  5722. ),
  5723. 'unique keys' => array (
  5724. 'feature_relationshipprop_pub_c1' => array (
  5725. 0 => 'feature_relationshipprop_id',
  5726. 1 => 'pub_id',
  5727. ),
  5728. ),
  5729. 'indexes' => array (
  5730. 'feature_relationshipprop_pub_idx1' => array (
  5731. 0 => 'feature_relationshipprop_id',
  5732. ),
  5733. 'feature_relationshipprop_pub_idx2' => array (
  5734. 0 => 'pub_id',
  5735. ),
  5736. ),
  5737. 'foreign keys' => array (
  5738. 'feature_relationshipprop' => array (
  5739. 'table' => 'feature_relationshipprop',
  5740. 'columns' => array (
  5741. 'feature_relationshipprop_id' => 'feature_relationshipprop_id',
  5742. ),
  5743. ),
  5744. 'pub' => array (
  5745. 'table' => 'pub',
  5746. 'columns' => array (
  5747. 'pub_id' => 'pub_id',
  5748. ),
  5749. ),
  5750. ),
  5751. );
  5752. return $description;
  5753. }
  5754. /**
  5755. * Implements hook_chado_schema_v1_2_feature_synonym()
  5756. * Purpose: To describe the structure of 'feature_synonym' to tripal
  5757. * @see tripal_core_chado_insert()
  5758. * @see tripal_core_chado_update()
  5759. * @see tripal_core_chado_select()
  5760. *
  5761. * @return
  5762. * An array describing the 'feature_synonym' table
  5763. *
  5764. * @ingroup tripal_chado_v1.2_schema_api
  5765. *
  5766. */
  5767. function tripal_core_chado_schema_v1_2_feature_synonym() {
  5768. $description = array (
  5769. 'description' => 'TODO: please describe this table!',
  5770. 'fields' => array (
  5771. 'feature_synonym_id' => array (
  5772. 'description' => 'TODO: please describe this field!',
  5773. 'type' => 'serial',
  5774. 'not null' => true,
  5775. ),
  5776. 'synonym_id' => array (
  5777. 'description' => 'TODO: please describe this field!',
  5778. 'type' => 'int',
  5779. 'not null' => true,
  5780. ),
  5781. 'feature_id' => array (
  5782. 'description' => 'TODO: please describe this field!',
  5783. 'type' => 'int',
  5784. 'not null' => true,
  5785. ),
  5786. 'pub_id' => array (
  5787. 'description' => 'TODO: please describe this field!',
  5788. 'type' => 'int',
  5789. 'not null' => true,
  5790. ),
  5791. 'is_current' => array (
  5792. 'description' => 'TODO: please describe this field!',
  5793. 'type' => 'boolean',
  5794. 'not null' => true,
  5795. 'default' => 'als',
  5796. ),
  5797. 'is_internal' => array (
  5798. 'description' => 'TODO: please describe this field!',
  5799. 'type' => 'boolean',
  5800. 'not null' => true,
  5801. 'default' => 'als',
  5802. ),
  5803. ),
  5804. 'primary key' => array (
  5805. 0 => 'feature_synonym_id',
  5806. ),
  5807. 'unique keys' => array (
  5808. 'feature_synonym_c1' => array (
  5809. 0 => 'synonym_id',
  5810. 1 => 'feature_id',
  5811. 2 => 'pub_id',
  5812. ),
  5813. ),
  5814. 'indexes' => array (
  5815. 'feature_synonym_idx1' => array (
  5816. 0 => 'synonym_id',
  5817. ),
  5818. 'feature_synonym_idx2' => array (
  5819. 0 => 'feature_id',
  5820. ),
  5821. 'feature_synonym_idx3' => array (
  5822. 0 => 'pub_id',
  5823. ),
  5824. ),
  5825. 'foreign keys' => array (
  5826. 'pub' => array (
  5827. 'table' => 'pub',
  5828. 'columns' => array (
  5829. 'pub_id' => 'pub_id',
  5830. ),
  5831. ),
  5832. 'feature' => array (
  5833. 'table' => 'feature',
  5834. 'columns' => array (
  5835. 'feature_id' => 'feature_id',
  5836. ),
  5837. ),
  5838. 'synonym' => array (
  5839. 'table' => 'synonym',
  5840. 'columns' => array (
  5841. 'synonym_id' => 'synonym_id',
  5842. ),
  5843. ),
  5844. ),
  5845. );
  5846. return $description;
  5847. }
  5848. /**
  5849. * Implements hook_chado_schema_v1_2_featureloc()
  5850. * Purpose: To describe the structure of 'featureloc' to tripal
  5851. * @see tripal_core_chado_insert()
  5852. * @see tripal_core_chado_update()
  5853. * @see tripal_core_chado_select()
  5854. *
  5855. * @return
  5856. * An array describing the 'featureloc' table
  5857. *
  5858. * @ingroup tripal_chado_v1.2_schema_api
  5859. *
  5860. */
  5861. function tripal_core_chado_schema_v1_2_featureloc() {
  5862. $description = array (
  5863. 'description' => 'TODO: please describe this table!',
  5864. 'fields' => array (
  5865. 'featureloc_id' => array (
  5866. 'description' => 'TODO: please describe this field!',
  5867. 'type' => 'serial',
  5868. 'not null' => true,
  5869. ),
  5870. 'feature_id' => array (
  5871. 'description' => 'TODO: please describe this field!',
  5872. 'type' => 'int',
  5873. 'not null' => true,
  5874. ),
  5875. 'srcfeature_id' => array (
  5876. 'description' => 'TODO: please describe this field!',
  5877. 'type' => 'int',
  5878. 'not null' => false,
  5879. ),
  5880. 'fmin' => array (
  5881. 'description' => 'TODO: please describe this field!',
  5882. 'type' => 'int',
  5883. 'not null' => false,
  5884. ),
  5885. 'is_fmin_partial' => array (
  5886. 'description' => 'TODO: please describe this field!',
  5887. 'type' => 'boolean',
  5888. 'not null' => true,
  5889. 'default' => 'als',
  5890. ),
  5891. 'fmax' => array (
  5892. 'description' => 'TODO: please describe this field!',
  5893. 'type' => 'int',
  5894. 'not null' => false,
  5895. ),
  5896. 'is_fmax_partial' => array (
  5897. 'description' => 'TODO: please describe this field!',
  5898. 'type' => 'boolean',
  5899. 'not null' => true,
  5900. 'default' => 'als',
  5901. ),
  5902. 'strand' => array (
  5903. 'description' => 'TODO: please describe this field!',
  5904. 'type' => 'int',
  5905. 'size' => 'small',
  5906. 'not null' => false,
  5907. ),
  5908. 'phase' => array (
  5909. 'description' => 'TODO: please describe this field!',
  5910. 'type' => 'int',
  5911. 'not null' => false,
  5912. ),
  5913. 'residue_info' => array (
  5914. 'description' => 'TODO: please describe this field!',
  5915. 'type' => 'text',
  5916. 'not null' => false,
  5917. ),
  5918. 'locgroup' => array (
  5919. 'description' => 'TODO: please describe this field!',
  5920. 'type' => 'int',
  5921. 'not null' => true,
  5922. 'default' => 0,
  5923. ),
  5924. 'rank' => array (
  5925. 'description' => 'TODO: please describe this field!',
  5926. 'type' => 'int',
  5927. 'not null' => true,
  5928. 'default' => 0,
  5929. ),
  5930. ),
  5931. 'primary key' => array (
  5932. 0 => 'featureloc_id',
  5933. ),
  5934. 'unique keys' => array (
  5935. 'featureloc_c1' => array (
  5936. 0 => 'feature_id',
  5937. 1 => 'locgroup',
  5938. 2 => 'rank',
  5939. ),
  5940. ),
  5941. 'indexes' => array (
  5942. 'binloc_boxrange' => array (
  5943. 0 => 'fmin',
  5944. ),
  5945. 'binloc_boxrange_src' => array (
  5946. 0 => 'srcfeature_id',
  5947. 1 => 'fmin',
  5948. ),
  5949. 'featureloc_idx1' => array (
  5950. 0 => 'feature_id',
  5951. ),
  5952. 'featureloc_idx2' => array (
  5953. 0 => 'srcfeature_id',
  5954. ),
  5955. 'featureloc_idx3' => array (
  5956. 0 => 'srcfeature_id',
  5957. 1 => 'fmin',
  5958. 2 => 'fmax',
  5959. ),
  5960. ),
  5961. 'foreign keys' => array (
  5962. 'feature' => array (
  5963. 'table' => 'feature',
  5964. 'columns' => array (
  5965. 'feature_id' => 'feature_id',
  5966. 'srcfeature_id' => 'feature_id',
  5967. ),
  5968. ),
  5969. ),
  5970. );
  5971. return $description;
  5972. }
  5973. /**
  5974. * Implements hook_chado_schema_v1_2_featureloc_pub()
  5975. * Purpose: To describe the structure of 'featureloc_pub' to tripal
  5976. * @see tripal_core_chado_insert()
  5977. * @see tripal_core_chado_update()
  5978. * @see tripal_core_chado_select()
  5979. *
  5980. * @return
  5981. * An array describing the 'featureloc_pub' table
  5982. *
  5983. * @ingroup tripal_chado_v1.2_schema_api
  5984. *
  5985. */
  5986. function tripal_core_chado_schema_v1_2_featureloc_pub() {
  5987. $description = array (
  5988. 'description' => 'TODO: please describe this table!',
  5989. 'fields' => array (
  5990. 'featureloc_pub_id' => array (
  5991. 'description' => 'TODO: please describe this field!',
  5992. 'type' => 'serial',
  5993. 'not null' => true,
  5994. ),
  5995. 'featureloc_id' => array (
  5996. 'description' => 'TODO: please describe this field!',
  5997. 'type' => 'int',
  5998. 'not null' => true,
  5999. ),
  6000. 'pub_id' => array (
  6001. 'description' => 'TODO: please describe this field!',
  6002. 'type' => 'int',
  6003. 'not null' => true,
  6004. ),
  6005. ),
  6006. 'primary key' => array (
  6007. 0 => 'featureloc_pub_id',
  6008. ),
  6009. 'unique keys' => array (
  6010. 'featureloc_pub_c1' => array (
  6011. 0 => 'featureloc_id',
  6012. 1 => 'pub_id',
  6013. ),
  6014. ),
  6015. 'indexes' => array (
  6016. 'featureloc_pub_idx1' => array (
  6017. 0 => 'featureloc_id',
  6018. ),
  6019. 'featureloc_pub_idx2' => array (
  6020. 0 => 'pub_id',
  6021. ),
  6022. ),
  6023. 'foreign keys' => array (
  6024. 'featureloc' => array (
  6025. 'table' => 'featureloc',
  6026. 'columns' => array (
  6027. 'featureloc_id' => 'featureloc_id',
  6028. ),
  6029. ),
  6030. 'pub' => array (
  6031. 'table' => 'pub',
  6032. 'columns' => array (
  6033. 'pub_id' => 'pub_id',
  6034. ),
  6035. ),
  6036. ),
  6037. );
  6038. return $description;
  6039. }
  6040. /**
  6041. * Implements hook_chado_schema_v1_2_featuremap()
  6042. * Purpose: To describe the structure of 'featuremap' to tripal
  6043. * @see tripal_core_chado_insert()
  6044. * @see tripal_core_chado_update()
  6045. * @see tripal_core_chado_select()
  6046. *
  6047. * @return
  6048. * An array describing the 'featuremap' table
  6049. *
  6050. * @ingroup tripal_chado_v1.2_schema_api
  6051. *
  6052. */
  6053. function tripal_core_chado_schema_v1_2_featuremap() {
  6054. $description = array (
  6055. 'description' => 'TODO: please describe this table!',
  6056. 'fields' => array (
  6057. 'featuremap_id' => array (
  6058. 'description' => 'TODO: please describe this field!',
  6059. 'type' => 'serial',
  6060. 'not null' => true,
  6061. ),
  6062. 'name' => array (
  6063. 'description' => 'TODO: please describe this field!',
  6064. 'type' => 'varchar',
  6065. 'length' => '255',
  6066. 'not null' => false,
  6067. ),
  6068. 'description' => array (
  6069. 'description' => 'TODO: please describe this field!',
  6070. 'type' => 'text',
  6071. 'not null' => false,
  6072. ),
  6073. 'unittype_id' => array (
  6074. 'description' => 'TODO: please describe this field!',
  6075. 'type' => 'int',
  6076. 'not null' => false,
  6077. ),
  6078. ),
  6079. 'primary key' => array (
  6080. 0 => 'featuremap_id',
  6081. ),
  6082. 'unique keys' => array (
  6083. 'featuremap_c1' => array (
  6084. 0 => 'name',
  6085. ),
  6086. ),
  6087. 'foreign keys' => array (
  6088. 'cvterm' => array (
  6089. 'table' => 'cvterm',
  6090. 'columns' => array (
  6091. 'unittype_id' => 'cvterm_id',
  6092. ),
  6093. ),
  6094. ),
  6095. );
  6096. return $description;
  6097. }
  6098. /**
  6099. * Implements hook_chado_schema_v1_2_featuremap_pub()
  6100. * Purpose: To describe the structure of 'featuremap_pub' to tripal
  6101. * @see tripal_core_chado_insert()
  6102. * @see tripal_core_chado_update()
  6103. * @see tripal_core_chado_select()
  6104. *
  6105. * @return
  6106. * An array describing the 'featuremap_pub' table
  6107. *
  6108. * @ingroup tripal_chado_v1.2_schema_api
  6109. *
  6110. */
  6111. function tripal_core_chado_schema_v1_2_featuremap_pub() {
  6112. $description = array (
  6113. 'description' => 'TODO: please describe this table!',
  6114. 'fields' => array (
  6115. 'featuremap_pub_id' => array (
  6116. 'description' => 'TODO: please describe this field!',
  6117. 'type' => 'serial',
  6118. 'not null' => true,
  6119. ),
  6120. 'featuremap_id' => array (
  6121. 'description' => 'TODO: please describe this field!',
  6122. 'type' => 'int',
  6123. 'not null' => true,
  6124. ),
  6125. 'pub_id' => array (
  6126. 'description' => 'TODO: please describe this field!',
  6127. 'type' => 'int',
  6128. 'not null' => true,
  6129. ),
  6130. ),
  6131. 'primary key' => array (
  6132. 0 => 'featuremap_pub_id',
  6133. ),
  6134. 'indexes' => array (
  6135. 'featuremap_pub_idx1' => array (
  6136. 0 => 'featuremap_id',
  6137. ),
  6138. 'featuremap_pub_idx2' => array (
  6139. 0 => 'pub_id',
  6140. ),
  6141. ),
  6142. 'foreign keys' => array (
  6143. 'pub' => array (
  6144. 'table' => 'pub',
  6145. 'columns' => array (
  6146. 'pub_id' => 'pub_id',
  6147. ),
  6148. ),
  6149. 'featuremap' => array (
  6150. 'table' => 'featuremap',
  6151. 'columns' => array (
  6152. 'featuremap_id' => 'featuremap_id',
  6153. ),
  6154. ),
  6155. ),
  6156. );
  6157. return $description;
  6158. }
  6159. /**
  6160. * Implements hook_chado_schema_v1_2_featurepos()
  6161. * Purpose: To describe the structure of 'featurepos' to tripal
  6162. * @see tripal_core_chado_insert()
  6163. * @see tripal_core_chado_update()
  6164. * @see tripal_core_chado_select()
  6165. *
  6166. * @return
  6167. * An array describing the 'featurepos' table
  6168. *
  6169. * @ingroup tripal_chado_v1.2_schema_api
  6170. *
  6171. */
  6172. function tripal_core_chado_schema_v1_2_featurepos() {
  6173. $description = array (
  6174. 'description' => 'TODO: please describe this table!',
  6175. 'fields' => array (
  6176. 'featurepos_id' => array (
  6177. 'description' => 'TODO: please describe this field!',
  6178. 'type' => 'serial',
  6179. 'not null' => true,
  6180. ),
  6181. 'featuremap_id' => array (
  6182. 'description' => 'TODO: please describe this field!',
  6183. 'type' => 'serial',
  6184. 'not null' => true,
  6185. ),
  6186. 'feature_id' => array (
  6187. 'description' => 'TODO: please describe this field!',
  6188. 'type' => 'int',
  6189. 'not null' => true,
  6190. ),
  6191. 'map_feature_id' => array (
  6192. 'description' => 'TODO: please describe this field!',
  6193. 'type' => 'int',
  6194. 'not null' => true,
  6195. ),
  6196. 'mappos' => array (
  6197. 'description' => 'TODO: please describe this field!',
  6198. 'type' => 'float',
  6199. 'size' => 'big',
  6200. 'not null' => true,
  6201. ),
  6202. ),
  6203. 'primary key' => array (
  6204. 0 => 'featurepos_id',
  6205. ),
  6206. 'indexes' => array (
  6207. 'featurepos_idx1' => array (
  6208. 0 => 'featuremap_id',
  6209. ),
  6210. 'featurepos_idx2' => array (
  6211. 0 => 'feature_id',
  6212. ),
  6213. 'featurepos_idx3' => array (
  6214. 0 => 'map_feature_id',
  6215. ),
  6216. ),
  6217. 'foreign keys' => array (
  6218. 'feature' => array (
  6219. 'table' => 'feature',
  6220. 'columns' => array (
  6221. 'feature_id' => 'feature_id',
  6222. 'map_feature_id' => 'feature_id',
  6223. ),
  6224. ),
  6225. 'featuremap' => array (
  6226. 'table' => 'featuremap',
  6227. 'columns' => array (
  6228. 'featuremap_id' => 'featuremap_id',
  6229. ),
  6230. ),
  6231. ),
  6232. );
  6233. return $description;
  6234. }
  6235. /**
  6236. * Implements hook_chado_schema_v1_2_featureprop()
  6237. * Purpose: To describe the structure of 'featureprop' to tripal
  6238. * @see tripal_core_chado_insert()
  6239. * @see tripal_core_chado_update()
  6240. * @see tripal_core_chado_select()
  6241. *
  6242. * @return
  6243. * An array describing the 'featureprop' table
  6244. *
  6245. * @ingroup tripal_chado_v1.2_schema_api
  6246. *
  6247. */
  6248. function tripal_core_chado_schema_v1_2_featureprop() {
  6249. $description = array (
  6250. 'description' => 'TODO: please describe this table!',
  6251. 'fields' => array (
  6252. 'featureprop_id' => array (
  6253. 'description' => 'TODO: please describe this field!',
  6254. 'type' => 'serial',
  6255. 'not null' => true,
  6256. ),
  6257. 'feature_id' => array (
  6258. 'description' => 'TODO: please describe this field!',
  6259. 'type' => 'int',
  6260. 'not null' => true,
  6261. ),
  6262. 'type_id' => array (
  6263. 'description' => 'TODO: please describe this field!',
  6264. 'type' => 'int',
  6265. 'not null' => true,
  6266. ),
  6267. 'value' => array (
  6268. 'description' => 'TODO: please describe this field!',
  6269. 'type' => 'text',
  6270. 'not null' => false,
  6271. ),
  6272. 'rank' => array (
  6273. 'description' => 'TODO: please describe this field!',
  6274. 'type' => 'int',
  6275. 'not null' => true,
  6276. 'default' => 0,
  6277. ),
  6278. ),
  6279. 'primary key' => array (
  6280. 0 => 'featureprop_id',
  6281. ),
  6282. 'unique keys' => array (
  6283. 'featureprop_c1' => array (
  6284. 0 => 'feature_id',
  6285. 1 => 'type_id',
  6286. 2 => 'rank',
  6287. ),
  6288. ),
  6289. 'indexes' => array (
  6290. 'featureprop_idx1' => array (
  6291. 0 => 'feature_id',
  6292. ),
  6293. 'featureprop_idx2' => array (
  6294. 0 => 'type_id',
  6295. ),
  6296. ),
  6297. 'foreign keys' => array (
  6298. 'cvterm' => array (
  6299. 'table' => 'cvterm',
  6300. 'columns' => array (
  6301. 'type_id' => 'cvterm_id',
  6302. ),
  6303. ),
  6304. 'feature' => array (
  6305. 'table' => 'feature',
  6306. 'columns' => array (
  6307. 'feature_id' => 'feature_id',
  6308. ),
  6309. ),
  6310. ),
  6311. );
  6312. return $description;
  6313. }
  6314. /**
  6315. * Implements hook_chado_schema_v1_2_featureprop_pub()
  6316. * Purpose: To describe the structure of 'featureprop_pub' to tripal
  6317. * @see tripal_core_chado_insert()
  6318. * @see tripal_core_chado_update()
  6319. * @see tripal_core_chado_select()
  6320. *
  6321. * @return
  6322. * An array describing the 'featureprop_pub' table
  6323. *
  6324. * @ingroup tripal_chado_v1.2_schema_api
  6325. *
  6326. */
  6327. function tripal_core_chado_schema_v1_2_featureprop_pub() {
  6328. $description = array (
  6329. 'description' => 'TODO: please describe this table!',
  6330. 'fields' => array (
  6331. 'featureprop_pub_id' => array (
  6332. 'description' => 'TODO: please describe this field!',
  6333. 'type' => 'serial',
  6334. 'not null' => true,
  6335. ),
  6336. 'featureprop_id' => array (
  6337. 'description' => 'TODO: please describe this field!',
  6338. 'type' => 'int',
  6339. 'not null' => true,
  6340. ),
  6341. 'pub_id' => array (
  6342. 'description' => 'TODO: please describe this field!',
  6343. 'type' => 'int',
  6344. 'not null' => true,
  6345. ),
  6346. ),
  6347. 'primary key' => array (
  6348. 0 => 'featureprop_pub_id',
  6349. ),
  6350. 'unique keys' => array (
  6351. 'featureprop_pub_c1' => array (
  6352. 0 => 'featureprop_id',
  6353. 1 => 'pub_id',
  6354. ),
  6355. ),
  6356. 'indexes' => array (
  6357. 'featureprop_pub_idx1' => array (
  6358. 0 => 'featureprop_id',
  6359. ),
  6360. 'featureprop_pub_idx2' => array (
  6361. 0 => 'pub_id',
  6362. ),
  6363. ),
  6364. 'foreign keys' => array (
  6365. 'featureprop' => array (
  6366. 'table' => 'featureprop',
  6367. 'columns' => array (
  6368. 'featureprop_id' => 'featureprop_id',
  6369. ),
  6370. ),
  6371. 'pub' => array (
  6372. 'table' => 'pub',
  6373. 'columns' => array (
  6374. 'pub_id' => 'pub_id',
  6375. ),
  6376. ),
  6377. ),
  6378. );
  6379. return $description;
  6380. }
  6381. /**
  6382. * Implements hook_chado_schema_v1_2_featurerange()
  6383. * Purpose: To describe the structure of 'featurerange' to tripal
  6384. * @see tripal_core_chado_insert()
  6385. * @see tripal_core_chado_update()
  6386. * @see tripal_core_chado_select()
  6387. *
  6388. * @return
  6389. * An array describing the 'featurerange' table
  6390. *
  6391. * @ingroup tripal_chado_v1.2_schema_api
  6392. *
  6393. */
  6394. function tripal_core_chado_schema_v1_2_featurerange() {
  6395. $description = array (
  6396. 'description' => 'TODO: please describe this table!',
  6397. 'fields' => array (
  6398. 'featurerange_id' => array (
  6399. 'description' => 'TODO: please describe this field!',
  6400. 'type' => 'serial',
  6401. 'not null' => true,
  6402. ),
  6403. 'featuremap_id' => array (
  6404. 'description' => 'TODO: please describe this field!',
  6405. 'type' => 'int',
  6406. 'not null' => true,
  6407. ),
  6408. 'feature_id' => array (
  6409. 'description' => 'TODO: please describe this field!',
  6410. 'type' => 'int',
  6411. 'not null' => true,
  6412. ),
  6413. 'leftstartf_id' => array (
  6414. 'description' => 'TODO: please describe this field!',
  6415. 'type' => 'int',
  6416. 'not null' => true,
  6417. ),
  6418. 'leftendf_id' => array (
  6419. 'description' => 'TODO: please describe this field!',
  6420. 'type' => 'int',
  6421. 'not null' => false,
  6422. ),
  6423. 'rightstartf_id' => array (
  6424. 'description' => 'TODO: please describe this field!',
  6425. 'type' => 'int',
  6426. 'not null' => false,
  6427. ),
  6428. 'rightendf_id' => array (
  6429. 'description' => 'TODO: please describe this field!',
  6430. 'type' => 'int',
  6431. 'not null' => true,
  6432. ),
  6433. 'rangestr' => array (
  6434. 'description' => 'TODO: please describe this field!',
  6435. 'type' => 'varchar',
  6436. 'length' => '255',
  6437. 'not null' => false,
  6438. ),
  6439. ),
  6440. 'primary key' => array (
  6441. 0 => 'featurerange_id',
  6442. ),
  6443. 'indexes' => array (
  6444. 'featurerange_idx1' => array (
  6445. 0 => 'featuremap_id',
  6446. ),
  6447. 'featurerange_idx2' => array (
  6448. 0 => 'feature_id',
  6449. ),
  6450. 'featurerange_idx3' => array (
  6451. 0 => 'leftstartf_id',
  6452. ),
  6453. 'featurerange_idx4' => array (
  6454. 0 => 'leftendf_id',
  6455. ),
  6456. 'featurerange_idx5' => array (
  6457. 0 => 'rightstartf_id',
  6458. ),
  6459. 'featurerange_idx6' => array (
  6460. 0 => 'rightendf_id',
  6461. ),
  6462. ),
  6463. 'foreign keys' => array (
  6464. 'feature' => array (
  6465. 'table' => 'feature',
  6466. 'columns' => array (
  6467. 'feature_id' => 'feature_id',
  6468. 'leftstartf_id' => 'feature_id',
  6469. 'leftendf_id' => 'feature_id',
  6470. 'rightstartf_id' => 'feature_id',
  6471. 'rightendf_id' => 'feature_id',
  6472. ),
  6473. ),
  6474. 'featuremap' => array (
  6475. 'table' => 'featuremap',
  6476. 'columns' => array (
  6477. 'featuremap_id' => 'featuremap_id',
  6478. ),
  6479. ),
  6480. ),
  6481. );
  6482. return $description;
  6483. }
  6484. /**
  6485. * Implements hook_chado_schema_v1_2_genotype()
  6486. * Purpose: To describe the structure of 'genotype' to tripal
  6487. * @see tripal_core_chado_insert()
  6488. * @see tripal_core_chado_update()
  6489. * @see tripal_core_chado_select()
  6490. *
  6491. * @return
  6492. * An array describing the 'genotype' table
  6493. *
  6494. * @ingroup tripal_chado_v1.2_schema_api
  6495. *
  6496. */
  6497. function tripal_core_chado_schema_v1_2_genotype() {
  6498. $description = array (
  6499. 'description' => 'TODO: please describe this table!',
  6500. 'fields' => array (
  6501. 'genotype_id' => array (
  6502. 'description' => 'TODO: please describe this field!',
  6503. 'type' => 'serial',
  6504. 'not null' => true,
  6505. ),
  6506. 'name' => array (
  6507. 'description' => 'TODO: please describe this field!',
  6508. 'type' => 'text',
  6509. 'not null' => false,
  6510. ),
  6511. 'uniquename' => array (
  6512. 'description' => 'TODO: please describe this field!',
  6513. 'type' => 'text',
  6514. 'not null' => true,
  6515. ),
  6516. 'description' => array (
  6517. 'description' => 'TODO: please describe this field!',
  6518. 'type' => 'varchar',
  6519. 'length' => '255',
  6520. 'not null' => false,
  6521. ),
  6522. 'type_id' => array (
  6523. 'description' => 'TODO: please describe this field!',
  6524. 'type' => 'int',
  6525. 'not null' => true,
  6526. ),
  6527. ),
  6528. 'primary key' => array (
  6529. 0 => 'genotype_id',
  6530. ),
  6531. 'unique keys' => array (
  6532. 'genotype_c1' => array (
  6533. 0 => 'uniquename',
  6534. ),
  6535. ),
  6536. 'indexes' => array (
  6537. 'genotype_idx1' => array (
  6538. 0 => 'uniquename',
  6539. ),
  6540. 'genotype_idx2' => array (
  6541. 0 => 'name',
  6542. ),
  6543. ),
  6544. 'foreign keys' => array (
  6545. 'cvterm' => array (
  6546. 'table' => 'cvterm',
  6547. 'columns' => array (
  6548. 'type_id' => 'cvterm_id',
  6549. ),
  6550. ),
  6551. ),
  6552. );
  6553. return $description;
  6554. }
  6555. /**
  6556. * Implements hook_chado_schema_v1_2_genotypeprop()
  6557. * Purpose: To describe the structure of 'genotypeprop' to tripal
  6558. * @see tripal_core_chado_insert()
  6559. * @see tripal_core_chado_update()
  6560. * @see tripal_core_chado_select()
  6561. *
  6562. * @return
  6563. * An array describing the 'genotypeprop' table
  6564. *
  6565. * @ingroup tripal_chado_v1.2_schema_api
  6566. *
  6567. */
  6568. function tripal_core_chado_schema_v1_2_genotypeprop() {
  6569. $description = array (
  6570. 'description' => 'TODO: please describe this table!',
  6571. 'fields' => array (
  6572. 'genotypeprop_id' => array (
  6573. 'description' => 'TODO: please describe this field!',
  6574. 'type' => 'serial',
  6575. 'not null' => true,
  6576. ),
  6577. 'genotype_id' => array (
  6578. 'description' => 'TODO: please describe this field!',
  6579. 'type' => 'int',
  6580. 'not null' => true,
  6581. ),
  6582. 'type_id' => array (
  6583. 'description' => 'TODO: please describe this field!',
  6584. 'type' => 'int',
  6585. 'not null' => true,
  6586. ),
  6587. 'value' => array (
  6588. 'description' => 'TODO: please describe this field!',
  6589. 'type' => 'text',
  6590. 'not null' => false,
  6591. ),
  6592. 'rank' => array (
  6593. 'description' => 'TODO: please describe this field!',
  6594. 'type' => 'int',
  6595. 'not null' => true,
  6596. 'default' => 0,
  6597. ),
  6598. ),
  6599. 'primary key' => array (
  6600. 0 => 'genotypeprop_id',
  6601. ),
  6602. 'unique keys' => array (
  6603. 'genotypeprop_c1' => array (
  6604. 0 => 'genotype_id',
  6605. 1 => 'type_id',
  6606. 2 => 'rank',
  6607. ),
  6608. ),
  6609. 'indexes' => array (
  6610. 'genotypeprop_idx1' => array (
  6611. 0 => 'genotype_id',
  6612. ),
  6613. 'genotypeprop_idx2' => array (
  6614. 0 => 'type_id',
  6615. ),
  6616. ),
  6617. 'foreign keys' => array (
  6618. 'cvterm' => array (
  6619. 'table' => 'cvterm',
  6620. 'columns' => array (
  6621. 'type_id' => 'cvterm_id',
  6622. ),
  6623. ),
  6624. 'genotype' => array (
  6625. 'table' => 'genotype',
  6626. 'columns' => array (
  6627. 'genotype_id' => 'genotype_id',
  6628. ),
  6629. ),
  6630. ),
  6631. );
  6632. return $description;
  6633. }
  6634. /**
  6635. * Implements hook_chado_schema_v1_2_library()
  6636. * Purpose: To describe the structure of 'library' to tripal
  6637. * @see tripal_core_chado_insert()
  6638. * @see tripal_core_chado_update()
  6639. * @see tripal_core_chado_select()
  6640. *
  6641. * @return
  6642. * An array describing the 'library' table
  6643. *
  6644. * @ingroup tripal_chado_v1.2_schema_api
  6645. *
  6646. */
  6647. function tripal_core_chado_schema_v1_2_library() {
  6648. $description = array (
  6649. 'description' => 'TODO: please describe this table!',
  6650. 'fields' => array (
  6651. 'library_id' => array (
  6652. 'description' => 'TODO: please describe this field!',
  6653. 'type' => 'serial',
  6654. 'not null' => true,
  6655. ),
  6656. 'organism_id' => array (
  6657. 'description' => 'TODO: please describe this field!',
  6658. 'type' => 'int',
  6659. 'not null' => true,
  6660. ),
  6661. 'name' => array (
  6662. 'description' => 'TODO: please describe this field!',
  6663. 'type' => 'varchar',
  6664. 'length' => '255',
  6665. 'not null' => false,
  6666. ),
  6667. 'uniquename' => array (
  6668. 'description' => 'TODO: please describe this field!',
  6669. 'type' => 'text',
  6670. 'not null' => true,
  6671. ),
  6672. 'type_id' => array (
  6673. 'description' => 'TODO: please describe this field!',
  6674. 'type' => 'int',
  6675. 'not null' => true,
  6676. ),
  6677. 'is_obsolete' => array (
  6678. 'description' => 'TODO: please describe this field!',
  6679. 'type' => 'int',
  6680. 'not null' => true,
  6681. 'default' => 0,
  6682. ),
  6683. 'timeaccessioned' => array (
  6684. 'description' => 'TODO: please describe this field!',
  6685. 'type' => 'datetime',
  6686. 'not null' => true,
  6687. 'default' => 'ow(',
  6688. ),
  6689. 'timelastmodified' => array (
  6690. 'description' => 'TODO: please describe this field!',
  6691. 'type' => 'datetime',
  6692. 'not null' => true,
  6693. 'default' => 'ow(',
  6694. ),
  6695. ),
  6696. 'primary key' => array (
  6697. 0 => 'library_id',
  6698. ),
  6699. 'unique keys' => array (
  6700. 'library_c1' => array (
  6701. 0 => 'organism_id',
  6702. 1 => 'uniquename',
  6703. 2 => 'type_id',
  6704. ),
  6705. ),
  6706. 'indexes' => array (
  6707. 'library_idx1' => array (
  6708. 0 => 'organism_id',
  6709. ),
  6710. 'library_idx2' => array (
  6711. 0 => 'type_id',
  6712. ),
  6713. 'library_idx3' => array (
  6714. 0 => 'uniquename',
  6715. ),
  6716. 'library_name_ind1' => array (
  6717. 0 => 'name',
  6718. ),
  6719. ),
  6720. 'foreign keys' => array (
  6721. 'organism' => array (
  6722. 'table' => 'organism',
  6723. 'columns' => array (
  6724. 'organism_id' => 'organism_id',
  6725. ),
  6726. ),
  6727. 'cvterm' => array (
  6728. 'table' => 'cvterm',
  6729. 'columns' => array (
  6730. 'type_id' => 'cvterm_id',
  6731. ),
  6732. ),
  6733. ),
  6734. );
  6735. return $description;
  6736. }
  6737. /**
  6738. * Implements hook_chado_schema_v1_2_library_cvterm()
  6739. * Purpose: To describe the structure of 'library_cvterm' to tripal
  6740. * @see tripal_core_chado_insert()
  6741. * @see tripal_core_chado_update()
  6742. * @see tripal_core_chado_select()
  6743. *
  6744. * @return
  6745. * An array describing the 'library_cvterm' table
  6746. *
  6747. * @ingroup tripal_chado_v1.2_schema_api
  6748. *
  6749. */
  6750. function tripal_core_chado_schema_v1_2_library_cvterm() {
  6751. $description = array (
  6752. 'description' => 'TODO: please describe this table!',
  6753. 'fields' => array (
  6754. 'library_cvterm_id' => array (
  6755. 'description' => 'TODO: please describe this field!',
  6756. 'type' => 'serial',
  6757. 'not null' => true,
  6758. ),
  6759. 'library_id' => array (
  6760. 'description' => 'TODO: please describe this field!',
  6761. 'type' => 'int',
  6762. 'not null' => true,
  6763. ),
  6764. 'cvterm_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 => 'library_cvterm_id',
  6777. ),
  6778. 'unique keys' => array (
  6779. 'library_cvterm_c1' => array (
  6780. 0 => 'library_id',
  6781. 1 => 'cvterm_id',
  6782. 2 => 'pub_id',
  6783. ),
  6784. ),
  6785. 'indexes' => array (
  6786. 'library_cvterm_idx1' => array (
  6787. 0 => 'library_id',
  6788. ),
  6789. 'library_cvterm_idx2' => array (
  6790. 0 => 'cvterm_id',
  6791. ),
  6792. 'library_cvterm_idx3' => array (
  6793. 0 => 'pub_id',
  6794. ),
  6795. ),
  6796. 'foreign keys' => array (
  6797. 'cvterm' => array (
  6798. 'table' => 'cvterm',
  6799. 'columns' => array (
  6800. 'cvterm_id' => 'cvterm_id',
  6801. ),
  6802. ),
  6803. 'pub' => array (
  6804. 'table' => 'pub',
  6805. 'columns' => array (
  6806. 'pub_id' => 'pub_id',
  6807. ),
  6808. ),
  6809. 'library' => array (
  6810. 'table' => 'library',
  6811. 'columns' => array (
  6812. 'library_id' => 'library_id',
  6813. ),
  6814. ),
  6815. ),
  6816. );
  6817. return $description;
  6818. }
  6819. /**
  6820. * Implements hook_chado_schema_v1_2_library_dbxref()
  6821. * Purpose: To describe the structure of 'library_dbxref' to tripal
  6822. * @see tripal_core_chado_insert()
  6823. * @see tripal_core_chado_update()
  6824. * @see tripal_core_chado_select()
  6825. *
  6826. * @return
  6827. * An array describing the 'library_dbxref' table
  6828. *
  6829. * @ingroup tripal_chado_v1.2_schema_api
  6830. *
  6831. */
  6832. function tripal_core_chado_schema_v1_2_library_dbxref() {
  6833. $description = array (
  6834. 'description' => 'TODO: please describe this table!',
  6835. 'fields' => array (
  6836. 'library_dbxref_id' => array (
  6837. 'description' => 'TODO: please describe this field!',
  6838. 'type' => 'serial',
  6839. 'not null' => true,
  6840. ),
  6841. 'library_id' => array (
  6842. 'description' => 'TODO: please describe this field!',
  6843. 'type' => 'int',
  6844. 'not null' => true,
  6845. ),
  6846. 'dbxref_id' => array (
  6847. 'description' => 'TODO: please describe this field!',
  6848. 'type' => 'int',
  6849. 'not null' => true,
  6850. ),
  6851. 'is_current' => array (
  6852. 'description' => 'TODO: please describe this field!',
  6853. 'type' => 'boolean',
  6854. 'not null' => true,
  6855. 'default' => 'ru',
  6856. ),
  6857. ),
  6858. 'primary key' => array (
  6859. 0 => 'library_dbxref_id',
  6860. ),
  6861. 'unique keys' => array (
  6862. 'library_dbxref_c1' => array (
  6863. 0 => 'library_id',
  6864. 1 => 'dbxref_id',
  6865. ),
  6866. ),
  6867. 'indexes' => array (
  6868. 'library_dbxref_idx1' => array (
  6869. 0 => 'library_id',
  6870. ),
  6871. 'library_dbxref_idx2' => array (
  6872. 0 => 'dbxref_id',
  6873. ),
  6874. ),
  6875. 'foreign keys' => array (
  6876. 'dbxref' => array (
  6877. 'table' => 'dbxref',
  6878. 'columns' => array (
  6879. 'dbxref_id' => 'dbxref_id',
  6880. ),
  6881. ),
  6882. 'library' => array (
  6883. 'table' => 'library',
  6884. 'columns' => array (
  6885. 'library_id' => 'library_id',
  6886. ),
  6887. ),
  6888. ),
  6889. );
  6890. return $description;
  6891. }
  6892. /**
  6893. * Implements hook_chado_schema_v1_2_library_feature()
  6894. * Purpose: To describe the structure of 'library_feature' to tripal
  6895. * @see tripal_core_chado_insert()
  6896. * @see tripal_core_chado_update()
  6897. * @see tripal_core_chado_select()
  6898. *
  6899. * @return
  6900. * An array describing the 'library_feature' table
  6901. *
  6902. * @ingroup tripal_chado_v1.2_schema_api
  6903. *
  6904. */
  6905. function tripal_core_chado_schema_v1_2_library_feature() {
  6906. $description = array (
  6907. 'description' => 'TODO: please describe this table!',
  6908. 'fields' => array (
  6909. 'library_feature_id' => array (
  6910. 'description' => 'TODO: please describe this field!',
  6911. 'type' => 'serial',
  6912. 'not null' => true,
  6913. ),
  6914. 'library_id' => array (
  6915. 'description' => 'TODO: please describe this field!',
  6916. 'type' => 'int',
  6917. 'not null' => true,
  6918. ),
  6919. 'feature_id' => array (
  6920. 'description' => 'TODO: please describe this field!',
  6921. 'type' => 'int',
  6922. 'not null' => true,
  6923. ),
  6924. ),
  6925. 'primary key' => array (
  6926. 0 => 'library_feature_id',
  6927. ),
  6928. 'unique keys' => array (
  6929. 'library_feature_c1' => array (
  6930. 0 => 'library_id',
  6931. 1 => 'feature_id',
  6932. ),
  6933. ),
  6934. 'indexes' => array (
  6935. 'library_feature_idx1' => array (
  6936. 0 => 'library_id',
  6937. ),
  6938. 'library_feature_idx2' => array (
  6939. 0 => 'feature_id',
  6940. ),
  6941. ),
  6942. 'foreign keys' => array (
  6943. 'feature' => array (
  6944. 'table' => 'feature',
  6945. 'columns' => array (
  6946. 'feature_id' => 'feature_id',
  6947. ),
  6948. ),
  6949. 'library' => array (
  6950. 'table' => 'library',
  6951. 'columns' => array (
  6952. 'library_id' => 'library_id',
  6953. ),
  6954. ),
  6955. ),
  6956. );
  6957. return $description;
  6958. }
  6959. /**
  6960. * Implements hook_chado_schema_v1_2_library_pub()
  6961. * Purpose: To describe the structure of 'library_pub' to tripal
  6962. * @see tripal_core_chado_insert()
  6963. * @see tripal_core_chado_update()
  6964. * @see tripal_core_chado_select()
  6965. *
  6966. * @return
  6967. * An array describing the 'library_pub' table
  6968. *
  6969. * @ingroup tripal_chado_v1.2_schema_api
  6970. *
  6971. */
  6972. function tripal_core_chado_schema_v1_2_library_pub() {
  6973. $description = array (
  6974. 'description' => 'TODO: please describe this table!',
  6975. 'fields' => array (
  6976. 'library_pub_id' => array (
  6977. 'description' => 'TODO: please describe this field!',
  6978. 'type' => 'serial',
  6979. 'not null' => true,
  6980. ),
  6981. 'library_id' => array (
  6982. 'description' => 'TODO: please describe this field!',
  6983. 'type' => 'int',
  6984. 'not null' => true,
  6985. ),
  6986. 'pub_id' => array (
  6987. 'description' => 'TODO: please describe this field!',
  6988. 'type' => 'int',
  6989. 'not null' => true,
  6990. ),
  6991. ),
  6992. 'primary key' => array (
  6993. 0 => 'library_pub_id',
  6994. ),
  6995. 'unique keys' => array (
  6996. 'library_pub_c1' => array (
  6997. 0 => 'library_id',
  6998. 1 => 'pub_id',
  6999. ),
  7000. ),
  7001. 'indexes' => array (
  7002. 'library_pub_idx1' => array (
  7003. 0 => 'library_id',
  7004. ),
  7005. 'library_pub_idx2' => array (
  7006. 0 => 'pub_id',
  7007. ),
  7008. ),
  7009. 'foreign keys' => array (
  7010. 'pub' => array (
  7011. 'table' => 'pub',
  7012. 'columns' => array (
  7013. 'pub_id' => 'pub_id',
  7014. ),
  7015. ),
  7016. 'library' => array (
  7017. 'table' => 'library',
  7018. 'columns' => array (
  7019. 'library_id' => 'library_id',
  7020. ),
  7021. ),
  7022. ),
  7023. );
  7024. return $description;
  7025. }
  7026. /**
  7027. * Implements hook_chado_schema_v1_2_library_synonym()
  7028. * Purpose: To describe the structure of 'library_synonym' to tripal
  7029. * @see tripal_core_chado_insert()
  7030. * @see tripal_core_chado_update()
  7031. * @see tripal_core_chado_select()
  7032. *
  7033. * @return
  7034. * An array describing the 'library_synonym' table
  7035. *
  7036. * @ingroup tripal_chado_v1.2_schema_api
  7037. *
  7038. */
  7039. function tripal_core_chado_schema_v1_2_library_synonym() {
  7040. $description = array (
  7041. 'description' => 'TODO: please describe this table!',
  7042. 'fields' => array (
  7043. 'library_synonym_id' => array (
  7044. 'description' => 'TODO: please describe this field!',
  7045. 'type' => 'serial',
  7046. 'not null' => true,
  7047. ),
  7048. 'synonym_id' => array (
  7049. 'description' => 'TODO: please describe this field!',
  7050. 'type' => 'int',
  7051. 'not null' => true,
  7052. ),
  7053. 'library_id' => array (
  7054. 'description' => 'TODO: please describe this field!',
  7055. 'type' => 'int',
  7056. 'not null' => true,
  7057. ),
  7058. 'pub_id' => array (
  7059. 'description' => 'TODO: please describe this field!',
  7060. 'type' => 'int',
  7061. 'not null' => true,
  7062. ),
  7063. 'is_current' => array (
  7064. 'description' => 'TODO: please describe this field!',
  7065. 'type' => 'boolean',
  7066. 'not null' => true,
  7067. 'default' => 'ru',
  7068. ),
  7069. 'is_internal' => array (
  7070. 'description' => 'TODO: please describe this field!',
  7071. 'type' => 'boolean',
  7072. 'not null' => true,
  7073. 'default' => 'als',
  7074. ),
  7075. ),
  7076. 'primary key' => array (
  7077. 0 => 'library_synonym_id',
  7078. ),
  7079. 'unique keys' => array (
  7080. 'library_synonym_c1' => array (
  7081. 0 => 'synonym_id',
  7082. 1 => 'library_id',
  7083. 2 => 'pub_id',
  7084. ),
  7085. ),
  7086. 'indexes' => array (
  7087. 'library_synonym_idx1' => array (
  7088. 0 => 'synonym_id',
  7089. ),
  7090. 'library_synonym_idx2' => array (
  7091. 0 => 'library_id',
  7092. ),
  7093. 'library_synonym_idx3' => array (
  7094. 0 => 'pub_id',
  7095. ),
  7096. ),
  7097. 'foreign keys' => array (
  7098. 'pub' => array (
  7099. 'table' => 'pub',
  7100. 'columns' => array (
  7101. 'pub_id' => 'pub_id',
  7102. ),
  7103. ),
  7104. 'synonym' => array (
  7105. 'table' => 'synonym',
  7106. 'columns' => array (
  7107. 'synonym_id' => 'synonym_id',
  7108. ),
  7109. ),
  7110. 'library' => array (
  7111. 'table' => 'library',
  7112. 'columns' => array (
  7113. 'library_id' => 'library_id',
  7114. ),
  7115. ),
  7116. ),
  7117. );
  7118. return $description;
  7119. }
  7120. /**
  7121. * Implements hook_chado_schema_v1_2_libraryprop()
  7122. * Purpose: To describe the structure of 'libraryprop' to tripal
  7123. * @see tripal_core_chado_insert()
  7124. * @see tripal_core_chado_update()
  7125. * @see tripal_core_chado_select()
  7126. *
  7127. * @return
  7128. * An array describing the 'libraryprop' table
  7129. *
  7130. * @ingroup tripal_chado_v1.2_schema_api
  7131. *
  7132. */
  7133. function tripal_core_chado_schema_v1_2_libraryprop() {
  7134. $description = array (
  7135. 'description' => 'TODO: please describe this table!',
  7136. 'fields' => array (
  7137. 'libraryprop_id' => array (
  7138. 'description' => 'TODO: please describe this field!',
  7139. 'type' => 'serial',
  7140. 'not null' => true,
  7141. ),
  7142. 'library_id' => array (
  7143. 'description' => 'TODO: please describe this field!',
  7144. 'type' => 'int',
  7145. 'not null' => true,
  7146. ),
  7147. 'type_id' => array (
  7148. 'description' => 'TODO: please describe this field!',
  7149. 'type' => 'int',
  7150. 'not null' => true,
  7151. ),
  7152. 'value' => array (
  7153. 'description' => 'TODO: please describe this field!',
  7154. 'type' => 'text',
  7155. 'not null' => false,
  7156. ),
  7157. 'rank' => array (
  7158. 'description' => 'TODO: please describe this field!',
  7159. 'type' => 'int',
  7160. 'not null' => true,
  7161. 'default' => 0,
  7162. ),
  7163. ),
  7164. 'primary key' => array (
  7165. 0 => 'libraryprop_id',
  7166. ),
  7167. 'unique keys' => array (
  7168. 'libraryprop_c1' => array (
  7169. 0 => 'library_id',
  7170. 1 => 'type_id',
  7171. 2 => 'rank',
  7172. ),
  7173. ),
  7174. 'indexes' => array (
  7175. 'libraryprop_idx1' => array (
  7176. 0 => 'library_id',
  7177. ),
  7178. 'libraryprop_idx2' => array (
  7179. 0 => 'type_id',
  7180. ),
  7181. ),
  7182. 'foreign keys' => array (
  7183. 'cvterm' => array (
  7184. 'table' => 'cvterm',
  7185. 'columns' => array (
  7186. 'type_id' => 'cvterm_id',
  7187. ),
  7188. ),
  7189. 'library' => array (
  7190. 'table' => 'library',
  7191. 'columns' => array (
  7192. 'library_id' => 'library_id',
  7193. ),
  7194. ),
  7195. ),
  7196. );
  7197. return $description;
  7198. }
  7199. /**
  7200. * Implements hook_chado_schema_v1_2_libraryprop_pub()
  7201. * Purpose: To describe the structure of 'libraryprop_pub' to tripal
  7202. * @see tripal_core_chado_insert()
  7203. * @see tripal_core_chado_update()
  7204. * @see tripal_core_chado_select()
  7205. *
  7206. * @return
  7207. * An array describing the 'libraryprop_pub' table
  7208. *
  7209. * @ingroup tripal_chado_v1.2_schema_api
  7210. *
  7211. */
  7212. function tripal_core_chado_schema_v1_2_libraryprop_pub() {
  7213. $description = array (
  7214. 'description' => 'TODO: please describe this table!',
  7215. 'fields' => array (
  7216. 'libraryprop_pub_id' => array (
  7217. 'description' => 'TODO: please describe this field!',
  7218. 'type' => 'serial',
  7219. 'not null' => true,
  7220. ),
  7221. 'libraryprop_id' => array (
  7222. 'description' => 'TODO: please describe this field!',
  7223. 'type' => 'int',
  7224. 'not null' => true,
  7225. ),
  7226. 'pub_id' => array (
  7227. 'description' => 'TODO: please describe this field!',
  7228. 'type' => 'int',
  7229. 'not null' => true,
  7230. ),
  7231. ),
  7232. 'primary key' => array (
  7233. 0 => 'libraryprop_pub_id',
  7234. ),
  7235. 'unique keys' => array (
  7236. 'libraryprop_pub_c1' => array (
  7237. 0 => 'libraryprop_id',
  7238. 1 => 'pub_id',
  7239. ),
  7240. ),
  7241. 'indexes' => array (
  7242. 'libraryprop_pub_idx1' => array (
  7243. 0 => 'libraryprop_id',
  7244. ),
  7245. 'libraryprop_pub_idx2' => array (
  7246. 0 => 'pub_id',
  7247. ),
  7248. ),
  7249. 'foreign keys' => array (
  7250. 'pub' => array (
  7251. 'table' => 'pub',
  7252. 'columns' => array (
  7253. 'pub_id' => 'pub_id',
  7254. ),
  7255. ),
  7256. 'libraryprop' => array (
  7257. 'table' => 'libraryprop',
  7258. 'columns' => array (
  7259. 'libraryprop_id' => 'libraryprop_id',
  7260. ),
  7261. ),
  7262. ),
  7263. );
  7264. return $description;
  7265. }
  7266. /**
  7267. * Implements hook_chado_schema_v1_2_magedocumentation()
  7268. * Purpose: To describe the structure of 'magedocumentation' to tripal
  7269. * @see tripal_core_chado_insert()
  7270. * @see tripal_core_chado_update()
  7271. * @see tripal_core_chado_select()
  7272. *
  7273. * @return
  7274. * An array describing the 'magedocumentation' table
  7275. *
  7276. * @ingroup tripal_chado_v1.2_schema_api
  7277. *
  7278. */
  7279. function tripal_core_chado_schema_v1_2_magedocumentation() {
  7280. $description = array (
  7281. 'description' => 'TODO: please describe this table!',
  7282. 'fields' => array (
  7283. 'magedocumentation_id' => array (
  7284. 'description' => 'TODO: please describe this field!',
  7285. 'type' => 'serial',
  7286. 'not null' => true,
  7287. ),
  7288. 'mageml_id' => array (
  7289. 'description' => 'TODO: please describe this field!',
  7290. 'type' => 'int',
  7291. 'not null' => true,
  7292. ),
  7293. 'tableinfo_id' => array (
  7294. 'description' => 'TODO: please describe this field!',
  7295. 'type' => 'int',
  7296. 'not null' => true,
  7297. ),
  7298. 'row_id' => array (
  7299. 'description' => 'TODO: please describe this field!',
  7300. 'type' => 'int',
  7301. 'not null' => true,
  7302. ),
  7303. 'mageidentifier' => array (
  7304. 'description' => 'TODO: please describe this field!',
  7305. 'type' => 'text',
  7306. 'not null' => true,
  7307. ),
  7308. ),
  7309. 'primary key' => array (
  7310. 0 => 'magedocumentation_id',
  7311. ),
  7312. 'indexes' => array (
  7313. 'magedocumentation_idx1' => array (
  7314. 0 => 'mageml_id',
  7315. ),
  7316. 'magedocumentation_idx2' => array (
  7317. 0 => 'tableinfo_id',
  7318. ),
  7319. 'magedocumentation_idx3' => array (
  7320. 0 => 'row_id',
  7321. ),
  7322. ),
  7323. 'foreign keys' => array (
  7324. 'tableinfo' => array (
  7325. 'table' => 'tableinfo',
  7326. 'columns' => array (
  7327. 'tableinfo_id' => 'tableinfo_id',
  7328. ),
  7329. ),
  7330. 'mageml' => array (
  7331. 'table' => 'mageml',
  7332. 'columns' => array (
  7333. 'mageml_id' => 'mageml_id',
  7334. ),
  7335. ),
  7336. ),
  7337. );
  7338. return $description;
  7339. }
  7340. /**
  7341. * Implements hook_chado_schema_v1_2_mageml()
  7342. * Purpose: To describe the structure of 'mageml' to tripal
  7343. * @see tripal_core_chado_insert()
  7344. * @see tripal_core_chado_update()
  7345. * @see tripal_core_chado_select()
  7346. *
  7347. * @return
  7348. * An array describing the 'mageml' table
  7349. *
  7350. * @ingroup tripal_chado_v1.2_schema_api
  7351. *
  7352. */
  7353. function tripal_core_chado_schema_v1_2_mageml() {
  7354. $description = array (
  7355. 'description' => 'TODO: please describe this table!',
  7356. 'fields' => array (
  7357. 'mageml_id' => array (
  7358. 'description' => 'TODO: please describe this field!',
  7359. 'type' => 'serial',
  7360. 'not null' => true,
  7361. ),
  7362. 'mage_package' => array (
  7363. 'description' => 'TODO: please describe this field!',
  7364. 'type' => 'text',
  7365. 'not null' => true,
  7366. ),
  7367. 'mage_ml' => array (
  7368. 'description' => 'TODO: please describe this field!',
  7369. 'type' => 'text',
  7370. 'not null' => true,
  7371. ),
  7372. ),
  7373. 'primary key' => array (
  7374. 0 => 'mageml_id',
  7375. ),
  7376. 'foreign keys' => array (
  7377. ),
  7378. );
  7379. return $description;
  7380. }
  7381. /**
  7382. * Implements hook_chado_schema_v1_2_materialized_view()
  7383. * Purpose: To describe the structure of 'materialized_view' to tripal
  7384. * @see tripal_core_chado_insert()
  7385. * @see tripal_core_chado_update()
  7386. * @see tripal_core_chado_select()
  7387. *
  7388. * @return
  7389. * An array describing the 'materialized_view' table
  7390. *
  7391. * @ingroup tripal_chado_v1.2_schema_api
  7392. *
  7393. */
  7394. function tripal_core_chado_schema_v1_2_materialized_view() {
  7395. $description = array (
  7396. );
  7397. return $description;
  7398. }
  7399. /**
  7400. * Implements hook_chado_schema_v1_2_nd_experiment()
  7401. * Purpose: To describe the structure of 'nd_experiment' to tripal
  7402. * @see tripal_core_chado_insert()
  7403. * @see tripal_core_chado_update()
  7404. * @see tripal_core_chado_select()
  7405. *
  7406. * @return
  7407. * An array describing the 'nd_experiment' table
  7408. *
  7409. * @ingroup tripal_chado_v1.2_schema_api
  7410. *
  7411. */
  7412. function tripal_core_chado_schema_v1_2_nd_experiment() {
  7413. $description = array (
  7414. 'description' => 'TODO: please describe this table!',
  7415. 'fields' => array (
  7416. 'nd_experiment_id' => array (
  7417. 'description' => 'TODO: please describe this field!',
  7418. 'type' => 'serial',
  7419. 'not null' => true,
  7420. ),
  7421. 'nd_geolocation_id' => array (
  7422. 'description' => 'TODO: please describe this field!',
  7423. 'type' => 'int',
  7424. 'not null' => true,
  7425. ),
  7426. 'type_id' => array (
  7427. 'description' => 'TODO: please describe this field!',
  7428. 'type' => 'int',
  7429. 'not null' => true,
  7430. ),
  7431. ),
  7432. 'primary key' => array (
  7433. 0 => 'nd_experiment_id',
  7434. ),
  7435. 'foreign keys' => array (
  7436. 'cvterm' => array (
  7437. 'table' => 'cvterm',
  7438. 'columns' => array (
  7439. 'type_id' => 'cvterm_id',
  7440. ),
  7441. ),
  7442. 'nd_geolocation' => array (
  7443. 'table' => 'nd_geolocation',
  7444. 'columns' => array (
  7445. 'nd_geolocation_id' => 'nd_geolocation_id',
  7446. ),
  7447. ),
  7448. ),
  7449. );
  7450. return $description;
  7451. }
  7452. /**
  7453. * Implements hook_chado_schema_v1_2_nd_experiment_contact()
  7454. * Purpose: To describe the structure of 'nd_experiment_contact' to tripal
  7455. * @see tripal_core_chado_insert()
  7456. * @see tripal_core_chado_update()
  7457. * @see tripal_core_chado_select()
  7458. *
  7459. * @return
  7460. * An array describing the 'nd_experiment_contact' table
  7461. *
  7462. * @ingroup tripal_chado_v1.2_schema_api
  7463. *
  7464. */
  7465. function tripal_core_chado_schema_v1_2_nd_experiment_contact() {
  7466. $description = array (
  7467. 'description' => 'TODO: please describe this table!',
  7468. 'fields' => array (
  7469. 'nd_experiment_contact_id' => array (
  7470. 'description' => 'TODO: please describe this field!',
  7471. 'type' => 'serial',
  7472. 'not null' => true,
  7473. ),
  7474. 'nd_experiment_id' => array (
  7475. 'description' => 'TODO: please describe this field!',
  7476. 'type' => 'int',
  7477. 'not null' => true,
  7478. ),
  7479. 'contact_id' => array (
  7480. 'description' => 'TODO: please describe this field!',
  7481. 'type' => 'int',
  7482. 'not null' => true,
  7483. ),
  7484. ),
  7485. 'primary key' => array (
  7486. 0 => 'nd_experiment_contact_id',
  7487. ),
  7488. 'foreign keys' => array (
  7489. 'contact' => array (
  7490. 'table' => 'contact',
  7491. 'columns' => array (
  7492. 'contact_id' => 'contact_id',
  7493. ),
  7494. ),
  7495. 'nd_experiment' => array (
  7496. 'table' => 'nd_experiment',
  7497. 'columns' => array (
  7498. 'nd_experiment_id' => 'nd_experiment_id',
  7499. ),
  7500. ),
  7501. ),
  7502. );
  7503. return $description;
  7504. }
  7505. /**
  7506. * Implements hook_chado_schema_v1_2_nd_experiment_dbxref()
  7507. * Purpose: To describe the structure of 'nd_experiment_dbxref' to tripal
  7508. * @see tripal_core_chado_insert()
  7509. * @see tripal_core_chado_update()
  7510. * @see tripal_core_chado_select()
  7511. *
  7512. * @return
  7513. * An array describing the 'nd_experiment_dbxref' table
  7514. *
  7515. * @ingroup tripal_chado_v1.2_schema_api
  7516. *
  7517. */
  7518. function tripal_core_chado_schema_v1_2_nd_experiment_dbxref() {
  7519. $description = array (
  7520. 'description' => 'TODO: please describe this table!',
  7521. 'fields' => array (
  7522. 'nd_experiment_dbxref_id' => array (
  7523. 'description' => 'TODO: please describe this field!',
  7524. 'type' => 'serial',
  7525. 'not null' => true,
  7526. ),
  7527. 'nd_experiment_id' => array (
  7528. 'description' => 'TODO: please describe this field!',
  7529. 'type' => 'int',
  7530. 'not null' => true,
  7531. ),
  7532. 'dbxref_id' => array (
  7533. 'description' => 'TODO: please describe this field!',
  7534. 'type' => 'int',
  7535. 'not null' => true,
  7536. ),
  7537. ),
  7538. 'primary key' => array (
  7539. 0 => 'nd_experiment_dbxref_id',
  7540. ),
  7541. 'foreign keys' => array (
  7542. 'dbxref' => array (
  7543. 'table' => 'dbxref',
  7544. 'columns' => array (
  7545. 'dbxref_id' => 'dbxref_id',
  7546. ),
  7547. ),
  7548. 'nd_experiment' => array (
  7549. 'table' => 'nd_experiment',
  7550. 'columns' => array (
  7551. 'nd_experiment_id' => 'nd_experiment_id',
  7552. ),
  7553. ),
  7554. ),
  7555. );
  7556. return $description;
  7557. }
  7558. /**
  7559. * Implements hook_chado_schema_v1_2_nd_experiment_genotype()
  7560. * Purpose: To describe the structure of 'nd_experiment_genotype' to tripal
  7561. * @see tripal_core_chado_insert()
  7562. * @see tripal_core_chado_update()
  7563. * @see tripal_core_chado_select()
  7564. *
  7565. * @return
  7566. * An array describing the 'nd_experiment_genotype' table
  7567. *
  7568. * @ingroup tripal_chado_v1.2_schema_api
  7569. *
  7570. */
  7571. function tripal_core_chado_schema_v1_2_nd_experiment_genotype() {
  7572. $description = array (
  7573. 'description' => 'TODO: please describe this table!',
  7574. 'fields' => array (
  7575. 'nd_experiment_genotype_id' => array (
  7576. 'description' => 'TODO: please describe this field!',
  7577. 'type' => 'serial',
  7578. 'not null' => true,
  7579. ),
  7580. 'nd_experiment_id' => array (
  7581. 'description' => 'TODO: please describe this field!',
  7582. 'type' => 'int',
  7583. 'not null' => true,
  7584. ),
  7585. 'genotype_id' => array (
  7586. 'description' => 'TODO: please describe this field!',
  7587. 'type' => 'int',
  7588. 'not null' => true,
  7589. ),
  7590. ),
  7591. 'primary key' => array (
  7592. 0 => 'nd_experiment_genotype_id',
  7593. ),
  7594. 'unique keys' => array (
  7595. 'nd_experiment_genotype_c1' => array (
  7596. 0 => 'nd_experiment_id',
  7597. 1 => 'genotype_id',
  7598. ),
  7599. ),
  7600. 'foreign keys' => array (
  7601. 'genotype' => array (
  7602. 'table' => 'genotype',
  7603. 'columns' => array (
  7604. 'genotype_id' => 'genotype_id',
  7605. ),
  7606. ),
  7607. 'nd_experiment' => array (
  7608. 'table' => 'nd_experiment',
  7609. 'columns' => array (
  7610. 'nd_experiment_id' => 'nd_experiment_id',
  7611. ),
  7612. ),
  7613. ),
  7614. );
  7615. return $description;
  7616. }
  7617. /**
  7618. * Implements hook_chado_schema_v1_2_nd_experiment_phenotype()
  7619. * Purpose: To describe the structure of 'nd_experiment_phenotype' to tripal
  7620. * @see tripal_core_chado_insert()
  7621. * @see tripal_core_chado_update()
  7622. * @see tripal_core_chado_select()
  7623. *
  7624. * @return
  7625. * An array describing the 'nd_experiment_phenotype' table
  7626. *
  7627. * @ingroup tripal_chado_v1.2_schema_api
  7628. *
  7629. */
  7630. function tripal_core_chado_schema_v1_2_nd_experiment_phenotype() {
  7631. $description = array (
  7632. 'description' => 'TODO: please describe this table!',
  7633. 'fields' => array (
  7634. 'nd_experiment_phenotype_id' => array (
  7635. 'description' => 'TODO: please describe this field!',
  7636. 'type' => 'serial',
  7637. 'not null' => true,
  7638. ),
  7639. 'nd_experiment_id' => array (
  7640. 'description' => 'TODO: please describe this field!',
  7641. 'type' => 'int',
  7642. 'not null' => true,
  7643. ),
  7644. 'phenotype_id' => array (
  7645. 'description' => 'TODO: please describe this field!',
  7646. 'type' => 'int',
  7647. 'not null' => true,
  7648. ),
  7649. ),
  7650. 'primary key' => array (
  7651. 0 => 'nd_experiment_phenotype_id',
  7652. ),
  7653. 'unique keys' => array (
  7654. 'nd_experiment_phenotype_c1' => array (
  7655. 0 => 'nd_experiment_id',
  7656. 1 => 'phenotype_id',
  7657. ),
  7658. ),
  7659. 'foreign keys' => array (
  7660. 'phenotype' => array (
  7661. 'table' => 'phenotype',
  7662. 'columns' => array (
  7663. 'phenotype_id' => 'phenotype_id',
  7664. ),
  7665. ),
  7666. 'nd_experiment' => array (
  7667. 'table' => 'nd_experiment',
  7668. 'columns' => array (
  7669. 'nd_experiment_id' => 'nd_experiment_id',
  7670. ),
  7671. ),
  7672. ),
  7673. );
  7674. return $description;
  7675. }
  7676. /**
  7677. * Implements hook_chado_schema_v1_2_nd_experiment_project()
  7678. * Purpose: To describe the structure of 'nd_experiment_project' to tripal
  7679. * @see tripal_core_chado_insert()
  7680. * @see tripal_core_chado_update()
  7681. * @see tripal_core_chado_select()
  7682. *
  7683. * @return
  7684. * An array describing the 'nd_experiment_project' table
  7685. *
  7686. * @ingroup tripal_chado_v1.2_schema_api
  7687. *
  7688. */
  7689. function tripal_core_chado_schema_v1_2_nd_experiment_project() {
  7690. $description = array (
  7691. 'description' => 'TODO: please describe this table!',
  7692. 'fields' => array (
  7693. 'nd_experiment_project_id' => array (
  7694. 'description' => 'TODO: please describe this field!',
  7695. 'type' => 'serial',
  7696. 'not null' => true,
  7697. ),
  7698. 'project_id' => array (
  7699. 'description' => 'TODO: please describe this field!',
  7700. 'type' => 'int',
  7701. 'not null' => true,
  7702. ),
  7703. 'nd_experiment_id' => array (
  7704. 'description' => 'TODO: please describe this field!',
  7705. 'type' => 'int',
  7706. 'not null' => true,
  7707. ),
  7708. ),
  7709. 'primary key' => array (
  7710. 0 => 'nd_experiment_project_id',
  7711. ),
  7712. 'foreign keys' => array (
  7713. 'project' => array (
  7714. 'table' => 'project',
  7715. 'columns' => array (
  7716. 'project_id' => 'project_id',
  7717. ),
  7718. ),
  7719. 'nd_experiment' => array (
  7720. 'table' => 'nd_experiment',
  7721. 'columns' => array (
  7722. 'nd_experiment_id' => 'nd_experiment_id',
  7723. ),
  7724. ),
  7725. ),
  7726. );
  7727. return $description;
  7728. }
  7729. /**
  7730. * Implements hook_chado_schema_v1_2_nd_experiment_protocol()
  7731. * Purpose: To describe the structure of 'nd_experiment_protocol' to tripal
  7732. * @see tripal_core_chado_insert()
  7733. * @see tripal_core_chado_update()
  7734. * @see tripal_core_chado_select()
  7735. *
  7736. * @return
  7737. * An array describing the 'nd_experiment_protocol' table
  7738. *
  7739. * @ingroup tripal_chado_v1.2_schema_api
  7740. *
  7741. */
  7742. function tripal_core_chado_schema_v1_2_nd_experiment_protocol() {
  7743. $description = array (
  7744. 'description' => 'TODO: please describe this table!',
  7745. 'fields' => array (
  7746. 'nd_experiment_protocol_id' => array (
  7747. 'description' => 'TODO: please describe this field!',
  7748. 'type' => 'serial',
  7749. 'not null' => true,
  7750. ),
  7751. 'nd_experiment_id' => array (
  7752. 'description' => 'TODO: please describe this field!',
  7753. 'type' => 'int',
  7754. 'not null' => true,
  7755. ),
  7756. 'nd_protocol_id' => array (
  7757. 'description' => 'TODO: please describe this field!',
  7758. 'type' => 'int',
  7759. 'not null' => true,
  7760. ),
  7761. ),
  7762. 'primary key' => array (
  7763. 0 => 'nd_experiment_protocol_id',
  7764. ),
  7765. 'foreign keys' => array (
  7766. 'nd_experiment' => array (
  7767. 'table' => 'nd_experiment',
  7768. 'columns' => array (
  7769. 'nd_experiment_id' => 'nd_experiment_id',
  7770. ),
  7771. ),
  7772. 'nd_protocol' => array (
  7773. 'table' => 'nd_protocol',
  7774. 'columns' => array (
  7775. 'nd_protocol_id' => 'nd_protocol_id',
  7776. ),
  7777. ),
  7778. ),
  7779. );
  7780. return $description;
  7781. }
  7782. /**
  7783. * Implements hook_chado_schema_v1_2_nd_experiment_pub()
  7784. * Purpose: To describe the structure of 'nd_experiment_pub' to tripal
  7785. * @see tripal_core_chado_insert()
  7786. * @see tripal_core_chado_update()
  7787. * @see tripal_core_chado_select()
  7788. *
  7789. * @return
  7790. * An array describing the 'nd_experiment_pub' table
  7791. *
  7792. * @ingroup tripal_chado_v1.2_schema_api
  7793. *
  7794. */
  7795. function tripal_core_chado_schema_v1_2_nd_experiment_pub() {
  7796. $description = array (
  7797. 'description' => 'TODO: please describe this table!',
  7798. 'fields' => array (
  7799. 'nd_experiment_pub_id' => array (
  7800. 'description' => 'TODO: please describe this field!',
  7801. 'type' => 'serial',
  7802. 'not null' => true,
  7803. ),
  7804. 'nd_experiment_id' => array (
  7805. 'description' => 'TODO: please describe this field!',
  7806. 'type' => 'int',
  7807. 'not null' => true,
  7808. ),
  7809. 'pub_id' => array (
  7810. 'description' => 'TODO: please describe this field!',
  7811. 'type' => 'int',
  7812. 'not null' => true,
  7813. ),
  7814. ),
  7815. 'primary key' => array (
  7816. 0 => 'nd_experiment_pub_id',
  7817. ),
  7818. 'unique keys' => array (
  7819. 'nd_experiment_pub_c1' => array (
  7820. 0 => 'nd_experiment_id',
  7821. 1 => 'pub_id',
  7822. ),
  7823. ),
  7824. 'indexes' => array (
  7825. 'nd_experiment_pub_idx1' => array (
  7826. 0 => 'nd_experiment_id',
  7827. ),
  7828. 'nd_experiment_pub_idx2' => array (
  7829. 0 => 'pub_id',
  7830. ),
  7831. ),
  7832. 'foreign keys' => array (
  7833. 'pub' => array (
  7834. 'table' => 'pub',
  7835. 'columns' => array (
  7836. 'pub_id' => 'pub_id',
  7837. ),
  7838. ),
  7839. 'nd_experiment' => array (
  7840. 'table' => 'nd_experiment',
  7841. 'columns' => array (
  7842. 'nd_experiment_id' => 'nd_experiment_id',
  7843. ),
  7844. ),
  7845. ),
  7846. );
  7847. return $description;
  7848. }
  7849. /**
  7850. * Implements hook_chado_schema_v1_2_nd_experiment_stock()
  7851. * Purpose: To describe the structure of 'nd_experiment_stock' to tripal
  7852. * @see tripal_core_chado_insert()
  7853. * @see tripal_core_chado_update()
  7854. * @see tripal_core_chado_select()
  7855. *
  7856. * @return
  7857. * An array describing the 'nd_experiment_stock' table
  7858. *
  7859. * @ingroup tripal_chado_v1.2_schema_api
  7860. *
  7861. */
  7862. function tripal_core_chado_schema_v1_2_nd_experiment_stock() {
  7863. $description = array (
  7864. 'description' => 'TODO: please describe this table!',
  7865. 'fields' => array (
  7866. 'nd_experiment_stock_id' => array (
  7867. 'description' => 'TODO: please describe this field!',
  7868. 'type' => 'serial',
  7869. 'not null' => true,
  7870. ),
  7871. 'nd_experiment_id' => array (
  7872. 'description' => 'TODO: please describe this field!',
  7873. 'type' => 'int',
  7874. 'not null' => true,
  7875. ),
  7876. 'stock_id' => array (
  7877. 'description' => 'TODO: please describe this field!',
  7878. 'type' => 'int',
  7879. 'not null' => true,
  7880. ),
  7881. 'type_id' => array (
  7882. 'description' => 'TODO: please describe this field!',
  7883. 'type' => 'int',
  7884. 'not null' => true,
  7885. ),
  7886. ),
  7887. 'primary key' => array (
  7888. 0 => 'nd_experiment_stock_id',
  7889. ),
  7890. 'foreign keys' => array (
  7891. 'cvterm' => array (
  7892. 'table' => 'cvterm',
  7893. 'columns' => array (
  7894. 'type_id' => 'cvterm_id',
  7895. ),
  7896. ),
  7897. 'stock' => array (
  7898. 'table' => 'stock',
  7899. 'columns' => array (
  7900. 'stock_id' => 'stock_id',
  7901. ),
  7902. ),
  7903. 'nd_experiment' => array (
  7904. 'table' => 'nd_experiment',
  7905. 'columns' => array (
  7906. 'nd_experiment_id' => 'nd_experiment_id',
  7907. ),
  7908. ),
  7909. ),
  7910. );
  7911. return $description;
  7912. }
  7913. /**
  7914. * Implements hook_chado_schema_v1_2_nd_experiment_stock_dbxref()
  7915. * Purpose: To describe the structure of 'nd_experiment_stock_dbxref' to tripal
  7916. * @see tripal_core_chado_insert()
  7917. * @see tripal_core_chado_update()
  7918. * @see tripal_core_chado_select()
  7919. *
  7920. * @return
  7921. * An array describing the 'nd_experiment_stock_dbxref' table
  7922. *
  7923. * @ingroup tripal_chado_v1.2_schema_api
  7924. *
  7925. */
  7926. function tripal_core_chado_schema_v1_2_nd_experiment_stock_dbxref() {
  7927. $description = array (
  7928. 'description' => 'TODO: please describe this table!',
  7929. 'fields' => array (
  7930. 'nd_experiment_stock_dbxref_id' => array (
  7931. 'description' => 'TODO: please describe this field!',
  7932. 'type' => 'serial',
  7933. 'not null' => true,
  7934. ),
  7935. 'nd_experiment_stock_id' => array (
  7936. 'description' => 'TODO: please describe this field!',
  7937. 'type' => 'int',
  7938. 'not null' => true,
  7939. ),
  7940. 'dbxref_id' => array (
  7941. 'description' => 'TODO: please describe this field!',
  7942. 'type' => 'int',
  7943. 'not null' => true,
  7944. ),
  7945. ),
  7946. 'primary key' => array (
  7947. 0 => 'nd_experiment_stock_dbxref_id',
  7948. ),
  7949. 'foreign keys' => array (
  7950. 'dbxref' => array (
  7951. 'table' => 'dbxref',
  7952. 'columns' => array (
  7953. 'dbxref_id' => 'dbxref_id',
  7954. ),
  7955. ),
  7956. 'nd_experiment_stock' => array (
  7957. 'table' => 'nd_experiment_stock',
  7958. 'columns' => array (
  7959. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  7960. ),
  7961. ),
  7962. ),
  7963. );
  7964. return $description;
  7965. }
  7966. /**
  7967. * Implements hook_chado_schema_v1_2_nd_experiment_stockprop()
  7968. * Purpose: To describe the structure of 'nd_experiment_stockprop' to tripal
  7969. * @see tripal_core_chado_insert()
  7970. * @see tripal_core_chado_update()
  7971. * @see tripal_core_chado_select()
  7972. *
  7973. * @return
  7974. * An array describing the 'nd_experiment_stockprop' table
  7975. *
  7976. * @ingroup tripal_chado_v1.2_schema_api
  7977. *
  7978. */
  7979. function tripal_core_chado_schema_v1_2_nd_experiment_stockprop() {
  7980. $description = array (
  7981. 'description' => 'TODO: please describe this table!',
  7982. 'fields' => array (
  7983. 'nd_experiment_stockprop_id' => array (
  7984. 'description' => 'TODO: please describe this field!',
  7985. 'type' => 'serial',
  7986. 'not null' => true,
  7987. ),
  7988. 'nd_experiment_stock_id' => array (
  7989. 'description' => 'TODO: please describe this field!',
  7990. 'type' => 'int',
  7991. 'not null' => true,
  7992. ),
  7993. 'type_id' => array (
  7994. 'description' => 'TODO: please describe this field!',
  7995. 'type' => 'int',
  7996. 'not null' => true,
  7997. ),
  7998. 'value' => array (
  7999. 'description' => 'TODO: please describe this field!',
  8000. 'type' => 'text',
  8001. 'not null' => false,
  8002. ),
  8003. 'rank' => array (
  8004. 'description' => 'TODO: please describe this field!',
  8005. 'type' => 'int',
  8006. 'not null' => true,
  8007. 'default' => 0,
  8008. ),
  8009. ),
  8010. 'primary key' => array (
  8011. 0 => 'nd_experiment_stockprop_id',
  8012. ),
  8013. 'unique keys' => array (
  8014. 'nd_experiment_stockprop_c1' => array (
  8015. 0 => 'nd_experiment_stock_id',
  8016. 1 => 'type_id',
  8017. 2 => 'rank',
  8018. ),
  8019. ),
  8020. 'foreign keys' => array (
  8021. 'cvterm' => array (
  8022. 'table' => 'cvterm',
  8023. 'columns' => array (
  8024. 'type_id' => 'cvterm_id',
  8025. ),
  8026. ),
  8027. 'nd_experiment_stock' => array (
  8028. 'table' => 'nd_experiment_stock',
  8029. 'columns' => array (
  8030. 'nd_experiment_stock_id' => 'nd_experiment_stock_id',
  8031. ),
  8032. ),
  8033. ),
  8034. );
  8035. return $description;
  8036. }
  8037. /**
  8038. * Implements hook_chado_schema_v1_2_nd_experimentprop()
  8039. * Purpose: To describe the structure of 'nd_experimentprop' to tripal
  8040. * @see tripal_core_chado_insert()
  8041. * @see tripal_core_chado_update()
  8042. * @see tripal_core_chado_select()
  8043. *
  8044. * @return
  8045. * An array describing the 'nd_experimentprop' table
  8046. *
  8047. * @ingroup tripal_chado_v1.2_schema_api
  8048. *
  8049. */
  8050. function tripal_core_chado_schema_v1_2_nd_experimentprop() {
  8051. $description = array (
  8052. 'description' => 'TODO: please describe this table!',
  8053. 'fields' => array (
  8054. 'nd_experimentprop_id' => array (
  8055. 'description' => 'TODO: please describe this field!',
  8056. 'type' => 'serial',
  8057. 'not null' => true,
  8058. ),
  8059. 'nd_experiment_id' => array (
  8060. 'description' => 'TODO: please describe this field!',
  8061. 'type' => 'int',
  8062. 'not null' => true,
  8063. ),
  8064. 'type_id' => array (
  8065. 'description' => 'TODO: please describe this field!',
  8066. 'type' => 'int',
  8067. 'not null' => true,
  8068. ),
  8069. 'value' => array (
  8070. 'description' => 'TODO: please describe this field!',
  8071. 'type' => 'text',
  8072. 'not null' => false,
  8073. ),
  8074. 'rank' => array (
  8075. 'description' => 'TODO: please describe this field!',
  8076. 'type' => 'int',
  8077. 'not null' => true,
  8078. 'default' => 0,
  8079. ),
  8080. ),
  8081. 'primary key' => array (
  8082. 0 => 'nd_experimentprop_id',
  8083. ),
  8084. 'unique keys' => array (
  8085. 'nd_experimentprop_c1' => array (
  8086. 0 => 'nd_experiment_id',
  8087. 1 => 'type_id',
  8088. 2 => 'rank',
  8089. ),
  8090. ),
  8091. 'foreign keys' => array (
  8092. 'cvterm' => array (
  8093. 'table' => 'cvterm',
  8094. 'columns' => array (
  8095. 'type_id' => 'cvterm_id',
  8096. ),
  8097. ),
  8098. 'nd_experiment' => array (
  8099. 'table' => 'nd_experiment',
  8100. 'columns' => array (
  8101. 'nd_experiment_id' => 'nd_experiment_id',
  8102. ),
  8103. ),
  8104. ),
  8105. );
  8106. return $description;
  8107. }
  8108. /**
  8109. * Implements hook_chado_schema_v1_2_nd_geolocation()
  8110. * Purpose: To describe the structure of 'nd_geolocation' to tripal
  8111. * @see tripal_core_chado_insert()
  8112. * @see tripal_core_chado_update()
  8113. * @see tripal_core_chado_select()
  8114. *
  8115. * @return
  8116. * An array describing the 'nd_geolocation' table
  8117. *
  8118. * @ingroup tripal_chado_v1.2_schema_api
  8119. *
  8120. */
  8121. function tripal_core_chado_schema_v1_2_nd_geolocation() {
  8122. $description = array (
  8123. 'description' => 'TODO: please describe this table!',
  8124. 'fields' => array (
  8125. 'nd_geolocation_id' => array (
  8126. 'description' => 'TODO: please describe this field!',
  8127. 'type' => 'serial',
  8128. 'not null' => true,
  8129. ),
  8130. 'description' => array (
  8131. 'description' => 'TODO: please describe this field!',
  8132. 'type' => 'varchar',
  8133. 'length' => '255',
  8134. 'not null' => false,
  8135. ),
  8136. 'latitude' => array (
  8137. 'description' => 'TODO: please describe this field!',
  8138. 'type' => 'float',
  8139. 'not null' => false,
  8140. ),
  8141. 'longitude' => array (
  8142. 'description' => 'TODO: please describe this field!',
  8143. 'type' => 'float',
  8144. 'not null' => false,
  8145. ),
  8146. 'geodetic_datum' => array (
  8147. 'description' => 'TODO: please describe this field!',
  8148. 'type' => 'varchar',
  8149. 'length' => '32',
  8150. 'not null' => false,
  8151. ),
  8152. 'altitude' => array (
  8153. 'description' => 'TODO: please describe this field!',
  8154. 'type' => 'float',
  8155. 'not null' => false,
  8156. ),
  8157. ),
  8158. 'primary key' => array (
  8159. 0 => 'nd_geolocation_id',
  8160. ),
  8161. 'foreign keys' => array (
  8162. ),
  8163. );
  8164. return $description;
  8165. }
  8166. /**
  8167. * Implements hook_chado_schema_v1_2_nd_geolocationprop()
  8168. * Purpose: To describe the structure of 'nd_geolocationprop' to tripal
  8169. * @see tripal_core_chado_insert()
  8170. * @see tripal_core_chado_update()
  8171. * @see tripal_core_chado_select()
  8172. *
  8173. * @return
  8174. * An array describing the 'nd_geolocationprop' table
  8175. *
  8176. * @ingroup tripal_chado_v1.2_schema_api
  8177. *
  8178. */
  8179. function tripal_core_chado_schema_v1_2_nd_geolocationprop() {
  8180. $description = array (
  8181. 'description' => 'TODO: please describe this table!',
  8182. 'fields' => array (
  8183. 'nd_geolocationprop_id' => array (
  8184. 'description' => 'TODO: please describe this field!',
  8185. 'type' => 'serial',
  8186. 'not null' => true,
  8187. ),
  8188. 'nd_geolocation_id' => array (
  8189. 'description' => 'TODO: please describe this field!',
  8190. 'type' => 'int',
  8191. 'not null' => true,
  8192. ),
  8193. 'type_id' => array (
  8194. 'description' => 'TODO: please describe this field!',
  8195. 'type' => 'int',
  8196. 'not null' => true,
  8197. ),
  8198. 'value' => array (
  8199. 'description' => 'TODO: please describe this field!',
  8200. 'type' => 'text',
  8201. 'not null' => false,
  8202. ),
  8203. 'rank' => array (
  8204. 'description' => 'TODO: please describe this field!',
  8205. 'type' => 'int',
  8206. 'not null' => true,
  8207. 'default' => 0,
  8208. ),
  8209. ),
  8210. 'primary key' => array (
  8211. 0 => 'nd_geolocationprop_id',
  8212. ),
  8213. 'unique keys' => array (
  8214. 'nd_geolocationprop_c1' => array (
  8215. 0 => 'nd_geolocation_id',
  8216. 1 => 'type_id',
  8217. 2 => 'rank',
  8218. ),
  8219. ),
  8220. 'foreign keys' => array (
  8221. 'cvterm' => array (
  8222. 'table' => 'cvterm',
  8223. 'columns' => array (
  8224. 'type_id' => 'cvterm_id',
  8225. ),
  8226. ),
  8227. 'nd_geolocation' => array (
  8228. 'table' => 'nd_geolocation',
  8229. 'columns' => array (
  8230. 'nd_geolocation_id' => 'nd_geolocation_id',
  8231. ),
  8232. ),
  8233. ),
  8234. );
  8235. return $description;
  8236. }
  8237. /**
  8238. * Implements hook_chado_schema_v1_2_nd_protocol()
  8239. * Purpose: To describe the structure of 'nd_protocol' to tripal
  8240. * @see tripal_core_chado_insert()
  8241. * @see tripal_core_chado_update()
  8242. * @see tripal_core_chado_select()
  8243. *
  8244. * @return
  8245. * An array describing the 'nd_protocol' table
  8246. *
  8247. * @ingroup tripal_chado_v1.2_schema_api
  8248. *
  8249. */
  8250. function tripal_core_chado_schema_v1_2_nd_protocol() {
  8251. $description = array (
  8252. 'description' => 'TODO: please describe this table!',
  8253. 'fields' => array (
  8254. 'nd_protocol_id' => array (
  8255. 'description' => 'TODO: please describe this field!',
  8256. 'type' => 'serial',
  8257. 'not null' => true,
  8258. ),
  8259. 'name' => array (
  8260. 'description' => 'TODO: please describe this field!',
  8261. 'type' => 'varchar',
  8262. 'length' => '255',
  8263. 'not null' => true,
  8264. ),
  8265. 'type_id' => array (
  8266. 'description' => 'TODO: please describe this field!',
  8267. 'type' => 'int',
  8268. 'not null' => true,
  8269. ),
  8270. ),
  8271. 'primary key' => array (
  8272. 0 => 'nd_protocol_id',
  8273. ),
  8274. 'unique keys' => array (
  8275. 'name' => array (
  8276. 0 => 'name',
  8277. ),
  8278. ),
  8279. 'foreign keys' => array (
  8280. 'cvterm' => array (
  8281. 'table' => 'cvterm',
  8282. 'columns' => array (
  8283. 'type_id' => 'cvterm_id',
  8284. ),
  8285. ),
  8286. ),
  8287. );
  8288. return $description;
  8289. }
  8290. /**
  8291. * Implements hook_chado_schema_v1_2_nd_protocol_reagent()
  8292. * Purpose: To describe the structure of 'nd_protocol_reagent' to tripal
  8293. * @see tripal_core_chado_insert()
  8294. * @see tripal_core_chado_update()
  8295. * @see tripal_core_chado_select()
  8296. *
  8297. * @return
  8298. * An array describing the 'nd_protocol_reagent' table
  8299. *
  8300. * @ingroup tripal_chado_v1.2_schema_api
  8301. *
  8302. */
  8303. function tripal_core_chado_schema_v1_2_nd_protocol_reagent() {
  8304. $description = array (
  8305. 'description' => 'TODO: please describe this table!',
  8306. 'fields' => array (
  8307. 'nd_protocol_reagent_id' => array (
  8308. 'description' => 'TODO: please describe this field!',
  8309. 'type' => 'serial',
  8310. 'not null' => true,
  8311. ),
  8312. 'nd_protocol_id' => array (
  8313. 'description' => 'TODO: please describe this field!',
  8314. 'type' => 'int',
  8315. 'not null' => true,
  8316. ),
  8317. 'reagent_id' => array (
  8318. 'description' => 'TODO: please describe this field!',
  8319. 'type' => 'int',
  8320. 'not null' => true,
  8321. ),
  8322. 'type_id' => array (
  8323. 'description' => 'TODO: please describe this field!',
  8324. 'type' => 'int',
  8325. 'not null' => true,
  8326. ),
  8327. ),
  8328. 'primary key' => array (
  8329. 0 => 'nd_protocol_reagent_id',
  8330. ),
  8331. 'foreign keys' => array (
  8332. 'cvterm' => array (
  8333. 'table' => 'cvterm',
  8334. 'columns' => array (
  8335. 'type_id' => 'cvterm_id',
  8336. ),
  8337. ),
  8338. 'nd_protocol' => array (
  8339. 'table' => 'nd_protocol',
  8340. 'columns' => array (
  8341. 'nd_protocol_id' => 'nd_protocol_id',
  8342. ),
  8343. ),
  8344. 'nd_reagent' => array (
  8345. 'table' => 'nd_reagent',
  8346. 'columns' => array (
  8347. 'reagent_id' => 'nd_reagent_id',
  8348. ),
  8349. ),
  8350. ),
  8351. );
  8352. return $description;
  8353. }
  8354. /**
  8355. * Implements hook_chado_schema_v1_2_nd_protocolprop()
  8356. * Purpose: To describe the structure of 'nd_protocolprop' to tripal
  8357. * @see tripal_core_chado_insert()
  8358. * @see tripal_core_chado_update()
  8359. * @see tripal_core_chado_select()
  8360. *
  8361. * @return
  8362. * An array describing the 'nd_protocolprop' table
  8363. *
  8364. * @ingroup tripal_chado_v1.2_schema_api
  8365. *
  8366. */
  8367. function tripal_core_chado_schema_v1_2_nd_protocolprop() {
  8368. $description = array (
  8369. 'description' => 'TODO: please describe this table!',
  8370. 'fields' => array (
  8371. 'nd_protocolprop_id' => array (
  8372. 'description' => 'TODO: please describe this field!',
  8373. 'type' => 'serial',
  8374. 'not null' => true,
  8375. ),
  8376. 'nd_protocol_id' => array (
  8377. 'description' => 'TODO: please describe this field!',
  8378. 'type' => 'int',
  8379. 'not null' => true,
  8380. ),
  8381. 'type_id' => array (
  8382. 'description' => 'TODO: please describe this field!',
  8383. 'type' => 'int',
  8384. 'not null' => true,
  8385. ),
  8386. 'value' => array (
  8387. 'description' => 'TODO: please describe this field!',
  8388. 'type' => 'text',
  8389. 'not null' => false,
  8390. ),
  8391. 'rank' => array (
  8392. 'description' => 'TODO: please describe this field!',
  8393. 'type' => 'int',
  8394. 'not null' => true,
  8395. 'default' => 0,
  8396. ),
  8397. ),
  8398. 'primary key' => array (
  8399. 0 => 'nd_protocolprop_id',
  8400. ),
  8401. 'unique keys' => array (
  8402. 'nd_protocolprop_c1' => array (
  8403. 0 => 'nd_protocol_id',
  8404. 1 => 'type_id',
  8405. 2 => 'rank',
  8406. ),
  8407. ),
  8408. 'foreign keys' => array (
  8409. 'cvterm' => array (
  8410. 'table' => 'cvterm',
  8411. 'columns' => array (
  8412. 'type_id' => 'cvterm_id',
  8413. ),
  8414. ),
  8415. 'nd_protocol' => array (
  8416. 'table' => 'nd_protocol',
  8417. 'columns' => array (
  8418. 'nd_protocol_id' => 'nd_protocol_id',
  8419. ),
  8420. ),
  8421. ),
  8422. );
  8423. return $description;
  8424. }
  8425. /**
  8426. * Implements hook_chado_schema_v1_2_nd_reagent()
  8427. * Purpose: To describe the structure of 'nd_reagent' to tripal
  8428. * @see tripal_core_chado_insert()
  8429. * @see tripal_core_chado_update()
  8430. * @see tripal_core_chado_select()
  8431. *
  8432. * @return
  8433. * An array describing the 'nd_reagent' table
  8434. *
  8435. * @ingroup tripal_chado_v1.2_schema_api
  8436. *
  8437. */
  8438. function tripal_core_chado_schema_v1_2_nd_reagent() {
  8439. $description = array (
  8440. 'description' => 'TODO: please describe this table!',
  8441. 'fields' => array (
  8442. 'nd_reagent_id' => array (
  8443. 'description' => 'TODO: please describe this field!',
  8444. 'type' => 'serial',
  8445. 'not null' => true,
  8446. ),
  8447. 'name' => array (
  8448. 'description' => 'TODO: please describe this field!',
  8449. 'type' => 'varchar',
  8450. 'length' => '80',
  8451. 'not null' => true,
  8452. ),
  8453. 'type_id' => array (
  8454. 'description' => 'TODO: please describe this field!',
  8455. 'type' => 'int',
  8456. 'not null' => true,
  8457. ),
  8458. 'feature_id' => array (
  8459. 'description' => 'TODO: please describe this field!',
  8460. 'type' => 'int',
  8461. 'not null' => false,
  8462. ),
  8463. ),
  8464. 'primary key' => array (
  8465. 0 => 'nd_reagent_id',
  8466. ),
  8467. 'foreign keys' => array (
  8468. 'cvterm' => array (
  8469. 'table' => 'cvterm',
  8470. 'columns' => array (
  8471. 'type_id' => 'cvterm_id',
  8472. ),
  8473. ),
  8474. ),
  8475. );
  8476. return $description;
  8477. }
  8478. /**
  8479. * Implements hook_chado_schema_v1_2_nd_reagent_relationship()
  8480. * Purpose: To describe the structure of 'nd_reagent_relationship' to tripal
  8481. * @see tripal_core_chado_insert()
  8482. * @see tripal_core_chado_update()
  8483. * @see tripal_core_chado_select()
  8484. *
  8485. * @return
  8486. * An array describing the 'nd_reagent_relationship' table
  8487. *
  8488. * @ingroup tripal_chado_v1.2_schema_api
  8489. *
  8490. */
  8491. function tripal_core_chado_schema_v1_2_nd_reagent_relationship() {
  8492. $description = array (
  8493. 'description' => 'TODO: please describe this table!',
  8494. 'fields' => array (
  8495. 'nd_reagent_relationship_id' => array (
  8496. 'description' => 'TODO: please describe this field!',
  8497. 'type' => 'serial',
  8498. 'not null' => true,
  8499. ),
  8500. 'subject_reagent_id' => array (
  8501. 'description' => 'TODO: please describe this field!',
  8502. 'type' => 'int',
  8503. 'not null' => true,
  8504. ),
  8505. 'object_reagent_id' => array (
  8506. 'description' => 'TODO: please describe this field!',
  8507. 'type' => 'int',
  8508. 'not null' => true,
  8509. ),
  8510. 'type_id' => array (
  8511. 'description' => 'TODO: please describe this field!',
  8512. 'type' => 'int',
  8513. 'not null' => true,
  8514. ),
  8515. ),
  8516. 'primary key' => array (
  8517. 0 => 'nd_reagent_relationship_id',
  8518. ),
  8519. 'foreign keys' => array (
  8520. 'cvterm' => array (
  8521. 'table' => 'cvterm',
  8522. 'columns' => array (
  8523. 'type_id' => 'cvterm_id',
  8524. ),
  8525. ),
  8526. 'nd_reagent' => array (
  8527. 'table' => 'nd_reagent',
  8528. 'columns' => array (
  8529. 'subject_reagent_id' => 'nd_reagent_id',
  8530. 'object_reagent_id' => 'nd_reagent_id',
  8531. ),
  8532. ),
  8533. ),
  8534. );
  8535. return $description;
  8536. }
  8537. /**
  8538. * Implements hook_chado_schema_v1_2_nd_reagentprop()
  8539. * Purpose: To describe the structure of 'nd_reagentprop' to tripal
  8540. * @see tripal_core_chado_insert()
  8541. * @see tripal_core_chado_update()
  8542. * @see tripal_core_chado_select()
  8543. *
  8544. * @return
  8545. * An array describing the 'nd_reagentprop' table
  8546. *
  8547. * @ingroup tripal_chado_v1.2_schema_api
  8548. *
  8549. */
  8550. function tripal_core_chado_schema_v1_2_nd_reagentprop() {
  8551. $description = array (
  8552. 'description' => 'TODO: please describe this table!',
  8553. 'fields' => array (
  8554. 'nd_reagentprop_id' => array (
  8555. 'description' => 'TODO: please describe this field!',
  8556. 'type' => 'serial',
  8557. 'not null' => true,
  8558. ),
  8559. 'nd_reagent_id' => array (
  8560. 'description' => 'TODO: please describe this field!',
  8561. 'type' => 'int',
  8562. 'not null' => true,
  8563. ),
  8564. 'type_id' => array (
  8565. 'description' => 'TODO: please describe this field!',
  8566. 'type' => 'int',
  8567. 'not null' => true,
  8568. ),
  8569. 'value' => array (
  8570. 'description' => 'TODO: please describe this field!',
  8571. 'type' => 'text',
  8572. 'not null' => false,
  8573. ),
  8574. 'rank' => array (
  8575. 'description' => 'TODO: please describe this field!',
  8576. 'type' => 'int',
  8577. 'not null' => true,
  8578. 'default' => 0,
  8579. ),
  8580. ),
  8581. 'primary key' => array (
  8582. 0 => 'nd_reagentprop_id',
  8583. ),
  8584. 'unique keys' => array (
  8585. 'nd_reagentprop_c1' => array (
  8586. 0 => 'nd_reagent_id',
  8587. 1 => 'type_id',
  8588. 2 => 'rank',
  8589. ),
  8590. ),
  8591. 'foreign keys' => array (
  8592. 'cvterm' => array (
  8593. 'table' => 'cvterm',
  8594. 'columns' => array (
  8595. 'type_id' => 'cvterm_id',
  8596. ),
  8597. ),
  8598. 'nd_reagent' => array (
  8599. 'table' => 'nd_reagent',
  8600. 'columns' => array (
  8601. 'nd_reagent_id' => 'nd_reagent_id',
  8602. ),
  8603. ),
  8604. ),
  8605. );
  8606. return $description;
  8607. }
  8608. /**
  8609. * Implements hook_chado_schema_v1_2_organism()
  8610. * Purpose: To describe the structure of 'organism' to tripal
  8611. * @see tripal_core_chado_insert()
  8612. * @see tripal_core_chado_update()
  8613. * @see tripal_core_chado_select()
  8614. *
  8615. * @return
  8616. * An array describing the 'organism' table
  8617. *
  8618. * @ingroup tripal_chado_v1.2_schema_api
  8619. *
  8620. */
  8621. function tripal_core_chado_schema_v1_2_organism() {
  8622. $description = array (
  8623. 'description' => 'TODO: please describe this table!',
  8624. 'fields' => array (
  8625. 'organism_id' => array (
  8626. 'description' => 'TODO: please describe this field!',
  8627. 'type' => 'serial',
  8628. 'not null' => true,
  8629. ),
  8630. 'abbreviation' => array (
  8631. 'description' => 'TODO: please describe this field!',
  8632. 'type' => 'varchar',
  8633. 'length' => '255',
  8634. 'not null' => false,
  8635. ),
  8636. 'genus' => array (
  8637. 'description' => 'TODO: please describe this field!',
  8638. 'type' => 'varchar',
  8639. 'length' => '255',
  8640. 'not null' => true,
  8641. ),
  8642. 'species' => array (
  8643. 'description' => 'TODO: please describe this field!',
  8644. 'type' => 'varchar',
  8645. 'length' => '255',
  8646. 'not null' => true,
  8647. ),
  8648. 'common_name' => array (
  8649. 'description' => 'TODO: please describe this field!',
  8650. 'type' => 'varchar',
  8651. 'length' => '255',
  8652. 'not null' => false,
  8653. ),
  8654. 'comment' => array (
  8655. 'description' => 'TODO: please describe this field!',
  8656. 'type' => 'text',
  8657. 'not null' => false,
  8658. ),
  8659. ),
  8660. 'primary key' => array (
  8661. 0 => 'organism_id',
  8662. ),
  8663. 'unique keys' => array (
  8664. 'organism_c1' => array (
  8665. 0 => 'genus',
  8666. 1 => 'species',
  8667. ),
  8668. ),
  8669. 'foreign keys' => array (
  8670. ),
  8671. );
  8672. return $description;
  8673. }
  8674. /**
  8675. * Implements hook_chado_schema_v1_2_organism_dbxref()
  8676. * Purpose: To describe the structure of 'organism_dbxref' to tripal
  8677. * @see tripal_core_chado_insert()
  8678. * @see tripal_core_chado_update()
  8679. * @see tripal_core_chado_select()
  8680. *
  8681. * @return
  8682. * An array describing the 'organism_dbxref' table
  8683. *
  8684. * @ingroup tripal_chado_v1.2_schema_api
  8685. *
  8686. */
  8687. function tripal_core_chado_schema_v1_2_organism_dbxref() {
  8688. $description = array (
  8689. 'description' => 'TODO: please describe this table!',
  8690. 'fields' => array (
  8691. 'organism_dbxref_id' => array (
  8692. 'description' => 'TODO: please describe this field!',
  8693. 'type' => 'serial',
  8694. 'not null' => true,
  8695. ),
  8696. 'organism_id' => array (
  8697. 'description' => 'TODO: please describe this field!',
  8698. 'type' => 'int',
  8699. 'not null' => true,
  8700. ),
  8701. 'dbxref_id' => array (
  8702. 'description' => 'TODO: please describe this field!',
  8703. 'type' => 'int',
  8704. 'not null' => true,
  8705. ),
  8706. ),
  8707. 'primary key' => array (
  8708. 0 => 'organism_dbxref_id',
  8709. ),
  8710. 'unique keys' => array (
  8711. 'organism_dbxref_c1' => array (
  8712. 0 => 'organism_id',
  8713. 1 => 'dbxref_id',
  8714. ),
  8715. ),
  8716. 'indexes' => array (
  8717. 'organism_dbxref_idx1' => array (
  8718. 0 => 'organism_id',
  8719. ),
  8720. 'organism_dbxref_idx2' => array (
  8721. 0 => 'dbxref_id',
  8722. ),
  8723. ),
  8724. 'foreign keys' => array (
  8725. 'organism' => array (
  8726. 'table' => 'organism',
  8727. 'columns' => array (
  8728. 'organism_id' => 'organism_id',
  8729. ),
  8730. ),
  8731. 'dbxref' => array (
  8732. 'table' => 'dbxref',
  8733. 'columns' => array (
  8734. 'dbxref_id' => 'dbxref_id',
  8735. ),
  8736. ),
  8737. ),
  8738. );
  8739. return $description;
  8740. }
  8741. /**
  8742. * Implements hook_chado_schema_v1_2_organism_feature_count()
  8743. * Purpose: To describe the structure of 'organism_feature_count' to tripal
  8744. * @see tripal_core_chado_insert()
  8745. * @see tripal_core_chado_update()
  8746. * @see tripal_core_chado_select()
  8747. *
  8748. * @return
  8749. * An array describing the 'organism_feature_count' table
  8750. *
  8751. * @ingroup tripal_chado_v1.2_schema_api
  8752. *
  8753. */
  8754. function tripal_core_chado_schema_v1_2_organism_feature_count() {
  8755. $description = array (
  8756. );
  8757. return $description;
  8758. }
  8759. /**
  8760. * Implements hook_chado_schema_v1_2_organismprop()
  8761. * Purpose: To describe the structure of 'organismprop' to tripal
  8762. * @see tripal_core_chado_insert()
  8763. * @see tripal_core_chado_update()
  8764. * @see tripal_core_chado_select()
  8765. *
  8766. * @return
  8767. * An array describing the 'organismprop' table
  8768. *
  8769. * @ingroup tripal_chado_v1.2_schema_api
  8770. *
  8771. */
  8772. function tripal_core_chado_schema_v1_2_organismprop() {
  8773. $description = array (
  8774. 'description' => 'TODO: please describe this table!',
  8775. 'fields' => array (
  8776. 'organismprop_id' => array (
  8777. 'description' => 'TODO: please describe this field!',
  8778. 'type' => 'serial',
  8779. 'not null' => true,
  8780. ),
  8781. 'organism_id' => array (
  8782. 'description' => 'TODO: please describe this field!',
  8783. 'type' => 'int',
  8784. 'not null' => true,
  8785. ),
  8786. 'type_id' => array (
  8787. 'description' => 'TODO: please describe this field!',
  8788. 'type' => 'int',
  8789. 'not null' => true,
  8790. ),
  8791. 'value' => array (
  8792. 'description' => 'TODO: please describe this field!',
  8793. 'type' => 'text',
  8794. 'not null' => false,
  8795. ),
  8796. 'rank' => array (
  8797. 'description' => 'TODO: please describe this field!',
  8798. 'type' => 'int',
  8799. 'not null' => true,
  8800. 'default' => 0,
  8801. ),
  8802. ),
  8803. 'primary key' => array (
  8804. 0 => 'organismprop_id',
  8805. ),
  8806. 'unique keys' => array (
  8807. 'organismprop_c1' => array (
  8808. 0 => 'organism_id',
  8809. 1 => 'type_id',
  8810. 2 => 'rank',
  8811. ),
  8812. ),
  8813. 'indexes' => array (
  8814. 'organismprop_idx1' => array (
  8815. 0 => 'organism_id',
  8816. ),
  8817. 'organismprop_idx2' => array (
  8818. 0 => 'type_id',
  8819. ),
  8820. ),
  8821. 'foreign keys' => array (
  8822. 'organism' => array (
  8823. 'table' => 'organism',
  8824. 'columns' => array (
  8825. 'organism_id' => 'organism_id',
  8826. ),
  8827. ),
  8828. 'cvterm' => array (
  8829. 'table' => 'cvterm',
  8830. 'columns' => array (
  8831. 'type_id' => 'cvterm_id',
  8832. ),
  8833. ),
  8834. ),
  8835. );
  8836. return $description;
  8837. }
  8838. /**
  8839. * Implements hook_chado_schema_v1_2_phendesc()
  8840. * Purpose: To describe the structure of 'phendesc' to tripal
  8841. * @see tripal_core_chado_insert()
  8842. * @see tripal_core_chado_update()
  8843. * @see tripal_core_chado_select()
  8844. *
  8845. * @return
  8846. * An array describing the 'phendesc' table
  8847. *
  8848. * @ingroup tripal_chado_v1.2_schema_api
  8849. *
  8850. */
  8851. function tripal_core_chado_schema_v1_2_phendesc() {
  8852. $description = array (
  8853. 'description' => 'TODO: please describe this table!',
  8854. 'fields' => array (
  8855. 'phendesc_id' => array (
  8856. 'description' => 'TODO: please describe this field!',
  8857. 'type' => 'serial',
  8858. 'not null' => true,
  8859. ),
  8860. 'genotype_id' => array (
  8861. 'description' => 'TODO: please describe this field!',
  8862. 'type' => 'int',
  8863. 'not null' => true,
  8864. ),
  8865. 'environment_id' => array (
  8866. 'description' => 'TODO: please describe this field!',
  8867. 'type' => 'int',
  8868. 'not null' => true,
  8869. ),
  8870. 'description' => array (
  8871. 'description' => 'TODO: please describe this field!',
  8872. 'type' => 'text',
  8873. 'not null' => true,
  8874. ),
  8875. 'type_id' => array (
  8876. 'description' => 'TODO: please describe this field!',
  8877. 'type' => 'int',
  8878. 'not null' => true,
  8879. ),
  8880. 'pub_id' => array (
  8881. 'description' => 'TODO: please describe this field!',
  8882. 'type' => 'int',
  8883. 'not null' => true,
  8884. ),
  8885. ),
  8886. 'primary key' => array (
  8887. 0 => 'phendesc_id',
  8888. ),
  8889. 'unique keys' => array (
  8890. 'phendesc_c1' => array (
  8891. 0 => 'genotype_id',
  8892. 1 => 'environment_id',
  8893. 2 => 'type_id',
  8894. 3 => 'pub_id',
  8895. ),
  8896. ),
  8897. 'indexes' => array (
  8898. 'phendesc_idx1' => array (
  8899. 0 => 'genotype_id',
  8900. ),
  8901. 'phendesc_idx2' => array (
  8902. 0 => 'environment_id',
  8903. ),
  8904. 'phendesc_idx3' => array (
  8905. 0 => 'pub_id',
  8906. ),
  8907. ),
  8908. 'foreign keys' => array (
  8909. 'cvterm' => array (
  8910. 'table' => 'cvterm',
  8911. 'columns' => array (
  8912. 'type_id' => 'cvterm_id',
  8913. ),
  8914. ),
  8915. 'pub' => array (
  8916. 'table' => 'pub',
  8917. 'columns' => array (
  8918. 'pub_id' => 'pub_id',
  8919. ),
  8920. ),
  8921. 'genotype' => array (
  8922. 'table' => 'genotype',
  8923. 'columns' => array (
  8924. 'genotype_id' => 'genotype_id',
  8925. ),
  8926. ),
  8927. 'environment' => array (
  8928. 'table' => 'environment',
  8929. 'columns' => array (
  8930. 'environment_id' => 'environment_id',
  8931. ),
  8932. ),
  8933. ),
  8934. );
  8935. return $description;
  8936. }
  8937. /**
  8938. * Implements hook_chado_schema_v1_2_phenotype()
  8939. * Purpose: To describe the structure of 'phenotype' 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 'phenotype' table
  8946. *
  8947. * @ingroup tripal_chado_v1.2_schema_api
  8948. *
  8949. */
  8950. function tripal_core_chado_schema_v1_2_phenotype() {
  8951. $description = array (
  8952. 'description' => 'TODO: please describe this table!',
  8953. 'fields' => array (
  8954. 'phenotype_id' => array (
  8955. 'description' => 'TODO: please describe this field!',
  8956. 'type' => 'serial',
  8957. 'not null' => true,
  8958. ),
  8959. 'uniquename' => array (
  8960. 'description' => 'TODO: please describe this field!',
  8961. 'type' => 'text',
  8962. 'not null' => true,
  8963. ),
  8964. 'name' => array (
  8965. 'description' => 'TODO: please describe this field!',
  8966. 'type' => 'text',
  8967. 'not null' => false,
  8968. ),
  8969. 'observable_id' => array (
  8970. 'description' => 'TODO: please describe this field!',
  8971. 'type' => 'int',
  8972. 'not null' => false,
  8973. ),
  8974. 'attr_id' => array (
  8975. 'description' => 'TODO: please describe this field!',
  8976. 'type' => 'int',
  8977. 'not null' => false,
  8978. ),
  8979. 'value' => array (
  8980. 'description' => 'TODO: please describe this field!',
  8981. 'type' => 'text',
  8982. 'not null' => false,
  8983. ),
  8984. 'cvalue_id' => array (
  8985. 'description' => 'TODO: please describe this field!',
  8986. 'type' => 'int',
  8987. 'not null' => false,
  8988. ),
  8989. 'assay_id' => array (
  8990. 'description' => 'TODO: please describe this field!',
  8991. 'type' => 'int',
  8992. 'not null' => false,
  8993. ),
  8994. ),
  8995. 'primary key' => array (
  8996. 0 => 'phenotype_id',
  8997. ),
  8998. 'unique keys' => array (
  8999. 'phenotype_c1' => array (
  9000. 0 => 'uniquename',
  9001. ),
  9002. ),
  9003. 'indexes' => array (
  9004. 'phenotype_idx1' => array (
  9005. 0 => 'cvalue_id',
  9006. ),
  9007. 'phenotype_idx2' => array (
  9008. 0 => 'observable_id',
  9009. ),
  9010. 'phenotype_idx3' => array (
  9011. 0 => 'attr_id',
  9012. ),
  9013. ),
  9014. 'foreign keys' => array (
  9015. 'cvterm' => array (
  9016. 'table' => 'cvterm',
  9017. 'columns' => array (
  9018. 'observable_id' => 'cvterm_id',
  9019. 'attr_id' => 'cvterm_id',
  9020. 'cvalue_id' => 'cvterm_id',
  9021. 'assay_id' => 'cvterm_id',
  9022. ),
  9023. ),
  9024. ),
  9025. );
  9026. return $description;
  9027. }
  9028. /**
  9029. * Implements hook_chado_schema_v1_2_phenotype_comparison()
  9030. * Purpose: To describe the structure of 'phenotype_comparison' to tripal
  9031. * @see tripal_core_chado_insert()
  9032. * @see tripal_core_chado_update()
  9033. * @see tripal_core_chado_select()
  9034. *
  9035. * @return
  9036. * An array describing the 'phenotype_comparison' table
  9037. *
  9038. * @ingroup tripal_chado_v1.2_schema_api
  9039. *
  9040. */
  9041. function tripal_core_chado_schema_v1_2_phenotype_comparison() {
  9042. $description = array (
  9043. 'description' => 'TODO: please describe this table!',
  9044. 'fields' => array (
  9045. 'phenotype_comparison_id' => array (
  9046. 'description' => 'TODO: please describe this field!',
  9047. 'type' => 'serial',
  9048. 'not null' => true,
  9049. ),
  9050. 'genotype1_id' => array (
  9051. 'description' => 'TODO: please describe this field!',
  9052. 'type' => 'int',
  9053. 'not null' => true,
  9054. ),
  9055. 'environment1_id' => array (
  9056. 'description' => 'TODO: please describe this field!',
  9057. 'type' => 'int',
  9058. 'not null' => true,
  9059. ),
  9060. 'genotype2_id' => array (
  9061. 'description' => 'TODO: please describe this field!',
  9062. 'type' => 'int',
  9063. 'not null' => true,
  9064. ),
  9065. 'environment2_id' => array (
  9066. 'description' => 'TODO: please describe this field!',
  9067. 'type' => 'int',
  9068. 'not null' => true,
  9069. ),
  9070. 'phenotype1_id' => array (
  9071. 'description' => 'TODO: please describe this field!',
  9072. 'type' => 'int',
  9073. 'not null' => true,
  9074. ),
  9075. 'phenotype2_id' => array (
  9076. 'description' => 'TODO: please describe this field!',
  9077. 'type' => 'int',
  9078. 'not null' => false,
  9079. ),
  9080. 'pub_id' => array (
  9081. 'description' => 'TODO: please describe this field!',
  9082. 'type' => 'int',
  9083. 'not null' => true,
  9084. ),
  9085. 'organism_id' => array (
  9086. 'description' => 'TODO: please describe this field!',
  9087. 'type' => 'int',
  9088. 'not null' => true,
  9089. ),
  9090. ),
  9091. 'primary key' => array (
  9092. 0 => 'phenotype_comparison_id',
  9093. ),
  9094. 'unique keys' => array (
  9095. 'phenotype_comparison_c1' => array (
  9096. 0 => 'genotype1_id',
  9097. 1 => 'environment1_id',
  9098. 2 => 'genotype2_id',
  9099. 3 => 'environment2_id',
  9100. 4 => 'phenotype1_id',
  9101. 5 => 'pub_id',
  9102. ),
  9103. ),
  9104. 'indexes' => array (
  9105. 'phenotype_comparison_idx1' => array (
  9106. 0 => 'genotype1_id',
  9107. ),
  9108. 'phenotype_comparison_idx2' => array (
  9109. 0 => 'genotype2_id',
  9110. ),
  9111. 'phenotype_comparison_idx4' => array (
  9112. 0 => 'pub_id',
  9113. ),
  9114. ),
  9115. 'foreign keys' => array (
  9116. 'organism' => array (
  9117. 'table' => 'organism',
  9118. 'columns' => array (
  9119. 'organism_id' => 'organism_id',
  9120. ),
  9121. ),
  9122. 'pub' => array (
  9123. 'table' => 'pub',
  9124. 'columns' => array (
  9125. 'pub_id' => 'pub_id',
  9126. ),
  9127. ),
  9128. 'genotype' => array (
  9129. 'table' => 'genotype',
  9130. 'columns' => array (
  9131. 'genotype1_id' => 'genotype_id',
  9132. 'genotype2_id' => 'genotype_id',
  9133. ),
  9134. ),
  9135. 'environment' => array (
  9136. 'table' => 'environment',
  9137. 'columns' => array (
  9138. 'environment1_id' => 'environment_id',
  9139. 'environment2_id' => 'environment_id',
  9140. ),
  9141. ),
  9142. 'phenotype' => array (
  9143. 'table' => 'phenotype',
  9144. 'columns' => array (
  9145. 'phenotype1_id' => 'phenotype_id',
  9146. 'phenotype2_id' => 'phenotype_id',
  9147. ),
  9148. ),
  9149. ),
  9150. );
  9151. return $description;
  9152. }
  9153. /**
  9154. * Implements hook_chado_schema_v1_2_phenotype_comparison_cvterm()
  9155. * Purpose: To describe the structure of 'phenotype_comparison_cvterm' to tripal
  9156. * @see tripal_core_chado_insert()
  9157. * @see tripal_core_chado_update()
  9158. * @see tripal_core_chado_select()
  9159. *
  9160. * @return
  9161. * An array describing the 'phenotype_comparison_cvterm' table
  9162. *
  9163. * @ingroup tripal_chado_v1.2_schema_api
  9164. *
  9165. */
  9166. function tripal_core_chado_schema_v1_2_phenotype_comparison_cvterm() {
  9167. $description = array (
  9168. 'description' => 'TODO: please describe this table!',
  9169. 'fields' => array (
  9170. 'phenotype_comparison_cvterm_id' => array (
  9171. 'description' => 'TODO: please describe this field!',
  9172. 'type' => 'serial',
  9173. 'not null' => true,
  9174. ),
  9175. 'phenotype_comparison_id' => array (
  9176. 'description' => 'TODO: please describe this field!',
  9177. 'type' => 'int',
  9178. 'not null' => true,
  9179. ),
  9180. 'cvterm_id' => array (
  9181. 'description' => 'TODO: please describe this field!',
  9182. 'type' => 'int',
  9183. 'not null' => true,
  9184. ),
  9185. 'pub_id' => array (
  9186. 'description' => 'TODO: please describe this field!',
  9187. 'type' => 'int',
  9188. 'not null' => true,
  9189. ),
  9190. 'rank' => array (
  9191. 'description' => 'TODO: please describe this field!',
  9192. 'type' => 'int',
  9193. 'not null' => true,
  9194. 'default' => 0,
  9195. ),
  9196. ),
  9197. 'primary key' => array (
  9198. 0 => 'phenotype_comparison_cvterm_id',
  9199. ),
  9200. 'unique keys' => array (
  9201. 'phenotype_comparison_cvterm_c1' => array (
  9202. 0 => 'phenotype_comparison_id',
  9203. 1 => 'cvterm_id',
  9204. ),
  9205. ),
  9206. 'indexes' => array (
  9207. 'phenotype_comparison_cvterm_idx1' => array (
  9208. 0 => 'phenotype_comparison_id',
  9209. ),
  9210. 'phenotype_comparison_cvterm_idx2' => array (
  9211. 0 => 'cvterm_id',
  9212. ),
  9213. ),
  9214. 'foreign keys' => array (
  9215. 'cvterm' => array (
  9216. 'table' => 'cvterm',
  9217. 'columns' => array (
  9218. 'cvterm_id' => 'cvterm_id',
  9219. ),
  9220. ),
  9221. 'pub' => array (
  9222. 'table' => 'pub',
  9223. 'columns' => array (
  9224. 'pub_id' => 'pub_id',
  9225. ),
  9226. ),
  9227. 'phenotype_comparison' => array (
  9228. 'table' => 'phenotype_comparison',
  9229. 'columns' => array (
  9230. 'phenotype_comparison_id' => 'phenotype_comparison_id',
  9231. ),
  9232. ),
  9233. ),
  9234. );
  9235. return $description;
  9236. }
  9237. /**
  9238. * Implements hook_chado_schema_v1_2_phenotype_cvterm()
  9239. * Purpose: To describe the structure of 'phenotype_cvterm' to tripal
  9240. * @see tripal_core_chado_insert()
  9241. * @see tripal_core_chado_update()
  9242. * @see tripal_core_chado_select()
  9243. *
  9244. * @return
  9245. * An array describing the 'phenotype_cvterm' table
  9246. *
  9247. * @ingroup tripal_chado_v1.2_schema_api
  9248. *
  9249. */
  9250. function tripal_core_chado_schema_v1_2_phenotype_cvterm() {
  9251. $description = array (
  9252. 'description' => 'TODO: please describe this table!',
  9253. 'fields' => array (
  9254. 'phenotype_cvterm_id' => array (
  9255. 'description' => 'TODO: please describe this field!',
  9256. 'type' => 'serial',
  9257. 'not null' => true,
  9258. ),
  9259. 'phenotype_id' => array (
  9260. 'description' => 'TODO: please describe this field!',
  9261. 'type' => 'int',
  9262. 'not null' => true,
  9263. ),
  9264. 'cvterm_id' => array (
  9265. 'description' => 'TODO: please describe this field!',
  9266. 'type' => 'int',
  9267. 'not null' => true,
  9268. ),
  9269. 'rank' => array (
  9270. 'description' => 'TODO: please describe this field!',
  9271. 'type' => 'int',
  9272. 'not null' => true,
  9273. 'default' => 0,
  9274. ),
  9275. ),
  9276. 'primary key' => array (
  9277. 0 => 'phenotype_cvterm_id',
  9278. ),
  9279. 'unique keys' => array (
  9280. 'phenotype_cvterm_c1' => array (
  9281. 0 => 'phenotype_id',
  9282. 1 => 'cvterm_id',
  9283. 2 => 'rank',
  9284. ),
  9285. ),
  9286. 'indexes' => array (
  9287. 'phenotype_cvterm_idx1' => array (
  9288. 0 => 'phenotype_id',
  9289. ),
  9290. 'phenotype_cvterm_idx2' => array (
  9291. 0 => 'cvterm_id',
  9292. ),
  9293. ),
  9294. 'foreign keys' => array (
  9295. 'cvterm' => array (
  9296. 'table' => 'cvterm',
  9297. 'columns' => array (
  9298. 'cvterm_id' => 'cvterm_id',
  9299. ),
  9300. ),
  9301. 'phenotype' => array (
  9302. 'table' => 'phenotype',
  9303. 'columns' => array (
  9304. 'phenotype_id' => 'phenotype_id',
  9305. ),
  9306. ),
  9307. ),
  9308. );
  9309. return $description;
  9310. }
  9311. /**
  9312. * Implements hook_chado_schema_v1_2_phenstatement()
  9313. * Purpose: To describe the structure of 'phenstatement' to tripal
  9314. * @see tripal_core_chado_insert()
  9315. * @see tripal_core_chado_update()
  9316. * @see tripal_core_chado_select()
  9317. *
  9318. * @return
  9319. * An array describing the 'phenstatement' table
  9320. *
  9321. * @ingroup tripal_chado_v1.2_schema_api
  9322. *
  9323. */
  9324. function tripal_core_chado_schema_v1_2_phenstatement() {
  9325. $description = array (
  9326. 'description' => 'TODO: please describe this table!',
  9327. 'fields' => array (
  9328. 'phenstatement_id' => array (
  9329. 'description' => 'TODO: please describe this field!',
  9330. 'type' => 'serial',
  9331. 'not null' => true,
  9332. ),
  9333. 'genotype_id' => array (
  9334. 'description' => 'TODO: please describe this field!',
  9335. 'type' => 'int',
  9336. 'not null' => true,
  9337. ),
  9338. 'environment_id' => array (
  9339. 'description' => 'TODO: please describe this field!',
  9340. 'type' => 'int',
  9341. 'not null' => true,
  9342. ),
  9343. 'phenotype_id' => array (
  9344. 'description' => 'TODO: please describe this field!',
  9345. 'type' => 'int',
  9346. 'not null' => true,
  9347. ),
  9348. 'type_id' => array (
  9349. 'description' => 'TODO: please describe this field!',
  9350. 'type' => 'int',
  9351. 'not null' => true,
  9352. ),
  9353. 'pub_id' => array (
  9354. 'description' => 'TODO: please describe this field!',
  9355. 'type' => 'int',
  9356. 'not null' => true,
  9357. ),
  9358. ),
  9359. 'primary key' => array (
  9360. 0 => 'phenstatement_id',
  9361. ),
  9362. 'unique keys' => array (
  9363. 'phenstatement_c1' => array (
  9364. 0 => 'genotype_id',
  9365. 1 => 'phenotype_id',
  9366. 2 => 'environment_id',
  9367. 3 => 'type_id',
  9368. 4 => 'pub_id',
  9369. ),
  9370. ),
  9371. 'indexes' => array (
  9372. 'phenstatement_idx1' => array (
  9373. 0 => 'genotype_id',
  9374. ),
  9375. 'phenstatement_idx2' => array (
  9376. 0 => 'phenotype_id',
  9377. ),
  9378. ),
  9379. 'foreign keys' => array (
  9380. 'cvterm' => array (
  9381. 'table' => 'cvterm',
  9382. 'columns' => array (
  9383. 'type_id' => 'cvterm_id',
  9384. ),
  9385. ),
  9386. 'pub' => array (
  9387. 'table' => 'pub',
  9388. 'columns' => array (
  9389. 'pub_id' => 'pub_id',
  9390. ),
  9391. ),
  9392. 'genotype' => array (
  9393. 'table' => 'genotype',
  9394. 'columns' => array (
  9395. 'genotype_id' => 'genotype_id',
  9396. ),
  9397. ),
  9398. 'environment' => array (
  9399. 'table' => 'environment',
  9400. 'columns' => array (
  9401. 'environment_id' => 'environment_id',
  9402. ),
  9403. ),
  9404. 'phenotype' => array (
  9405. 'table' => 'phenotype',
  9406. 'columns' => array (
  9407. 'phenotype_id' => 'phenotype_id',
  9408. ),
  9409. ),
  9410. ),
  9411. );
  9412. return $description;
  9413. }
  9414. /**
  9415. * Implements hook_chado_schema_v1_2_phylonode()
  9416. * Purpose: To describe the structure of 'phylonode' to tripal
  9417. * @see tripal_core_chado_insert()
  9418. * @see tripal_core_chado_update()
  9419. * @see tripal_core_chado_select()
  9420. *
  9421. * @return
  9422. * An array describing the 'phylonode' table
  9423. *
  9424. * @ingroup tripal_chado_v1.2_schema_api
  9425. *
  9426. */
  9427. function tripal_core_chado_schema_v1_2_phylonode() {
  9428. $description = array (
  9429. 'description' => 'TODO: please describe this table!',
  9430. 'fields' => array (
  9431. 'phylonode_id' => array (
  9432. 'description' => 'TODO: please describe this field!',
  9433. 'type' => 'serial',
  9434. 'not null' => true,
  9435. ),
  9436. 'phylotree_id' => array (
  9437. 'description' => 'TODO: please describe this field!',
  9438. 'type' => 'int',
  9439. 'not null' => true,
  9440. ),
  9441. 'parent_phylonode_id' => array (
  9442. 'description' => 'TODO: please describe this field!',
  9443. 'type' => 'int',
  9444. 'not null' => false,
  9445. ),
  9446. 'left_idx' => array (
  9447. 'description' => 'TODO: please describe this field!',
  9448. 'type' => 'int',
  9449. 'not null' => true,
  9450. ),
  9451. 'right_idx' => array (
  9452. 'description' => 'TODO: please describe this field!',
  9453. 'type' => 'int',
  9454. 'not null' => true,
  9455. ),
  9456. 'type_id' => array (
  9457. 'description' => 'TODO: please describe this field!',
  9458. 'type' => 'int',
  9459. 'not null' => false,
  9460. ),
  9461. 'feature_id' => array (
  9462. 'description' => 'TODO: please describe this field!',
  9463. 'type' => 'int',
  9464. 'not null' => false,
  9465. ),
  9466. 'label' => array (
  9467. 'description' => 'TODO: please describe this field!',
  9468. 'type' => 'varchar',
  9469. 'length' => '255',
  9470. 'not null' => false,
  9471. ),
  9472. 'distance' => array (
  9473. 'description' => 'TODO: please describe this field!',
  9474. 'type' => 'float',
  9475. 'size' => 'big',
  9476. 'not null' => false,
  9477. ),
  9478. ),
  9479. 'primary key' => array (
  9480. 0 => 'phylonode_id',
  9481. ),
  9482. 'unique keys' => array (
  9483. 'phylotree_id' => array (
  9484. 0 => 'phylotree_id',
  9485. 1 => 'left_idx',
  9486. ),
  9487. 'phylonode_phylotree_id_key1' => array (
  9488. 0 => 'phylotree_id',
  9489. 1 => 'right_idx',
  9490. ),
  9491. ),
  9492. 'foreign keys' => array (
  9493. 'cvterm' => array (
  9494. 'table' => 'cvterm',
  9495. 'columns' => array (
  9496. 'type_id' => 'cvterm_id',
  9497. ),
  9498. ),
  9499. 'feature' => array (
  9500. 'table' => 'feature',
  9501. 'columns' => array (
  9502. 'feature_id' => 'feature_id',
  9503. ),
  9504. ),
  9505. 'phylonode' => array (
  9506. 'table' => 'phylonode',
  9507. 'columns' => array (
  9508. 'parent_phylonode_id' => 'phylonode_id',
  9509. ),
  9510. ),
  9511. 'phylotree' => array (
  9512. 'table' => 'phylotree',
  9513. 'columns' => array (
  9514. 'phylotree_id' => 'phylotree_id',
  9515. ),
  9516. ),
  9517. ),
  9518. );
  9519. return $description;
  9520. }
  9521. /**
  9522. * Implements hook_chado_schema_v1_2_phylonode_dbxref()
  9523. * Purpose: To describe the structure of 'phylonode_dbxref' to tripal
  9524. * @see tripal_core_chado_insert()
  9525. * @see tripal_core_chado_update()
  9526. * @see tripal_core_chado_select()
  9527. *
  9528. * @return
  9529. * An array describing the 'phylonode_dbxref' table
  9530. *
  9531. * @ingroup tripal_chado_v1.2_schema_api
  9532. *
  9533. */
  9534. function tripal_core_chado_schema_v1_2_phylonode_dbxref() {
  9535. $description = array (
  9536. 'description' => 'TODO: please describe this table!',
  9537. 'fields' => array (
  9538. 'phylonode_dbxref_id' => array (
  9539. 'description' => 'TODO: please describe this field!',
  9540. 'type' => 'serial',
  9541. 'not null' => true,
  9542. ),
  9543. 'phylonode_id' => array (
  9544. 'description' => 'TODO: please describe this field!',
  9545. 'type' => 'int',
  9546. 'not null' => true,
  9547. ),
  9548. 'dbxref_id' => array (
  9549. 'description' => 'TODO: please describe this field!',
  9550. 'type' => 'int',
  9551. 'not null' => true,
  9552. ),
  9553. ),
  9554. 'primary key' => array (
  9555. 0 => 'phylonode_dbxref_id',
  9556. ),
  9557. 'unique keys' => array (
  9558. 'phylonode_id' => array (
  9559. 0 => 'phylonode_id',
  9560. 1 => 'dbxref_id',
  9561. ),
  9562. ),
  9563. 'indexes' => array (
  9564. 'phylonode_dbxref_idx1' => array (
  9565. 0 => 'phylonode_id',
  9566. ),
  9567. 'phylonode_dbxref_idx2' => array (
  9568. 0 => 'dbxref_id',
  9569. ),
  9570. ),
  9571. 'foreign keys' => array (
  9572. 'dbxref' => array (
  9573. 'table' => 'dbxref',
  9574. 'columns' => array (
  9575. 'dbxref_id' => 'dbxref_id',
  9576. ),
  9577. ),
  9578. 'phylonode' => array (
  9579. 'table' => 'phylonode',
  9580. 'columns' => array (
  9581. 'phylonode_id' => 'phylonode_id',
  9582. ),
  9583. ),
  9584. ),
  9585. );
  9586. return $description;
  9587. }
  9588. /**
  9589. * Implements hook_chado_schema_v1_2_phylonode_organism()
  9590. * Purpose: To describe the structure of 'phylonode_organism' to tripal
  9591. * @see tripal_core_chado_insert()
  9592. * @see tripal_core_chado_update()
  9593. * @see tripal_core_chado_select()
  9594. *
  9595. * @return
  9596. * An array describing the 'phylonode_organism' table
  9597. *
  9598. * @ingroup tripal_chado_v1.2_schema_api
  9599. *
  9600. */
  9601. function tripal_core_chado_schema_v1_2_phylonode_organism() {
  9602. $description = array (
  9603. 'description' => 'TODO: please describe this table!',
  9604. 'fields' => array (
  9605. 'phylonode_organism_id' => array (
  9606. 'description' => 'TODO: please describe this field!',
  9607. 'type' => 'serial',
  9608. 'not null' => true,
  9609. ),
  9610. 'phylonode_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 => 'phylonode_organism_id',
  9623. ),
  9624. 'unique keys' => array (
  9625. 'phylonode_id' => array (
  9626. 0 => 'phylonode_id',
  9627. ),
  9628. ),
  9629. 'indexes' => array (
  9630. 'phylonode_organism_idx1' => array (
  9631. 0 => 'phylonode_id',
  9632. ),
  9633. 'phylonode_organism_idx2' => array (
  9634. 0 => 'organism_id',
  9635. ),
  9636. ),
  9637. 'foreign keys' => array (
  9638. 'organism' => array (
  9639. 'table' => 'organism',
  9640. 'columns' => array (
  9641. 'organism_id' => 'organism_id',
  9642. ),
  9643. ),
  9644. 'phylonode' => array (
  9645. 'table' => 'phylonode',
  9646. 'columns' => array (
  9647. 'phylonode_id' => 'phylonode_id',
  9648. ),
  9649. ),
  9650. ),
  9651. );
  9652. return $description;
  9653. }
  9654. /**
  9655. * Implements hook_chado_schema_v1_2_phylonode_pub()
  9656. * Purpose: To describe the structure of 'phylonode_pub' to tripal
  9657. * @see tripal_core_chado_insert()
  9658. * @see tripal_core_chado_update()
  9659. * @see tripal_core_chado_select()
  9660. *
  9661. * @return
  9662. * An array describing the 'phylonode_pub' table
  9663. *
  9664. * @ingroup tripal_chado_v1.2_schema_api
  9665. *
  9666. */
  9667. function tripal_core_chado_schema_v1_2_phylonode_pub() {
  9668. $description = array (
  9669. 'description' => 'TODO: please describe this table!',
  9670. 'fields' => array (
  9671. 'phylonode_pub_id' => array (
  9672. 'description' => 'TODO: please describe this field!',
  9673. 'type' => 'serial',
  9674. 'not null' => true,
  9675. ),
  9676. 'phylonode_id' => array (
  9677. 'description' => 'TODO: please describe this field!',
  9678. 'type' => 'int',
  9679. 'not null' => true,
  9680. ),
  9681. 'pub_id' => array (
  9682. 'description' => 'TODO: please describe this field!',
  9683. 'type' => 'int',
  9684. 'not null' => true,
  9685. ),
  9686. ),
  9687. 'primary key' => array (
  9688. 0 => 'phylonode_pub_id',
  9689. ),
  9690. 'unique keys' => array (
  9691. 'phylonode_id' => array (
  9692. 0 => 'phylonode_id',
  9693. 1 => 'pub_id',
  9694. ),
  9695. ),
  9696. 'indexes' => array (
  9697. 'phylonode_pub_idx1' => array (
  9698. 0 => 'phylonode_id',
  9699. ),
  9700. 'phylonode_pub_idx2' => array (
  9701. 0 => 'pub_id',
  9702. ),
  9703. ),
  9704. 'foreign keys' => array (
  9705. 'pub' => array (
  9706. 'table' => 'pub',
  9707. 'columns' => array (
  9708. 'pub_id' => 'pub_id',
  9709. ),
  9710. ),
  9711. 'phylonode' => array (
  9712. 'table' => 'phylonode',
  9713. 'columns' => array (
  9714. 'phylonode_id' => 'phylonode_id',
  9715. ),
  9716. ),
  9717. ),
  9718. );
  9719. return $description;
  9720. }
  9721. /**
  9722. * Implements hook_chado_schema_v1_2_phylonode_relationship()
  9723. * Purpose: To describe the structure of 'phylonode_relationship' to tripal
  9724. * @see tripal_core_chado_insert()
  9725. * @see tripal_core_chado_update()
  9726. * @see tripal_core_chado_select()
  9727. *
  9728. * @return
  9729. * An array describing the 'phylonode_relationship' table
  9730. *
  9731. * @ingroup tripal_chado_v1.2_schema_api
  9732. *
  9733. */
  9734. function tripal_core_chado_schema_v1_2_phylonode_relationship() {
  9735. $description = array (
  9736. 'description' => 'TODO: please describe this table!',
  9737. 'fields' => array (
  9738. 'phylonode_relationship_id' => array (
  9739. 'description' => 'TODO: please describe this field!',
  9740. 'type' => 'serial',
  9741. 'not null' => true,
  9742. ),
  9743. 'subject_id' => array (
  9744. 'description' => 'TODO: please describe this field!',
  9745. 'type' => 'int',
  9746. 'not null' => true,
  9747. ),
  9748. 'object_id' => array (
  9749. 'description' => 'TODO: please describe this field!',
  9750. 'type' => 'int',
  9751. 'not null' => true,
  9752. ),
  9753. 'type_id' => array (
  9754. 'description' => 'TODO: please describe this field!',
  9755. 'type' => 'int',
  9756. 'not null' => true,
  9757. ),
  9758. 'rank' => array (
  9759. 'description' => 'TODO: please describe this field!',
  9760. 'type' => 'int',
  9761. 'not null' => false,
  9762. ),
  9763. 'phylotree_id' => array (
  9764. 'description' => 'TODO: please describe this field!',
  9765. 'type' => 'int',
  9766. 'not null' => true,
  9767. ),
  9768. ),
  9769. 'primary key' => array (
  9770. 0 => 'phylonode_relationship_id',
  9771. ),
  9772. 'unique keys' => array (
  9773. 'subject_id' => array (
  9774. 0 => 'subject_id',
  9775. 1 => 'object_id',
  9776. 2 => 'type_id',
  9777. ),
  9778. ),
  9779. 'indexes' => array (
  9780. 'phylonode_relationship_idx1' => array (
  9781. 0 => 'subject_id',
  9782. ),
  9783. 'phylonode_relationship_idx2' => array (
  9784. 0 => 'object_id',
  9785. ),
  9786. 'phylonode_relationship_idx3' => array (
  9787. 0 => 'type_id',
  9788. ),
  9789. ),
  9790. 'foreign keys' => array (
  9791. 'cvterm' => array (
  9792. 'table' => 'cvterm',
  9793. 'columns' => array (
  9794. 'type_id' => 'cvterm_id',
  9795. ),
  9796. ),
  9797. 'phylonode' => array (
  9798. 'table' => 'phylonode',
  9799. 'columns' => array (
  9800. 'subject_id' => 'phylonode_id',
  9801. 'object_id' => 'phylonode_id',
  9802. ),
  9803. ),
  9804. 'phylotree' => array (
  9805. 'table' => 'phylotree',
  9806. 'columns' => array (
  9807. 'phylotree_id' => 'phylotree_id',
  9808. ),
  9809. ),
  9810. ),
  9811. );
  9812. return $description;
  9813. }
  9814. /**
  9815. * Implements hook_chado_schema_v1_2_phylonodeprop()
  9816. * Purpose: To describe the structure of 'phylonodeprop' to tripal
  9817. * @see tripal_core_chado_insert()
  9818. * @see tripal_core_chado_update()
  9819. * @see tripal_core_chado_select()
  9820. *
  9821. * @return
  9822. * An array describing the 'phylonodeprop' table
  9823. *
  9824. * @ingroup tripal_chado_v1.2_schema_api
  9825. *
  9826. */
  9827. function tripal_core_chado_schema_v1_2_phylonodeprop() {
  9828. $description = array (
  9829. 'description' => 'TODO: please describe this table!',
  9830. 'fields' => array (
  9831. 'phylonodeprop_id' => array (
  9832. 'description' => 'TODO: please describe this field!',
  9833. 'type' => 'serial',
  9834. 'not null' => true,
  9835. ),
  9836. 'phylonode_id' => array (
  9837. 'description' => 'TODO: please describe this field!',
  9838. 'type' => 'int',
  9839. 'not null' => true,
  9840. ),
  9841. 'type_id' => array (
  9842. 'description' => 'TODO: please describe this field!',
  9843. 'type' => 'int',
  9844. 'not null' => true,
  9845. ),
  9846. 'value' => array (
  9847. 'description' => 'TODO: please describe this field!',
  9848. 'type' => 'text',
  9849. 'not null' => true,
  9850. 'default' => '',
  9851. ),
  9852. 'rank' => array (
  9853. 'description' => 'TODO: please describe this field!',
  9854. 'type' => 'int',
  9855. 'not null' => true,
  9856. 'default' => 0,
  9857. ),
  9858. ),
  9859. 'primary key' => array (
  9860. 0 => 'phylonodeprop_id',
  9861. ),
  9862. 'unique keys' => array (
  9863. 'phylonode_id' => array (
  9864. 0 => 'phylonode_id',
  9865. 1 => 'type_id',
  9866. 2 => 'value',
  9867. 3 => 'rank',
  9868. ),
  9869. ),
  9870. 'indexes' => array (
  9871. 'phylonodeprop_idx1' => array (
  9872. 0 => 'phylonode_id',
  9873. ),
  9874. 'phylonodeprop_idx2' => array (
  9875. 0 => 'type_id',
  9876. ),
  9877. ),
  9878. 'foreign keys' => array (
  9879. 'cvterm' => array (
  9880. 'table' => 'cvterm',
  9881. 'columns' => array (
  9882. 'type_id' => 'cvterm_id',
  9883. ),
  9884. ),
  9885. 'phylonode' => array (
  9886. 'table' => 'phylonode',
  9887. 'columns' => array (
  9888. 'phylonode_id' => 'phylonode_id',
  9889. ),
  9890. ),
  9891. ),
  9892. );
  9893. return $description;
  9894. }
  9895. /**
  9896. * Implements hook_chado_schema_v1_2_phylotree()
  9897. * Purpose: To describe the structure of 'phylotree' to tripal
  9898. * @see tripal_core_chado_insert()
  9899. * @see tripal_core_chado_update()
  9900. * @see tripal_core_chado_select()
  9901. *
  9902. * @return
  9903. * An array describing the 'phylotree' table
  9904. *
  9905. * @ingroup tripal_chado_v1.2_schema_api
  9906. *
  9907. */
  9908. function tripal_core_chado_schema_v1_2_phylotree() {
  9909. $description = array (
  9910. 'description' => 'TODO: please describe this table!',
  9911. 'fields' => array (
  9912. 'phylotree_id' => array (
  9913. 'description' => 'TODO: please describe this field!',
  9914. 'type' => 'serial',
  9915. 'not null' => true,
  9916. ),
  9917. 'dbxref_id' => array (
  9918. 'description' => 'TODO: please describe this field!',
  9919. 'type' => 'int',
  9920. 'not null' => true,
  9921. ),
  9922. 'name' => array (
  9923. 'description' => 'TODO: please describe this field!',
  9924. 'type' => 'varchar',
  9925. 'length' => '255',
  9926. 'not null' => false,
  9927. ),
  9928. 'type_id' => array (
  9929. 'description' => 'TODO: please describe this field!',
  9930. 'type' => 'int',
  9931. 'not null' => false,
  9932. ),
  9933. 'analysis_id' => array (
  9934. 'description' => 'TODO: please describe this field!',
  9935. 'type' => 'int',
  9936. 'not null' => false,
  9937. ),
  9938. 'comment' => array (
  9939. 'description' => 'TODO: please describe this field!',
  9940. 'type' => 'text',
  9941. 'not null' => false,
  9942. ),
  9943. ),
  9944. 'primary key' => array (
  9945. 0 => 'phylotree_id',
  9946. ),
  9947. 'indexes' => array (
  9948. 'phylotree_idx1' => array (
  9949. 0 => 'phylotree_id',
  9950. ),
  9951. ),
  9952. 'foreign keys' => array (
  9953. 'cvterm' => array (
  9954. 'table' => 'cvterm',
  9955. 'columns' => array (
  9956. 'type_id' => 'cvterm_id',
  9957. ),
  9958. ),
  9959. 'dbxref' => array (
  9960. 'table' => 'dbxref',
  9961. 'columns' => array (
  9962. 'dbxref_id' => 'dbxref_id',
  9963. ),
  9964. ),
  9965. 'analysis' => array (
  9966. 'table' => 'analysis',
  9967. 'columns' => array (
  9968. 'analysis_id' => 'analysis_id',
  9969. ),
  9970. ),
  9971. ),
  9972. );
  9973. return $description;
  9974. }
  9975. /**
  9976. * Implements hook_chado_schema_v1_2_phylotree_pub()
  9977. * Purpose: To describe the structure of 'phylotree_pub' to tripal
  9978. * @see tripal_core_chado_insert()
  9979. * @see tripal_core_chado_update()
  9980. * @see tripal_core_chado_select()
  9981. *
  9982. * @return
  9983. * An array describing the 'phylotree_pub' table
  9984. *
  9985. * @ingroup tripal_chado_v1.2_schema_api
  9986. *
  9987. */
  9988. function tripal_core_chado_schema_v1_2_phylotree_pub() {
  9989. $description = array (
  9990. 'description' => 'TODO: please describe this table!',
  9991. 'fields' => array (
  9992. 'phylotree_pub_id' => array (
  9993. 'description' => 'TODO: please describe this field!',
  9994. 'type' => 'serial',
  9995. 'not null' => true,
  9996. ),
  9997. 'phylotree_id' => array (
  9998. 'description' => 'TODO: please describe this field!',
  9999. 'type' => 'int',
  10000. 'not null' => true,
  10001. ),
  10002. 'pub_id' => array (
  10003. 'description' => 'TODO: please describe this field!',
  10004. 'type' => 'int',
  10005. 'not null' => true,
  10006. ),
  10007. ),
  10008. 'primary key' => array (
  10009. 0 => 'phylotree_pub_id',
  10010. ),
  10011. 'unique keys' => array (
  10012. 'phylotree_id' => array (
  10013. 0 => 'phylotree_id',
  10014. 1 => 'pub_id',
  10015. ),
  10016. ),
  10017. 'indexes' => array (
  10018. 'phylotree_pub_idx1' => array (
  10019. 0 => 'phylotree_id',
  10020. ),
  10021. 'phylotree_pub_idx2' => array (
  10022. 0 => 'pub_id',
  10023. ),
  10024. ),
  10025. 'foreign keys' => array (
  10026. 'pub' => array (
  10027. 'table' => 'pub',
  10028. 'columns' => array (
  10029. 'pub_id' => 'pub_id',
  10030. ),
  10031. ),
  10032. 'phylotree' => array (
  10033. 'table' => 'phylotree',
  10034. 'columns' => array (
  10035. 'phylotree_id' => 'phylotree_id',
  10036. ),
  10037. ),
  10038. ),
  10039. );
  10040. return $description;
  10041. }
  10042. /**
  10043. * Implements hook_chado_schema_v1_2_project()
  10044. * Purpose: To describe the structure of 'project' to tripal
  10045. * @see tripal_core_chado_insert()
  10046. * @see tripal_core_chado_update()
  10047. * @see tripal_core_chado_select()
  10048. *
  10049. * @return
  10050. * An array describing the 'project' table
  10051. *
  10052. * @ingroup tripal_chado_v1.2_schema_api
  10053. *
  10054. */
  10055. function tripal_core_chado_schema_v1_2_project() {
  10056. $description = array (
  10057. 'description' => 'TODO: please describe this table!',
  10058. 'fields' => array (
  10059. 'project_id' => array (
  10060. 'description' => 'TODO: please describe this field!',
  10061. 'type' => 'serial',
  10062. 'not null' => true,
  10063. ),
  10064. 'name' => array (
  10065. 'description' => 'TODO: please describe this field!',
  10066. 'type' => 'varchar',
  10067. 'length' => '255',
  10068. 'not null' => true,
  10069. ),
  10070. 'description' => array (
  10071. 'description' => 'TODO: please describe this field!',
  10072. 'type' => 'varchar',
  10073. 'length' => '255',
  10074. 'not null' => true,
  10075. ),
  10076. ),
  10077. 'primary key' => array (
  10078. 0 => 'project_id',
  10079. ),
  10080. 'unique keys' => array (
  10081. 'project_c1' => array (
  10082. 0 => 'name',
  10083. ),
  10084. ),
  10085. 'foreign keys' => array (
  10086. ),
  10087. );
  10088. return $description;
  10089. }
  10090. /**
  10091. * Implements hook_chado_schema_v1_2_project_contact()
  10092. * Purpose: To describe the structure of 'project_contact' to tripal
  10093. * @see tripal_core_chado_insert()
  10094. * @see tripal_core_chado_update()
  10095. * @see tripal_core_chado_select()
  10096. *
  10097. * @return
  10098. * An array describing the 'project_contact' table
  10099. *
  10100. * @ingroup tripal_chado_v1.2_schema_api
  10101. *
  10102. */
  10103. function tripal_core_chado_schema_v1_2_project_contact() {
  10104. $description = array (
  10105. 'description' => 'TODO: please describe this table!',
  10106. 'fields' => array (
  10107. 'project_contact_id' => array (
  10108. 'description' => 'TODO: please describe this field!',
  10109. 'type' => 'serial',
  10110. 'not null' => true,
  10111. ),
  10112. 'project_id' => array (
  10113. 'description' => 'TODO: please describe this field!',
  10114. 'type' => 'int',
  10115. 'not null' => true,
  10116. ),
  10117. 'contact_id' => array (
  10118. 'description' => 'TODO: please describe this field!',
  10119. 'type' => 'int',
  10120. 'not null' => true,
  10121. ),
  10122. ),
  10123. 'primary key' => array (
  10124. 0 => 'project_contact_id',
  10125. ),
  10126. 'unique keys' => array (
  10127. 'project_contact_c1' => array (
  10128. 0 => 'project_id',
  10129. 1 => 'contact_id',
  10130. ),
  10131. ),
  10132. 'indexes' => array (
  10133. 'project_contact_idx1' => array (
  10134. 0 => 'project_id',
  10135. ),
  10136. 'project_contact_idx2' => array (
  10137. 0 => 'contact_id',
  10138. ),
  10139. ),
  10140. 'foreign keys' => array (
  10141. 'contact' => array (
  10142. 'table' => 'contact',
  10143. 'columns' => array (
  10144. 'contact_id' => 'contact_id',
  10145. ),
  10146. ),
  10147. 'project' => array (
  10148. 'table' => 'project',
  10149. 'columns' => array (
  10150. 'project_id' => 'project_id',
  10151. ),
  10152. ),
  10153. ),
  10154. );
  10155. return $description;
  10156. }
  10157. /**
  10158. * Implements hook_chado_schema_v1_2_project_pub()
  10159. * Purpose: To describe the structure of 'project_pub' to tripal
  10160. * @see tripal_core_chado_insert()
  10161. * @see tripal_core_chado_update()
  10162. * @see tripal_core_chado_select()
  10163. *
  10164. * @return
  10165. * An array describing the 'project_pub' table
  10166. *
  10167. * @ingroup tripal_chado_v1.2_schema_api
  10168. *
  10169. */
  10170. function tripal_core_chado_schema_v1_2_project_pub() {
  10171. $description = array (
  10172. 'description' => 'TODO: please describe this table!',
  10173. 'fields' => array (
  10174. 'project_pub_id' => array (
  10175. 'description' => 'TODO: please describe this field!',
  10176. 'type' => 'serial',
  10177. 'not null' => true,
  10178. ),
  10179. 'project_id' => array (
  10180. 'description' => 'TODO: please describe this field!',
  10181. 'type' => 'int',
  10182. 'not null' => true,
  10183. ),
  10184. 'pub_id' => array (
  10185. 'description' => 'TODO: please describe this field!',
  10186. 'type' => 'int',
  10187. 'not null' => true,
  10188. ),
  10189. ),
  10190. 'primary key' => array (
  10191. 0 => 'project_pub_id',
  10192. ),
  10193. 'unique keys' => array (
  10194. 'project_pub_c1' => array (
  10195. 0 => 'project_id',
  10196. 1 => 'pub_id',
  10197. ),
  10198. ),
  10199. 'indexes' => array (
  10200. 'project_pub_idx1' => array (
  10201. 0 => 'project_id',
  10202. ),
  10203. 'project_pub_idx2' => array (
  10204. 0 => 'pub_id',
  10205. ),
  10206. ),
  10207. 'foreign keys' => array (
  10208. 'pub' => array (
  10209. 'table' => 'pub',
  10210. 'columns' => array (
  10211. 'pub_id' => 'pub_id',
  10212. ),
  10213. ),
  10214. 'project' => array (
  10215. 'table' => 'project',
  10216. 'columns' => array (
  10217. 'project_id' => 'project_id',
  10218. ),
  10219. ),
  10220. ),
  10221. );
  10222. return $description;
  10223. }
  10224. /**
  10225. * Implements hook_chado_schema_v1_2_project_relationship()
  10226. * Purpose: To describe the structure of 'project_relationship' to tripal
  10227. * @see tripal_core_chado_insert()
  10228. * @see tripal_core_chado_update()
  10229. * @see tripal_core_chado_select()
  10230. *
  10231. * @return
  10232. * An array describing the 'project_relationship' table
  10233. *
  10234. * @ingroup tripal_chado_v1.2_schema_api
  10235. *
  10236. */
  10237. function tripal_core_chado_schema_v1_2_project_relationship() {
  10238. $description = array (
  10239. 'description' => 'TODO: please describe this table!',
  10240. 'fields' => array (
  10241. 'project_relationship_id' => array (
  10242. 'description' => 'TODO: please describe this field!',
  10243. 'type' => 'serial',
  10244. 'not null' => true,
  10245. ),
  10246. 'subject_project_id' => array (
  10247. 'description' => 'TODO: please describe this field!',
  10248. 'type' => 'int',
  10249. 'not null' => true,
  10250. ),
  10251. 'object_project_id' => array (
  10252. 'description' => 'TODO: please describe this field!',
  10253. 'type' => 'int',
  10254. 'not null' => true,
  10255. ),
  10256. 'type_id' => array (
  10257. 'description' => 'TODO: please describe this field!',
  10258. 'type' => 'int',
  10259. 'not null' => true,
  10260. ),
  10261. ),
  10262. 'primary key' => array (
  10263. 0 => 'project_relationship_id',
  10264. ),
  10265. 'unique keys' => array (
  10266. 'project_relationship_c1' => array (
  10267. 0 => 'subject_project_id',
  10268. 1 => 'object_project_id',
  10269. 2 => 'type_id',
  10270. ),
  10271. ),
  10272. 'foreign keys' => array (
  10273. 'cvterm' => array (
  10274. 'table' => 'cvterm',
  10275. 'columns' => array (
  10276. 'type_id' => 'cvterm_id',
  10277. ),
  10278. ),
  10279. 'project' => array (
  10280. 'table' => 'project',
  10281. 'columns' => array (
  10282. 'subject_project_id' => 'project_id',
  10283. 'object_project_id' => 'project_id',
  10284. ),
  10285. ),
  10286. ),
  10287. );
  10288. return $description;
  10289. }
  10290. /**
  10291. * Implements hook_chado_schema_v1_2_projectprop()
  10292. * Purpose: To describe the structure of 'projectprop' to tripal
  10293. * @see tripal_core_chado_insert()
  10294. * @see tripal_core_chado_update()
  10295. * @see tripal_core_chado_select()
  10296. *
  10297. * @return
  10298. * An array describing the 'projectprop' table
  10299. *
  10300. * @ingroup tripal_chado_v1.2_schema_api
  10301. *
  10302. */
  10303. function tripal_core_chado_schema_v1_2_projectprop() {
  10304. $description = array (
  10305. 'description' => 'TODO: please describe this table!',
  10306. 'fields' => array (
  10307. 'projectprop_id' => array (
  10308. 'description' => 'TODO: please describe this field!',
  10309. 'type' => 'serial',
  10310. 'not null' => true,
  10311. ),
  10312. 'project_id' => array (
  10313. 'description' => 'TODO: please describe this field!',
  10314. 'type' => 'int',
  10315. 'not null' => true,
  10316. ),
  10317. 'type_id' => array (
  10318. 'description' => 'TODO: please describe this field!',
  10319. 'type' => 'int',
  10320. 'not null' => true,
  10321. ),
  10322. 'value' => array (
  10323. 'description' => 'TODO: please describe this field!',
  10324. 'type' => 'text',
  10325. 'not null' => false,
  10326. ),
  10327. 'rank' => array (
  10328. 'description' => 'TODO: please describe this field!',
  10329. 'type' => 'int',
  10330. 'not null' => true,
  10331. 'default' => 0,
  10332. ),
  10333. ),
  10334. 'primary key' => array (
  10335. 0 => 'projectprop_id',
  10336. ),
  10337. 'unique keys' => array (
  10338. 'projectprop_c1' => array (
  10339. 0 => 'project_id',
  10340. 1 => 'type_id',
  10341. 2 => 'rank',
  10342. ),
  10343. ),
  10344. 'foreign keys' => array (
  10345. 'cvterm' => array (
  10346. 'table' => 'cvterm',
  10347. 'columns' => array (
  10348. 'type_id' => 'cvterm_id',
  10349. ),
  10350. ),
  10351. 'project' => array (
  10352. 'table' => 'project',
  10353. 'columns' => array (
  10354. 'project_id' => 'project_id',
  10355. ),
  10356. ),
  10357. ),
  10358. );
  10359. return $description;
  10360. }
  10361. /**
  10362. * Implements hook_chado_schema_v1_2_protocol()
  10363. * Purpose: To describe the structure of 'protocol' to tripal
  10364. * @see tripal_core_chado_insert()
  10365. * @see tripal_core_chado_update()
  10366. * @see tripal_core_chado_select()
  10367. *
  10368. * @return
  10369. * An array describing the 'protocol' table
  10370. *
  10371. * @ingroup tripal_chado_v1.2_schema_api
  10372. *
  10373. */
  10374. function tripal_core_chado_schema_v1_2_protocol() {
  10375. $description = array (
  10376. 'description' => 'TODO: please describe this table!',
  10377. 'fields' => array (
  10378. 'protocol_id' => array (
  10379. 'description' => 'TODO: please describe this field!',
  10380. 'type' => 'serial',
  10381. 'not null' => true,
  10382. ),
  10383. 'type_id' => array (
  10384. 'description' => 'TODO: please describe this field!',
  10385. 'type' => 'int',
  10386. 'not null' => true,
  10387. ),
  10388. 'pub_id' => array (
  10389. 'description' => 'TODO: please describe this field!',
  10390. 'type' => 'int',
  10391. 'not null' => false,
  10392. ),
  10393. 'dbxref_id' => array (
  10394. 'description' => 'TODO: please describe this field!',
  10395. 'type' => 'int',
  10396. 'not null' => false,
  10397. ),
  10398. 'name' => array (
  10399. 'description' => 'TODO: please describe this field!',
  10400. 'type' => 'text',
  10401. 'not null' => true,
  10402. ),
  10403. 'uri' => array (
  10404. 'description' => 'TODO: please describe this field!',
  10405. 'type' => 'text',
  10406. 'not null' => false,
  10407. ),
  10408. 'protocoldescription' => array (
  10409. 'description' => 'TODO: please describe this field!',
  10410. 'type' => 'text',
  10411. 'not null' => false,
  10412. ),
  10413. 'hardwaredescription' => array (
  10414. 'description' => 'TODO: please describe this field!',
  10415. 'type' => 'text',
  10416. 'not null' => false,
  10417. ),
  10418. 'softwaredescription' => array (
  10419. 'description' => 'TODO: please describe this field!',
  10420. 'type' => 'text',
  10421. 'not null' => false,
  10422. ),
  10423. ),
  10424. 'primary key' => array (
  10425. 0 => 'protocol_id',
  10426. ),
  10427. 'unique keys' => array (
  10428. 'protocol_c1' => array (
  10429. 0 => 'name',
  10430. ),
  10431. ),
  10432. 'indexes' => array (
  10433. 'protocol_idx1' => array (
  10434. 0 => 'type_id',
  10435. ),
  10436. 'protocol_idx2' => array (
  10437. 0 => 'pub_id',
  10438. ),
  10439. 'protocol_idx3' => array (
  10440. 0 => 'dbxref_id',
  10441. ),
  10442. ),
  10443. 'foreign keys' => array (
  10444. 'cvterm' => array (
  10445. 'table' => 'cvterm',
  10446. 'columns' => array (
  10447. 'type_id' => 'cvterm_id',
  10448. ),
  10449. ),
  10450. 'dbxref' => array (
  10451. 'table' => 'dbxref',
  10452. 'columns' => array (
  10453. 'dbxref_id' => 'dbxref_id',
  10454. ),
  10455. ),
  10456. 'pub' => array (
  10457. 'table' => 'pub',
  10458. 'columns' => array (
  10459. 'pub_id' => 'pub_id',
  10460. ),
  10461. ),
  10462. ),
  10463. );
  10464. return $description;
  10465. }
  10466. /**
  10467. * Implements hook_chado_schema_v1_2_protocolparam()
  10468. * Purpose: To describe the structure of 'protocolparam' to tripal
  10469. * @see tripal_core_chado_insert()
  10470. * @see tripal_core_chado_update()
  10471. * @see tripal_core_chado_select()
  10472. *
  10473. * @return
  10474. * An array describing the 'protocolparam' table
  10475. *
  10476. * @ingroup tripal_chado_v1.2_schema_api
  10477. *
  10478. */
  10479. function tripal_core_chado_schema_v1_2_protocolparam() {
  10480. $description = array (
  10481. 'description' => 'TODO: please describe this table!',
  10482. 'fields' => array (
  10483. 'protocolparam_id' => array (
  10484. 'description' => 'TODO: please describe this field!',
  10485. 'type' => 'serial',
  10486. 'not null' => true,
  10487. ),
  10488. 'protocol_id' => array (
  10489. 'description' => 'TODO: please describe this field!',
  10490. 'type' => 'int',
  10491. 'not null' => true,
  10492. ),
  10493. 'name' => array (
  10494. 'description' => 'TODO: please describe this field!',
  10495. 'type' => 'text',
  10496. 'not null' => true,
  10497. ),
  10498. 'datatype_id' => array (
  10499. 'description' => 'TODO: please describe this field!',
  10500. 'type' => 'int',
  10501. 'not null' => false,
  10502. ),
  10503. 'unittype_id' => array (
  10504. 'description' => 'TODO: please describe this field!',
  10505. 'type' => 'int',
  10506. 'not null' => false,
  10507. ),
  10508. 'value' => array (
  10509. 'description' => 'TODO: please describe this field!',
  10510. 'type' => 'text',
  10511. 'not null' => false,
  10512. ),
  10513. 'rank' => array (
  10514. 'description' => 'TODO: please describe this field!',
  10515. 'type' => 'int',
  10516. 'not null' => true,
  10517. 'default' => 0,
  10518. ),
  10519. ),
  10520. 'primary key' => array (
  10521. 0 => 'protocolparam_id',
  10522. ),
  10523. 'indexes' => array (
  10524. 'protocolparam_idx1' => array (
  10525. 0 => 'protocol_id',
  10526. ),
  10527. 'protocolparam_idx2' => array (
  10528. 0 => 'datatype_id',
  10529. ),
  10530. 'protocolparam_idx3' => array (
  10531. 0 => 'unittype_id',
  10532. ),
  10533. ),
  10534. 'foreign keys' => array (
  10535. 'cvterm' => array (
  10536. 'table' => 'cvterm',
  10537. 'columns' => array (
  10538. 'datatype_id' => 'cvterm_id',
  10539. 'unittype_id' => 'cvterm_id',
  10540. ),
  10541. ),
  10542. 'protocol' => array (
  10543. 'table' => 'protocol',
  10544. 'columns' => array (
  10545. 'protocol_id' => 'protocol_id',
  10546. ),
  10547. ),
  10548. ),
  10549. );
  10550. return $description;
  10551. }
  10552. /**
  10553. * Implements hook_chado_schema_v1_2_pub()
  10554. * Purpose: To describe the structure of 'pub' to tripal
  10555. * @see tripal_core_chado_insert()
  10556. * @see tripal_core_chado_update()
  10557. * @see tripal_core_chado_select()
  10558. *
  10559. * @return
  10560. * An array describing the 'pub' table
  10561. *
  10562. * @ingroup tripal_chado_v1.2_schema_api
  10563. *
  10564. */
  10565. function tripal_core_chado_schema_v1_2_pub() {
  10566. $description = array (
  10567. 'description' => 'TODO: please describe this table!',
  10568. 'fields' => array (
  10569. 'pub_id' => array (
  10570. 'description' => 'TODO: please describe this field!',
  10571. 'type' => 'serial',
  10572. 'not null' => true,
  10573. ),
  10574. 'title' => array (
  10575. 'description' => 'TODO: please describe this field!',
  10576. 'type' => 'text',
  10577. 'not null' => false,
  10578. ),
  10579. 'volumetitle' => array (
  10580. 'description' => 'TODO: please describe this field!',
  10581. 'type' => 'text',
  10582. 'not null' => false,
  10583. ),
  10584. 'volume' => array (
  10585. 'description' => 'TODO: please describe this field!',
  10586. 'type' => 'varchar',
  10587. 'length' => '255',
  10588. 'not null' => false,
  10589. ),
  10590. 'series_name' => array (
  10591. 'description' => 'TODO: please describe this field!',
  10592. 'type' => 'varchar',
  10593. 'length' => '255',
  10594. 'not null' => false,
  10595. ),
  10596. 'issue' => array (
  10597. 'description' => 'TODO: please describe this field!',
  10598. 'type' => 'varchar',
  10599. 'length' => '255',
  10600. 'not null' => false,
  10601. ),
  10602. 'pyear' => array (
  10603. 'description' => 'TODO: please describe this field!',
  10604. 'type' => 'varchar',
  10605. 'length' => '255',
  10606. 'not null' => false,
  10607. ),
  10608. 'pages' => array (
  10609. 'description' => 'TODO: please describe this field!',
  10610. 'type' => 'varchar',
  10611. 'length' => '255',
  10612. 'not null' => false,
  10613. ),
  10614. 'miniref' => array (
  10615. 'description' => 'TODO: please describe this field!',
  10616. 'type' => 'varchar',
  10617. 'length' => '255',
  10618. 'not null' => false,
  10619. ),
  10620. 'uniquename' => array (
  10621. 'description' => 'TODO: please describe this field!',
  10622. 'type' => 'text',
  10623. 'not null' => true,
  10624. ),
  10625. 'type_id' => array (
  10626. 'description' => 'TODO: please describe this field!',
  10627. 'type' => 'int',
  10628. 'not null' => true,
  10629. ),
  10630. 'is_obsolete' => array (
  10631. 'description' => 'TODO: please describe this field!',
  10632. 'type' => 'boolean',
  10633. 'not null' => false,
  10634. 'default' => 'als',
  10635. ),
  10636. 'publisher' => array (
  10637. 'description' => 'TODO: please describe this field!',
  10638. 'type' => 'varchar',
  10639. 'length' => '255',
  10640. 'not null' => false,
  10641. ),
  10642. 'pubplace' => array (
  10643. 'description' => 'TODO: please describe this field!',
  10644. 'type' => 'varchar',
  10645. 'length' => '255',
  10646. 'not null' => false,
  10647. ),
  10648. ),
  10649. 'primary key' => array (
  10650. 0 => 'pub_id',
  10651. ),
  10652. 'unique keys' => array (
  10653. 'pub_c1' => array (
  10654. 0 => 'uniquename',
  10655. ),
  10656. ),
  10657. 'indexes' => array (
  10658. 'pub_idx1' => array (
  10659. 0 => 'type_id',
  10660. ),
  10661. ),
  10662. 'foreign keys' => array (
  10663. 'cvterm' => array (
  10664. 'table' => 'cvterm',
  10665. 'columns' => array (
  10666. 'type_id' => 'cvterm_id',
  10667. ),
  10668. ),
  10669. ),
  10670. );
  10671. return $description;
  10672. }
  10673. /**
  10674. * Implements hook_chado_schema_v1_2_pub_dbxref()
  10675. * Purpose: To describe the structure of 'pub_dbxref' to tripal
  10676. * @see tripal_core_chado_insert()
  10677. * @see tripal_core_chado_update()
  10678. * @see tripal_core_chado_select()
  10679. *
  10680. * @return
  10681. * An array describing the 'pub_dbxref' table
  10682. *
  10683. * @ingroup tripal_chado_v1.2_schema_api
  10684. *
  10685. */
  10686. function tripal_core_chado_schema_v1_2_pub_dbxref() {
  10687. $description = array (
  10688. 'description' => 'TODO: please describe this table!',
  10689. 'fields' => array (
  10690. 'pub_dbxref_id' => array (
  10691. 'description' => 'TODO: please describe this field!',
  10692. 'type' => 'serial',
  10693. 'not null' => true,
  10694. ),
  10695. 'pub_id' => array (
  10696. 'description' => 'TODO: please describe this field!',
  10697. 'type' => 'int',
  10698. 'not null' => true,
  10699. ),
  10700. 'dbxref_id' => array (
  10701. 'description' => 'TODO: please describe this field!',
  10702. 'type' => 'int',
  10703. 'not null' => true,
  10704. ),
  10705. 'is_current' => array (
  10706. 'description' => 'TODO: please describe this field!',
  10707. 'type' => 'boolean',
  10708. 'not null' => true,
  10709. 'default' => 'ru',
  10710. ),
  10711. ),
  10712. 'primary key' => array (
  10713. 0 => 'pub_dbxref_id',
  10714. ),
  10715. 'unique keys' => array (
  10716. 'pub_dbxref_c1' => array (
  10717. 0 => 'pub_id',
  10718. 1 => 'dbxref_id',
  10719. ),
  10720. ),
  10721. 'indexes' => array (
  10722. 'pub_dbxref_idx1' => array (
  10723. 0 => 'pub_id',
  10724. ),
  10725. 'pub_dbxref_idx2' => array (
  10726. 0 => 'dbxref_id',
  10727. ),
  10728. ),
  10729. 'foreign keys' => array (
  10730. 'dbxref' => array (
  10731. 'table' => 'dbxref',
  10732. 'columns' => array (
  10733. 'dbxref_id' => 'dbxref_id',
  10734. ),
  10735. ),
  10736. 'pub' => array (
  10737. 'table' => 'pub',
  10738. 'columns' => array (
  10739. 'pub_id' => 'pub_id',
  10740. ),
  10741. ),
  10742. ),
  10743. );
  10744. return $description;
  10745. }
  10746. /**
  10747. * Implements hook_chado_schema_v1_2_pub_relationship()
  10748. * Purpose: To describe the structure of 'pub_relationship' to tripal
  10749. * @see tripal_core_chado_insert()
  10750. * @see tripal_core_chado_update()
  10751. * @see tripal_core_chado_select()
  10752. *
  10753. * @return
  10754. * An array describing the 'pub_relationship' table
  10755. *
  10756. * @ingroup tripal_chado_v1.2_schema_api
  10757. *
  10758. */
  10759. function tripal_core_chado_schema_v1_2_pub_relationship() {
  10760. $description = array (
  10761. 'description' => 'TODO: please describe this table!',
  10762. 'fields' => array (
  10763. 'pub_relationship_id' => array (
  10764. 'description' => 'TODO: please describe this field!',
  10765. 'type' => 'serial',
  10766. 'not null' => true,
  10767. ),
  10768. 'subject_id' => array (
  10769. 'description' => 'TODO: please describe this field!',
  10770. 'type' => 'int',
  10771. 'not null' => true,
  10772. ),
  10773. 'object_id' => array (
  10774. 'description' => 'TODO: please describe this field!',
  10775. 'type' => 'int',
  10776. 'not null' => true,
  10777. ),
  10778. 'type_id' => array (
  10779. 'description' => 'TODO: please describe this field!',
  10780. 'type' => 'int',
  10781. 'not null' => true,
  10782. ),
  10783. ),
  10784. 'primary key' => array (
  10785. 0 => 'pub_relationship_id',
  10786. ),
  10787. 'unique keys' => array (
  10788. 'pub_relationship_c1' => array (
  10789. 0 => 'subject_id',
  10790. 1 => 'object_id',
  10791. 2 => 'type_id',
  10792. ),
  10793. ),
  10794. 'indexes' => array (
  10795. 'pub_relationship_idx1' => array (
  10796. 0 => 'subject_id',
  10797. ),
  10798. 'pub_relationship_idx2' => array (
  10799. 0 => 'object_id',
  10800. ),
  10801. 'pub_relationship_idx3' => array (
  10802. 0 => 'type_id',
  10803. ),
  10804. ),
  10805. 'foreign keys' => array (
  10806. 'cvterm' => array (
  10807. 'table' => 'cvterm',
  10808. 'columns' => array (
  10809. 'type_id' => 'cvterm_id',
  10810. ),
  10811. ),
  10812. 'pub' => array (
  10813. 'table' => 'pub',
  10814. 'columns' => array (
  10815. 'subject_id' => 'pub_id',
  10816. 'object_id' => 'pub_id',
  10817. ),
  10818. ),
  10819. ),
  10820. );
  10821. return $description;
  10822. }
  10823. /**
  10824. * Implements hook_chado_schema_v1_2_pubauthor()
  10825. * Purpose: To describe the structure of 'pubauthor' to tripal
  10826. * @see tripal_core_chado_insert()
  10827. * @see tripal_core_chado_update()
  10828. * @see tripal_core_chado_select()
  10829. *
  10830. * @return
  10831. * An array describing the 'pubauthor' table
  10832. *
  10833. * @ingroup tripal_chado_v1.2_schema_api
  10834. *
  10835. */
  10836. function tripal_core_chado_schema_v1_2_pubauthor() {
  10837. $description = array (
  10838. 'description' => 'TODO: please describe this table!',
  10839. 'fields' => array (
  10840. 'pubauthor_id' => array (
  10841. 'description' => 'TODO: please describe this field!',
  10842. 'type' => 'serial',
  10843. 'not null' => true,
  10844. ),
  10845. 'pub_id' => array (
  10846. 'description' => 'TODO: please describe this field!',
  10847. 'type' => 'int',
  10848. 'not null' => true,
  10849. ),
  10850. 'rank' => array (
  10851. 'description' => 'TODO: please describe this field!',
  10852. 'type' => 'int',
  10853. 'not null' => true,
  10854. ),
  10855. 'editor' => array (
  10856. 'description' => 'TODO: please describe this field!',
  10857. 'type' => 'boolean',
  10858. 'not null' => false,
  10859. 'default' => 'als',
  10860. ),
  10861. 'surname' => array (
  10862. 'description' => 'TODO: please describe this field!',
  10863. 'type' => 'varchar',
  10864. 'length' => '100',
  10865. 'not null' => true,
  10866. ),
  10867. 'givennames' => array (
  10868. 'description' => 'TODO: please describe this field!',
  10869. 'type' => 'varchar',
  10870. 'length' => '100',
  10871. 'not null' => false,
  10872. ),
  10873. 'suffix' => array (
  10874. 'description' => 'TODO: please describe this field!',
  10875. 'type' => 'varchar',
  10876. 'length' => '100',
  10877. 'not null' => false,
  10878. ),
  10879. ),
  10880. 'primary key' => array (
  10881. 0 => 'pubauthor_id',
  10882. ),
  10883. 'unique keys' => array (
  10884. 'pubauthor_c1' => array (
  10885. 0 => 'pub_id',
  10886. 1 => 'rank',
  10887. ),
  10888. ),
  10889. 'indexes' => array (
  10890. 'pubauthor_idx2' => array (
  10891. 0 => 'pub_id',
  10892. ),
  10893. ),
  10894. 'foreign keys' => array (
  10895. 'pub' => array (
  10896. 'table' => 'pub',
  10897. 'columns' => array (
  10898. 'pub_id' => 'pub_id',
  10899. ),
  10900. ),
  10901. ),
  10902. );
  10903. return $description;
  10904. }
  10905. /**
  10906. * Implements hook_chado_schema_v1_2_pubprop()
  10907. * Purpose: To describe the structure of 'pubprop' to tripal
  10908. * @see tripal_core_chado_insert()
  10909. * @see tripal_core_chado_update()
  10910. * @see tripal_core_chado_select()
  10911. *
  10912. * @return
  10913. * An array describing the 'pubprop' table
  10914. *
  10915. * @ingroup tripal_chado_v1.2_schema_api
  10916. *
  10917. */
  10918. function tripal_core_chado_schema_v1_2_pubprop() {
  10919. $description = array (
  10920. 'description' => 'TODO: please describe this table!',
  10921. 'fields' => array (
  10922. 'pubprop_id' => array (
  10923. 'description' => 'TODO: please describe this field!',
  10924. 'type' => 'serial',
  10925. 'not null' => true,
  10926. ),
  10927. 'pub_id' => array (
  10928. 'description' => 'TODO: please describe this field!',
  10929. 'type' => 'int',
  10930. 'not null' => true,
  10931. ),
  10932. 'type_id' => array (
  10933. 'description' => 'TODO: please describe this field!',
  10934. 'type' => 'int',
  10935. 'not null' => true,
  10936. ),
  10937. 'value' => array (
  10938. 'description' => 'TODO: please describe this field!',
  10939. 'type' => 'text',
  10940. 'not null' => true,
  10941. ),
  10942. 'rank' => array (
  10943. 'description' => 'TODO: please describe this field!',
  10944. 'type' => 'int',
  10945. 'not null' => false,
  10946. ),
  10947. ),
  10948. 'primary key' => array (
  10949. 0 => 'pubprop_id',
  10950. ),
  10951. 'unique keys' => array (
  10952. 'pubprop_c1' => array (
  10953. 0 => 'pub_id',
  10954. 1 => 'type_id',
  10955. 2 => 'rank',
  10956. ),
  10957. ),
  10958. 'indexes' => array (
  10959. 'pubprop_idx1' => array (
  10960. 0 => 'pub_id',
  10961. ),
  10962. 'pubprop_idx2' => array (
  10963. 0 => 'type_id',
  10964. ),
  10965. ),
  10966. 'foreign keys' => array (
  10967. 'cvterm' => array (
  10968. 'table' => 'cvterm',
  10969. 'columns' => array (
  10970. 'type_id' => 'cvterm_id',
  10971. ),
  10972. ),
  10973. 'pub' => array (
  10974. 'table' => 'pub',
  10975. 'columns' => array (
  10976. 'pub_id' => 'pub_id',
  10977. ),
  10978. ),
  10979. ),
  10980. );
  10981. return $description;
  10982. }
  10983. /**
  10984. * Implements hook_chado_schema_v1_2_quantification()
  10985. * Purpose: To describe the structure of 'quantification' to tripal
  10986. * @see tripal_core_chado_insert()
  10987. * @see tripal_core_chado_update()
  10988. * @see tripal_core_chado_select()
  10989. *
  10990. * @return
  10991. * An array describing the 'quantification' table
  10992. *
  10993. * @ingroup tripal_chado_v1.2_schema_api
  10994. *
  10995. */
  10996. function tripal_core_chado_schema_v1_2_quantification() {
  10997. $description = array (
  10998. 'description' => 'TODO: please describe this table!',
  10999. 'fields' => array (
  11000. 'quantification_id' => array (
  11001. 'description' => 'TODO: please describe this field!',
  11002. 'type' => 'serial',
  11003. 'not null' => true,
  11004. ),
  11005. 'acquisition_id' => array (
  11006. 'description' => 'TODO: please describe this field!',
  11007. 'type' => 'int',
  11008. 'not null' => true,
  11009. ),
  11010. 'operator_id' => array (
  11011. 'description' => 'TODO: please describe this field!',
  11012. 'type' => 'int',
  11013. 'not null' => false,
  11014. ),
  11015. 'protocol_id' => array (
  11016. 'description' => 'TODO: please describe this field!',
  11017. 'type' => 'int',
  11018. 'not null' => false,
  11019. ),
  11020. 'analysis_id' => array (
  11021. 'description' => 'TODO: please describe this field!',
  11022. 'type' => 'int',
  11023. 'not null' => true,
  11024. ),
  11025. 'quantificationdate' => array (
  11026. 'description' => 'TODO: please describe this field!',
  11027. 'type' => 'datetime',
  11028. 'not null' => false,
  11029. 'default' => 'ow(',
  11030. ),
  11031. 'name' => array (
  11032. 'description' => 'TODO: please describe this field!',
  11033. 'type' => 'text',
  11034. 'not null' => false,
  11035. ),
  11036. 'uri' => array (
  11037. 'description' => 'TODO: please describe this field!',
  11038. 'type' => 'text',
  11039. 'not null' => false,
  11040. ),
  11041. ),
  11042. 'primary key' => array (
  11043. 0 => 'quantification_id',
  11044. ),
  11045. 'unique keys' => array (
  11046. 'quantification_c1' => array (
  11047. 0 => 'name',
  11048. 1 => 'analysis_id',
  11049. ),
  11050. ),
  11051. 'indexes' => array (
  11052. 'quantification_idx1' => array (
  11053. 0 => 'acquisition_id',
  11054. ),
  11055. 'quantification_idx2' => array (
  11056. 0 => 'operator_id',
  11057. ),
  11058. 'quantification_idx3' => array (
  11059. 0 => 'protocol_id',
  11060. ),
  11061. 'quantification_idx4' => array (
  11062. 0 => 'analysis_id',
  11063. ),
  11064. ),
  11065. 'foreign keys' => array (
  11066. 'analysis' => array (
  11067. 'table' => 'analysis',
  11068. 'columns' => array (
  11069. 'analysis_id' => 'analysis_id',
  11070. ),
  11071. ),
  11072. 'contact' => array (
  11073. 'table' => 'contact',
  11074. 'columns' => array (
  11075. 'operator_id' => 'contact_id',
  11076. ),
  11077. ),
  11078. 'protocol' => array (
  11079. 'table' => 'protocol',
  11080. 'columns' => array (
  11081. 'protocol_id' => 'protocol_id',
  11082. ),
  11083. ),
  11084. 'acquisition' => array (
  11085. 'table' => 'acquisition',
  11086. 'columns' => array (
  11087. 'acquisition_id' => 'acquisition_id',
  11088. ),
  11089. ),
  11090. ),
  11091. );
  11092. return $description;
  11093. }
  11094. /**
  11095. * Implements hook_chado_schema_v1_2_quantification_relationship()
  11096. * Purpose: To describe the structure of 'quantification_relationship' to tripal
  11097. * @see tripal_core_chado_insert()
  11098. * @see tripal_core_chado_update()
  11099. * @see tripal_core_chado_select()
  11100. *
  11101. * @return
  11102. * An array describing the 'quantification_relationship' table
  11103. *
  11104. * @ingroup tripal_chado_v1.2_schema_api
  11105. *
  11106. */
  11107. function tripal_core_chado_schema_v1_2_quantification_relationship() {
  11108. $description = array (
  11109. 'description' => 'TODO: please describe this table!',
  11110. 'fields' => array (
  11111. 'quantification_relationship_id' => array (
  11112. 'description' => 'TODO: please describe this field!',
  11113. 'type' => 'serial',
  11114. 'not null' => true,
  11115. ),
  11116. 'subject_id' => array (
  11117. 'description' => 'TODO: please describe this field!',
  11118. 'type' => 'int',
  11119. 'not null' => true,
  11120. ),
  11121. 'type_id' => array (
  11122. 'description' => 'TODO: please describe this field!',
  11123. 'type' => 'int',
  11124. 'not null' => true,
  11125. ),
  11126. 'object_id' => array (
  11127. 'description' => 'TODO: please describe this field!',
  11128. 'type' => 'int',
  11129. 'not null' => true,
  11130. ),
  11131. ),
  11132. 'primary key' => array (
  11133. 0 => 'quantification_relationship_id',
  11134. ),
  11135. 'unique keys' => array (
  11136. 'quantification_relationship_c1' => array (
  11137. 0 => 'subject_id',
  11138. 1 => 'object_id',
  11139. 2 => 'type_id',
  11140. ),
  11141. ),
  11142. 'indexes' => array (
  11143. 'quantification_relationship_idx1' => array (
  11144. 0 => 'subject_id',
  11145. ),
  11146. 'quantification_relationship_idx2' => array (
  11147. 0 => 'type_id',
  11148. ),
  11149. 'quantification_relationship_idx3' => array (
  11150. 0 => 'object_id',
  11151. ),
  11152. ),
  11153. 'foreign keys' => array (
  11154. 'cvterm' => array (
  11155. 'table' => 'cvterm',
  11156. 'columns' => array (
  11157. 'type_id' => 'cvterm_id',
  11158. ),
  11159. ),
  11160. 'quantification' => array (
  11161. 'table' => 'quantification',
  11162. 'columns' => array (
  11163. 'subject_id' => 'quantification_id',
  11164. 'object_id' => 'quantification_id',
  11165. ),
  11166. ),
  11167. ),
  11168. );
  11169. return $description;
  11170. }
  11171. /**
  11172. * Implements hook_chado_schema_v1_2_quantificationprop()
  11173. * Purpose: To describe the structure of 'quantificationprop' to tripal
  11174. * @see tripal_core_chado_insert()
  11175. * @see tripal_core_chado_update()
  11176. * @see tripal_core_chado_select()
  11177. *
  11178. * @return
  11179. * An array describing the 'quantificationprop' table
  11180. *
  11181. * @ingroup tripal_chado_v1.2_schema_api
  11182. *
  11183. */
  11184. function tripal_core_chado_schema_v1_2_quantificationprop() {
  11185. $description = array (
  11186. 'description' => 'TODO: please describe this table!',
  11187. 'fields' => array (
  11188. 'quantificationprop_id' => array (
  11189. 'description' => 'TODO: please describe this field!',
  11190. 'type' => 'serial',
  11191. 'not null' => true,
  11192. ),
  11193. 'quantification_id' => array (
  11194. 'description' => 'TODO: please describe this field!',
  11195. 'type' => 'int',
  11196. 'not null' => true,
  11197. ),
  11198. 'type_id' => array (
  11199. 'description' => 'TODO: please describe this field!',
  11200. 'type' => 'int',
  11201. 'not null' => true,
  11202. ),
  11203. 'value' => array (
  11204. 'description' => 'TODO: please describe this field!',
  11205. 'type' => 'text',
  11206. 'not null' => false,
  11207. ),
  11208. 'rank' => array (
  11209. 'description' => 'TODO: please describe this field!',
  11210. 'type' => 'int',
  11211. 'not null' => true,
  11212. 'default' => 0,
  11213. ),
  11214. ),
  11215. 'primary key' => array (
  11216. 0 => 'quantificationprop_id',
  11217. ),
  11218. 'unique keys' => array (
  11219. 'quantificationprop_c1' => array (
  11220. 0 => 'quantification_id',
  11221. 1 => 'type_id',
  11222. 2 => 'rank',
  11223. ),
  11224. ),
  11225. 'indexes' => array (
  11226. 'quantificationprop_idx1' => array (
  11227. 0 => 'quantification_id',
  11228. ),
  11229. 'quantificationprop_idx2' => array (
  11230. 0 => 'type_id',
  11231. ),
  11232. ),
  11233. 'foreign keys' => array (
  11234. 'cvterm' => array (
  11235. 'table' => 'cvterm',
  11236. 'columns' => array (
  11237. 'type_id' => 'cvterm_id',
  11238. ),
  11239. ),
  11240. 'quantification' => array (
  11241. 'table' => 'quantification',
  11242. 'columns' => array (
  11243. 'quantification_id' => 'quantification_id',
  11244. ),
  11245. ),
  11246. ),
  11247. );
  11248. return $description;
  11249. }
  11250. /**
  11251. * Implements hook_chado_schema_v1_2_stock()
  11252. * Purpose: To describe the structure of 'stock' to tripal
  11253. * @see tripal_core_chado_insert()
  11254. * @see tripal_core_chado_update()
  11255. * @see tripal_core_chado_select()
  11256. *
  11257. * @return
  11258. * An array describing the 'stock' table
  11259. *
  11260. * @ingroup tripal_chado_v1.2_schema_api
  11261. *
  11262. */
  11263. function tripal_core_chado_schema_v1_2_stock() {
  11264. $description = array (
  11265. 'description' => 'TODO: please describe this table!',
  11266. 'fields' => array (
  11267. 'stock_id' => array (
  11268. 'description' => 'TODO: please describe this field!',
  11269. 'type' => 'serial',
  11270. 'not null' => true,
  11271. ),
  11272. 'dbxref_id' => array (
  11273. 'description' => 'TODO: please describe this field!',
  11274. 'type' => 'int',
  11275. 'not null' => false,
  11276. ),
  11277. 'organism_id' => array (
  11278. 'description' => 'TODO: please describe this field!',
  11279. 'type' => 'int',
  11280. 'not null' => false,
  11281. ),
  11282. 'name' => array (
  11283. 'description' => 'TODO: please describe this field!',
  11284. 'type' => 'varchar',
  11285. 'length' => '255',
  11286. 'not null' => false,
  11287. ),
  11288. 'uniquename' => array (
  11289. 'description' => 'TODO: please describe this field!',
  11290. 'type' => 'text',
  11291. 'not null' => true,
  11292. ),
  11293. 'description' => array (
  11294. 'description' => 'TODO: please describe this field!',
  11295. 'type' => 'text',
  11296. 'not null' => false,
  11297. ),
  11298. 'type_id' => array (
  11299. 'description' => 'TODO: please describe this field!',
  11300. 'type' => 'int',
  11301. 'not null' => true,
  11302. ),
  11303. 'is_obsolete' => array (
  11304. 'description' => 'TODO: please describe this field!',
  11305. 'type' => 'boolean',
  11306. 'not null' => true,
  11307. 'default' => 'als',
  11308. ),
  11309. ),
  11310. 'primary key' => array (
  11311. 0 => 'stock_id',
  11312. ),
  11313. 'unique keys' => array (
  11314. 'stock_c1' => array (
  11315. 0 => 'organism_id',
  11316. 1 => 'uniquename',
  11317. 2 => 'type_id',
  11318. ),
  11319. ),
  11320. 'indexes' => array (
  11321. 'stock_idx1' => array (
  11322. 0 => 'dbxref_id',
  11323. ),
  11324. 'stock_idx2' => array (
  11325. 0 => 'organism_id',
  11326. ),
  11327. 'stock_idx3' => array (
  11328. 0 => 'type_id',
  11329. ),
  11330. 'stock_idx4' => array (
  11331. 0 => 'uniquename',
  11332. ),
  11333. 'stock_name_ind1' => array (
  11334. 0 => 'name',
  11335. ),
  11336. ),
  11337. 'foreign keys' => array (
  11338. 'organism' => array (
  11339. 'table' => 'organism',
  11340. 'columns' => array (
  11341. 'organism_id' => 'organism_id',
  11342. ),
  11343. ),
  11344. 'cvterm' => array (
  11345. 'table' => 'cvterm',
  11346. 'columns' => array (
  11347. 'type_id' => 'cvterm_id',
  11348. ),
  11349. ),
  11350. 'dbxref' => array (
  11351. 'table' => 'dbxref',
  11352. 'columns' => array (
  11353. 'dbxref_id' => 'dbxref_id',
  11354. ),
  11355. ),
  11356. ),
  11357. );
  11358. return $description;
  11359. }
  11360. /**
  11361. * Implements hook_chado_schema_v1_2_stock_cvterm()
  11362. * Purpose: To describe the structure of 'stock_cvterm' to tripal
  11363. * @see tripal_core_chado_insert()
  11364. * @see tripal_core_chado_update()
  11365. * @see tripal_core_chado_select()
  11366. *
  11367. * @return
  11368. * An array describing the 'stock_cvterm' table
  11369. *
  11370. * @ingroup tripal_chado_v1.2_schema_api
  11371. *
  11372. */
  11373. function tripal_core_chado_schema_v1_2_stock_cvterm() {
  11374. $description = array (
  11375. 'description' => 'TODO: please describe this table!',
  11376. 'fields' => array (
  11377. 'stock_cvterm_id' => array (
  11378. 'description' => 'TODO: please describe this field!',
  11379. 'type' => 'serial',
  11380. 'not null' => true,
  11381. ),
  11382. 'stock_id' => array (
  11383. 'description' => 'TODO: please describe this field!',
  11384. 'type' => 'int',
  11385. 'not null' => true,
  11386. ),
  11387. 'cvterm_id' => array (
  11388. 'description' => 'TODO: please describe this field!',
  11389. 'type' => 'int',
  11390. 'not null' => true,
  11391. ),
  11392. 'pub_id' => array (
  11393. 'description' => 'TODO: please describe this field!',
  11394. 'type' => 'int',
  11395. 'not null' => true,
  11396. ),
  11397. 'is_not' => array (
  11398. 'description' => 'TODO: please describe this field!',
  11399. 'type' => 'boolean',
  11400. 'not null' => true,
  11401. 'default' => 'als',
  11402. ),
  11403. 'rank' => array (
  11404. 'description' => 'TODO: please describe this field!',
  11405. 'type' => 'int',
  11406. 'not null' => true,
  11407. 'default' => 0,
  11408. ),
  11409. ),
  11410. 'primary key' => array (
  11411. 0 => 'stock_cvterm_id',
  11412. ),
  11413. 'unique keys' => array (
  11414. 'stock_cvterm_c1' => array (
  11415. 0 => 'stock_id',
  11416. 1 => 'cvterm_id',
  11417. 2 => 'pub_id',
  11418. 3 => 'rank',
  11419. ),
  11420. ),
  11421. 'indexes' => array (
  11422. 'stock_cvterm_idx1' => array (
  11423. 0 => 'stock_id',
  11424. ),
  11425. 'stock_cvterm_idx2' => array (
  11426. 0 => 'cvterm_id',
  11427. ),
  11428. 'stock_cvterm_idx3' => array (
  11429. 0 => 'pub_id',
  11430. ),
  11431. ),
  11432. 'foreign keys' => array (
  11433. 'cvterm' => array (
  11434. 'table' => 'cvterm',
  11435. 'columns' => array (
  11436. 'cvterm_id' => 'cvterm_id',
  11437. ),
  11438. ),
  11439. 'pub' => array (
  11440. 'table' => 'pub',
  11441. 'columns' => array (
  11442. 'pub_id' => 'pub_id',
  11443. ),
  11444. ),
  11445. 'stock' => array (
  11446. 'table' => 'stock',
  11447. 'columns' => array (
  11448. 'stock_id' => 'stock_id',
  11449. ),
  11450. ),
  11451. ),
  11452. );
  11453. return $description;
  11454. }
  11455. /**
  11456. * Implements hook_chado_schema_v1_2_stock_cvtermprop()
  11457. * Purpose: To describe the structure of 'stock_cvtermprop' to tripal
  11458. * @see tripal_core_chado_insert()
  11459. * @see tripal_core_chado_update()
  11460. * @see tripal_core_chado_select()
  11461. *
  11462. * @return
  11463. * An array describing the 'stock_cvtermprop' table
  11464. *
  11465. * @ingroup tripal_chado_v1.2_schema_api
  11466. *
  11467. */
  11468. function tripal_core_chado_schema_v1_2_stock_cvtermprop() {
  11469. $description = array (
  11470. 'description' => 'TODO: please describe this table!',
  11471. 'fields' => array (
  11472. 'stock_cvtermprop_id' => array (
  11473. 'description' => 'TODO: please describe this field!',
  11474. 'type' => 'serial',
  11475. 'not null' => true,
  11476. ),
  11477. 'stock_cvterm_id' => array (
  11478. 'description' => 'TODO: please describe this field!',
  11479. 'type' => 'int',
  11480. 'not null' => true,
  11481. ),
  11482. 'type_id' => array (
  11483. 'description' => 'TODO: please describe this field!',
  11484. 'type' => 'int',
  11485. 'not null' => true,
  11486. ),
  11487. 'value' => array (
  11488. 'description' => 'TODO: please describe this field!',
  11489. 'type' => 'text',
  11490. 'not null' => false,
  11491. ),
  11492. 'rank' => array (
  11493. 'description' => 'TODO: please describe this field!',
  11494. 'type' => 'int',
  11495. 'not null' => true,
  11496. 'default' => 0,
  11497. ),
  11498. ),
  11499. 'primary key' => array (
  11500. 0 => 'stock_cvtermprop_id',
  11501. ),
  11502. 'unique keys' => array (
  11503. 'stock_cvtermprop_c1' => array (
  11504. 0 => 'stock_cvterm_id',
  11505. 1 => 'type_id',
  11506. 2 => 'rank',
  11507. ),
  11508. ),
  11509. 'indexes' => array (
  11510. 'stock_cvtermprop_idx1' => array (
  11511. 0 => 'stock_cvterm_id',
  11512. ),
  11513. 'stock_cvtermprop_idx2' => array (
  11514. 0 => 'type_id',
  11515. ),
  11516. ),
  11517. 'foreign keys' => array (
  11518. 'cvterm' => array (
  11519. 'table' => 'cvterm',
  11520. 'columns' => array (
  11521. 'type_id' => 'cvterm_id',
  11522. ),
  11523. ),
  11524. 'stock_cvterm' => array (
  11525. 'table' => 'stock_cvterm',
  11526. 'columns' => array (
  11527. 'stock_cvterm_id' => 'stock_cvterm_id',
  11528. ),
  11529. ),
  11530. ),
  11531. );
  11532. return $description;
  11533. }
  11534. /**
  11535. * Implements hook_chado_schema_v1_2_stock_dbxref()
  11536. * Purpose: To describe the structure of 'stock_dbxref' to tripal
  11537. * @see tripal_core_chado_insert()
  11538. * @see tripal_core_chado_update()
  11539. * @see tripal_core_chado_select()
  11540. *
  11541. * @return
  11542. * An array describing the 'stock_dbxref' table
  11543. *
  11544. * @ingroup tripal_chado_v1.2_schema_api
  11545. *
  11546. */
  11547. function tripal_core_chado_schema_v1_2_stock_dbxref() {
  11548. $description = array (
  11549. 'description' => 'TODO: please describe this table!',
  11550. 'fields' => array (
  11551. 'stock_dbxref_id' => array (
  11552. 'description' => 'TODO: please describe this field!',
  11553. 'type' => 'serial',
  11554. 'not null' => true,
  11555. ),
  11556. 'stock_id' => array (
  11557. 'description' => 'TODO: please describe this field!',
  11558. 'type' => 'int',
  11559. 'not null' => true,
  11560. ),
  11561. 'dbxref_id' => array (
  11562. 'description' => 'TODO: please describe this field!',
  11563. 'type' => 'int',
  11564. 'not null' => true,
  11565. ),
  11566. 'is_current' => array (
  11567. 'description' => 'TODO: please describe this field!',
  11568. 'type' => 'boolean',
  11569. 'not null' => true,
  11570. 'default' => 'ru',
  11571. ),
  11572. ),
  11573. 'primary key' => array (
  11574. 0 => 'stock_dbxref_id',
  11575. ),
  11576. 'unique keys' => array (
  11577. 'stock_dbxref_c1' => array (
  11578. 0 => 'stock_id',
  11579. 1 => 'dbxref_id',
  11580. ),
  11581. ),
  11582. 'indexes' => array (
  11583. 'stock_dbxref_idx1' => array (
  11584. 0 => 'stock_id',
  11585. ),
  11586. 'stock_dbxref_idx2' => array (
  11587. 0 => 'dbxref_id',
  11588. ),
  11589. ),
  11590. 'foreign keys' => array (
  11591. 'dbxref' => array (
  11592. 'table' => 'dbxref',
  11593. 'columns' => array (
  11594. 'dbxref_id' => 'dbxref_id',
  11595. ),
  11596. ),
  11597. 'stock' => array (
  11598. 'table' => 'stock',
  11599. 'columns' => array (
  11600. 'stock_id' => 'stock_id',
  11601. ),
  11602. ),
  11603. ),
  11604. );
  11605. return $description;
  11606. }
  11607. /**
  11608. * Implements hook_chado_schema_v1_2_stock_dbxrefprop()
  11609. * Purpose: To describe the structure of 'stock_dbxrefprop' to tripal
  11610. * @see tripal_core_chado_insert()
  11611. * @see tripal_core_chado_update()
  11612. * @see tripal_core_chado_select()
  11613. *
  11614. * @return
  11615. * An array describing the 'stock_dbxrefprop' table
  11616. *
  11617. * @ingroup tripal_chado_v1.2_schema_api
  11618. *
  11619. */
  11620. function tripal_core_chado_schema_v1_2_stock_dbxrefprop() {
  11621. $description = array (
  11622. 'description' => 'TODO: please describe this table!',
  11623. 'fields' => array (
  11624. 'stock_dbxrefprop_id' => array (
  11625. 'description' => 'TODO: please describe this field!',
  11626. 'type' => 'serial',
  11627. 'not null' => true,
  11628. ),
  11629. 'stock_dbxref_id' => array (
  11630. 'description' => 'TODO: please describe this field!',
  11631. 'type' => 'int',
  11632. 'not null' => true,
  11633. ),
  11634. 'type_id' => array (
  11635. 'description' => 'TODO: please describe this field!',
  11636. 'type' => 'int',
  11637. 'not null' => true,
  11638. ),
  11639. 'value' => array (
  11640. 'description' => 'TODO: please describe this field!',
  11641. 'type' => 'text',
  11642. 'not null' => false,
  11643. ),
  11644. 'rank' => array (
  11645. 'description' => 'TODO: please describe this field!',
  11646. 'type' => 'int',
  11647. 'not null' => true,
  11648. 'default' => 0,
  11649. ),
  11650. ),
  11651. 'primary key' => array (
  11652. 0 => 'stock_dbxrefprop_id',
  11653. ),
  11654. 'unique keys' => array (
  11655. 'stock_dbxrefprop_c1' => array (
  11656. 0 => 'stock_dbxref_id',
  11657. 1 => 'type_id',
  11658. 2 => 'rank',
  11659. ),
  11660. ),
  11661. 'indexes' => array (
  11662. 'stock_dbxrefprop_idx1' => array (
  11663. 0 => 'stock_dbxref_id',
  11664. ),
  11665. 'stock_dbxrefprop_idx2' => array (
  11666. 0 => 'type_id',
  11667. ),
  11668. ),
  11669. 'foreign keys' => array (
  11670. 'cvterm' => array (
  11671. 'table' => 'cvterm',
  11672. 'columns' => array (
  11673. 'type_id' => 'cvterm_id',
  11674. ),
  11675. ),
  11676. 'stock_dbxref' => array (
  11677. 'table' => 'stock_dbxref',
  11678. 'columns' => array (
  11679. 'stock_dbxref_id' => 'stock_dbxref_id',
  11680. ),
  11681. ),
  11682. ),
  11683. );
  11684. return $description;
  11685. }
  11686. /**
  11687. * Implements hook_chado_schema_v1_2_stock_genotype()
  11688. * Purpose: To describe the structure of 'stock_genotype' to tripal
  11689. * @see tripal_core_chado_insert()
  11690. * @see tripal_core_chado_update()
  11691. * @see tripal_core_chado_select()
  11692. *
  11693. * @return
  11694. * An array describing the 'stock_genotype' table
  11695. *
  11696. * @ingroup tripal_chado_v1.2_schema_api
  11697. *
  11698. */
  11699. function tripal_core_chado_schema_v1_2_stock_genotype() {
  11700. $description = array (
  11701. 'description' => 'TODO: please describe this table!',
  11702. 'fields' => array (
  11703. 'stock_genotype_id' => array (
  11704. 'description' => 'TODO: please describe this field!',
  11705. 'type' => 'serial',
  11706. 'not null' => true,
  11707. ),
  11708. 'stock_id' => array (
  11709. 'description' => 'TODO: please describe this field!',
  11710. 'type' => 'int',
  11711. 'not null' => true,
  11712. ),
  11713. 'genotype_id' => array (
  11714. 'description' => 'TODO: please describe this field!',
  11715. 'type' => 'int',
  11716. 'not null' => true,
  11717. ),
  11718. ),
  11719. 'primary key' => array (
  11720. 0 => 'stock_genotype_id',
  11721. ),
  11722. 'unique keys' => array (
  11723. 'stock_genotype_c1' => array (
  11724. 0 => 'stock_id',
  11725. 1 => 'genotype_id',
  11726. ),
  11727. ),
  11728. 'indexes' => array (
  11729. 'stock_genotype_idx1' => array (
  11730. 0 => 'stock_id',
  11731. ),
  11732. 'stock_genotype_idx2' => array (
  11733. 0 => 'genotype_id',
  11734. ),
  11735. ),
  11736. 'foreign keys' => array (
  11737. 'genotype' => array (
  11738. 'table' => 'genotype',
  11739. 'columns' => array (
  11740. 'genotype_id' => 'genotype_id',
  11741. ),
  11742. ),
  11743. 'stock' => array (
  11744. 'table' => 'stock',
  11745. 'columns' => array (
  11746. 'stock_id' => 'stock_id',
  11747. ),
  11748. ),
  11749. ),
  11750. );
  11751. return $description;
  11752. }
  11753. /**
  11754. * Implements hook_chado_schema_v1_2_stock_pub()
  11755. * Purpose: To describe the structure of 'stock_pub' to tripal
  11756. * @see tripal_core_chado_insert()
  11757. * @see tripal_core_chado_update()
  11758. * @see tripal_core_chado_select()
  11759. *
  11760. * @return
  11761. * An array describing the 'stock_pub' table
  11762. *
  11763. * @ingroup tripal_chado_v1.2_schema_api
  11764. *
  11765. */
  11766. function tripal_core_chado_schema_v1_2_stock_pub() {
  11767. $description = array (
  11768. 'description' => 'TODO: please describe this table!',
  11769. 'fields' => array (
  11770. 'stock_pub_id' => array (
  11771. 'description' => 'TODO: please describe this field!',
  11772. 'type' => 'serial',
  11773. 'not null' => true,
  11774. ),
  11775. 'stock_id' => array (
  11776. 'description' => 'TODO: please describe this field!',
  11777. 'type' => 'int',
  11778. 'not null' => true,
  11779. ),
  11780. 'pub_id' => array (
  11781. 'description' => 'TODO: please describe this field!',
  11782. 'type' => 'int',
  11783. 'not null' => true,
  11784. ),
  11785. ),
  11786. 'primary key' => array (
  11787. 0 => 'stock_pub_id',
  11788. ),
  11789. 'unique keys' => array (
  11790. 'stock_pub_c1' => array (
  11791. 0 => 'stock_id',
  11792. 1 => 'pub_id',
  11793. ),
  11794. ),
  11795. 'indexes' => array (
  11796. 'stock_pub_idx1' => array (
  11797. 0 => 'stock_id',
  11798. ),
  11799. 'stock_pub_idx2' => array (
  11800. 0 => 'pub_id',
  11801. ),
  11802. ),
  11803. 'foreign keys' => array (
  11804. 'pub' => array (
  11805. 'table' => 'pub',
  11806. 'columns' => array (
  11807. 'pub_id' => 'pub_id',
  11808. ),
  11809. ),
  11810. 'stock' => array (
  11811. 'table' => 'stock',
  11812. 'columns' => array (
  11813. 'stock_id' => 'stock_id',
  11814. ),
  11815. ),
  11816. ),
  11817. );
  11818. return $description;
  11819. }
  11820. /**
  11821. * Implements hook_chado_schema_v1_2_stock_relationship()
  11822. * Purpose: To describe the structure of 'stock_relationship' to tripal
  11823. * @see tripal_core_chado_insert()
  11824. * @see tripal_core_chado_update()
  11825. * @see tripal_core_chado_select()
  11826. *
  11827. * @return
  11828. * An array describing the 'stock_relationship' table
  11829. *
  11830. * @ingroup tripal_chado_v1.2_schema_api
  11831. *
  11832. */
  11833. function tripal_core_chado_schema_v1_2_stock_relationship() {
  11834. $description = array (
  11835. 'description' => 'TODO: please describe this table!',
  11836. 'fields' => array (
  11837. 'stock_relationship_id' => array (
  11838. 'description' => 'TODO: please describe this field!',
  11839. 'type' => 'serial',
  11840. 'not null' => true,
  11841. ),
  11842. 'subject_id' => array (
  11843. 'description' => 'TODO: please describe this field!',
  11844. 'type' => 'int',
  11845. 'not null' => true,
  11846. ),
  11847. 'object_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 => 'stock_relationship_id',
  11871. ),
  11872. 'unique keys' => array (
  11873. 'stock_relationship_c1' => array (
  11874. 0 => 'subject_id',
  11875. 1 => 'object_id',
  11876. 2 => 'type_id',
  11877. 3 => 'rank',
  11878. ),
  11879. ),
  11880. 'indexes' => array (
  11881. 'stock_relationship_idx1' => array (
  11882. 0 => 'subject_id',
  11883. ),
  11884. 'stock_relationship_idx2' => array (
  11885. 0 => 'object_id',
  11886. ),
  11887. 'stock_relationship_idx3' => array (
  11888. 0 => 'type_id',
  11889. ),
  11890. ),
  11891. 'foreign keys' => array (
  11892. 'cvterm' => array (
  11893. 'table' => 'cvterm',
  11894. 'columns' => array (
  11895. 'type_id' => 'cvterm_id',
  11896. ),
  11897. ),
  11898. 'stock' => array (
  11899. 'table' => 'stock',
  11900. 'columns' => array (
  11901. 'subject_id' => 'stock_id',
  11902. 'object_id' => 'stock_id',
  11903. ),
  11904. ),
  11905. ),
  11906. );
  11907. return $description;
  11908. }
  11909. /**
  11910. * Implements hook_chado_schema_v1_2_stock_relationship_cvterm()
  11911. * Purpose: To describe the structure of 'stock_relationship_cvterm' to tripal
  11912. * @see tripal_core_chado_insert()
  11913. * @see tripal_core_chado_update()
  11914. * @see tripal_core_chado_select()
  11915. *
  11916. * @return
  11917. * An array describing the 'stock_relationship_cvterm' table
  11918. *
  11919. * @ingroup tripal_chado_v1.2_schema_api
  11920. *
  11921. */
  11922. function tripal_core_chado_schema_v1_2_stock_relationship_cvterm() {
  11923. $description = array (
  11924. 'description' => 'TODO: please describe this table!',
  11925. 'fields' => array (
  11926. 'stock_relationship_cvterm_id' => array (
  11927. 'description' => 'TODO: please describe this field!',
  11928. 'type' => 'serial',
  11929. 'not null' => true,
  11930. ),
  11931. 'stock_relationship_id' => array (
  11932. 'description' => 'TODO: please describe this field!',
  11933. 'type' => 'int',
  11934. 'not null' => true,
  11935. ),
  11936. 'cvterm_id' => array (
  11937. 'description' => 'TODO: please describe this field!',
  11938. 'type' => 'int',
  11939. 'not null' => true,
  11940. ),
  11941. 'pub_id' => array (
  11942. 'description' => 'TODO: please describe this field!',
  11943. 'type' => 'int',
  11944. 'not null' => false,
  11945. ),
  11946. ),
  11947. 'primary key' => array (
  11948. 0 => 'stock_relationship_cvterm_id',
  11949. ),
  11950. 'foreign keys' => array (
  11951. 'cvterm' => array (
  11952. 'table' => 'cvterm',
  11953. 'columns' => array (
  11954. 'cvterm_id' => 'cvterm_id',
  11955. ),
  11956. ),
  11957. 'pub' => array (
  11958. 'table' => 'pub',
  11959. 'columns' => array (
  11960. 'pub_id' => 'pub_id',
  11961. ),
  11962. ),
  11963. 'stock_relationship' => array (
  11964. 'table' => 'stock_relationship',
  11965. 'columns' => array (
  11966. 'stock_relationship_id' => 'stock_relationship_id',
  11967. ),
  11968. ),
  11969. ),
  11970. );
  11971. return $description;
  11972. }
  11973. /**
  11974. * Implements hook_chado_schema_v1_2_stock_relationship_pub()
  11975. * Purpose: To describe the structure of 'stock_relationship_pub' to tripal
  11976. * @see tripal_core_chado_insert()
  11977. * @see tripal_core_chado_update()
  11978. * @see tripal_core_chado_select()
  11979. *
  11980. * @return
  11981. * An array describing the 'stock_relationship_pub' table
  11982. *
  11983. * @ingroup tripal_chado_v1.2_schema_api
  11984. *
  11985. */
  11986. function tripal_core_chado_schema_v1_2_stock_relationship_pub() {
  11987. $description = array (
  11988. 'description' => 'TODO: please describe this table!',
  11989. 'fields' => array (
  11990. 'stock_relationship_pub_id' => array (
  11991. 'description' => 'TODO: please describe this field!',
  11992. 'type' => 'serial',
  11993. 'not null' => true,
  11994. ),
  11995. 'stock_relationship_id' => array (
  11996. 'description' => 'TODO: please describe this field!',
  11997. 'type' => 'int',
  11998. 'not null' => true,
  11999. ),
  12000. 'pub_id' => array (
  12001. 'description' => 'TODO: please describe this field!',
  12002. 'type' => 'int',
  12003. 'not null' => true,
  12004. ),
  12005. ),
  12006. 'primary key' => array (
  12007. 0 => 'stock_relationship_pub_id',
  12008. ),
  12009. 'unique keys' => array (
  12010. 'stock_relationship_pub_c1' => array (
  12011. 0 => 'stock_relationship_id',
  12012. 1 => 'pub_id',
  12013. ),
  12014. ),
  12015. 'indexes' => array (
  12016. 'stock_relationship_pub_idx1' => array (
  12017. 0 => 'stock_relationship_id',
  12018. ),
  12019. 'stock_relationship_pub_idx2' => array (
  12020. 0 => 'pub_id',
  12021. ),
  12022. ),
  12023. 'foreign keys' => array (
  12024. 'pub' => array (
  12025. 'table' => 'pub',
  12026. 'columns' => array (
  12027. 'pub_id' => 'pub_id',
  12028. ),
  12029. ),
  12030. 'stock_relationship' => array (
  12031. 'table' => 'stock_relationship',
  12032. 'columns' => array (
  12033. 'stock_relationship_id' => 'stock_relationship_id',
  12034. ),
  12035. ),
  12036. ),
  12037. );
  12038. return $description;
  12039. }
  12040. /**
  12041. * Implements hook_chado_schema_v1_2_stockcollection()
  12042. * Purpose: To describe the structure of 'stockcollection' to tripal
  12043. * @see tripal_core_chado_insert()
  12044. * @see tripal_core_chado_update()
  12045. * @see tripal_core_chado_select()
  12046. *
  12047. * @return
  12048. * An array describing the 'stockcollection' table
  12049. *
  12050. * @ingroup tripal_chado_v1.2_schema_api
  12051. *
  12052. */
  12053. function tripal_core_chado_schema_v1_2_stockcollection() {
  12054. $description = array (
  12055. 'description' => 'TODO: please describe this table!',
  12056. 'fields' => array (
  12057. 'stockcollection_id' => array (
  12058. 'description' => 'TODO: please describe this field!',
  12059. 'type' => 'serial',
  12060. 'not null' => true,
  12061. ),
  12062. 'type_id' => array (
  12063. 'description' => 'TODO: please describe this field!',
  12064. 'type' => 'int',
  12065. 'not null' => true,
  12066. ),
  12067. 'contact_id' => array (
  12068. 'description' => 'TODO: please describe this field!',
  12069. 'type' => 'int',
  12070. 'not null' => false,
  12071. ),
  12072. 'name' => array (
  12073. 'description' => 'TODO: please describe this field!',
  12074. 'type' => 'varchar',
  12075. 'length' => '255',
  12076. 'not null' => false,
  12077. ),
  12078. 'uniquename' => array (
  12079. 'description' => 'TODO: please describe this field!',
  12080. 'type' => 'text',
  12081. 'not null' => true,
  12082. ),
  12083. ),
  12084. 'primary key' => array (
  12085. 0 => 'stockcollection_id',
  12086. ),
  12087. 'unique keys' => array (
  12088. 'stockcollection_c1' => array (
  12089. 0 => 'uniquename',
  12090. 1 => 'type_id',
  12091. ),
  12092. ),
  12093. 'indexes' => array (
  12094. 'stockcollection_idx1' => array (
  12095. 0 => 'contact_id',
  12096. ),
  12097. 'stockcollection_idx2' => array (
  12098. 0 => 'type_id',
  12099. ),
  12100. 'stockcollection_idx3' => array (
  12101. 0 => 'uniquename',
  12102. ),
  12103. 'stockcollection_name_ind1' => array (
  12104. 0 => 'name',
  12105. ),
  12106. ),
  12107. 'foreign keys' => array (
  12108. 'cvterm' => array (
  12109. 'table' => 'cvterm',
  12110. 'columns' => array (
  12111. 'type_id' => 'cvterm_id',
  12112. ),
  12113. ),
  12114. 'contact' => array (
  12115. 'table' => 'contact',
  12116. 'columns' => array (
  12117. 'contact_id' => 'contact_id',
  12118. ),
  12119. ),
  12120. ),
  12121. );
  12122. return $description;
  12123. }
  12124. /**
  12125. * Implements hook_chado_schema_v1_2_stockcollection_stock()
  12126. * Purpose: To describe the structure of 'stockcollection_stock' to tripal
  12127. * @see tripal_core_chado_insert()
  12128. * @see tripal_core_chado_update()
  12129. * @see tripal_core_chado_select()
  12130. *
  12131. * @return
  12132. * An array describing the 'stockcollection_stock' table
  12133. *
  12134. * @ingroup tripal_chado_v1.2_schema_api
  12135. *
  12136. */
  12137. function tripal_core_chado_schema_v1_2_stockcollection_stock() {
  12138. $description = array (
  12139. 'description' => 'TODO: please describe this table!',
  12140. 'fields' => array (
  12141. 'stockcollection_stock_id' => array (
  12142. 'description' => 'TODO: please describe this field!',
  12143. 'type' => 'serial',
  12144. 'not null' => true,
  12145. ),
  12146. 'stockcollection_id' => array (
  12147. 'description' => 'TODO: please describe this field!',
  12148. 'type' => 'int',
  12149. 'not null' => true,
  12150. ),
  12151. 'stock_id' => array (
  12152. 'description' => 'TODO: please describe this field!',
  12153. 'type' => 'int',
  12154. 'not null' => true,
  12155. ),
  12156. ),
  12157. 'primary key' => array (
  12158. 0 => 'stockcollection_stock_id',
  12159. ),
  12160. 'unique keys' => array (
  12161. 'stockcollection_stock_c1' => array (
  12162. 0 => 'stockcollection_id',
  12163. 1 => 'stock_id',
  12164. ),
  12165. ),
  12166. 'indexes' => array (
  12167. 'stockcollection_stock_idx1' => array (
  12168. 0 => 'stockcollection_id',
  12169. ),
  12170. 'stockcollection_stock_idx2' => array (
  12171. 0 => 'stock_id',
  12172. ),
  12173. ),
  12174. 'foreign keys' => array (
  12175. 'stock' => array (
  12176. 'table' => 'stock',
  12177. 'columns' => array (
  12178. 'stock_id' => 'stock_id',
  12179. ),
  12180. ),
  12181. 'stockcollection' => array (
  12182. 'table' => 'stockcollection',
  12183. 'columns' => array (
  12184. 'stockcollection_id' => 'stockcollection_id',
  12185. ),
  12186. ),
  12187. ),
  12188. );
  12189. return $description;
  12190. }
  12191. /**
  12192. * Implements hook_chado_schema_v1_2_stockcollectionprop()
  12193. * Purpose: To describe the structure of 'stockcollectionprop' to tripal
  12194. * @see tripal_core_chado_insert()
  12195. * @see tripal_core_chado_update()
  12196. * @see tripal_core_chado_select()
  12197. *
  12198. * @return
  12199. * An array describing the 'stockcollectionprop' table
  12200. *
  12201. * @ingroup tripal_chado_v1.2_schema_api
  12202. *
  12203. */
  12204. function tripal_core_chado_schema_v1_2_stockcollectionprop() {
  12205. $description = array (
  12206. 'description' => 'TODO: please describe this table!',
  12207. 'fields' => array (
  12208. 'stockcollectionprop_id' => array (
  12209. 'description' => 'TODO: please describe this field!',
  12210. 'type' => 'serial',
  12211. 'not null' => true,
  12212. ),
  12213. 'stockcollection_id' => array (
  12214. 'description' => 'TODO: please describe this field!',
  12215. 'type' => 'int',
  12216. 'not null' => true,
  12217. ),
  12218. 'type_id' => array (
  12219. 'description' => 'TODO: please describe this field!',
  12220. 'type' => 'int',
  12221. 'not null' => true,
  12222. ),
  12223. 'value' => array (
  12224. 'description' => 'TODO: please describe this field!',
  12225. 'type' => 'text',
  12226. 'not null' => false,
  12227. ),
  12228. 'rank' => array (
  12229. 'description' => 'TODO: please describe this field!',
  12230. 'type' => 'int',
  12231. 'not null' => true,
  12232. 'default' => 0,
  12233. ),
  12234. ),
  12235. 'primary key' => array (
  12236. 0 => 'stockcollectionprop_id',
  12237. ),
  12238. 'unique keys' => array (
  12239. 'stockcollectionprop_c1' => array (
  12240. 0 => 'stockcollection_id',
  12241. 1 => 'type_id',
  12242. 2 => 'rank',
  12243. ),
  12244. ),
  12245. 'indexes' => array (
  12246. 'stockcollectionprop_idx1' => array (
  12247. 0 => 'stockcollection_id',
  12248. ),
  12249. 'stockcollectionprop_idx2' => array (
  12250. 0 => 'type_id',
  12251. ),
  12252. ),
  12253. 'foreign keys' => array (
  12254. 'cvterm' => array (
  12255. 'table' => 'cvterm',
  12256. 'columns' => array (
  12257. 'type_id' => 'cvterm_id',
  12258. ),
  12259. ),
  12260. 'stockcollection' => array (
  12261. 'table' => 'stockcollection',
  12262. 'columns' => array (
  12263. 'stockcollection_id' => 'stockcollection_id',
  12264. ),
  12265. ),
  12266. ),
  12267. );
  12268. return $description;
  12269. }
  12270. /**
  12271. * Implements hook_chado_schema_v1_2_stockprop()
  12272. * Purpose: To describe the structure of 'stockprop' to tripal
  12273. * @see tripal_core_chado_insert()
  12274. * @see tripal_core_chado_update()
  12275. * @see tripal_core_chado_select()
  12276. *
  12277. * @return
  12278. * An array describing the 'stockprop' table
  12279. *
  12280. * @ingroup tripal_chado_v1.2_schema_api
  12281. *
  12282. */
  12283. function tripal_core_chado_schema_v1_2_stockprop() {
  12284. $description = array (
  12285. 'description' => 'TODO: please describe this table!',
  12286. 'fields' => array (
  12287. 'stockprop_id' => array (
  12288. 'description' => 'TODO: please describe this field!',
  12289. 'type' => 'serial',
  12290. 'not null' => true,
  12291. ),
  12292. 'stock_id' => array (
  12293. 'description' => 'TODO: please describe this field!',
  12294. 'type' => 'int',
  12295. 'not null' => true,
  12296. ),
  12297. 'type_id' => array (
  12298. 'description' => 'TODO: please describe this field!',
  12299. 'type' => 'int',
  12300. 'not null' => true,
  12301. ),
  12302. 'value' => array (
  12303. 'description' => 'TODO: please describe this field!',
  12304. 'type' => 'text',
  12305. 'not null' => false,
  12306. ),
  12307. 'rank' => array (
  12308. 'description' => 'TODO: please describe this field!',
  12309. 'type' => 'int',
  12310. 'not null' => true,
  12311. 'default' => 0,
  12312. ),
  12313. ),
  12314. 'primary key' => array (
  12315. 0 => 'stockprop_id',
  12316. ),
  12317. 'unique keys' => array (
  12318. 'stockprop_c1' => array (
  12319. 0 => 'stock_id',
  12320. 1 => 'type_id',
  12321. 2 => 'rank',
  12322. ),
  12323. ),
  12324. 'indexes' => array (
  12325. 'stockprop_idx1' => array (
  12326. 0 => 'stock_id',
  12327. ),
  12328. 'stockprop_idx2' => array (
  12329. 0 => 'type_id',
  12330. ),
  12331. ),
  12332. 'foreign keys' => array (
  12333. 'cvterm' => array (
  12334. 'table' => 'cvterm',
  12335. 'columns' => array (
  12336. 'type_id' => 'cvterm_id',
  12337. ),
  12338. ),
  12339. 'stock' => array (
  12340. 'table' => 'stock',
  12341. 'columns' => array (
  12342. 'stock_id' => 'stock_id',
  12343. ),
  12344. ),
  12345. ),
  12346. );
  12347. return $description;
  12348. }
  12349. /**
  12350. * Implements hook_chado_schema_v1_2_stockprop_pub()
  12351. * Purpose: To describe the structure of 'stockprop_pub' to tripal
  12352. * @see tripal_core_chado_insert()
  12353. * @see tripal_core_chado_update()
  12354. * @see tripal_core_chado_select()
  12355. *
  12356. * @return
  12357. * An array describing the 'stockprop_pub' table
  12358. *
  12359. * @ingroup tripal_chado_v1.2_schema_api
  12360. *
  12361. */
  12362. function tripal_core_chado_schema_v1_2_stockprop_pub() {
  12363. $description = array (
  12364. 'description' => 'TODO: please describe this table!',
  12365. 'fields' => array (
  12366. 'stockprop_pub_id' => array (
  12367. 'description' => 'TODO: please describe this field!',
  12368. 'type' => 'serial',
  12369. 'not null' => true,
  12370. ),
  12371. 'stockprop_id' => array (
  12372. 'description' => 'TODO: please describe this field!',
  12373. 'type' => 'int',
  12374. 'not null' => true,
  12375. ),
  12376. 'pub_id' => array (
  12377. 'description' => 'TODO: please describe this field!',
  12378. 'type' => 'int',
  12379. 'not null' => true,
  12380. ),
  12381. ),
  12382. 'primary key' => array (
  12383. 0 => 'stockprop_pub_id',
  12384. ),
  12385. 'unique keys' => array (
  12386. 'stockprop_pub_c1' => array (
  12387. 0 => 'stockprop_id',
  12388. 1 => 'pub_id',
  12389. ),
  12390. ),
  12391. 'indexes' => array (
  12392. 'stockprop_pub_idx1' => array (
  12393. 0 => 'stockprop_id',
  12394. ),
  12395. 'stockprop_pub_idx2' => array (
  12396. 0 => 'pub_id',
  12397. ),
  12398. ),
  12399. 'foreign keys' => array (
  12400. 'pub' => array (
  12401. 'table' => 'pub',
  12402. 'columns' => array (
  12403. 'pub_id' => 'pub_id',
  12404. ),
  12405. ),
  12406. 'stockprop' => array (
  12407. 'table' => 'stockprop',
  12408. 'columns' => array (
  12409. 'stockprop_id' => 'stockprop_id',
  12410. ),
  12411. ),
  12412. ),
  12413. );
  12414. return $description;
  12415. }
  12416. /**
  12417. * Implements hook_chado_schema_v1_2_study()
  12418. * Purpose: To describe the structure of 'study' to tripal
  12419. * @see tripal_core_chado_insert()
  12420. * @see tripal_core_chado_update()
  12421. * @see tripal_core_chado_select()
  12422. *
  12423. * @return
  12424. * An array describing the 'study' table
  12425. *
  12426. * @ingroup tripal_chado_v1.2_schema_api
  12427. *
  12428. */
  12429. function tripal_core_chado_schema_v1_2_study() {
  12430. $description = array (
  12431. 'description' => 'TODO: please describe this table!',
  12432. 'fields' => array (
  12433. 'study_id' => array (
  12434. 'description' => 'TODO: please describe this field!',
  12435. 'type' => 'serial',
  12436. 'not null' => true,
  12437. ),
  12438. 'contact_id' => array (
  12439. 'description' => 'TODO: please describe this field!',
  12440. 'type' => 'int',
  12441. 'not null' => true,
  12442. ),
  12443. 'pub_id' => array (
  12444. 'description' => 'TODO: please describe this field!',
  12445. 'type' => 'int',
  12446. 'not null' => false,
  12447. ),
  12448. 'dbxref_id' => array (
  12449. 'description' => 'TODO: please describe this field!',
  12450. 'type' => 'int',
  12451. 'not null' => false,
  12452. ),
  12453. 'name' => array (
  12454. 'description' => 'TODO: please describe this field!',
  12455. 'type' => 'text',
  12456. 'not null' => true,
  12457. ),
  12458. 'description' => array (
  12459. 'description' => 'TODO: please describe this field!',
  12460. 'type' => 'text',
  12461. 'not null' => false,
  12462. ),
  12463. ),
  12464. 'primary key' => array (
  12465. 0 => 'study_id',
  12466. ),
  12467. 'unique keys' => array (
  12468. 'study_c1' => array (
  12469. 0 => 'name',
  12470. ),
  12471. ),
  12472. 'indexes' => array (
  12473. 'study_idx1' => array (
  12474. 0 => 'contact_id',
  12475. ),
  12476. 'study_idx2' => array (
  12477. 0 => 'pub_id',
  12478. ),
  12479. 'study_idx3' => array (
  12480. 0 => 'dbxref_id',
  12481. ),
  12482. ),
  12483. 'foreign keys' => array (
  12484. 'dbxref' => array (
  12485. 'table' => 'dbxref',
  12486. 'columns' => array (
  12487. 'dbxref_id' => 'dbxref_id',
  12488. ),
  12489. ),
  12490. 'pub' => array (
  12491. 'table' => 'pub',
  12492. 'columns' => array (
  12493. 'pub_id' => 'pub_id',
  12494. ),
  12495. ),
  12496. 'contact' => array (
  12497. 'table' => 'contact',
  12498. 'columns' => array (
  12499. 'contact_id' => 'contact_id',
  12500. ),
  12501. ),
  12502. ),
  12503. );
  12504. return $description;
  12505. }
  12506. /**
  12507. * Implements hook_chado_schema_v1_2_study_assay()
  12508. * Purpose: To describe the structure of 'study_assay' to tripal
  12509. * @see tripal_core_chado_insert()
  12510. * @see tripal_core_chado_update()
  12511. * @see tripal_core_chado_select()
  12512. *
  12513. * @return
  12514. * An array describing the 'study_assay' table
  12515. *
  12516. * @ingroup tripal_chado_v1.2_schema_api
  12517. *
  12518. */
  12519. function tripal_core_chado_schema_v1_2_study_assay() {
  12520. $description = array (
  12521. 'description' => 'TODO: please describe this table!',
  12522. 'fields' => array (
  12523. 'study_assay_id' => array (
  12524. 'description' => 'TODO: please describe this field!',
  12525. 'type' => 'serial',
  12526. 'not null' => true,
  12527. ),
  12528. 'study_id' => array (
  12529. 'description' => 'TODO: please describe this field!',
  12530. 'type' => 'int',
  12531. 'not null' => true,
  12532. ),
  12533. 'assay_id' => array (
  12534. 'description' => 'TODO: please describe this field!',
  12535. 'type' => 'int',
  12536. 'not null' => true,
  12537. ),
  12538. ),
  12539. 'primary key' => array (
  12540. 0 => 'study_assay_id',
  12541. ),
  12542. 'unique keys' => array (
  12543. 'study_assay_c1' => array (
  12544. 0 => 'study_id',
  12545. 1 => 'assay_id',
  12546. ),
  12547. ),
  12548. 'indexes' => array (
  12549. 'study_assay_idx1' => array (
  12550. 0 => 'study_id',
  12551. ),
  12552. 'study_assay_idx2' => array (
  12553. 0 => 'assay_id',
  12554. ),
  12555. ),
  12556. 'foreign keys' => array (
  12557. 'assay' => array (
  12558. 'table' => 'assay',
  12559. 'columns' => array (
  12560. 'assay_id' => 'assay_id',
  12561. ),
  12562. ),
  12563. 'study' => array (
  12564. 'table' => 'study',
  12565. 'columns' => array (
  12566. 'study_id' => 'study_id',
  12567. ),
  12568. ),
  12569. ),
  12570. );
  12571. return $description;
  12572. }
  12573. /**
  12574. * Implements hook_chado_schema_v1_2_studydesign()
  12575. * Purpose: To describe the structure of 'studydesign' to tripal
  12576. * @see tripal_core_chado_insert()
  12577. * @see tripal_core_chado_update()
  12578. * @see tripal_core_chado_select()
  12579. *
  12580. * @return
  12581. * An array describing the 'studydesign' table
  12582. *
  12583. * @ingroup tripal_chado_v1.2_schema_api
  12584. *
  12585. */
  12586. function tripal_core_chado_schema_v1_2_studydesign() {
  12587. $description = array (
  12588. 'description' => 'TODO: please describe this table!',
  12589. 'fields' => array (
  12590. 'studydesign_id' => array (
  12591. 'description' => 'TODO: please describe this field!',
  12592. 'type' => 'serial',
  12593. 'not null' => true,
  12594. ),
  12595. 'study_id' => array (
  12596. 'description' => 'TODO: please describe this field!',
  12597. 'type' => 'int',
  12598. 'not null' => true,
  12599. ),
  12600. 'description' => array (
  12601. 'description' => 'TODO: please describe this field!',
  12602. 'type' => 'text',
  12603. 'not null' => false,
  12604. ),
  12605. ),
  12606. 'primary key' => array (
  12607. 0 => 'studydesign_id',
  12608. ),
  12609. 'indexes' => array (
  12610. 'studydesign_idx1' => array (
  12611. 0 => 'study_id',
  12612. ),
  12613. ),
  12614. 'foreign keys' => array (
  12615. 'study' => array (
  12616. 'table' => 'study',
  12617. 'columns' => array (
  12618. 'study_id' => 'study_id',
  12619. ),
  12620. ),
  12621. ),
  12622. );
  12623. return $description;
  12624. }
  12625. /**
  12626. * Implements hook_chado_schema_v1_2_studydesignprop()
  12627. * Purpose: To describe the structure of 'studydesignprop' to tripal
  12628. * @see tripal_core_chado_insert()
  12629. * @see tripal_core_chado_update()
  12630. * @see tripal_core_chado_select()
  12631. *
  12632. * @return
  12633. * An array describing the 'studydesignprop' table
  12634. *
  12635. * @ingroup tripal_chado_v1.2_schema_api
  12636. *
  12637. */
  12638. function tripal_core_chado_schema_v1_2_studydesignprop() {
  12639. $description = array (
  12640. 'description' => 'TODO: please describe this table!',
  12641. 'fields' => array (
  12642. 'studydesignprop_id' => array (
  12643. 'description' => 'TODO: please describe this field!',
  12644. 'type' => 'serial',
  12645. 'not null' => true,
  12646. ),
  12647. 'studydesign_id' => array (
  12648. 'description' => 'TODO: please describe this field!',
  12649. 'type' => 'int',
  12650. 'not null' => true,
  12651. ),
  12652. 'type_id' => array (
  12653. 'description' => 'TODO: please describe this field!',
  12654. 'type' => 'int',
  12655. 'not null' => true,
  12656. ),
  12657. 'value' => array (
  12658. 'description' => 'TODO: please describe this field!',
  12659. 'type' => 'text',
  12660. 'not null' => false,
  12661. ),
  12662. 'rank' => array (
  12663. 'description' => 'TODO: please describe this field!',
  12664. 'type' => 'int',
  12665. 'not null' => true,
  12666. 'default' => 0,
  12667. ),
  12668. ),
  12669. 'primary key' => array (
  12670. 0 => 'studydesignprop_id',
  12671. ),
  12672. 'unique keys' => array (
  12673. 'studydesignprop_c1' => array (
  12674. 0 => 'studydesign_id',
  12675. 1 => 'type_id',
  12676. 2 => 'rank',
  12677. ),
  12678. ),
  12679. 'indexes' => array (
  12680. 'studydesignprop_idx1' => array (
  12681. 0 => 'studydesign_id',
  12682. ),
  12683. 'studydesignprop_idx2' => array (
  12684. 0 => 'type_id',
  12685. ),
  12686. ),
  12687. 'foreign keys' => array (
  12688. 'cvterm' => array (
  12689. 'table' => 'cvterm',
  12690. 'columns' => array (
  12691. 'type_id' => 'cvterm_id',
  12692. ),
  12693. ),
  12694. 'studydesign' => array (
  12695. 'table' => 'studydesign',
  12696. 'columns' => array (
  12697. 'studydesign_id' => 'studydesign_id',
  12698. ),
  12699. ),
  12700. ),
  12701. );
  12702. return $description;
  12703. }
  12704. /**
  12705. * Implements hook_chado_schema_v1_2_studyfactor()
  12706. * Purpose: To describe the structure of 'studyfactor' to tripal
  12707. * @see tripal_core_chado_insert()
  12708. * @see tripal_core_chado_update()
  12709. * @see tripal_core_chado_select()
  12710. *
  12711. * @return
  12712. * An array describing the 'studyfactor' table
  12713. *
  12714. * @ingroup tripal_chado_v1.2_schema_api
  12715. *
  12716. */
  12717. function tripal_core_chado_schema_v1_2_studyfactor() {
  12718. $description = array (
  12719. 'description' => 'TODO: please describe this table!',
  12720. 'fields' => array (
  12721. 'studyfactor_id' => array (
  12722. 'description' => 'TODO: please describe this field!',
  12723. 'type' => 'serial',
  12724. 'not null' => true,
  12725. ),
  12726. 'studydesign_id' => array (
  12727. 'description' => 'TODO: please describe this field!',
  12728. 'type' => 'int',
  12729. 'not null' => true,
  12730. ),
  12731. 'type_id' => array (
  12732. 'description' => 'TODO: please describe this field!',
  12733. 'type' => 'int',
  12734. 'not null' => false,
  12735. ),
  12736. 'name' => array (
  12737. 'description' => 'TODO: please describe this field!',
  12738. 'type' => 'text',
  12739. 'not null' => true,
  12740. ),
  12741. 'description' => array (
  12742. 'description' => 'TODO: please describe this field!',
  12743. 'type' => 'text',
  12744. 'not null' => false,
  12745. ),
  12746. ),
  12747. 'primary key' => array (
  12748. 0 => 'studyfactor_id',
  12749. ),
  12750. 'indexes' => array (
  12751. 'studyfactor_idx1' => array (
  12752. 0 => 'studydesign_id',
  12753. ),
  12754. 'studyfactor_idx2' => array (
  12755. 0 => 'type_id',
  12756. ),
  12757. ),
  12758. 'foreign keys' => array (
  12759. 'cvterm' => array (
  12760. 'table' => 'cvterm',
  12761. 'columns' => array (
  12762. 'type_id' => 'cvterm_id',
  12763. ),
  12764. ),
  12765. 'studydesign' => array (
  12766. 'table' => 'studydesign',
  12767. 'columns' => array (
  12768. 'studydesign_id' => 'studydesign_id',
  12769. ),
  12770. ),
  12771. ),
  12772. );
  12773. return $description;
  12774. }
  12775. /**
  12776. * Implements hook_chado_schema_v1_2_studyfactorvalue()
  12777. * Purpose: To describe the structure of 'studyfactorvalue' to tripal
  12778. * @see tripal_core_chado_insert()
  12779. * @see tripal_core_chado_update()
  12780. * @see tripal_core_chado_select()
  12781. *
  12782. * @return
  12783. * An array describing the 'studyfactorvalue' table
  12784. *
  12785. * @ingroup tripal_chado_v1.2_schema_api
  12786. *
  12787. */
  12788. function tripal_core_chado_schema_v1_2_studyfactorvalue() {
  12789. $description = array (
  12790. 'description' => 'TODO: please describe this table!',
  12791. 'fields' => array (
  12792. 'studyfactorvalue_id' => array (
  12793. 'description' => 'TODO: please describe this field!',
  12794. 'type' => 'serial',
  12795. 'not null' => true,
  12796. ),
  12797. 'studyfactor_id' => array (
  12798. 'description' => 'TODO: please describe this field!',
  12799. 'type' => 'int',
  12800. 'not null' => true,
  12801. ),
  12802. 'assay_id' => array (
  12803. 'description' => 'TODO: please describe this field!',
  12804. 'type' => 'int',
  12805. 'not null' => true,
  12806. ),
  12807. 'factorvalue' => array (
  12808. 'description' => 'TODO: please describe this field!',
  12809. 'type' => 'text',
  12810. 'not null' => false,
  12811. ),
  12812. 'name' => array (
  12813. 'description' => 'TODO: please describe this field!',
  12814. 'type' => 'text',
  12815. 'not null' => false,
  12816. ),
  12817. 'rank' => array (
  12818. 'description' => 'TODO: please describe this field!',
  12819. 'type' => 'int',
  12820. 'not null' => true,
  12821. 'default' => 0,
  12822. ),
  12823. ),
  12824. 'primary key' => array (
  12825. 0 => 'studyfactorvalue_id',
  12826. ),
  12827. 'indexes' => array (
  12828. 'studyfactorvalue_idx1' => array (
  12829. 0 => 'studyfactor_id',
  12830. ),
  12831. 'studyfactorvalue_idx2' => array (
  12832. 0 => 'assay_id',
  12833. ),
  12834. ),
  12835. 'foreign keys' => array (
  12836. 'assay' => array (
  12837. 'table' => 'assay',
  12838. 'columns' => array (
  12839. 'assay_id' => 'assay_id',
  12840. ),
  12841. ),
  12842. 'studyfactor' => array (
  12843. 'table' => 'studyfactor',
  12844. 'columns' => array (
  12845. 'studyfactor_id' => 'studyfactor_id',
  12846. ),
  12847. ),
  12848. ),
  12849. );
  12850. return $description;
  12851. }
  12852. /**
  12853. * Implements hook_chado_schema_v1_2_studyprop()
  12854. * Purpose: To describe the structure of 'studyprop' to tripal
  12855. * @see tripal_core_chado_insert()
  12856. * @see tripal_core_chado_update()
  12857. * @see tripal_core_chado_select()
  12858. *
  12859. * @return
  12860. * An array describing the 'studyprop' table
  12861. *
  12862. * @ingroup tripal_chado_v1.2_schema_api
  12863. *
  12864. */
  12865. function tripal_core_chado_schema_v1_2_studyprop() {
  12866. $description = array (
  12867. 'description' => 'TODO: please describe this table!',
  12868. 'fields' => array (
  12869. 'studyprop_id' => array (
  12870. 'description' => 'TODO: please describe this field!',
  12871. 'type' => 'serial',
  12872. 'not null' => true,
  12873. ),
  12874. 'study_id' => array (
  12875. 'description' => 'TODO: please describe this field!',
  12876. 'type' => 'int',
  12877. 'not null' => true,
  12878. ),
  12879. 'type_id' => array (
  12880. 'description' => 'TODO: please describe this field!',
  12881. 'type' => 'int',
  12882. 'not null' => true,
  12883. ),
  12884. 'value' => array (
  12885. 'description' => 'TODO: please describe this field!',
  12886. 'type' => 'text',
  12887. 'not null' => false,
  12888. ),
  12889. 'rank' => array (
  12890. 'description' => 'TODO: please describe this field!',
  12891. 'type' => 'int',
  12892. 'not null' => true,
  12893. 'default' => 0,
  12894. ),
  12895. ),
  12896. 'primary key' => array (
  12897. 0 => 'studyprop_id',
  12898. ),
  12899. 'unique keys' => array (
  12900. 'study_id' => array (
  12901. 0 => 'study_id',
  12902. 1 => 'type_id',
  12903. 2 => 'rank',
  12904. ),
  12905. ),
  12906. 'indexes' => array (
  12907. 'studyprop_idx1' => array (
  12908. 0 => 'study_id',
  12909. ),
  12910. 'studyprop_idx2' => array (
  12911. 0 => 'type_id',
  12912. ),
  12913. ),
  12914. 'foreign keys' => array (
  12915. 'cvterm' => array (
  12916. 'table' => 'cvterm',
  12917. 'columns' => array (
  12918. 'type_id' => 'cvterm_id',
  12919. ),
  12920. ),
  12921. 'study' => array (
  12922. 'table' => 'study',
  12923. 'columns' => array (
  12924. 'study_id' => 'study_id',
  12925. ),
  12926. ),
  12927. ),
  12928. );
  12929. return $description;
  12930. }
  12931. /**
  12932. * Implements hook_chado_schema_v1_2_studyprop_feature()
  12933. * Purpose: To describe the structure of 'studyprop_feature' to tripal
  12934. * @see tripal_core_chado_insert()
  12935. * @see tripal_core_chado_update()
  12936. * @see tripal_core_chado_select()
  12937. *
  12938. * @return
  12939. * An array describing the 'studyprop_feature' table
  12940. *
  12941. * @ingroup tripal_chado_v1.2_schema_api
  12942. *
  12943. */
  12944. function tripal_core_chado_schema_v1_2_studyprop_feature() {
  12945. $description = array (
  12946. 'description' => 'TODO: please describe this table!',
  12947. 'fields' => array (
  12948. 'studyprop_feature_id' => array (
  12949. 'description' => 'TODO: please describe this field!',
  12950. 'type' => 'serial',
  12951. 'not null' => true,
  12952. ),
  12953. 'studyprop_id' => array (
  12954. 'description' => 'TODO: please describe this field!',
  12955. 'type' => 'int',
  12956. 'not null' => true,
  12957. ),
  12958. 'feature_id' => array (
  12959. 'description' => 'TODO: please describe this field!',
  12960. 'type' => 'int',
  12961. 'not null' => true,
  12962. ),
  12963. 'type_id' => array (
  12964. 'description' => 'TODO: please describe this field!',
  12965. 'type' => 'int',
  12966. 'not null' => false,
  12967. ),
  12968. ),
  12969. 'primary key' => array (
  12970. 0 => 'studyprop_feature_id',
  12971. ),
  12972. 'unique keys' => array (
  12973. 'studyprop_id' => array (
  12974. 0 => 'studyprop_id',
  12975. 1 => 'feature_id',
  12976. ),
  12977. ),
  12978. 'indexes' => array (
  12979. 'studyprop_feature_idx1' => array (
  12980. 0 => 'studyprop_id',
  12981. ),
  12982. 'studyprop_feature_idx2' => array (
  12983. 0 => 'feature_id',
  12984. ),
  12985. ),
  12986. 'foreign keys' => array (
  12987. 'cvterm' => array (
  12988. 'table' => 'cvterm',
  12989. 'columns' => array (
  12990. 'type_id' => 'cvterm_id',
  12991. ),
  12992. ),
  12993. 'feature' => array (
  12994. 'table' => 'feature',
  12995. 'columns' => array (
  12996. 'feature_id' => 'feature_id',
  12997. ),
  12998. ),
  12999. 'studyprop' => array (
  13000. 'table' => 'studyprop',
  13001. 'columns' => array (
  13002. 'studyprop_id' => 'studyprop_id',
  13003. ),
  13004. ),
  13005. ),
  13006. );
  13007. return $description;
  13008. }
  13009. /**
  13010. * Implements hook_chado_schema_v1_2_synonym()
  13011. * Purpose: To describe the structure of 'synonym' to tripal
  13012. * @see tripal_core_chado_insert()
  13013. * @see tripal_core_chado_update()
  13014. * @see tripal_core_chado_select()
  13015. *
  13016. * @return
  13017. * An array describing the 'synonym' table
  13018. *
  13019. * @ingroup tripal_chado_v1.2_schema_api
  13020. *
  13021. */
  13022. function tripal_core_chado_schema_v1_2_synonym() {
  13023. $description = array (
  13024. 'description' => 'TODO: please describe this table!',
  13025. 'fields' => array (
  13026. 'synonym_id' => array (
  13027. 'description' => 'TODO: please describe this field!',
  13028. 'type' => 'serial',
  13029. 'not null' => true,
  13030. ),
  13031. 'name' => array (
  13032. 'description' => 'TODO: please describe this field!',
  13033. 'type' => 'varchar',
  13034. 'length' => '255',
  13035. 'not null' => true,
  13036. ),
  13037. 'type_id' => array (
  13038. 'description' => 'TODO: please describe this field!',
  13039. 'type' => 'int',
  13040. 'not null' => true,
  13041. ),
  13042. 'synonym_sgml' => array (
  13043. 'description' => 'TODO: please describe this field!',
  13044. 'type' => 'varchar',
  13045. 'length' => '255',
  13046. 'not null' => true,
  13047. ),
  13048. ),
  13049. 'primary key' => array (
  13050. 0 => 'synonym_id',
  13051. ),
  13052. 'unique keys' => array (
  13053. 'synonym_c1' => array (
  13054. 0 => 'name',
  13055. 1 => 'type_id',
  13056. ),
  13057. ),
  13058. 'indexes' => array (
  13059. 'synonym_idx1' => array (
  13060. 0 => 'type_id',
  13061. ),
  13062. ),
  13063. 'foreign keys' => array (
  13064. 'cvterm' => array (
  13065. 'table' => 'cvterm',
  13066. 'columns' => array (
  13067. 'type_id' => 'cvterm_id',
  13068. ),
  13069. ),
  13070. ),
  13071. );
  13072. return $description;
  13073. }
  13074. /**
  13075. * Implements hook_chado_schema_v1_2_tableinfo()
  13076. * Purpose: To describe the structure of 'tableinfo' to tripal
  13077. * @see tripal_core_chado_insert()
  13078. * @see tripal_core_chado_update()
  13079. * @see tripal_core_chado_select()
  13080. *
  13081. * @return
  13082. * An array describing the 'tableinfo' table
  13083. *
  13084. * @ingroup tripal_chado_v1.2_schema_api
  13085. *
  13086. */
  13087. function tripal_core_chado_schema_v1_2_tableinfo() {
  13088. $description = array (
  13089. 'description' => 'TODO: please describe this table!',
  13090. 'fields' => array (
  13091. 'tableinfo_id' => array (
  13092. 'description' => 'TODO: please describe this field!',
  13093. 'type' => 'serial',
  13094. 'not null' => true,
  13095. ),
  13096. 'name' => array (
  13097. 'description' => 'TODO: please describe this field!',
  13098. 'type' => 'varchar',
  13099. 'length' => '30',
  13100. 'not null' => true,
  13101. ),
  13102. 'primary_key_column' => array (
  13103. 'description' => 'TODO: please describe this field!',
  13104. 'type' => 'varchar',
  13105. 'length' => '30',
  13106. 'not null' => false,
  13107. ),
  13108. 'is_view' => array (
  13109. 'description' => 'TODO: please describe this field!',
  13110. 'type' => 'int',
  13111. 'not null' => true,
  13112. 'default' => 0,
  13113. ),
  13114. 'view_on_table_id' => array (
  13115. 'description' => 'TODO: please describe this field!',
  13116. 'type' => 'int',
  13117. 'not null' => false,
  13118. ),
  13119. 'superclass_table_id' => array (
  13120. 'description' => 'TODO: please describe this field!',
  13121. 'type' => 'int',
  13122. 'not null' => false,
  13123. ),
  13124. 'is_updateable' => array (
  13125. 'description' => 'TODO: please describe this field!',
  13126. 'type' => 'int',
  13127. 'not null' => true,
  13128. 'default' => 1,
  13129. ),
  13130. 'modification_date' => array (
  13131. 'description' => 'TODO: please describe this field!',
  13132. 'type' => 'date',
  13133. 'not null' => true,
  13134. 'default' => 'ow(',
  13135. ),
  13136. ),
  13137. 'primary key' => array (
  13138. 0 => 'tableinfo_id',
  13139. ),
  13140. 'unique keys' => array (
  13141. 'tableinfo_c1' => array (
  13142. 0 => 'name',
  13143. ),
  13144. ),
  13145. 'foreign keys' => array (
  13146. ),
  13147. );
  13148. return $description;
  13149. }
  13150. /**
  13151. * Implements hook_chado_schema_v1_2_treatment()
  13152. * Purpose: To describe the structure of 'treatment' to tripal
  13153. * @see tripal_core_chado_insert()
  13154. * @see tripal_core_chado_update()
  13155. * @see tripal_core_chado_select()
  13156. *
  13157. * @return
  13158. * An array describing the 'treatment' table
  13159. *
  13160. * @ingroup tripal_chado_v1.2_schema_api
  13161. *
  13162. */
  13163. function tripal_core_chado_schema_v1_2_treatment() {
  13164. $description = array (
  13165. 'description' => 'TODO: please describe this table!',
  13166. 'fields' => array (
  13167. 'treatment_id' => array (
  13168. 'description' => 'TODO: please describe this field!',
  13169. 'type' => 'serial',
  13170. 'not null' => true,
  13171. ),
  13172. 'rank' => array (
  13173. 'description' => 'TODO: please describe this field!',
  13174. 'type' => 'int',
  13175. 'not null' => true,
  13176. 'default' => 0,
  13177. ),
  13178. 'biomaterial_id' => array (
  13179. 'description' => 'TODO: please describe this field!',
  13180. 'type' => 'int',
  13181. 'not null' => true,
  13182. ),
  13183. 'type_id' => array (
  13184. 'description' => 'TODO: please describe this field!',
  13185. 'type' => 'int',
  13186. 'not null' => true,
  13187. ),
  13188. 'protocol_id' => array (
  13189. 'description' => 'TODO: please describe this field!',
  13190. 'type' => 'int',
  13191. 'not null' => false,
  13192. ),
  13193. 'name' => array (
  13194. 'description' => 'TODO: please describe this field!',
  13195. 'type' => 'text',
  13196. 'not null' => false,
  13197. ),
  13198. ),
  13199. 'primary key' => array (
  13200. 0 => 'treatment_id',
  13201. ),
  13202. 'indexes' => array (
  13203. 'treatment_idx1' => array (
  13204. 0 => 'biomaterial_id',
  13205. ),
  13206. 'treatment_idx2' => array (
  13207. 0 => 'type_id',
  13208. ),
  13209. 'treatment_idx3' => array (
  13210. 0 => 'protocol_id',
  13211. ),
  13212. ),
  13213. 'foreign keys' => array (
  13214. 'cvterm' => array (
  13215. 'table' => 'cvterm',
  13216. 'columns' => array (
  13217. 'type_id' => 'cvterm_id',
  13218. ),
  13219. ),
  13220. 'protocol' => array (
  13221. 'table' => 'protocol',
  13222. 'columns' => array (
  13223. 'protocol_id' => 'protocol_id',
  13224. ),
  13225. ),
  13226. 'biomaterial' => array (
  13227. 'table' => 'biomaterial',
  13228. 'columns' => array (
  13229. 'biomaterial_id' => 'biomaterial_id',
  13230. ),
  13231. ),
  13232. ),
  13233. );
  13234. return $description;
  13235. }