chado_tables.schema.inc 219 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913
  1. <?php
  2. /**
  3. * Retrieves the schema for all tables
  4. * This function is deprecated
  5. *
  6. * @ingroup tripal_schema_api
  7. */
  8. function tripal_core_get_chado_schema (){
  9. $schema['organism_dbxref'] = array(
  10. 'description' => t('TODO: please describe this table!'),
  11. 'fields' => array(
  12. 'organism_dbxref_id' => array(
  13. 'description' => t('TODO: please describe this field!'),
  14. 'type' => 'serial',
  15. 'not null' => TRUE,
  16. ),
  17. 'organism_id' => array(
  18. 'description' => t('TODO: please describe this field!'),
  19. 'type' => 'int',
  20. 'not null' => TRUE,
  21. ),
  22. 'dbxref_id' => array(
  23. 'description' => t('TODO: please describe this field!'),
  24. 'type' => 'int',
  25. 'not null' => TRUE,
  26. ),
  27. ),
  28. 'primary key' => array('organism_dbxref_id'),
  29. 'unique keys' => array(
  30. 'organism_dbxref_c1' => array('organism_id', 'dbxref_id')
  31. ),
  32. 'indexes' => array(
  33. 'organism_dbxref_idx1' => array('organism_id'),
  34. 'organism_dbxref_idx2' => array('dbxref_id'),
  35. ),
  36. );
  37. $schema['organismprop'] = array(
  38. 'description' => t('TODO: please describe this table!'),
  39. 'fields' => array(
  40. 'organismprop_id' => array(
  41. 'description' => t('TODO: please describe this field!'),
  42. 'type' => 'serial',
  43. 'not null' => TRUE,
  44. ),
  45. 'organism_id' => array(
  46. 'description' => t('TODO: please describe this field!'),
  47. 'type' => 'int',
  48. 'not null' => TRUE,
  49. ),
  50. 'type_id' => array(
  51. 'description' => t('TODO: please describe this field!'),
  52. 'type' => 'int',
  53. 'not null' => TRUE,
  54. ),
  55. 'value' => array(
  56. 'description' => t('TODO: please describe this field!'),
  57. 'type' => 'text',
  58. 'not null' => FALSE,
  59. ),
  60. 'rank' => array(
  61. 'description' => t('TODO: please describe this field!'),
  62. 'type' => 'int',
  63. 'not null' => TRUE,
  64. 'default' => 0,
  65. ),
  66. ),
  67. 'primary key' => array('organismprop_id'),
  68. 'unique keys' => array(
  69. 'organismprop_c1' => array('organism_id', 'type_id', 'rank')
  70. ),
  71. 'indexes' => array(
  72. 'organismprop_idx1' => array('organism_id'),
  73. 'organismprop_idx2' => array('type_id'),
  74. ),
  75. );
  76. $schema['phendesc'] = array(
  77. 'description' => t('TODO: please describe this table!'),
  78. 'fields' => array(
  79. 'phendesc_id' => array(
  80. 'description' => t('TODO: please describe this field!'),
  81. 'type' => 'serial',
  82. 'not null' => TRUE,
  83. ),
  84. 'genotype_id' => array(
  85. 'description' => t('TODO: please describe this field!'),
  86. 'type' => 'int',
  87. 'not null' => TRUE,
  88. ),
  89. 'environment_id' => array(
  90. 'description' => t('TODO: please describe this field!'),
  91. 'type' => 'int',
  92. 'not null' => TRUE,
  93. ),
  94. 'description' => array(
  95. 'description' => t('TODO: please describe this field!'),
  96. 'type' => 'text',
  97. 'not null' => TRUE,
  98. ),
  99. 'type_id' => array(
  100. 'description' => t('TODO: please describe this field!'),
  101. 'type' => 'int',
  102. 'not null' => TRUE,
  103. ),
  104. 'pub_id' => array(
  105. 'description' => t('TODO: please describe this field!'),
  106. 'type' => 'int',
  107. 'not null' => TRUE,
  108. ),
  109. ),
  110. 'primary key' => array('phendesc_id'),
  111. 'unique keys' => array(
  112. 'phendesc_c1' => array('genotype_id', 'environment_id', 'type_id', 'pub_id')
  113. ),
  114. 'indexes' => array(
  115. 'phendesc_idx1' => array('genotype_id'),
  116. 'phendesc_idx2' => array('environment_id'),
  117. 'phendesc_idx3' => array('pub_id'),
  118. ),
  119. );
  120. $schema['phenotype'] = array(
  121. 'description' => t('TODO: please describe this table!'),
  122. 'fields' => array(
  123. 'phenotype_id' => array(
  124. 'description' => t('TODO: please describe this field!'),
  125. 'type' => 'serial',
  126. 'not null' => TRUE,
  127. ),
  128. 'uniquename' => array(
  129. 'description' => t('TODO: please describe this field!'),
  130. 'type' => 'text',
  131. 'not null' => TRUE,
  132. ),
  133. 'observable_id' => array(
  134. 'description' => t('TODO: please describe this field!'),
  135. 'type' => 'int',
  136. 'not null' => FALSE,
  137. ),
  138. 'attr_id' => array(
  139. 'description' => t('TODO: please describe this field!'),
  140. 'type' => 'int',
  141. 'not null' => FALSE,
  142. ),
  143. 'value' => array(
  144. 'description' => t('TODO: please describe this field!'),
  145. 'type' => 'text',
  146. 'not null' => FALSE,
  147. ),
  148. 'cvalue_id' => array(
  149. 'description' => t('TODO: please describe this field!'),
  150. 'type' => 'int',
  151. 'not null' => FALSE,
  152. ),
  153. 'assay_id' => array(
  154. 'description' => t('TODO: please describe this field!'),
  155. 'type' => 'int',
  156. 'not null' => FALSE,
  157. ),
  158. ),
  159. 'primary key' => array('phenotype_id'),
  160. 'unique keys' => array(
  161. 'phenotype_c1' => array('uniquename')
  162. ),
  163. 'indexes' => array(
  164. 'phenotype_idx1' => array('cvalue_id'),
  165. 'phenotype_idx2' => array('observable_id'),
  166. 'phenotype_idx3' => array('attr_id'),
  167. ),
  168. );
  169. $schema['organism'] = array(
  170. 'description' => t('TODO: please describe this table!'),
  171. 'fields' => array(
  172. 'organism_id' => array(
  173. 'description' => t('TODO: please describe this field!'),
  174. 'type' => 'serial',
  175. 'not null' => TRUE,
  176. ),
  177. 'abbreviation' => array(
  178. 'description' => t('TODO: please describe this field!'),
  179. 'type' => 'varchar',
  180. 'length' => '255',
  181. 'not null' => FALSE,
  182. ),
  183. 'genus' => array(
  184. 'description' => t('TODO: please describe this field!'),
  185. 'type' => 'varchar',
  186. 'length' => '255',
  187. 'not null' => TRUE,
  188. ),
  189. 'species' => array(
  190. 'description' => t('TODO: please describe this field!'),
  191. 'type' => 'varchar',
  192. 'length' => '255',
  193. 'not null' => TRUE,
  194. ),
  195. 'common_name' => array(
  196. 'description' => t('TODO: please describe this field!'),
  197. 'type' => 'varchar',
  198. 'length' => '255',
  199. 'not null' => FALSE,
  200. ),
  201. 'comment' => array(
  202. 'description' => t('TODO: please describe this field!'),
  203. 'type' => 'text',
  204. 'not null' => FALSE,
  205. ),
  206. ),
  207. 'primary key' => array('organism_id'),
  208. 'unique keys' => array(
  209. 'organism_c1' => array('genus', 'species')
  210. ),
  211. );
  212. $schema['materialized_view'] = array(
  213. 'description' => t('TODO: please describe this table!'),
  214. 'fields' => array(
  215. 'materialized_view_id' => array(
  216. 'description' => t('TODO: please describe this field!'),
  217. 'type' => 'serial',
  218. 'not null' => TRUE,
  219. ),
  220. 'last_update' => array(
  221. 'description' => t('TODO: please describe this field!'),
  222. 'type' => 'datetime',
  223. 'not null' => FALSE,
  224. ),
  225. 'refresh_time' => array(
  226. 'description' => t('TODO: please describe this field!'),
  227. 'type' => 'int',
  228. 'not null' => FALSE,
  229. ),
  230. 'name' => array(
  231. 'description' => t('TODO: please describe this field!'),
  232. 'type' => 'varchar',
  233. 'length' => '64',
  234. 'not null' => FALSE,
  235. ),
  236. 'mv_schema' => array(
  237. 'description' => t('TODO: please describe this field!'),
  238. 'type' => 'varchar',
  239. 'length' => '64',
  240. 'not null' => FALSE,
  241. ),
  242. 'mv_table' => array(
  243. 'description' => t('TODO: please describe this field!'),
  244. 'type' => 'varchar',
  245. 'length' => '128',
  246. 'not null' => FALSE,
  247. ),
  248. 'mv_specs' => array(
  249. 'description' => t('TODO: please describe this field!'),
  250. 'type' => 'text',
  251. 'not null' => FALSE,
  252. ),
  253. 'indexed' => array(
  254. 'description' => t('TODO: please describe this field!'),
  255. 'type' => 'text',
  256. 'not null' => FALSE,
  257. ),
  258. 'query' => array(
  259. 'description' => t('TODO: please describe this field!'),
  260. 'type' => 'text',
  261. 'not null' => FALSE,
  262. ),
  263. 'special_index' => array(
  264. 'description' => t('TODO: please describe this field!'),
  265. 'type' => 'text',
  266. 'not null' => FALSE,
  267. ),
  268. ),
  269. 'unique keys' => array(
  270. 'name' => array('name')
  271. ),
  272. );
  273. $schema['libraryprop'] = array(
  274. 'description' => t('TODO: please describe this table!'),
  275. 'fields' => array(
  276. 'libraryprop_id' => array(
  277. 'description' => t('TODO: please describe this field!'),
  278. 'type' => 'serial',
  279. 'not null' => TRUE,
  280. ),
  281. 'library_id' => array(
  282. 'description' => t('TODO: please describe this field!'),
  283. 'type' => 'int',
  284. 'not null' => TRUE,
  285. ),
  286. 'type_id' => array(
  287. 'description' => t('TODO: please describe this field!'),
  288. 'type' => 'int',
  289. 'not null' => TRUE,
  290. ),
  291. 'value' => array(
  292. 'description' => t('TODO: please describe this field!'),
  293. 'type' => 'text',
  294. 'not null' => FALSE,
  295. ),
  296. 'rank' => array(
  297. 'description' => t('TODO: please describe this field!'),
  298. 'type' => 'int',
  299. 'not null' => TRUE,
  300. 'default' => 0,
  301. ),
  302. ),
  303. 'primary key' => array('libraryprop_id'),
  304. 'unique keys' => array(
  305. 'libraryprop_c1' => array('library_id', 'type_id', 'rank')
  306. ),
  307. 'indexes' => array(
  308. 'libraryprop_idx1' => array('library_id'),
  309. 'libraryprop_idx2' => array('type_id'),
  310. ),
  311. );
  312. $schema['libraryprop_pub'] = array(
  313. 'description' => t('TODO: please describe this table!'),
  314. 'fields' => array(
  315. 'libraryprop_pub_id' => array(
  316. 'description' => t('TODO: please describe this field!'),
  317. 'type' => 'serial',
  318. 'not null' => TRUE,
  319. ),
  320. 'libraryprop_id' => array(
  321. 'description' => t('TODO: please describe this field!'),
  322. 'type' => 'int',
  323. 'not null' => TRUE,
  324. ),
  325. 'pub_id' => array(
  326. 'description' => t('TODO: please describe this field!'),
  327. 'type' => 'int',
  328. 'not null' => TRUE,
  329. ),
  330. ),
  331. 'primary key' => array('libraryprop_pub_id'),
  332. 'unique keys' => array(
  333. 'libraryprop_pub_c1' => array('libraryprop_id', 'pub_id')
  334. ),
  335. 'indexes' => array(
  336. 'libraryprop_pub_idx1' => array('libraryprop_id'),
  337. 'libraryprop_pub_idx2' => array('pub_id'),
  338. ),
  339. );
  340. $schema['magedocumentation'] = array(
  341. 'description' => t('TODO: please describe this table!'),
  342. 'fields' => array(
  343. 'magedocumentation_id' => array(
  344. 'description' => t('TODO: please describe this field!'),
  345. 'type' => 'serial',
  346. 'not null' => TRUE,
  347. ),
  348. 'mageml_id' => array(
  349. 'description' => t('TODO: please describe this field!'),
  350. 'type' => 'int',
  351. 'not null' => TRUE,
  352. ),
  353. 'tableinfo_id' => array(
  354. 'description' => t('TODO: please describe this field!'),
  355. 'type' => 'int',
  356. 'not null' => TRUE,
  357. ),
  358. 'row_id' => array(
  359. 'description' => t('TODO: please describe this field!'),
  360. 'type' => 'int',
  361. 'not null' => TRUE,
  362. ),
  363. 'mageidentifier' => array(
  364. 'description' => t('TODO: please describe this field!'),
  365. 'type' => 'text',
  366. 'not null' => TRUE,
  367. ),
  368. ),
  369. 'primary key' => array('magedocumentation_id'),
  370. 'indexes' => array(
  371. 'magedocumentation_idx1' => array('mageml_id'),
  372. 'magedocumentation_idx2' => array('tableinfo_id'),
  373. 'magedocumentation_idx3' => array('row_id'),
  374. ),
  375. );
  376. $schema['mageml'] = array(
  377. 'description' => t('TODO: please describe this table!'),
  378. 'fields' => array(
  379. 'mageml_id' => array(
  380. 'description' => t('TODO: please describe this field!'),
  381. 'type' => 'serial',
  382. 'not null' => TRUE,
  383. ),
  384. 'mage_package' => array(
  385. 'description' => t('TODO: please describe this field!'),
  386. 'type' => 'text',
  387. 'not null' => TRUE,
  388. ),
  389. 'mage_ml' => array(
  390. 'description' => t('TODO: please describe this field!'),
  391. 'type' => 'text',
  392. 'not null' => TRUE,
  393. ),
  394. ),
  395. 'primary key' => array('mageml_id'),
  396. );
  397. $schema['phenotype_comparison'] = array(
  398. 'description' => t('TODO: please describe this table!'),
  399. 'fields' => array(
  400. 'phenotype_comparison_id' => array(
  401. 'description' => t('TODO: please describe this field!'),
  402. 'type' => 'serial',
  403. 'not null' => TRUE,
  404. ),
  405. 'genotype1_id' => array(
  406. 'description' => t('TODO: please describe this field!'),
  407. 'type' => 'int',
  408. 'not null' => TRUE,
  409. ),
  410. 'environment1_id' => array(
  411. 'description' => t('TODO: please describe this field!'),
  412. 'type' => 'int',
  413. 'not null' => TRUE,
  414. ),
  415. 'genotype2_id' => array(
  416. 'description' => t('TODO: please describe this field!'),
  417. 'type' => 'int',
  418. 'not null' => TRUE,
  419. ),
  420. 'environment2_id' => array(
  421. 'description' => t('TODO: please describe this field!'),
  422. 'type' => 'int',
  423. 'not null' => TRUE,
  424. ),
  425. 'phenotype1_id' => array(
  426. 'description' => t('TODO: please describe this field!'),
  427. 'type' => 'int',
  428. 'not null' => TRUE,
  429. ),
  430. 'phenotype2_id' => array(
  431. 'description' => t('TODO: please describe this field!'),
  432. 'type' => 'int',
  433. 'not null' => FALSE,
  434. ),
  435. 'pub_id' => array(
  436. 'description' => t('TODO: please describe this field!'),
  437. 'type' => 'int',
  438. 'not null' => TRUE,
  439. ),
  440. 'organism_id' => array(
  441. 'description' => t('TODO: please describe this field!'),
  442. 'type' => 'int',
  443. 'not null' => TRUE,
  444. ),
  445. ),
  446. 'primary key' => array('phenotype_comparison_id'),
  447. 'unique keys' => array(
  448. 'phenotype_comparison_c1' => array('genotype1_id', 'environment1_id', 'genotype2_id', 'environment2_id', 'phenotype1_id', 'pub_id')
  449. ),
  450. 'indexes' => array(
  451. 'phenotype_comparison_idx1' => array('genotype1_id'),
  452. 'phenotype_comparison_idx2' => array('genotype2_id'),
  453. 'phenotype_comparison_idx4' => array('pub_id'),
  454. ),
  455. );
  456. $schema['phenotype_comparison_cvterm'] = array(
  457. 'description' => t('TODO: please describe this table!'),
  458. 'fields' => array(
  459. 'phenotype_comparison_cvterm_id' => array(
  460. 'description' => t('TODO: please describe this field!'),
  461. 'type' => 'serial',
  462. 'not null' => TRUE,
  463. ),
  464. 'phenotype_comparison_id' => array(
  465. 'description' => t('TODO: please describe this field!'),
  466. 'type' => 'int',
  467. 'not null' => TRUE,
  468. ),
  469. 'cvterm_id' => array(
  470. 'description' => t('TODO: please describe this field!'),
  471. 'type' => 'int',
  472. 'not null' => TRUE,
  473. ),
  474. 'pub_id' => array(
  475. 'description' => t('TODO: please describe this field!'),
  476. 'type' => 'int',
  477. 'not null' => TRUE,
  478. ),
  479. 'rank' => array(
  480. 'description' => t('TODO: please describe this field!'),
  481. 'type' => 'int',
  482. 'not null' => TRUE,
  483. 'default' => 0,
  484. ),
  485. ),
  486. 'primary key' => array('phenotype_comparison_cvterm_id'),
  487. 'unique keys' => array(
  488. 'phenotype_comparison_cvterm_c1' => array('phenotype_comparison_id', 'cvterm_id')
  489. ),
  490. 'indexes' => array(
  491. 'phenotype_comparison_cvterm_idx1' => array('phenotype_comparison_id'),
  492. 'phenotype_comparison_cvterm_idx2' => array('cvterm_id'),
  493. ),
  494. );
  495. $schema['phylonode_relationship'] = array(
  496. 'description' => t('TODO: please describe this table!'),
  497. 'fields' => array(
  498. 'phylonode_relationship_id' => array(
  499. 'description' => t('TODO: please describe this field!'),
  500. 'type' => 'serial',
  501. 'not null' => TRUE,
  502. ),
  503. 'subject_id' => array(
  504. 'description' => t('TODO: please describe this field!'),
  505. 'type' => 'int',
  506. 'not null' => TRUE,
  507. ),
  508. 'object_id' => array(
  509. 'description' => t('TODO: please describe this field!'),
  510. 'type' => 'int',
  511. 'not null' => TRUE,
  512. ),
  513. 'type_id' => array(
  514. 'description' => t('TODO: please describe this field!'),
  515. 'type' => 'int',
  516. 'not null' => TRUE,
  517. ),
  518. 'rank' => array(
  519. 'description' => t('TODO: please describe this field!'),
  520. 'type' => 'int',
  521. 'not null' => FALSE,
  522. ),
  523. 'phylotree_id' => array(
  524. 'description' => t('TODO: please describe this field!'),
  525. 'type' => 'int',
  526. 'not null' => TRUE,
  527. ),
  528. ),
  529. 'primary key' => array('phylonode_relationship_id'),
  530. 'unique keys' => array(
  531. 'subject_id' => array('subject_id', 'object_id', 'type_id')
  532. ),
  533. 'indexes' => array(
  534. 'phylonode_relationship_idx1' => array('subject_id'),
  535. 'phylonode_relationship_idx2' => array('object_id'),
  536. 'phylonode_relationship_idx3' => array('type_id'),
  537. ),
  538. );
  539. $schema['phylonodeprop'] = array(
  540. 'description' => t('TODO: please describe this table!'),
  541. 'fields' => array(
  542. 'phylonodeprop_id' => array(
  543. 'description' => t('TODO: please describe this field!'),
  544. 'type' => 'serial',
  545. 'not null' => TRUE,
  546. ),
  547. 'phylonode_id' => array(
  548. 'description' => t('TODO: please describe this field!'),
  549. 'type' => 'int',
  550. 'not null' => TRUE,
  551. ),
  552. 'type_id' => array(
  553. 'description' => t('TODO: please describe this field!'),
  554. 'type' => 'int',
  555. 'not null' => TRUE,
  556. ),
  557. 'value' => array(
  558. 'description' => t('TODO: please describe this field!'),
  559. 'type' => 'text',
  560. 'not null' => TRUE,
  561. 'default' => '',
  562. ),
  563. 'rank' => array(
  564. 'description' => t('TODO: please describe this field!'),
  565. 'type' => 'int',
  566. 'not null' => TRUE,
  567. 'default' => 0,
  568. ),
  569. ),
  570. 'primary key' => array('phylonodeprop_id'),
  571. 'unique keys' => array(
  572. 'phylonode_id' => array('phylonode_id', 'type_id', 'value', 'rank')
  573. ),
  574. 'indexes' => array(
  575. 'phylonodeprop_idx1' => array('phylonode_id'),
  576. 'phylonodeprop_idx2' => array('type_id'),
  577. ),
  578. );
  579. $schema['phylotree'] = array(
  580. 'description' => t('TODO: please describe this table!'),
  581. 'fields' => array(
  582. 'phylotree_id' => array(
  583. 'description' => t('TODO: please describe this field!'),
  584. 'type' => 'serial',
  585. 'not null' => TRUE,
  586. ),
  587. 'dbxref_id' => array(
  588. 'description' => t('TODO: please describe this field!'),
  589. 'type' => 'int',
  590. 'not null' => TRUE,
  591. ),
  592. 'name' => array(
  593. 'description' => t('TODO: please describe this field!'),
  594. 'type' => 'varchar',
  595. 'length' => '255',
  596. 'not null' => FALSE,
  597. ),
  598. 'type_id' => array(
  599. 'description' => t('TODO: please describe this field!'),
  600. 'type' => 'int',
  601. 'not null' => FALSE,
  602. ),
  603. 'analysis_id' => array(
  604. 'description' => t('TODO: please describe this field!'),
  605. 'type' => 'int',
  606. 'not null' => FALSE,
  607. ),
  608. 'comment' => array(
  609. 'description' => t('TODO: please describe this field!'),
  610. 'type' => 'text',
  611. 'not null' => FALSE,
  612. ),
  613. ),
  614. 'primary key' => array('phylotree_id'),
  615. 'indexes' => array(
  616. 'phylotree_idx1' => array('phylotree_id'),
  617. ),
  618. );
  619. $schema['phylotree_pub'] = array(
  620. 'description' => t('TODO: please describe this table!'),
  621. 'fields' => array(
  622. 'phylotree_pub_id' => array(
  623. 'description' => t('TODO: please describe this field!'),
  624. 'type' => 'serial',
  625. 'not null' => TRUE,
  626. ),
  627. 'phylotree_id' => array(
  628. 'description' => t('TODO: please describe this field!'),
  629. 'type' => 'int',
  630. 'not null' => TRUE,
  631. ),
  632. 'pub_id' => array(
  633. 'description' => t('TODO: please describe this field!'),
  634. 'type' => 'int',
  635. 'not null' => TRUE,
  636. ),
  637. ),
  638. 'primary key' => array('phylotree_pub_id'),
  639. 'unique keys' => array(
  640. 'phylotree_id' => array('phylotree_id', 'pub_id')
  641. ),
  642. 'indexes' => array(
  643. 'phylotree_pub_idx1' => array('phylotree_id'),
  644. 'phylotree_pub_idx2' => array('pub_id'),
  645. ),
  646. );
  647. $schema['phylonode_pub'] = array(
  648. 'description' => t('TODO: please describe this table!'),
  649. 'fields' => array(
  650. 'phylonode_pub_id' => array(
  651. 'description' => t('TODO: please describe this field!'),
  652. 'type' => 'serial',
  653. 'not null' => TRUE,
  654. ),
  655. 'phylonode_id' => array(
  656. 'description' => t('TODO: please describe this field!'),
  657. 'type' => 'int',
  658. 'not null' => TRUE,
  659. ),
  660. 'pub_id' => array(
  661. 'description' => t('TODO: please describe this field!'),
  662. 'type' => 'int',
  663. 'not null' => TRUE,
  664. ),
  665. ),
  666. 'primary key' => array('phylonode_pub_id'),
  667. 'unique keys' => array(
  668. 'phylonode_id' => array('phylonode_id', 'pub_id')
  669. ),
  670. 'indexes' => array(
  671. 'phylonode_pub_idx1' => array('phylonode_id'),
  672. 'phylonode_pub_idx2' => array('pub_id'),
  673. ),
  674. );
  675. $schema['phylonode_organism'] = array(
  676. 'description' => t('TODO: please describe this table!'),
  677. 'fields' => array(
  678. 'phylonode_organism_id' => array(
  679. 'description' => t('TODO: please describe this field!'),
  680. 'type' => 'serial',
  681. 'not null' => TRUE,
  682. ),
  683. 'phylonode_id' => array(
  684. 'description' => t('TODO: please describe this field!'),
  685. 'type' => 'int',
  686. 'not null' => TRUE,
  687. ),
  688. 'organism_id' => array(
  689. 'description' => t('TODO: please describe this field!'),
  690. 'type' => 'int',
  691. 'not null' => TRUE,
  692. ),
  693. ),
  694. 'primary key' => array('phylonode_organism_id'),
  695. 'unique keys' => array(
  696. 'phylonode_id' => array('phylonode_id')
  697. ),
  698. 'indexes' => array(
  699. 'phylonode_organism_idx1' => array('phylonode_id'),
  700. 'phylonode_organism_idx2' => array('organism_id'),
  701. ),
  702. );
  703. $schema['phenotype_cvterm'] = array(
  704. 'description' => t('TODO: please describe this table!'),
  705. 'fields' => array(
  706. 'phenotype_cvterm_id' => array(
  707. 'description' => t('TODO: please describe this field!'),
  708. 'type' => 'serial',
  709. 'not null' => TRUE,
  710. ),
  711. 'phenotype_id' => array(
  712. 'description' => t('TODO: please describe this field!'),
  713. 'type' => 'int',
  714. 'not null' => TRUE,
  715. ),
  716. 'cvterm_id' => array(
  717. 'description' => t('TODO: please describe this field!'),
  718. 'type' => 'int',
  719. 'not null' => TRUE,
  720. ),
  721. 'rank' => array(
  722. 'description' => t('TODO: please describe this field!'),
  723. 'type' => 'int',
  724. 'not null' => TRUE,
  725. 'default' => 0,
  726. ),
  727. ),
  728. 'primary key' => array('phenotype_cvterm_id'),
  729. 'unique keys' => array(
  730. 'phenotype_cvterm_c1' => array('phenotype_id', 'cvterm_id', 'rank')
  731. ),
  732. 'indexes' => array(
  733. 'phenotype_cvterm_idx1' => array('phenotype_id'),
  734. 'phenotype_cvterm_idx2' => array('cvterm_id'),
  735. ),
  736. );
  737. $schema['phenstatement'] = array(
  738. 'description' => t('TODO: please describe this table!'),
  739. 'fields' => array(
  740. 'phenstatement_id' => array(
  741. 'description' => t('TODO: please describe this field!'),
  742. 'type' => 'serial',
  743. 'not null' => TRUE,
  744. ),
  745. 'genotype_id' => array(
  746. 'description' => t('TODO: please describe this field!'),
  747. 'type' => 'int',
  748. 'not null' => TRUE,
  749. ),
  750. 'environment_id' => array(
  751. 'description' => t('TODO: please describe this field!'),
  752. 'type' => 'int',
  753. 'not null' => TRUE,
  754. ),
  755. 'phenotype_id' => array(
  756. 'description' => t('TODO: please describe this field!'),
  757. 'type' => 'int',
  758. 'not null' => TRUE,
  759. ),
  760. 'type_id' => array(
  761. 'description' => t('TODO: please describe this field!'),
  762. 'type' => 'int',
  763. 'not null' => TRUE,
  764. ),
  765. 'pub_id' => array(
  766. 'description' => t('TODO: please describe this field!'),
  767. 'type' => 'int',
  768. 'not null' => TRUE,
  769. ),
  770. ),
  771. 'primary key' => array('phenstatement_id'),
  772. 'unique keys' => array(
  773. 'phenstatement_c1' => array('genotype_id', 'phenotype_id', 'environment_id', 'type_id', 'pub_id')
  774. ),
  775. 'indexes' => array(
  776. 'phenstatement_idx1' => array('genotype_id'),
  777. 'phenstatement_idx2' => array('phenotype_id'),
  778. ),
  779. );
  780. $schema['phylonode'] = array(
  781. 'description' => t('TODO: please describe this table!'),
  782. 'fields' => array(
  783. 'phylonode_id' => array(
  784. 'description' => t('TODO: please describe this field!'),
  785. 'type' => 'serial',
  786. 'not null' => TRUE,
  787. ),
  788. 'phylotree_id' => array(
  789. 'description' => t('TODO: please describe this field!'),
  790. 'type' => 'int',
  791. 'not null' => TRUE,
  792. ),
  793. 'parent_phylonode_id' => array(
  794. 'description' => t('TODO: please describe this field!'),
  795. 'type' => 'int',
  796. 'not null' => FALSE,
  797. ),
  798. 'left_idx' => array(
  799. 'description' => t('TODO: please describe this field!'),
  800. 'type' => 'int',
  801. 'not null' => TRUE,
  802. ),
  803. 'right_idx' => array(
  804. 'description' => t('TODO: please describe this field!'),
  805. 'type' => 'int',
  806. 'not null' => TRUE,
  807. ),
  808. 'type_id' => array(
  809. 'description' => t('TODO: please describe this field!'),
  810. 'type' => 'int',
  811. 'not null' => FALSE,
  812. ),
  813. 'feature_id' => array(
  814. 'description' => t('TODO: please describe this field!'),
  815. 'type' => 'int',
  816. 'not null' => FALSE,
  817. ),
  818. 'label' => array(
  819. 'description' => t('TODO: please describe this field!'),
  820. 'type' => 'varchar',
  821. 'length' => '255',
  822. 'not null' => FALSE,
  823. ),
  824. 'distance' => array(
  825. 'description' => t('TODO: please describe this field!'),
  826. 'type' => 'float',
  827. 'size' => 'big',
  828. 'not null' => FALSE,
  829. ),
  830. ),
  831. 'primary key' => array('phylonode_id'),
  832. 'unique keys' => array(
  833. 'phylotree_id' => array('phylotree_id', 'left_idx'),
  834. 'phylonode_phylotree_id_key1' => array('phylotree_id', 'right_idx')
  835. ),
  836. );
  837. $schema['phylonode_dbxref'] = array(
  838. 'description' => t('TODO: please describe this table!'),
  839. 'fields' => array(
  840. 'phylonode_dbxref_id' => array(
  841. 'description' => t('TODO: please describe this field!'),
  842. 'type' => 'serial',
  843. 'not null' => TRUE,
  844. ),
  845. 'phylonode_id' => array(
  846. 'description' => t('TODO: please describe this field!'),
  847. 'type' => 'int',
  848. 'not null' => TRUE,
  849. ),
  850. 'dbxref_id' => array(
  851. 'description' => t('TODO: please describe this field!'),
  852. 'type' => 'int',
  853. 'not null' => TRUE,
  854. ),
  855. ),
  856. 'primary key' => array('phylonode_dbxref_id'),
  857. 'unique keys' => array(
  858. 'phylonode_id' => array('phylonode_id', 'dbxref_id')
  859. ),
  860. 'indexes' => array(
  861. 'phylonode_dbxref_idx1' => array('phylonode_id'),
  862. 'phylonode_dbxref_idx2' => array('dbxref_id'),
  863. ),
  864. );
  865. $schema['library_synonym'] = array(
  866. 'description' => t('TODO: please describe this table!'),
  867. 'fields' => array(
  868. 'library_synonym_id' => array(
  869. 'description' => t('TODO: please describe this field!'),
  870. 'type' => 'serial',
  871. 'not null' => TRUE,
  872. ),
  873. 'synonym_id' => array(
  874. 'description' => t('TODO: please describe this field!'),
  875. 'type' => 'int',
  876. 'not null' => TRUE,
  877. ),
  878. 'library_id' => array(
  879. 'description' => t('TODO: please describe this field!'),
  880. 'type' => 'int',
  881. 'not null' => TRUE,
  882. ),
  883. 'pub_id' => array(
  884. 'description' => t('TODO: please describe this field!'),
  885. 'type' => 'int',
  886. 'not null' => TRUE,
  887. ),
  888. 'is_current' => array(
  889. 'description' => t('TODO: please describe this field!'),
  890. 'type' => 'boolean',
  891. 'not null' => TRUE,
  892. 'default' => 'ru',
  893. ),
  894. 'is_internal' => array(
  895. 'description' => t('TODO: please describe this field!'),
  896. 'type' => 'boolean',
  897. 'not null' => TRUE,
  898. 'default' => 'als',
  899. ),
  900. ),
  901. 'primary key' => array('library_synonym_id'),
  902. 'unique keys' => array(
  903. 'library_synonym_c1' => array('synonym_id', 'library_id', 'pub_id')
  904. ),
  905. 'indexes' => array(
  906. 'library_synonym_idx1' => array('synonym_id'),
  907. 'library_synonym_idx2' => array('library_id'),
  908. 'library_synonym_idx3' => array('pub_id'),
  909. ),
  910. );
  911. $schema['library_pub'] = array(
  912. 'description' => t('TODO: please describe this table!'),
  913. 'fields' => array(
  914. 'library_pub_id' => array(
  915. 'description' => t('TODO: please describe this field!'),
  916. 'type' => 'serial',
  917. 'not null' => TRUE,
  918. ),
  919. 'library_id' => array(
  920. 'description' => t('TODO: please describe this field!'),
  921. 'type' => 'int',
  922. 'not null' => TRUE,
  923. ),
  924. 'pub_id' => array(
  925. 'description' => t('TODO: please describe this field!'),
  926. 'type' => 'int',
  927. 'not null' => TRUE,
  928. ),
  929. ),
  930. 'primary key' => array('library_pub_id'),
  931. 'unique keys' => array(
  932. 'library_pub_c1' => array('library_id', 'pub_id')
  933. ),
  934. 'indexes' => array(
  935. 'library_pub_idx1' => array('library_id'),
  936. 'library_pub_idx2' => array('pub_id'),
  937. ),
  938. );
  939. $schema['featureprop_pub'] = array(
  940. 'description' => t('TODO: please describe this table!'),
  941. 'fields' => array(
  942. 'featureprop_pub_id' => array(
  943. 'description' => t('TODO: please describe this field!'),
  944. 'type' => 'serial',
  945. 'not null' => TRUE,
  946. ),
  947. 'featureprop_id' => array(
  948. 'description' => t('TODO: please describe this field!'),
  949. 'type' => 'int',
  950. 'not null' => TRUE,
  951. ),
  952. 'pub_id' => array(
  953. 'description' => t('TODO: please describe this field!'),
  954. 'type' => 'int',
  955. 'not null' => TRUE,
  956. ),
  957. ),
  958. 'primary key' => array('featureprop_pub_id'),
  959. 'unique keys' => array(
  960. 'featureprop_pub_c1' => array('featureprop_id', 'pub_id')
  961. ),
  962. 'indexes' => array(
  963. 'featureprop_pub_idx1' => array('featureprop_id'),
  964. 'featureprop_pub_idx2' => array('pub_id'),
  965. ),
  966. );
  967. $schema['featureprop'] = array(
  968. 'description' => t('TODO: please describe this table!'),
  969. 'fields' => array(
  970. 'featureprop_id' => array(
  971. 'description' => t('TODO: please describe this field!'),
  972. 'type' => 'serial',
  973. 'not null' => TRUE,
  974. ),
  975. 'feature_id' => array(
  976. 'description' => t('TODO: please describe this field!'),
  977. 'type' => 'int',
  978. 'not null' => TRUE,
  979. ),
  980. 'type_id' => array(
  981. 'description' => t('TODO: please describe this field!'),
  982. 'type' => 'int',
  983. 'not null' => TRUE,
  984. ),
  985. 'value' => array(
  986. 'description' => t('TODO: please describe this field!'),
  987. 'type' => 'text',
  988. 'not null' => FALSE,
  989. ),
  990. 'rank' => array(
  991. 'description' => t('TODO: please describe this field!'),
  992. 'type' => 'int',
  993. 'not null' => TRUE,
  994. 'default' => 0,
  995. ),
  996. ),
  997. 'primary key' => array('featureprop_id'),
  998. 'unique keys' => array(
  999. 'featureprop_c1' => array('feature_id', 'type_id', 'rank')
  1000. ),
  1001. 'indexes' => array(
  1002. 'featureprop_idx1' => array('feature_id'),
  1003. 'featureprop_idx2' => array('type_id'),
  1004. ),
  1005. );
  1006. $schema['featurerange'] = array(
  1007. 'description' => t('TODO: please describe this table!'),
  1008. 'fields' => array(
  1009. 'featurerange_id' => array(
  1010. 'description' => t('TODO: please describe this field!'),
  1011. 'type' => 'serial',
  1012. 'not null' => TRUE,
  1013. ),
  1014. 'featuremap_id' => array(
  1015. 'description' => t('TODO: please describe this field!'),
  1016. 'type' => 'int',
  1017. 'not null' => TRUE,
  1018. ),
  1019. 'feature_id' => array(
  1020. 'description' => t('TODO: please describe this field!'),
  1021. 'type' => 'int',
  1022. 'not null' => TRUE,
  1023. ),
  1024. 'leftstartf_id' => array(
  1025. 'description' => t('TODO: please describe this field!'),
  1026. 'type' => 'int',
  1027. 'not null' => TRUE,
  1028. ),
  1029. 'leftendf_id' => array(
  1030. 'description' => t('TODO: please describe this field!'),
  1031. 'type' => 'int',
  1032. 'not null' => FALSE,
  1033. ),
  1034. 'rightstartf_id' => array(
  1035. 'description' => t('TODO: please describe this field!'),
  1036. 'type' => 'int',
  1037. 'not null' => FALSE,
  1038. ),
  1039. 'rightendf_id' => array(
  1040. 'description' => t('TODO: please describe this field!'),
  1041. 'type' => 'int',
  1042. 'not null' => TRUE,
  1043. ),
  1044. 'rangestr' => array(
  1045. 'description' => t('TODO: please describe this field!'),
  1046. 'type' => 'varchar',
  1047. 'length' => '255',
  1048. 'not null' => FALSE,
  1049. ),
  1050. ),
  1051. 'primary key' => array('featurerange_id'),
  1052. 'indexes' => array(
  1053. 'featurerange_idx1' => array('featuremap_id'),
  1054. 'featurerange_idx2' => array('feature_id'),
  1055. 'featurerange_idx3' => array('leftstartf_id'),
  1056. 'featurerange_idx4' => array('leftendf_id'),
  1057. 'featurerange_idx5' => array('rightstartf_id'),
  1058. 'featurerange_idx6' => array('rightendf_id'),
  1059. ),
  1060. );
  1061. $schema['featureset_meets'] = array(
  1062. 'description' => t('TODO: please describe this table!'),
  1063. 'fields' => array(
  1064. 'subject_id' => array(
  1065. 'description' => t('TODO: please describe this field!'),
  1066. 'type' => 'int',
  1067. 'not null' => FALSE,
  1068. ),
  1069. 'object_id' => array(
  1070. 'description' => t('TODO: please describe this field!'),
  1071. 'type' => 'int',
  1072. 'not null' => FALSE,
  1073. ),
  1074. ),
  1075. );
  1076. $schema['fnr_type'] = array(
  1077. 'description' => t('TODO: please describe this table!'),
  1078. 'fields' => array(
  1079. 'feature_id' => array(
  1080. 'description' => t('TODO: please describe this field!'),
  1081. 'type' => 'int',
  1082. 'not null' => FALSE,
  1083. ),
  1084. 'name' => array(
  1085. 'description' => t('TODO: please describe this field!'),
  1086. 'type' => 'varchar',
  1087. 'length' => '255',
  1088. 'not null' => FALSE,
  1089. ),
  1090. 'dbxref_id' => array(
  1091. 'description' => t('TODO: please describe this field!'),
  1092. 'type' => 'int',
  1093. 'not null' => FALSE,
  1094. ),
  1095. 'type' => array(
  1096. 'description' => t('TODO: please describe this field!'),
  1097. 'type' => 'varchar',
  1098. 'length' => '1024',
  1099. 'not null' => FALSE,
  1100. ),
  1101. 'residues' => array(
  1102. 'description' => t('TODO: please describe this field!'),
  1103. 'type' => 'text',
  1104. 'not null' => FALSE,
  1105. ),
  1106. 'seqlen' => array(
  1107. 'description' => t('TODO: please describe this field!'),
  1108. 'type' => 'int',
  1109. 'not null' => FALSE,
  1110. ),
  1111. 'md5checksum' => array(
  1112. 'description' => t('TODO: please describe this field!'),
  1113. 'type' => 'char',
  1114. 'length' => '32',
  1115. 'not null' => FALSE,
  1116. ),
  1117. 'type_id' => array(
  1118. 'description' => t('TODO: please describe this field!'),
  1119. 'type' => 'int',
  1120. 'not null' => FALSE,
  1121. ),
  1122. 'timeaccessioned' => array(
  1123. 'description' => t('TODO: please describe this field!'),
  1124. 'type' => 'datetime',
  1125. 'not null' => FALSE,
  1126. ),
  1127. 'timelastmodified' => array(
  1128. 'description' => t('TODO: please describe this field!'),
  1129. 'type' => 'datetime',
  1130. 'not null' => FALSE,
  1131. ),
  1132. ),
  1133. );
  1134. $schema['featurepos'] = array(
  1135. 'description' => t('TODO: please describe this table!'),
  1136. 'fields' => array(
  1137. 'featurepos_id' => array(
  1138. 'description' => t('TODO: please describe this field!'),
  1139. 'type' => 'serial',
  1140. 'not null' => TRUE,
  1141. ),
  1142. 'featuremap_id' => array(
  1143. 'description' => t('TODO: please describe this field!'),
  1144. 'type' => 'serial',
  1145. 'not null' => TRUE,
  1146. ),
  1147. 'feature_id' => array(
  1148. 'description' => t('TODO: please describe this field!'),
  1149. 'type' => 'int',
  1150. 'not null' => TRUE,
  1151. ),
  1152. 'map_feature_id' => array(
  1153. 'description' => t('TODO: please describe this field!'),
  1154. 'type' => 'int',
  1155. 'not null' => TRUE,
  1156. ),
  1157. 'mappos' => array(
  1158. 'description' => t('TODO: please describe this field!'),
  1159. 'type' => 'float',
  1160. 'size' => 'big',
  1161. 'not null' => TRUE,
  1162. ),
  1163. ),
  1164. 'primary key' => array('featurepos_id'),
  1165. 'indexes' => array(
  1166. 'featurepos_idx1' => array('featuremap_id'),
  1167. 'featurepos_idx2' => array('feature_id'),
  1168. 'featurepos_idx3' => array('map_feature_id'),
  1169. ),
  1170. );
  1171. $schema['featuremap_pub'] = array(
  1172. 'description' => t('TODO: please describe this table!'),
  1173. 'fields' => array(
  1174. 'featuremap_pub_id' => array(
  1175. 'description' => t('TODO: please describe this field!'),
  1176. 'type' => 'serial',
  1177. 'not null' => TRUE,
  1178. ),
  1179. 'featuremap_id' => array(
  1180. 'description' => t('TODO: please describe this field!'),
  1181. 'type' => 'int',
  1182. 'not null' => TRUE,
  1183. ),
  1184. 'pub_id' => array(
  1185. 'description' => t('TODO: please describe this field!'),
  1186. 'type' => 'int',
  1187. 'not null' => TRUE,
  1188. ),
  1189. ),
  1190. 'primary key' => array('featuremap_pub_id'),
  1191. 'indexes' => array(
  1192. 'featuremap_pub_idx1' => array('featuremap_id'),
  1193. 'featuremap_pub_idx2' => array('pub_id'),
  1194. ),
  1195. );
  1196. $schema['feature_union'] = array(
  1197. 'description' => t('TODO: please describe this table!'),
  1198. 'fields' => array(
  1199. 'subject_id' => array(
  1200. 'description' => t('TODO: please describe this field!'),
  1201. 'type' => 'int',
  1202. 'not null' => FALSE,
  1203. ),
  1204. 'object_id' => array(
  1205. 'description' => t('TODO: please describe this field!'),
  1206. 'type' => 'int',
  1207. 'not null' => FALSE,
  1208. ),
  1209. 'srcfeature_id' => array(
  1210. 'description' => t('TODO: please describe this field!'),
  1211. 'type' => 'int',
  1212. 'not null' => FALSE,
  1213. ),
  1214. 'subject_strand' => array(
  1215. 'description' => t('TODO: please describe this field!'),
  1216. 'type' => 'int',
  1217. 'size' => 'small',
  1218. 'not null' => FALSE,
  1219. ),
  1220. 'object_strand' => array(
  1221. 'description' => t('TODO: please describe this field!'),
  1222. 'type' => 'int',
  1223. 'size' => 'small',
  1224. 'not null' => FALSE,
  1225. ),
  1226. 'fmin' => array(
  1227. 'description' => t('TODO: please describe this field!'),
  1228. 'type' => 'int',
  1229. 'not null' => FALSE,
  1230. ),
  1231. 'fmax' => array(
  1232. 'description' => t('TODO: please describe this field!'),
  1233. 'type' => 'int',
  1234. 'not null' => FALSE,
  1235. ),
  1236. ),
  1237. );
  1238. $schema['featureloc'] = array(
  1239. 'description' => t('TODO: please describe this table!'),
  1240. 'fields' => array(
  1241. 'featureloc_id' => array(
  1242. 'description' => t('TODO: please describe this field!'),
  1243. 'type' => 'serial',
  1244. 'not null' => TRUE,
  1245. ),
  1246. 'feature_id' => array(
  1247. 'description' => t('TODO: please describe this field!'),
  1248. 'type' => 'int',
  1249. 'not null' => TRUE,
  1250. ),
  1251. 'srcfeature_id' => array(
  1252. 'description' => t('TODO: please describe this field!'),
  1253. 'type' => 'int',
  1254. 'not null' => FALSE,
  1255. ),
  1256. 'fmin' => array(
  1257. 'description' => t('TODO: please describe this field!'),
  1258. 'type' => 'int',
  1259. 'not null' => FALSE,
  1260. ),
  1261. 'is_fmin_partial' => array(
  1262. 'description' => t('TODO: please describe this field!'),
  1263. 'type' => 'boolean',
  1264. 'not null' => TRUE,
  1265. 'default' => 'als',
  1266. ),
  1267. 'fmax' => array(
  1268. 'description' => t('TODO: please describe this field!'),
  1269. 'type' => 'int',
  1270. 'not null' => FALSE,
  1271. ),
  1272. 'is_fmax_partial' => array(
  1273. 'description' => t('TODO: please describe this field!'),
  1274. 'type' => 'boolean',
  1275. 'not null' => TRUE,
  1276. 'default' => 'als',
  1277. ),
  1278. 'strand' => array(
  1279. 'description' => t('TODO: please describe this field!'),
  1280. 'type' => 'int',
  1281. 'size' => 'small',
  1282. 'not null' => FALSE,
  1283. ),
  1284. 'phase' => array(
  1285. 'description' => t('TODO: please describe this field!'),
  1286. 'type' => 'int',
  1287. 'not null' => FALSE,
  1288. ),
  1289. 'residue_info' => array(
  1290. 'description' => t('TODO: please describe this field!'),
  1291. 'type' => 'text',
  1292. 'not null' => FALSE,
  1293. ),
  1294. 'locgroup' => array(
  1295. 'description' => t('TODO: please describe this field!'),
  1296. 'type' => 'int',
  1297. 'not null' => TRUE,
  1298. 'default' => 0,
  1299. ),
  1300. 'rank' => array(
  1301. 'description' => t('TODO: please describe this field!'),
  1302. 'type' => 'int',
  1303. 'not null' => TRUE,
  1304. 'default' => 0,
  1305. ),
  1306. ),
  1307. 'primary key' => array('featureloc_id'),
  1308. 'unique keys' => array(
  1309. 'featureloc_c1' => array('feature_id', 'locgroup', 'rank')
  1310. ),
  1311. 'indexes' => array(
  1312. 'binloc_boxrange' => array('fmin'),
  1313. 'binloc_boxrange_src' => array('srcfeature_id', 'fmin'),
  1314. 'featureloc_idx1' => array('feature_id'),
  1315. 'featureloc_idx2' => array('srcfeature_id'),
  1316. 'featureloc_idx3' => array('srcfeature_id', 'fmin', 'fmax'),
  1317. ),
  1318. );
  1319. $schema['featureloc_pub'] = array(
  1320. 'description' => t('TODO: please describe this table!'),
  1321. 'fields' => array(
  1322. 'featureloc_pub_id' => array(
  1323. 'description' => t('TODO: please describe this field!'),
  1324. 'type' => 'serial',
  1325. 'not null' => TRUE,
  1326. ),
  1327. 'featureloc_id' => array(
  1328. 'description' => t('TODO: please describe this field!'),
  1329. 'type' => 'int',
  1330. 'not null' => TRUE,
  1331. ),
  1332. 'pub_id' => array(
  1333. 'description' => t('TODO: please describe this field!'),
  1334. 'type' => 'int',
  1335. 'not null' => TRUE,
  1336. ),
  1337. ),
  1338. 'primary key' => array('featureloc_pub_id'),
  1339. 'unique keys' => array(
  1340. 'featureloc_pub_c1' => array('featureloc_id', 'pub_id')
  1341. ),
  1342. 'indexes' => array(
  1343. 'featureloc_pub_idx1' => array('featureloc_id'),
  1344. 'featureloc_pub_idx2' => array('pub_id'),
  1345. ),
  1346. );
  1347. $schema['featuremap'] = array(
  1348. 'description' => t('TODO: please describe this table!'),
  1349. 'fields' => array(
  1350. 'featuremap_id' => array(
  1351. 'description' => t('TODO: please describe this field!'),
  1352. 'type' => 'serial',
  1353. 'not null' => TRUE,
  1354. ),
  1355. 'name' => array(
  1356. 'description' => t('TODO: please describe this field!'),
  1357. 'type' => 'varchar',
  1358. 'length' => '255',
  1359. 'not null' => FALSE,
  1360. ),
  1361. 'description' => array(
  1362. 'description' => t('TODO: please describe this field!'),
  1363. 'type' => 'text',
  1364. 'not null' => FALSE,
  1365. ),
  1366. 'unittype_id' => array(
  1367. 'description' => t('TODO: please describe this field!'),
  1368. 'type' => 'int',
  1369. 'not null' => FALSE,
  1370. ),
  1371. ),
  1372. 'primary key' => array('featuremap_id'),
  1373. 'unique keys' => array(
  1374. 'featuremap_c1' => array('name')
  1375. ),
  1376. );
  1377. $schema['fp_key'] = array(
  1378. 'description' => t('TODO: please describe this table!'),
  1379. 'fields' => array(
  1380. 'feature_id' => array(
  1381. 'description' => t('TODO: please describe this field!'),
  1382. 'type' => 'int',
  1383. 'not null' => FALSE,
  1384. ),
  1385. 'pkey' => array(
  1386. 'description' => t('TODO: please describe this field!'),
  1387. 'type' => 'varchar',
  1388. 'length' => '1024',
  1389. 'not null' => FALSE,
  1390. ),
  1391. 'value' => array(
  1392. 'description' => t('TODO: please describe this field!'),
  1393. 'type' => 'text',
  1394. 'not null' => FALSE,
  1395. ),
  1396. ),
  1397. );
  1398. $schema['genotype'] = array(
  1399. 'description' => t('TODO: please describe this table!'),
  1400. 'fields' => array(
  1401. 'genotype_id' => array(
  1402. 'description' => t('TODO: please describe this field!'),
  1403. 'type' => 'serial',
  1404. 'not null' => TRUE,
  1405. ),
  1406. 'name' => array(
  1407. 'description' => t('TODO: please describe this field!'),
  1408. 'type' => 'text',
  1409. 'not null' => FALSE,
  1410. ),
  1411. 'uniquename' => array(
  1412. 'description' => t('TODO: please describe this field!'),
  1413. 'type' => 'text',
  1414. 'not null' => TRUE,
  1415. ),
  1416. 'description' => array(
  1417. 'description' => t('TODO: please describe this field!'),
  1418. 'type' => 'varchar',
  1419. 'length' => '255',
  1420. 'not null' => FALSE,
  1421. ),
  1422. ),
  1423. 'primary key' => array('genotype_id'),
  1424. 'unique keys' => array(
  1425. 'genotype_c1' => array('uniquename')
  1426. ),
  1427. 'indexes' => array(
  1428. 'genotype_idx1' => array('uniquename'),
  1429. 'genotype_idx2' => array('name'),
  1430. ),
  1431. );
  1432. $schema['library_cvterm'] = array(
  1433. 'description' => t('TODO: please describe this table!'),
  1434. 'fields' => array(
  1435. 'library_cvterm_id' => array(
  1436. 'description' => t('TODO: please describe this field!'),
  1437. 'type' => 'serial',
  1438. 'not null' => TRUE,
  1439. ),
  1440. 'library_id' => array(
  1441. 'description' => t('TODO: please describe this field!'),
  1442. 'type' => 'int',
  1443. 'not null' => TRUE,
  1444. ),
  1445. 'cvterm_id' => array(
  1446. 'description' => t('TODO: please describe this field!'),
  1447. 'type' => 'int',
  1448. 'not null' => TRUE,
  1449. ),
  1450. 'pub_id' => array(
  1451. 'description' => t('TODO: please describe this field!'),
  1452. 'type' => 'int',
  1453. 'not null' => TRUE,
  1454. ),
  1455. ),
  1456. 'primary key' => array('library_cvterm_id'),
  1457. 'unique keys' => array(
  1458. 'library_cvterm_c1' => array('library_id', 'cvterm_id', 'pub_id')
  1459. ),
  1460. 'indexes' => array(
  1461. 'library_cvterm_idx1' => array('library_id'),
  1462. 'library_cvterm_idx2' => array('cvterm_id'),
  1463. 'library_cvterm_idx3' => array('pub_id'),
  1464. ),
  1465. );
  1466. $schema['library_dbxref'] = array(
  1467. 'description' => t('TODO: please describe this table!'),
  1468. 'fields' => array(
  1469. 'library_dbxref_id' => array(
  1470. 'description' => t('TODO: please describe this field!'),
  1471. 'type' => 'serial',
  1472. 'not null' => TRUE,
  1473. ),
  1474. 'library_id' => array(
  1475. 'description' => t('TODO: please describe this field!'),
  1476. 'type' => 'int',
  1477. 'not null' => TRUE,
  1478. ),
  1479. 'dbxref_id' => array(
  1480. 'description' => t('TODO: please describe this field!'),
  1481. 'type' => 'int',
  1482. 'not null' => TRUE,
  1483. ),
  1484. 'is_current' => array(
  1485. 'description' => t('TODO: please describe this field!'),
  1486. 'type' => 'boolean',
  1487. 'not null' => TRUE,
  1488. 'default' => 'ru',
  1489. ),
  1490. ),
  1491. 'primary key' => array('library_dbxref_id'),
  1492. 'unique keys' => array(
  1493. 'library_dbxref_c1' => array('library_id', 'dbxref_id')
  1494. ),
  1495. 'indexes' => array(
  1496. 'library_dbxref_idx1' => array('library_id'),
  1497. 'library_dbxref_idx2' => array('dbxref_id'),
  1498. ),
  1499. );
  1500. $schema['library_feature'] = array(
  1501. 'description' => t('TODO: please describe this table!'),
  1502. 'fields' => array(
  1503. 'library_feature_id' => array(
  1504. 'description' => t('TODO: please describe this field!'),
  1505. 'type' => 'serial',
  1506. 'not null' => TRUE,
  1507. ),
  1508. 'library_id' => array(
  1509. 'description' => t('TODO: please describe this field!'),
  1510. 'type' => 'int',
  1511. 'not null' => TRUE,
  1512. ),
  1513. 'feature_id' => array(
  1514. 'description' => t('TODO: please describe this field!'),
  1515. 'type' => 'int',
  1516. 'not null' => TRUE,
  1517. ),
  1518. ),
  1519. 'primary key' => array('library_feature_id'),
  1520. 'unique keys' => array(
  1521. 'library_feature_c1' => array('library_id', 'feature_id')
  1522. ),
  1523. 'indexes' => array(
  1524. 'library_feature_idx1' => array('library_id'),
  1525. 'library_feature_idx2' => array('feature_id'),
  1526. ),
  1527. );
  1528. $schema['library_feature_count'] = array(
  1529. 'description' => t('TODO: please describe this table!'),
  1530. 'fields' => array(
  1531. 'library_id' => array(
  1532. 'description' => t('TODO: please describe this field!'),
  1533. 'type' => 'int',
  1534. 'not null' => FALSE,
  1535. ),
  1536. 'name' => array(
  1537. 'description' => t('TODO: please describe this field!'),
  1538. 'type' => 'varchar',
  1539. 'length' => '255',
  1540. 'not null' => FALSE,
  1541. ),
  1542. 'num_features' => array(
  1543. 'description' => t('TODO: please describe this field!'),
  1544. 'type' => 'int',
  1545. 'not null' => FALSE,
  1546. ),
  1547. 'feature_type' => array(
  1548. 'description' => t('TODO: please describe this field!'),
  1549. 'type' => 'varchar',
  1550. 'length' => '255',
  1551. 'not null' => FALSE,
  1552. ),
  1553. ),
  1554. 'unique keys' => array(
  1555. 'library_feature_count_index' => array('library_id')
  1556. ),
  1557. );
  1558. $schema['library'] = array(
  1559. 'description' => t('TODO: please describe this table!'),
  1560. 'fields' => array(
  1561. 'library_id' => array(
  1562. 'description' => t('TODO: please describe this field!'),
  1563. 'type' => 'serial',
  1564. 'not null' => TRUE,
  1565. ),
  1566. 'organism_id' => array(
  1567. 'description' => t('TODO: please describe this field!'),
  1568. 'type' => 'int',
  1569. 'not null' => TRUE,
  1570. ),
  1571. 'name' => array(
  1572. 'description' => t('TODO: please describe this field!'),
  1573. 'type' => 'varchar',
  1574. 'length' => '255',
  1575. 'not null' => FALSE,
  1576. ),
  1577. 'uniquename' => array(
  1578. 'description' => t('TODO: please describe this field!'),
  1579. 'type' => 'text',
  1580. 'not null' => TRUE,
  1581. ),
  1582. 'type_id' => array(
  1583. 'description' => t('TODO: please describe this field!'),
  1584. 'type' => 'int',
  1585. 'not null' => TRUE,
  1586. ),
  1587. 'is_obsolete' => array(
  1588. 'description' => t('TODO: please describe this field!'),
  1589. 'type' => 'int',
  1590. 'not null' => TRUE,
  1591. 'default' => 0,
  1592. ),
  1593. 'timeaccessioned' => array(
  1594. 'description' => t('TODO: please describe this field!'),
  1595. 'type' => 'datetime',
  1596. 'not null' => TRUE,
  1597. 'default' => 'ow(',
  1598. ),
  1599. 'timelastmodified' => array(
  1600. 'description' => t('TODO: please describe this field!'),
  1601. 'type' => 'datetime',
  1602. 'not null' => TRUE,
  1603. 'default' => 'ow(',
  1604. ),
  1605. ),
  1606. 'primary key' => array('library_id'),
  1607. 'unique keys' => array(
  1608. 'library_c1' => array('organism_id', 'uniquename', 'type_id')
  1609. ),
  1610. 'indexes' => array(
  1611. 'library_idx1' => array('organism_id'),
  1612. 'library_idx2' => array('type_id'),
  1613. 'library_idx3' => array('uniquename'),
  1614. 'library_name_ind1' => array('name'),
  1615. ),
  1616. );
  1617. $schema['intronloc_view'] = array(
  1618. 'description' => t('TODO: please describe this table!'),
  1619. 'fields' => array(
  1620. 'exon1_id' => array(
  1621. 'description' => t('TODO: please describe this field!'),
  1622. 'type' => 'int',
  1623. 'not null' => FALSE,
  1624. ),
  1625. 'exon2_id' => array(
  1626. 'description' => t('TODO: please describe this field!'),
  1627. 'type' => 'int',
  1628. 'not null' => FALSE,
  1629. ),
  1630. 'fmin' => array(
  1631. 'description' => t('TODO: please describe this field!'),
  1632. 'type' => 'int',
  1633. 'not null' => FALSE,
  1634. ),
  1635. 'fmax' => array(
  1636. 'description' => t('TODO: please describe this field!'),
  1637. 'type' => 'int',
  1638. 'not null' => FALSE,
  1639. ),
  1640. 'strand' => array(
  1641. 'description' => t('TODO: please describe this field!'),
  1642. 'type' => 'int',
  1643. 'size' => 'small',
  1644. 'not null' => FALSE,
  1645. ),
  1646. 'srcfeature_id' => array(
  1647. 'description' => t('TODO: please describe this field!'),
  1648. 'type' => 'int',
  1649. 'not null' => FALSE,
  1650. ),
  1651. ),
  1652. );
  1653. $schema['gff3atts'] = array(
  1654. 'description' => t('TODO: please describe this table!'),
  1655. 'fields' => array(
  1656. 'feature_id' => array(
  1657. 'description' => t('TODO: please describe this field!'),
  1658. 'type' => 'int',
  1659. 'not null' => FALSE,
  1660. ),
  1661. 'type' => array(
  1662. 'description' => t('TODO: please describe this field!'),
  1663. 'type' => 'text',
  1664. 'not null' => FALSE,
  1665. ),
  1666. 'attribute' => array(
  1667. 'description' => t('TODO: please describe this field!'),
  1668. 'type' => 'varchar',
  1669. 'not null' => FALSE,
  1670. ),
  1671. ),
  1672. );
  1673. $schema['gff3view'] = array(
  1674. 'description' => t('TODO: please describe this table!'),
  1675. 'fields' => array(
  1676. 'feature_id' => array(
  1677. 'description' => t('TODO: please describe this field!'),
  1678. 'type' => 'int',
  1679. 'not null' => FALSE,
  1680. ),
  1681. 'ref' => array(
  1682. 'description' => t('TODO: please describe this field!'),
  1683. 'type' => 'varchar',
  1684. 'length' => '255',
  1685. 'not null' => FALSE,
  1686. ),
  1687. 'source' => array(
  1688. 'description' => t('TODO: please describe this field!'),
  1689. 'type' => 'varchar',
  1690. 'length' => '255',
  1691. 'not null' => FALSE,
  1692. ),
  1693. 'type' => array(
  1694. 'description' => t('TODO: please describe this field!'),
  1695. 'type' => 'varchar',
  1696. 'length' => '1024',
  1697. 'not null' => FALSE,
  1698. ),
  1699. 'fstart' => array(
  1700. 'description' => t('TODO: please describe this field!'),
  1701. 'type' => 'int',
  1702. 'not null' => FALSE,
  1703. ),
  1704. 'fend' => array(
  1705. 'description' => t('TODO: please describe this field!'),
  1706. 'type' => 'int',
  1707. 'not null' => FALSE,
  1708. ),
  1709. 'score' => array(
  1710. 'description' => t('TODO: please describe this field!'),
  1711. 'type' => 'float',
  1712. 'size' => 'big',
  1713. 'not null' => FALSE,
  1714. ),
  1715. 'strand' => array(
  1716. 'description' => t('TODO: please describe this field!'),
  1717. 'type' => 'int',
  1718. 'size' => 'small',
  1719. 'not null' => FALSE,
  1720. ),
  1721. 'phase' => array(
  1722. 'description' => t('TODO: please describe this field!'),
  1723. 'type' => 'int',
  1724. 'not null' => FALSE,
  1725. ),
  1726. 'seqlen' => array(
  1727. 'description' => t('TODO: please describe this field!'),
  1728. 'type' => 'int',
  1729. 'not null' => FALSE,
  1730. ),
  1731. 'name' => array(
  1732. 'description' => t('TODO: please describe this field!'),
  1733. 'type' => 'varchar',
  1734. 'length' => '255',
  1735. 'not null' => FALSE,
  1736. ),
  1737. 'organism_id' => array(
  1738. 'description' => t('TODO: please describe this field!'),
  1739. 'type' => 'int',
  1740. 'not null' => FALSE,
  1741. ),
  1742. ),
  1743. );
  1744. $schema['gffatts'] = array(
  1745. 'description' => t('TODO: please describe this table!'),
  1746. 'fields' => array(
  1747. 'feature_id' => array(
  1748. 'description' => t('TODO: please describe this field!'),
  1749. 'type' => 'int',
  1750. 'not null' => FALSE,
  1751. ),
  1752. 'type' => array(
  1753. 'description' => t('TODO: please describe this field!'),
  1754. 'type' => 'text',
  1755. 'not null' => FALSE,
  1756. ),
  1757. 'attribute' => array(
  1758. 'description' => t('TODO: please describe this field!'),
  1759. 'type' => 'varchar',
  1760. 'not null' => FALSE,
  1761. ),
  1762. ),
  1763. );
  1764. $schema['intron_combined_view'] = array(
  1765. 'description' => t('TODO: please describe this table!'),
  1766. 'fields' => array(
  1767. 'exon1_id' => array(
  1768. 'description' => t('TODO: please describe this field!'),
  1769. 'type' => 'int',
  1770. 'not null' => FALSE,
  1771. ),
  1772. 'exon2_id' => array(
  1773. 'description' => t('TODO: please describe this field!'),
  1774. 'type' => 'int',
  1775. 'not null' => FALSE,
  1776. ),
  1777. 'fmin' => array(
  1778. 'description' => t('TODO: please describe this field!'),
  1779. 'type' => 'int',
  1780. 'not null' => FALSE,
  1781. ),
  1782. 'fmax' => array(
  1783. 'description' => t('TODO: please describe this field!'),
  1784. 'type' => 'int',
  1785. 'not null' => FALSE,
  1786. ),
  1787. 'strand' => array(
  1788. 'description' => t('TODO: please describe this field!'),
  1789. 'type' => 'int',
  1790. 'size' => 'small',
  1791. 'not null' => FALSE,
  1792. ),
  1793. 'srcfeature_id' => array(
  1794. 'description' => t('TODO: please describe this field!'),
  1795. 'type' => 'int',
  1796. 'not null' => FALSE,
  1797. ),
  1798. 'intron_rank' => array(
  1799. 'description' => t('TODO: please describe this field!'),
  1800. 'type' => 'int',
  1801. 'not null' => FALSE,
  1802. ),
  1803. 'transcript_id' => array(
  1804. 'description' => t('TODO: please describe this field!'),
  1805. 'type' => 'int',
  1806. 'not null' => FALSE,
  1807. ),
  1808. ),
  1809. );
  1810. $schema['project'] = array(
  1811. 'description' => t('TODO: please describe this table!'),
  1812. 'fields' => array(
  1813. 'project_id' => array(
  1814. 'description' => t('TODO: please describe this field!'),
  1815. 'type' => 'serial',
  1816. 'not null' => TRUE,
  1817. ),
  1818. 'name' => array(
  1819. 'description' => t('TODO: please describe this field!'),
  1820. 'type' => 'varchar',
  1821. 'length' => '255',
  1822. 'not null' => TRUE,
  1823. ),
  1824. 'description' => array(
  1825. 'description' => t('TODO: please describe this field!'),
  1826. 'type' => 'varchar',
  1827. 'length' => '255',
  1828. 'not null' => TRUE,
  1829. ),
  1830. ),
  1831. 'primary key' => array('project_id'),
  1832. 'unique keys' => array(
  1833. 'project_c1' => array('name')
  1834. ),
  1835. );
  1836. $schema['protein_coding_gene'] = array(
  1837. 'description' => t('TODO: please describe this table!'),
  1838. 'fields' => array(
  1839. 'feature_id' => array(
  1840. 'description' => t('TODO: please describe this field!'),
  1841. 'type' => 'int',
  1842. 'not null' => FALSE,
  1843. ),
  1844. 'dbxref_id' => array(
  1845. 'description' => t('TODO: please describe this field!'),
  1846. 'type' => 'int',
  1847. 'not null' => FALSE,
  1848. ),
  1849. 'organism_id' => array(
  1850. 'description' => t('TODO: please describe this field!'),
  1851. 'type' => 'int',
  1852. 'not null' => FALSE,
  1853. ),
  1854. 'name' => array(
  1855. 'description' => t('TODO: please describe this field!'),
  1856. 'type' => 'varchar',
  1857. 'length' => '255',
  1858. 'not null' => FALSE,
  1859. ),
  1860. 'uniquename' => array(
  1861. 'description' => t('TODO: please describe this field!'),
  1862. 'type' => 'text',
  1863. 'not null' => FALSE,
  1864. ),
  1865. 'residues' => array(
  1866. 'description' => t('TODO: please describe this field!'),
  1867. 'type' => 'text',
  1868. 'not null' => FALSE,
  1869. ),
  1870. 'seqlen' => array(
  1871. 'description' => t('TODO: please describe this field!'),
  1872. 'type' => 'int',
  1873. 'not null' => FALSE,
  1874. ),
  1875. 'md5checksum' => array(
  1876. 'description' => t('TODO: please describe this field!'),
  1877. 'type' => 'char',
  1878. 'length' => '32',
  1879. 'not null' => FALSE,
  1880. ),
  1881. 'type_id' => array(
  1882. 'description' => t('TODO: please describe this field!'),
  1883. 'type' => 'int',
  1884. 'not null' => FALSE,
  1885. ),
  1886. 'is_analysis' => array(
  1887. 'description' => t('TODO: please describe this field!'),
  1888. 'type' => 'boolean',
  1889. 'not null' => FALSE,
  1890. ),
  1891. 'is_obsolete' => array(
  1892. 'description' => t('TODO: please describe this field!'),
  1893. 'type' => 'boolean',
  1894. 'not null' => FALSE,
  1895. ),
  1896. 'timeaccessioned' => array(
  1897. 'description' => t('TODO: please describe this field!'),
  1898. 'type' => 'datetime',
  1899. 'not null' => FALSE,
  1900. ),
  1901. 'timelastmodified' => array(
  1902. 'description' => t('TODO: please describe this field!'),
  1903. 'type' => 'datetime',
  1904. 'not null' => FALSE,
  1905. ),
  1906. ),
  1907. );
  1908. $schema['studyfactorvalue'] = array(
  1909. 'description' => t('TODO: please describe this table!'),
  1910. 'fields' => array(
  1911. 'studyfactorvalue_id' => array(
  1912. 'description' => t('TODO: please describe this field!'),
  1913. 'type' => 'serial',
  1914. 'not null' => TRUE,
  1915. ),
  1916. 'studyfactor_id' => array(
  1917. 'description' => t('TODO: please describe this field!'),
  1918. 'type' => 'int',
  1919. 'not null' => TRUE,
  1920. ),
  1921. 'assay_id' => array(
  1922. 'description' => t('TODO: please describe this field!'),
  1923. 'type' => 'int',
  1924. 'not null' => TRUE,
  1925. ),
  1926. 'factorvalue' => array(
  1927. 'description' => t('TODO: please describe this field!'),
  1928. 'type' => 'text',
  1929. 'not null' => FALSE,
  1930. ),
  1931. 'name' => array(
  1932. 'description' => t('TODO: please describe this field!'),
  1933. 'type' => 'text',
  1934. 'not null' => FALSE,
  1935. ),
  1936. 'rank' => array(
  1937. 'description' => t('TODO: please describe this field!'),
  1938. 'type' => 'int',
  1939. 'not null' => TRUE,
  1940. 'default' => 0,
  1941. ),
  1942. ),
  1943. 'primary key' => array('studyfactorvalue_id'),
  1944. 'indexes' => array(
  1945. 'studyfactorvalue_idx1' => array('studyfactor_id'),
  1946. 'studyfactorvalue_idx2' => array('assay_id'),
  1947. ),
  1948. );
  1949. $schema['studyfactor'] = array(
  1950. 'description' => t('TODO: please describe this table!'),
  1951. 'fields' => array(
  1952. 'studyfactor_id' => array(
  1953. 'description' => t('TODO: please describe this field!'),
  1954. 'type' => 'serial',
  1955. 'not null' => TRUE,
  1956. ),
  1957. 'studydesign_id' => array(
  1958. 'description' => t('TODO: please describe this field!'),
  1959. 'type' => 'int',
  1960. 'not null' => TRUE,
  1961. ),
  1962. 'type_id' => array(
  1963. 'description' => t('TODO: please describe this field!'),
  1964. 'type' => 'int',
  1965. 'not null' => FALSE,
  1966. ),
  1967. 'name' => array(
  1968. 'description' => t('TODO: please describe this field!'),
  1969. 'type' => 'text',
  1970. 'not null' => TRUE,
  1971. ),
  1972. 'description' => array(
  1973. 'description' => t('TODO: please describe this field!'),
  1974. 'type' => 'text',
  1975. 'not null' => FALSE,
  1976. ),
  1977. ),
  1978. 'primary key' => array('studyfactor_id'),
  1979. 'indexes' => array(
  1980. 'studyfactor_idx1' => array('studydesign_id'),
  1981. 'studyfactor_idx2' => array('type_id'),
  1982. ),
  1983. );
  1984. $schema['studyprop'] = array(
  1985. 'description' => t('TODO: please describe this table!'),
  1986. 'fields' => array(
  1987. 'studyprop_id' => array(
  1988. 'description' => t('TODO: please describe this field!'),
  1989. 'type' => 'serial',
  1990. 'not null' => TRUE,
  1991. ),
  1992. 'study_id' => array(
  1993. 'description' => t('TODO: please describe this field!'),
  1994. 'type' => 'int',
  1995. 'not null' => TRUE,
  1996. ),
  1997. 'type_id' => array(
  1998. 'description' => t('TODO: please describe this field!'),
  1999. 'type' => 'int',
  2000. 'not null' => TRUE,
  2001. ),
  2002. 'value' => array(
  2003. 'description' => t('TODO: please describe this field!'),
  2004. 'type' => 'text',
  2005. 'not null' => FALSE,
  2006. ),
  2007. 'rank' => array(
  2008. 'description' => t('TODO: please describe this field!'),
  2009. 'type' => 'int',
  2010. 'not null' => TRUE,
  2011. 'default' => 0,
  2012. ),
  2013. ),
  2014. 'primary key' => array('studyprop_id'),
  2015. 'unique keys' => array(
  2016. 'study_id' => array('study_id', 'type_id', 'rank')
  2017. ),
  2018. 'indexes' => array(
  2019. 'studyprop_idx1' => array('study_id'),
  2020. 'studyprop_idx2' => array('type_id'),
  2021. ),
  2022. );
  2023. $schema['studyprop_feature'] = array(
  2024. 'description' => t('TODO: please describe this table!'),
  2025. 'fields' => array(
  2026. 'studyprop_feature_id' => array(
  2027. 'description' => t('TODO: please describe this field!'),
  2028. 'type' => 'serial',
  2029. 'not null' => TRUE,
  2030. ),
  2031. 'studyprop_id' => array(
  2032. 'description' => t('TODO: please describe this field!'),
  2033. 'type' => 'int',
  2034. 'not null' => TRUE,
  2035. ),
  2036. 'feature_id' => array(
  2037. 'description' => t('TODO: please describe this field!'),
  2038. 'type' => 'int',
  2039. 'not null' => TRUE,
  2040. ),
  2041. 'type_id' => array(
  2042. 'description' => t('TODO: please describe this field!'),
  2043. 'type' => 'int',
  2044. 'not null' => FALSE,
  2045. ),
  2046. ),
  2047. 'primary key' => array('studyprop_feature_id'),
  2048. 'unique keys' => array(
  2049. 'studyprop_id' => array('studyprop_id', 'feature_id')
  2050. ),
  2051. 'indexes' => array(
  2052. 'studyprop_feature_idx1' => array('studyprop_id'),
  2053. 'studyprop_feature_idx2' => array('feature_id'),
  2054. ),
  2055. );
  2056. $schema['synonym'] = array(
  2057. 'description' => t('TODO: please describe this table!'),
  2058. 'fields' => array(
  2059. 'synonym_id' => array(
  2060. 'description' => t('TODO: please describe this field!'),
  2061. 'type' => 'serial',
  2062. 'not null' => TRUE,
  2063. ),
  2064. 'name' => array(
  2065. 'description' => t('TODO: please describe this field!'),
  2066. 'type' => 'varchar',
  2067. 'length' => '255',
  2068. 'not null' => TRUE,
  2069. ),
  2070. 'type_id' => array(
  2071. 'description' => t('TODO: please describe this field!'),
  2072. 'type' => 'int',
  2073. 'not null' => TRUE,
  2074. ),
  2075. 'synonym_sgml' => array(
  2076. 'description' => t('TODO: please describe this field!'),
  2077. 'type' => 'varchar',
  2078. 'length' => '255',
  2079. 'not null' => TRUE,
  2080. ),
  2081. ),
  2082. 'primary key' => array('synonym_id'),
  2083. 'unique keys' => array(
  2084. 'synonym_c1' => array('name', 'type_id')
  2085. ),
  2086. 'indexes' => array(
  2087. 'synonym_idx1' => array('type_id'),
  2088. ),
  2089. );
  2090. $schema['studydesignprop'] = array(
  2091. 'description' => t('TODO: please describe this table!'),
  2092. 'fields' => array(
  2093. 'studydesignprop_id' => array(
  2094. 'description' => t('TODO: please describe this field!'),
  2095. 'type' => 'serial',
  2096. 'not null' => TRUE,
  2097. ),
  2098. 'studydesign_id' => array(
  2099. 'description' => t('TODO: please describe this field!'),
  2100. 'type' => 'int',
  2101. 'not null' => TRUE,
  2102. ),
  2103. 'type_id' => array(
  2104. 'description' => t('TODO: please describe this field!'),
  2105. 'type' => 'int',
  2106. 'not null' => TRUE,
  2107. ),
  2108. 'value' => array(
  2109. 'description' => t('TODO: please describe this field!'),
  2110. 'type' => 'text',
  2111. 'not null' => FALSE,
  2112. ),
  2113. 'rank' => array(
  2114. 'description' => t('TODO: please describe this field!'),
  2115. 'type' => 'int',
  2116. 'not null' => TRUE,
  2117. 'default' => 0,
  2118. ),
  2119. ),
  2120. 'primary key' => array('studydesignprop_id'),
  2121. 'unique keys' => array(
  2122. 'studydesignprop_c1' => array('studydesign_id', 'type_id', 'rank')
  2123. ),
  2124. 'indexes' => array(
  2125. 'studydesignprop_idx1' => array('studydesign_id'),
  2126. 'studydesignprop_idx2' => array('type_id'),
  2127. ),
  2128. );
  2129. $schema['studydesign'] = array(
  2130. 'description' => t('TODO: please describe this table!'),
  2131. 'fields' => array(
  2132. 'studydesign_id' => array(
  2133. 'description' => t('TODO: please describe this field!'),
  2134. 'type' => 'serial',
  2135. 'not null' => TRUE,
  2136. ),
  2137. 'study_id' => array(
  2138. 'description' => t('TODO: please describe this field!'),
  2139. 'type' => 'int',
  2140. 'not null' => TRUE,
  2141. ),
  2142. 'description' => array(
  2143. 'description' => t('TODO: please describe this field!'),
  2144. 'type' => 'text',
  2145. 'not null' => FALSE,
  2146. ),
  2147. ),
  2148. 'primary key' => array('studydesign_id'),
  2149. 'indexes' => array(
  2150. 'studydesign_idx1' => array('study_id'),
  2151. ),
  2152. );
  2153. $schema['stockprop'] = array(
  2154. 'description' => t('TODO: please describe this table!'),
  2155. 'fields' => array(
  2156. 'stockprop_id' => array(
  2157. 'description' => t('TODO: please describe this field!'),
  2158. 'type' => 'serial',
  2159. 'not null' => TRUE,
  2160. ),
  2161. 'stock_id' => array(
  2162. 'description' => t('TODO: please describe this field!'),
  2163. 'type' => 'int',
  2164. 'not null' => TRUE,
  2165. ),
  2166. 'type_id' => array(
  2167. 'description' => t('TODO: please describe this field!'),
  2168. 'type' => 'int',
  2169. 'not null' => TRUE,
  2170. ),
  2171. 'value' => array(
  2172. 'description' => t('TODO: please describe this field!'),
  2173. 'type' => 'text',
  2174. 'not null' => FALSE,
  2175. ),
  2176. 'rank' => array(
  2177. 'description' => t('TODO: please describe this field!'),
  2178. 'type' => 'int',
  2179. 'not null' => TRUE,
  2180. 'default' => 0,
  2181. ),
  2182. ),
  2183. 'primary key' => array('stockprop_id'),
  2184. 'unique keys' => array(
  2185. 'stockprop_c1' => array('stock_id', 'type_id', 'rank')
  2186. ),
  2187. 'indexes' => array(
  2188. 'stockprop_idx1' => array('stock_id'),
  2189. 'stockprop_idx2' => array('type_id'),
  2190. ),
  2191. 'foreign keys' => array(
  2192. 'stock' => array(
  2193. 'table' => 'stock',
  2194. 'columns' => array('stock_id' => 'stock_id'),
  2195. ),
  2196. 'cvterm' => array(
  2197. 'table' => 'cvterm',
  2198. 'columns' => array('type_id' => 'cvterm_id'),
  2199. ),
  2200. ),
  2201. );
  2202. $schema['stockprop_pub'] = array(
  2203. 'description' => t('TODO: please describe this table!'),
  2204. 'fields' => array(
  2205. 'stockprop_pub_id' => array(
  2206. 'description' => t('TODO: please describe this field!'),
  2207. 'type' => 'serial',
  2208. 'not null' => TRUE,
  2209. ),
  2210. 'stockprop_id' => array(
  2211. 'description' => t('TODO: please describe this field!'),
  2212. 'type' => 'int',
  2213. 'not null' => TRUE,
  2214. ),
  2215. 'pub_id' => array(
  2216. 'description' => t('TODO: please describe this field!'),
  2217. 'type' => 'int',
  2218. 'not null' => TRUE,
  2219. ),
  2220. ),
  2221. 'primary key' => array('stockprop_pub_id'),
  2222. 'unique keys' => array(
  2223. 'stockprop_pub_c1' => array('stockprop_id', 'pub_id')
  2224. ),
  2225. 'indexes' => array(
  2226. 'stockprop_pub_idx1' => array('stockprop_id'),
  2227. 'stockprop_pub_idx2' => array('pub_id'),
  2228. ),
  2229. );
  2230. $schema['study'] = array(
  2231. 'description' => t('TODO: please describe this table!'),
  2232. 'fields' => array(
  2233. 'study_id' => array(
  2234. 'description' => t('TODO: please describe this field!'),
  2235. 'type' => 'serial',
  2236. 'not null' => TRUE,
  2237. ),
  2238. 'contact_id' => array(
  2239. 'description' => t('TODO: please describe this field!'),
  2240. 'type' => 'int',
  2241. 'not null' => TRUE,
  2242. ),
  2243. 'pub_id' => array(
  2244. 'description' => t('TODO: please describe this field!'),
  2245. 'type' => 'int',
  2246. 'not null' => FALSE,
  2247. ),
  2248. 'dbxref_id' => array(
  2249. 'description' => t('TODO: please describe this field!'),
  2250. 'type' => 'int',
  2251. 'not null' => FALSE,
  2252. ),
  2253. 'name' => array(
  2254. 'description' => t('TODO: please describe this field!'),
  2255. 'type' => 'text',
  2256. 'not null' => TRUE,
  2257. ),
  2258. 'description' => array(
  2259. 'description' => t('TODO: please describe this field!'),
  2260. 'type' => 'text',
  2261. 'not null' => FALSE,
  2262. ),
  2263. ),
  2264. 'primary key' => array('study_id'),
  2265. 'unique keys' => array(
  2266. 'study_c1' => array('name')
  2267. ),
  2268. 'indexes' => array(
  2269. 'study_idx1' => array('contact_id'),
  2270. 'study_idx2' => array('pub_id'),
  2271. 'study_idx3' => array('dbxref_id'),
  2272. ),
  2273. );
  2274. $schema['study_assay'] = array(
  2275. 'description' => t('TODO: please describe this table!'),
  2276. 'fields' => array(
  2277. 'study_assay_id' => array(
  2278. 'description' => t('TODO: please describe this field!'),
  2279. 'type' => 'serial',
  2280. 'not null' => TRUE,
  2281. ),
  2282. 'study_id' => array(
  2283. 'description' => t('TODO: please describe this field!'),
  2284. 'type' => 'int',
  2285. 'not null' => TRUE,
  2286. ),
  2287. 'assay_id' => array(
  2288. 'description' => t('TODO: please describe this field!'),
  2289. 'type' => 'int',
  2290. 'not null' => TRUE,
  2291. ),
  2292. ),
  2293. 'primary key' => array('study_assay_id'),
  2294. 'unique keys' => array(
  2295. 'study_assay_c1' => array('study_id', 'assay_id')
  2296. ),
  2297. 'indexes' => array(
  2298. 'study_assay_idx1' => array('study_id'),
  2299. 'study_assay_idx2' => array('assay_id'),
  2300. ),
  2301. );
  2302. $schema['tableinfo'] = array(
  2303. 'description' => t('TODO: please describe this table!'),
  2304. 'fields' => array(
  2305. 'tableinfo_id' => array(
  2306. 'description' => t('TODO: please describe this field!'),
  2307. 'type' => 'serial',
  2308. 'not null' => TRUE,
  2309. ),
  2310. 'name' => array(
  2311. 'description' => t('TODO: please describe this field!'),
  2312. 'type' => 'varchar',
  2313. 'length' => '30',
  2314. 'not null' => TRUE,
  2315. ),
  2316. 'primary_key_column' => array(
  2317. 'description' => t('TODO: please describe this field!'),
  2318. 'type' => 'varchar',
  2319. 'length' => '30',
  2320. 'not null' => FALSE,
  2321. ),
  2322. 'is_view' => array(
  2323. 'description' => t('TODO: please describe this field!'),
  2324. 'type' => 'int',
  2325. 'not null' => TRUE,
  2326. 'default' => 0,
  2327. ),
  2328. 'view_on_table_id' => array(
  2329. 'description' => t('TODO: please describe this field!'),
  2330. 'type' => 'int',
  2331. 'not null' => FALSE,
  2332. ),
  2333. 'superclass_table_id' => array(
  2334. 'description' => t('TODO: please describe this field!'),
  2335. 'type' => 'int',
  2336. 'not null' => FALSE,
  2337. ),
  2338. 'is_updateable' => array(
  2339. 'description' => t('TODO: please describe this field!'),
  2340. 'type' => 'int',
  2341. 'not null' => TRUE,
  2342. 'default' => 1,
  2343. ),
  2344. 'modification_date' => array(
  2345. 'description' => t('TODO: please describe this field!'),
  2346. 'type' => 'date',
  2347. 'not null' => TRUE,
  2348. 'default' => 'ow(',
  2349. ),
  2350. ),
  2351. 'primary key' => array('tableinfo_id'),
  2352. 'unique keys' => array(
  2353. 'tableinfo_c1' => array('name')
  2354. ),
  2355. );
  2356. $schema['treatment'] = array(
  2357. 'description' => t('TODO: please describe this table!'),
  2358. 'fields' => array(
  2359. 'treatment_id' => array(
  2360. 'description' => t('TODO: please describe this field!'),
  2361. 'type' => 'serial',
  2362. 'not null' => TRUE,
  2363. ),
  2364. 'rank' => array(
  2365. 'description' => t('TODO: please describe this field!'),
  2366. 'type' => 'int',
  2367. 'not null' => TRUE,
  2368. 'default' => 0,
  2369. ),
  2370. 'biomaterial_id' => array(
  2371. 'description' => t('TODO: please describe this field!'),
  2372. 'type' => 'int',
  2373. 'not null' => TRUE,
  2374. ),
  2375. 'type_id' => array(
  2376. 'description' => t('TODO: please describe this field!'),
  2377. 'type' => 'int',
  2378. 'not null' => TRUE,
  2379. ),
  2380. 'protocol_id' => array(
  2381. 'description' => t('TODO: please describe this field!'),
  2382. 'type' => 'int',
  2383. 'not null' => FALSE,
  2384. ),
  2385. 'name' => array(
  2386. 'description' => t('TODO: please describe this field!'),
  2387. 'type' => 'text',
  2388. 'not null' => FALSE,
  2389. ),
  2390. ),
  2391. 'primary key' => array('treatment_id'),
  2392. 'indexes' => array(
  2393. 'treatment_idx1' => array('biomaterial_id'),
  2394. 'treatment_idx2' => array('type_id'),
  2395. 'treatment_idx3' => array('protocol_id'),
  2396. ),
  2397. );
  2398. $schema['tripal_obo'] = array(
  2399. 'description' => t('TODO: please describe this table!'),
  2400. 'fields' => array(
  2401. 'cv_id' => array(
  2402. 'description' => t('TODO: please describe this field!'),
  2403. 'type' => 'int',
  2404. 'unsigned' => TRUE,
  2405. 'not null' => TRUE,
  2406. 'default' => 0,
  2407. ),
  2408. 'file' => array(
  2409. 'description' => t('TODO: please describe this field!'),
  2410. 'type' => 'varchar',
  2411. 'length' => '1024',
  2412. 'not null' => FALSE,
  2413. ),
  2414. 'url' => array(
  2415. 'description' => t('TODO: please describe this field!'),
  2416. 'type' => 'varchar',
  2417. 'length' => '1024',
  2418. 'not null' => FALSE,
  2419. ),
  2420. ),
  2421. 'primary key' => array('cv_id'),
  2422. 'indexes' => array(
  2423. 'cv_id' => array('cv_id'),
  2424. ),
  2425. );
  2426. $schema['tripal_organism_views_common_name'] = array(
  2427. 'description' => t('TODO: please describe this table!'),
  2428. 'fields' => array(
  2429. 'nid' => array(
  2430. 'description' => t('TODO: please describe this field!'),
  2431. 'type' => 'int',
  2432. 'unsigned' => TRUE,
  2433. 'not null' => TRUE,
  2434. 'default' => 0,
  2435. ),
  2436. 'common_name' => array(
  2437. 'description' => t('TODO: please describe this field!'),
  2438. 'type' => 'varchar',
  2439. 'length' => '255',
  2440. 'not null' => TRUE,
  2441. 'default' => 'NA',
  2442. ),
  2443. ),
  2444. );
  2445. $schema['type_feature_count'] = array(
  2446. 'description' => t('TODO: please describe this table!'),
  2447. 'fields' => array(
  2448. 'type' => array(
  2449. 'description' => t('TODO: please describe this field!'),
  2450. 'type' => 'varchar',
  2451. 'length' => '1024',
  2452. 'not null' => FALSE,
  2453. ),
  2454. 'num_features' => array(
  2455. 'description' => t('TODO: please describe this field!'),
  2456. 'type' => 'int',
  2457. 'size' => 'big',
  2458. 'not null' => FALSE,
  2459. ),
  2460. ),
  2461. );
  2462. $schema['stockcollectionprop'] = array(
  2463. 'description' => t('TODO: please describe this table!'),
  2464. 'fields' => array(
  2465. 'stockcollectionprop_id' => array(
  2466. 'description' => t('TODO: please describe this field!'),
  2467. 'type' => 'serial',
  2468. 'not null' => TRUE,
  2469. ),
  2470. 'stockcollection_id' => array(
  2471. 'description' => t('TODO: please describe this field!'),
  2472. 'type' => 'int',
  2473. 'not null' => TRUE,
  2474. ),
  2475. 'type_id' => array(
  2476. 'description' => t('TODO: please describe this field!'),
  2477. 'type' => 'int',
  2478. 'not null' => TRUE,
  2479. ),
  2480. 'value' => array(
  2481. 'description' => t('TODO: please describe this field!'),
  2482. 'type' => 'text',
  2483. 'not null' => FALSE,
  2484. ),
  2485. 'rank' => array(
  2486. 'description' => t('TODO: please describe this field!'),
  2487. 'type' => 'int',
  2488. 'not null' => TRUE,
  2489. 'default' => 0,
  2490. ),
  2491. ),
  2492. 'primary key' => array('stockcollectionprop_id'),
  2493. 'unique keys' => array(
  2494. 'stockcollectionprop_c1' => array('stockcollection_id', 'type_id', 'rank')
  2495. ),
  2496. 'indexes' => array(
  2497. 'stockcollectionprop_idx1' => array('stockcollection_id'),
  2498. 'stockcollectionprop_idx2' => array('type_id'),
  2499. ),
  2500. );
  2501. $schema['stockcollection_stock'] = array(
  2502. 'description' => t('TODO: please describe this table!'),
  2503. 'fields' => array(
  2504. 'stockcollection_stock_id' => array(
  2505. 'description' => t('TODO: please describe this field!'),
  2506. 'type' => 'serial',
  2507. 'not null' => TRUE,
  2508. ),
  2509. 'stockcollection_id' => array(
  2510. 'description' => t('TODO: please describe this field!'),
  2511. 'type' => 'int',
  2512. 'not null' => TRUE,
  2513. ),
  2514. 'stock_id' => array(
  2515. 'description' => t('TODO: please describe this field!'),
  2516. 'type' => 'int',
  2517. 'not null' => TRUE,
  2518. ),
  2519. ),
  2520. 'primary key' => array('stockcollection_stock_id'),
  2521. 'unique keys' => array(
  2522. 'stockcollection_stock_c1' => array('stockcollection_id', 'stock_id')
  2523. ),
  2524. 'indexes' => array(
  2525. 'stockcollection_stock_idx1' => array('stockcollection_id'),
  2526. 'stockcollection_stock_idx2' => array('stock_id'),
  2527. ),
  2528. );
  2529. $schema['public_feature'] = array(
  2530. 'description' => t('TODO: please describe this table!'),
  2531. 'fields' => array(
  2532. 'vid' => array(
  2533. 'description' => t('TODO: please describe this field!'),
  2534. 'type' => 'int',
  2535. 'unsigned' => TRUE,
  2536. 'not null' => TRUE,
  2537. 'default' => 0,
  2538. ),
  2539. 'nid' => array(
  2540. 'description' => t('TODO: please describe this field!'),
  2541. 'type' => 'int',
  2542. 'unsigned' => TRUE,
  2543. 'not null' => TRUE,
  2544. 'default' => 0,
  2545. ),
  2546. 'feature_id' => array(
  2547. 'description' => t('TODO: please describe this field!'),
  2548. 'type' => 'int',
  2549. 'not null' => TRUE,
  2550. 'default' => 0,
  2551. ),
  2552. 'sync_date' => array(
  2553. 'description' => t('TODO: please describe this field!'),
  2554. 'type' => 'int',
  2555. 'not null' => FALSE,
  2556. ),
  2557. ),
  2558. 'primary key' => array('nid'),
  2559. 'unique keys' => array(
  2560. 'nid_vid' => array('nid', 'vid'),
  2561. 'vid' => array('vid')
  2562. ),
  2563. 'indexes' => array(
  2564. 'feature_id' => array('feature_id'),
  2565. ),
  2566. );
  2567. $schema['public_library'] = array(
  2568. 'description' => t('TODO: please describe this table!'),
  2569. 'fields' => array(
  2570. 'vid' => array(
  2571. 'description' => t('TODO: please describe this field!'),
  2572. 'type' => 'int',
  2573. 'unsigned' => TRUE,
  2574. 'not null' => TRUE,
  2575. 'default' => 0,
  2576. ),
  2577. 'nid' => array(
  2578. 'description' => t('TODO: please describe this field!'),
  2579. 'type' => 'int',
  2580. 'unsigned' => TRUE,
  2581. 'not null' => TRUE,
  2582. 'default' => 0,
  2583. ),
  2584. 'library_id' => array(
  2585. 'description' => t('TODO: please describe this field!'),
  2586. 'type' => 'int',
  2587. 'not null' => TRUE,
  2588. 'default' => 0,
  2589. ),
  2590. ),
  2591. 'primary key' => array('nid'),
  2592. 'unique keys' => array(
  2593. 'nid_vid' => array('nid', 'vid'),
  2594. 'vid' => array('vid')
  2595. ),
  2596. 'indexes' => array(
  2597. 'library_id' => array('library_id'),
  2598. ),
  2599. );
  2600. $schema['public_organism'] = array(
  2601. 'description' => t('TODO: please describe this table!'),
  2602. 'fields' => array(
  2603. 'vid' => array(
  2604. 'description' => t('TODO: please describe this field!'),
  2605. 'type' => 'int',
  2606. 'unsigned' => TRUE,
  2607. 'not null' => TRUE,
  2608. 'default' => 0,
  2609. ),
  2610. 'nid' => array(
  2611. 'description' => t('TODO: please describe this field!'),
  2612. 'type' => 'int',
  2613. 'unsigned' => TRUE,
  2614. 'not null' => TRUE,
  2615. 'default' => 0,
  2616. ),
  2617. 'organism_id' => array(
  2618. 'description' => t('TODO: please describe this field!'),
  2619. 'type' => 'int',
  2620. 'not null' => TRUE,
  2621. 'default' => 0,
  2622. ),
  2623. ),
  2624. 'primary key' => array('nid'),
  2625. 'unique keys' => array(
  2626. 'nid_vid' => array('nid', 'vid'),
  2627. 'vid' => array('vid')
  2628. ),
  2629. 'indexes' => array(
  2630. 'organism_id' => array('organism_id'),
  2631. ),
  2632. );
  2633. $schema['pubprop'] = array(
  2634. 'description' => t('TODO: please describe this table!'),
  2635. 'fields' => array(
  2636. 'pubprop_id' => array(
  2637. 'description' => t('TODO: please describe this field!'),
  2638. 'type' => 'serial',
  2639. 'not null' => TRUE,
  2640. ),
  2641. 'pub_id' => array(
  2642. 'description' => t('TODO: please describe this field!'),
  2643. 'type' => 'int',
  2644. 'not null' => TRUE,
  2645. ),
  2646. 'type_id' => array(
  2647. 'description' => t('TODO: please describe this field!'),
  2648. 'type' => 'int',
  2649. 'not null' => TRUE,
  2650. ),
  2651. 'value' => array(
  2652. 'description' => t('TODO: please describe this field!'),
  2653. 'type' => 'text',
  2654. 'not null' => TRUE,
  2655. ),
  2656. 'rank' => array(
  2657. 'description' => t('TODO: please describe this field!'),
  2658. 'type' => 'int',
  2659. 'not null' => FALSE,
  2660. ),
  2661. ),
  2662. 'primary key' => array('pubprop_id'),
  2663. 'unique keys' => array(
  2664. 'pubprop_c1' => array('pub_id', 'type_id', 'rank')
  2665. ),
  2666. 'indexes' => array(
  2667. 'pubprop_idx1' => array('pub_id'),
  2668. 'pubprop_idx2' => array('type_id'),
  2669. ),
  2670. );
  2671. $schema['pubauthor'] = array(
  2672. 'description' => t('TODO: please describe this table!'),
  2673. 'fields' => array(
  2674. 'pubauthor_id' => array(
  2675. 'description' => t('TODO: please describe this field!'),
  2676. 'type' => 'serial',
  2677. 'not null' => TRUE,
  2678. ),
  2679. 'pub_id' => array(
  2680. 'description' => t('TODO: please describe this field!'),
  2681. 'type' => 'int',
  2682. 'not null' => TRUE,
  2683. ),
  2684. 'rank' => array(
  2685. 'description' => t('TODO: please describe this field!'),
  2686. 'type' => 'int',
  2687. 'not null' => TRUE,
  2688. ),
  2689. 'editor' => array(
  2690. 'description' => t('TODO: please describe this field!'),
  2691. 'type' => 'boolean',
  2692. 'not null' => FALSE,
  2693. 'default' => 'als',
  2694. ),
  2695. 'surname' => array(
  2696. 'description' => t('TODO: please describe this field!'),
  2697. 'type' => 'varchar',
  2698. 'length' => '100',
  2699. 'not null' => TRUE,
  2700. ),
  2701. 'givennames' => array(
  2702. 'description' => t('TODO: please describe this field!'),
  2703. 'type' => 'varchar',
  2704. 'length' => '100',
  2705. 'not null' => FALSE,
  2706. ),
  2707. 'suffix' => array(
  2708. 'description' => t('TODO: please describe this field!'),
  2709. 'type' => 'varchar',
  2710. 'length' => '100',
  2711. 'not null' => FALSE,
  2712. ),
  2713. ),
  2714. 'primary key' => array('pubauthor_id'),
  2715. 'unique keys' => array(
  2716. 'pubauthor_c1' => array('pub_id', 'rank')
  2717. ),
  2718. 'indexes' => array(
  2719. 'pubauthor_idx2' => array('pub_id'),
  2720. ),
  2721. );
  2722. $schema['pub_relationship'] = array(
  2723. 'description' => t('TODO: please describe this table!'),
  2724. 'fields' => array(
  2725. 'pub_relationship_id' => array(
  2726. 'description' => t('TODO: please describe this field!'),
  2727. 'type' => 'serial',
  2728. 'not null' => TRUE,
  2729. ),
  2730. 'subject_id' => array(
  2731. 'description' => t('TODO: please describe this field!'),
  2732. 'type' => 'int',
  2733. 'not null' => TRUE,
  2734. ),
  2735. 'object_id' => array(
  2736. 'description' => t('TODO: please describe this field!'),
  2737. 'type' => 'int',
  2738. 'not null' => TRUE,
  2739. ),
  2740. 'type_id' => array(
  2741. 'description' => t('TODO: please describe this field!'),
  2742. 'type' => 'int',
  2743. 'not null' => TRUE,
  2744. ),
  2745. ),
  2746. 'primary key' => array('pub_relationship_id'),
  2747. 'unique keys' => array(
  2748. 'pub_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  2749. ),
  2750. 'indexes' => array(
  2751. 'pub_relationship_idx1' => array('subject_id'),
  2752. 'pub_relationship_idx2' => array('object_id'),
  2753. 'pub_relationship_idx3' => array('type_id'),
  2754. ),
  2755. );
  2756. $schema['protocol'] = array(
  2757. 'description' => t('TODO: please describe this table!'),
  2758. 'fields' => array(
  2759. 'protocol_id' => array(
  2760. 'description' => t('TODO: please describe this field!'),
  2761. 'type' => 'serial',
  2762. 'not null' => TRUE,
  2763. ),
  2764. 'type_id' => array(
  2765. 'description' => t('TODO: please describe this field!'),
  2766. 'type' => 'int',
  2767. 'not null' => TRUE,
  2768. ),
  2769. 'pub_id' => array(
  2770. 'description' => t('TODO: please describe this field!'),
  2771. 'type' => 'int',
  2772. 'not null' => FALSE,
  2773. ),
  2774. 'dbxref_id' => array(
  2775. 'description' => t('TODO: please describe this field!'),
  2776. 'type' => 'int',
  2777. 'not null' => FALSE,
  2778. ),
  2779. 'name' => array(
  2780. 'description' => t('TODO: please describe this field!'),
  2781. 'type' => 'text',
  2782. 'not null' => TRUE,
  2783. ),
  2784. 'uri' => array(
  2785. 'description' => t('TODO: please describe this field!'),
  2786. 'type' => 'text',
  2787. 'not null' => FALSE,
  2788. ),
  2789. 'protocoldescription' => array(
  2790. 'description' => t('TODO: please describe this field!'),
  2791. 'type' => 'text',
  2792. 'not null' => FALSE,
  2793. ),
  2794. 'hardwaredescription' => array(
  2795. 'description' => t('TODO: please describe this field!'),
  2796. 'type' => 'text',
  2797. 'not null' => FALSE,
  2798. ),
  2799. 'softwaredescription' => array(
  2800. 'description' => t('TODO: please describe this field!'),
  2801. 'type' => 'text',
  2802. 'not null' => FALSE,
  2803. ),
  2804. ),
  2805. 'primary key' => array('protocol_id'),
  2806. 'unique keys' => array(
  2807. 'protocol_c1' => array('name')
  2808. ),
  2809. 'indexes' => array(
  2810. 'protocol_idx1' => array('type_id'),
  2811. 'protocol_idx2' => array('pub_id'),
  2812. 'protocol_idx3' => array('dbxref_id'),
  2813. ),
  2814. );
  2815. $schema['protocolparam'] = array(
  2816. 'description' => t('TODO: please describe this table!'),
  2817. 'fields' => array(
  2818. 'protocolparam_id' => array(
  2819. 'description' => t('TODO: please describe this field!'),
  2820. 'type' => 'serial',
  2821. 'not null' => TRUE,
  2822. ),
  2823. 'protocol_id' => array(
  2824. 'description' => t('TODO: please describe this field!'),
  2825. 'type' => 'int',
  2826. 'not null' => TRUE,
  2827. ),
  2828. 'name' => array(
  2829. 'description' => t('TODO: please describe this field!'),
  2830. 'type' => 'text',
  2831. 'not null' => TRUE,
  2832. ),
  2833. 'datatype_id' => array(
  2834. 'description' => t('TODO: please describe this field!'),
  2835. 'type' => 'int',
  2836. 'not null' => FALSE,
  2837. ),
  2838. 'unittype_id' => array(
  2839. 'description' => t('TODO: please describe this field!'),
  2840. 'type' => 'int',
  2841. 'not null' => FALSE,
  2842. ),
  2843. 'value' => array(
  2844. 'description' => t('TODO: please describe this field!'),
  2845. 'type' => 'text',
  2846. 'not null' => FALSE,
  2847. ),
  2848. 'rank' => array(
  2849. 'description' => t('TODO: please describe this field!'),
  2850. 'type' => 'int',
  2851. 'not null' => TRUE,
  2852. 'default' => 0,
  2853. ),
  2854. ),
  2855. 'primary key' => array('protocolparam_id'),
  2856. 'indexes' => array(
  2857. 'protocolparam_idx1' => array('protocol_id'),
  2858. 'protocolparam_idx2' => array('datatype_id'),
  2859. 'protocolparam_idx3' => array('unittype_id'),
  2860. ),
  2861. );
  2862. $schema['pub'] = array(
  2863. 'description' => t('TODO: please describe this table!'),
  2864. 'fields' => array(
  2865. 'pub_id' => array(
  2866. 'description' => t('TODO: please describe this field!'),
  2867. 'type' => 'serial',
  2868. 'not null' => TRUE,
  2869. ),
  2870. 'title' => array(
  2871. 'description' => t('TODO: please describe this field!'),
  2872. 'type' => 'text',
  2873. 'not null' => FALSE,
  2874. ),
  2875. 'volumetitle' => array(
  2876. 'description' => t('TODO: please describe this field!'),
  2877. 'type' => 'text',
  2878. 'not null' => FALSE,
  2879. ),
  2880. 'volume' => array(
  2881. 'description' => t('TODO: please describe this field!'),
  2882. 'type' => 'varchar',
  2883. 'length' => '255',
  2884. 'not null' => FALSE,
  2885. ),
  2886. 'series_name' => array(
  2887. 'description' => t('TODO: please describe this field!'),
  2888. 'type' => 'varchar',
  2889. 'length' => '255',
  2890. 'not null' => FALSE,
  2891. ),
  2892. 'issue' => array(
  2893. 'description' => t('TODO: please describe this field!'),
  2894. 'type' => 'varchar',
  2895. 'length' => '255',
  2896. 'not null' => FALSE,
  2897. ),
  2898. 'pyear' => array(
  2899. 'description' => t('TODO: please describe this field!'),
  2900. 'type' => 'varchar',
  2901. 'length' => '255',
  2902. 'not null' => FALSE,
  2903. ),
  2904. 'pages' => array(
  2905. 'description' => t('TODO: please describe this field!'),
  2906. 'type' => 'varchar',
  2907. 'length' => '255',
  2908. 'not null' => FALSE,
  2909. ),
  2910. 'miniref' => array(
  2911. 'description' => t('TODO: please describe this field!'),
  2912. 'type' => 'varchar',
  2913. 'length' => '255',
  2914. 'not null' => FALSE,
  2915. ),
  2916. 'uniquename' => array(
  2917. 'description' => t('TODO: please describe this field!'),
  2918. 'type' => 'text',
  2919. 'not null' => TRUE,
  2920. ),
  2921. 'type_id' => array(
  2922. 'description' => t('TODO: please describe this field!'),
  2923. 'type' => 'int',
  2924. 'not null' => TRUE,
  2925. ),
  2926. 'is_obsolete' => array(
  2927. 'description' => t('TODO: please describe this field!'),
  2928. 'type' => 'boolean',
  2929. 'not null' => FALSE,
  2930. 'default' => 'als',
  2931. ),
  2932. 'publisher' => array(
  2933. 'description' => t('TODO: please describe this field!'),
  2934. 'type' => 'varchar',
  2935. 'length' => '255',
  2936. 'not null' => FALSE,
  2937. ),
  2938. 'pubplace' => array(
  2939. 'description' => t('TODO: please describe this field!'),
  2940. 'type' => 'varchar',
  2941. 'length' => '255',
  2942. 'not null' => FALSE,
  2943. ),
  2944. ),
  2945. 'primary key' => array('pub_id'),
  2946. 'unique keys' => array(
  2947. 'pub_c1' => array('uniquename')
  2948. ),
  2949. 'indexes' => array(
  2950. 'pub_idx1' => array('type_id'),
  2951. ),
  2952. );
  2953. $schema['pub_dbxref'] = array(
  2954. 'description' => t('TODO: please describe this table!'),
  2955. 'fields' => array(
  2956. 'pub_dbxref_id' => array(
  2957. 'description' => t('TODO: please describe this field!'),
  2958. 'type' => 'serial',
  2959. 'not null' => TRUE,
  2960. ),
  2961. 'pub_id' => array(
  2962. 'description' => t('TODO: please describe this field!'),
  2963. 'type' => 'int',
  2964. 'not null' => TRUE,
  2965. ),
  2966. 'dbxref_id' => array(
  2967. 'description' => t('TODO: please describe this field!'),
  2968. 'type' => 'int',
  2969. 'not null' => TRUE,
  2970. ),
  2971. 'is_current' => array(
  2972. 'description' => t('TODO: please describe this field!'),
  2973. 'type' => 'boolean',
  2974. 'not null' => TRUE,
  2975. 'default' => 'ru',
  2976. ),
  2977. ),
  2978. 'primary key' => array('pub_dbxref_id'),
  2979. 'unique keys' => array(
  2980. 'pub_dbxref_c1' => array('pub_id', 'dbxref_id')
  2981. ),
  2982. 'indexes' => array(
  2983. 'pub_dbxref_idx1' => array('pub_id'),
  2984. 'pub_dbxref_idx2' => array('dbxref_id'),
  2985. ),
  2986. );
  2987. $schema['quantification'] = array(
  2988. 'description' => t('TODO: please describe this table!'),
  2989. 'fields' => array(
  2990. 'quantification_id' => array(
  2991. 'description' => t('TODO: please describe this field!'),
  2992. 'type' => 'serial',
  2993. 'not null' => TRUE,
  2994. ),
  2995. 'acquisition_id' => array(
  2996. 'description' => t('TODO: please describe this field!'),
  2997. 'type' => 'int',
  2998. 'not null' => TRUE,
  2999. ),
  3000. 'operator_id' => array(
  3001. 'description' => t('TODO: please describe this field!'),
  3002. 'type' => 'int',
  3003. 'not null' => FALSE,
  3004. ),
  3005. 'protocol_id' => array(
  3006. 'description' => t('TODO: please describe this field!'),
  3007. 'type' => 'int',
  3008. 'not null' => FALSE,
  3009. ),
  3010. 'analysis_id' => array(
  3011. 'description' => t('TODO: please describe this field!'),
  3012. 'type' => 'int',
  3013. 'not null' => TRUE,
  3014. ),
  3015. 'quantificationdate' => array(
  3016. 'description' => t('TODO: please describe this field!'),
  3017. 'type' => 'datetime',
  3018. 'not null' => FALSE,
  3019. 'default' => 'ow(',
  3020. ),
  3021. 'name' => array(
  3022. 'description' => t('TODO: please describe this field!'),
  3023. 'type' => 'text',
  3024. 'not null' => FALSE,
  3025. ),
  3026. 'uri' => array(
  3027. 'description' => t('TODO: please describe this field!'),
  3028. 'type' => 'text',
  3029. 'not null' => FALSE,
  3030. ),
  3031. ),
  3032. 'primary key' => array('quantification_id'),
  3033. 'unique keys' => array(
  3034. 'quantification_c1' => array('name', 'analysis_id')
  3035. ),
  3036. 'indexes' => array(
  3037. 'quantification_idx1' => array('acquisition_id'),
  3038. 'quantification_idx2' => array('operator_id'),
  3039. 'quantification_idx3' => array('protocol_id'),
  3040. 'quantification_idx4' => array('analysis_id'),
  3041. ),
  3042. );
  3043. $schema['quantification_relationship'] = array(
  3044. 'description' => t('TODO: please describe this table!'),
  3045. 'fields' => array(
  3046. 'quantification_relationship_id' => array(
  3047. 'description' => t('TODO: please describe this field!'),
  3048. 'type' => 'serial',
  3049. 'not null' => TRUE,
  3050. ),
  3051. 'subject_id' => array(
  3052. 'description' => t('TODO: please describe this field!'),
  3053. 'type' => 'int',
  3054. 'not null' => TRUE,
  3055. ),
  3056. 'type_id' => array(
  3057. 'description' => t('TODO: please describe this field!'),
  3058. 'type' => 'int',
  3059. 'not null' => TRUE,
  3060. ),
  3061. 'object_id' => array(
  3062. 'description' => t('TODO: please describe this field!'),
  3063. 'type' => 'int',
  3064. 'not null' => TRUE,
  3065. ),
  3066. ),
  3067. 'primary key' => array('quantification_relationship_id'),
  3068. 'unique keys' => array(
  3069. 'quantification_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  3070. ),
  3071. 'indexes' => array(
  3072. 'quantification_relationship_idx1' => array('subject_id'),
  3073. 'quantification_relationship_idx2' => array('type_id'),
  3074. 'quantification_relationship_idx3' => array('object_id'),
  3075. ),
  3076. );
  3077. $schema['stock_pub'] = array(
  3078. 'description' => t('TODO: please describe this table!'),
  3079. 'fields' => array(
  3080. 'stock_pub_id' => array(
  3081. 'description' => t('TODO: please describe this field!'),
  3082. 'type' => 'serial',
  3083. 'not null' => TRUE,
  3084. ),
  3085. 'stock_id' => array(
  3086. 'description' => t('TODO: please describe this field!'),
  3087. 'type' => 'int',
  3088. 'not null' => TRUE,
  3089. ),
  3090. 'pub_id' => array(
  3091. 'description' => t('TODO: please describe this field!'),
  3092. 'type' => 'int',
  3093. 'not null' => TRUE,
  3094. ),
  3095. ),
  3096. 'primary key' => array('stock_pub_id'),
  3097. 'unique keys' => array(
  3098. 'stock_pub_c1' => array('stock_id', 'pub_id')
  3099. ),
  3100. 'indexes' => array(
  3101. 'stock_pub_idx1' => array('stock_id'),
  3102. 'stock_pub_idx2' => array('pub_id'),
  3103. ),
  3104. );
  3105. $schema['stock_relationship'] = array(
  3106. 'description' => t('TODO: please describe this table!'),
  3107. 'fields' => array(
  3108. 'stock_relationship_id' => array(
  3109. 'description' => t('TODO: please describe this field!'),
  3110. 'type' => 'serial',
  3111. 'not null' => TRUE,
  3112. ),
  3113. 'subject_id' => array(
  3114. 'description' => t('TODO: please describe this field!'),
  3115. 'type' => 'int',
  3116. 'not null' => TRUE,
  3117. ),
  3118. 'object_id' => array(
  3119. 'description' => t('TODO: please describe this field!'),
  3120. 'type' => 'int',
  3121. 'not null' => TRUE,
  3122. ),
  3123. 'type_id' => array(
  3124. 'description' => t('TODO: please describe this field!'),
  3125. 'type' => 'int',
  3126. 'not null' => TRUE,
  3127. ),
  3128. 'value' => array(
  3129. 'description' => t('TODO: please describe this field!'),
  3130. 'type' => 'text',
  3131. 'not null' => FALSE,
  3132. ),
  3133. 'rank' => array(
  3134. 'description' => t('TODO: please describe this field!'),
  3135. 'type' => 'int',
  3136. 'not null' => TRUE,
  3137. 'default' => 0,
  3138. ),
  3139. ),
  3140. 'primary key' => array('stock_relationship_id'),
  3141. 'unique keys' => array(
  3142. 'stock_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  3143. ),
  3144. 'indexes' => array(
  3145. 'stock_relationship_idx1' => array('subject_id'),
  3146. 'stock_relationship_idx2' => array('object_id'),
  3147. 'stock_relationship_idx3' => array('type_id'),
  3148. ),
  3149. 'foreign keys' => array(
  3150. 'stock' => array(
  3151. 'table' => 'stock',
  3152. 'columns' => array('subject_id' => 'stock_id'),
  3153. ),
  3154. 'cvterm' => array(
  3155. 'table' => 'cvterm',
  3156. 'columns' => array('type_id' => 'cvterm_id'),
  3157. ),
  3158. ),
  3159. );
  3160. $schema['stock_relationship_pub'] = array(
  3161. 'description' => t('TODO: please describe this table!'),
  3162. 'fields' => array(
  3163. 'stock_relationship_pub_id' => array(
  3164. 'description' => t('TODO: please describe this field!'),
  3165. 'type' => 'serial',
  3166. 'not null' => TRUE,
  3167. ),
  3168. 'stock_relationship_id' => array(
  3169. 'description' => t('TODO: please describe this field!'),
  3170. 'type' => 'int',
  3171. 'not null' => TRUE,
  3172. ),
  3173. 'pub_id' => array(
  3174. 'description' => t('TODO: please describe this field!'),
  3175. 'type' => 'int',
  3176. 'not null' => TRUE,
  3177. ),
  3178. ),
  3179. 'primary key' => array('stock_relationship_pub_id'),
  3180. 'unique keys' => array(
  3181. 'stock_relationship_pub_c1' => array('stock_relationship_id', 'pub_id')
  3182. ),
  3183. 'indexes' => array(
  3184. 'stock_relationship_pub_idx1' => array('stock_relationship_id'),
  3185. 'stock_relationship_pub_idx2' => array('pub_id'),
  3186. ),
  3187. );
  3188. $schema['stockcollection'] = array(
  3189. 'description' => t('TODO: please describe this table!'),
  3190. 'fields' => array(
  3191. 'stockcollection_id' => array(
  3192. 'description' => t('TODO: please describe this field!'),
  3193. 'type' => 'serial',
  3194. 'not null' => TRUE,
  3195. ),
  3196. 'type_id' => array(
  3197. 'description' => t('TODO: please describe this field!'),
  3198. 'type' => 'int',
  3199. 'not null' => TRUE,
  3200. ),
  3201. 'contact_id' => array(
  3202. 'description' => t('TODO: please describe this field!'),
  3203. 'type' => 'int',
  3204. 'not null' => FALSE,
  3205. ),
  3206. 'name' => array(
  3207. 'description' => t('TODO: please describe this field!'),
  3208. 'type' => 'varchar',
  3209. 'length' => '255',
  3210. 'not null' => FALSE,
  3211. ),
  3212. 'uniquename' => array(
  3213. 'description' => t('TODO: please describe this field!'),
  3214. 'type' => 'text',
  3215. 'not null' => TRUE,
  3216. ),
  3217. ),
  3218. 'primary key' => array('stockcollection_id'),
  3219. 'unique keys' => array(
  3220. 'stockcollection_c1' => array('uniquename', 'type_id')
  3221. ),
  3222. 'indexes' => array(
  3223. 'stockcollection_idx1' => array('contact_id'),
  3224. 'stockcollection_idx2' => array('type_id'),
  3225. 'stockcollection_idx3' => array('uniquename'),
  3226. 'stockcollection_name_ind1' => array('name'),
  3227. ),
  3228. );
  3229. $schema['stock_genotype'] = array(
  3230. 'description' => t('TODO: please describe this table!'),
  3231. 'fields' => array(
  3232. 'stock_genotype_id' => array(
  3233. 'description' => t('TODO: please describe this field!'),
  3234. 'type' => 'serial',
  3235. 'not null' => TRUE,
  3236. ),
  3237. 'stock_id' => array(
  3238. 'description' => t('TODO: please describe this field!'),
  3239. 'type' => 'int',
  3240. 'not null' => TRUE,
  3241. ),
  3242. 'genotype_id' => array(
  3243. 'description' => t('TODO: please describe this field!'),
  3244. 'type' => 'int',
  3245. 'not null' => TRUE,
  3246. ),
  3247. ),
  3248. 'primary key' => array('stock_genotype_id'),
  3249. 'unique keys' => array(
  3250. 'stock_genotype_c1' => array('stock_id', 'genotype_id')
  3251. ),
  3252. 'indexes' => array(
  3253. 'stock_genotype_idx1' => array('stock_id'),
  3254. 'stock_genotype_idx2' => array('genotype_id'),
  3255. ),
  3256. );
  3257. $schema['stock_dbxref'] = array(
  3258. 'description' => t('TODO: please describe this table!'),
  3259. 'fields' => array(
  3260. 'stock_dbxref_id' => array(
  3261. 'description' => t('TODO: please describe this field!'),
  3262. 'type' => 'serial',
  3263. 'not null' => TRUE,
  3264. ),
  3265. 'stock_id' => array(
  3266. 'description' => t('TODO: please describe this field!'),
  3267. 'type' => 'int',
  3268. 'not null' => TRUE,
  3269. ),
  3270. 'dbxref_id' => array(
  3271. 'description' => t('TODO: please describe this field!'),
  3272. 'type' => 'int',
  3273. 'not null' => TRUE,
  3274. ),
  3275. 'is_current' => array(
  3276. 'description' => t('TODO: please describe this field!'),
  3277. 'type' => 'boolean',
  3278. 'not null' => TRUE,
  3279. 'default' => 'ru',
  3280. ),
  3281. ),
  3282. 'primary key' => array('stock_dbxref_id'),
  3283. 'unique keys' => array(
  3284. 'stock_dbxref_c1' => array('stock_id', 'dbxref_id')
  3285. ),
  3286. 'indexes' => array(
  3287. 'stock_dbxref_idx1' => array('stock_id'),
  3288. 'stock_dbxref_idx2' => array('dbxref_id'),
  3289. ),
  3290. 'foreign keys' => array(
  3291. 'dbxref' => array(
  3292. 'table' => 'dbxref',
  3293. 'columns' => array('dbxref_id' => 'dbxref_id'),
  3294. ),
  3295. 'stock' => array(
  3296. 'table' => 'stock',
  3297. 'columns' => array('stock_id' => 'stock_id'),
  3298. ),
  3299. ),
  3300. );
  3301. $schema['quantificationprop'] = array(
  3302. 'description' => t('TODO: please describe this table!'),
  3303. 'fields' => array(
  3304. 'quantificationprop_id' => array(
  3305. 'description' => t('TODO: please describe this field!'),
  3306. 'type' => 'serial',
  3307. 'not null' => TRUE,
  3308. ),
  3309. 'quantification_id' => array(
  3310. 'description' => t('TODO: please describe this field!'),
  3311. 'type' => 'int',
  3312. 'not null' => TRUE,
  3313. ),
  3314. 'type_id' => array(
  3315. 'description' => t('TODO: please describe this field!'),
  3316. 'type' => 'int',
  3317. 'not null' => TRUE,
  3318. ),
  3319. 'value' => array(
  3320. 'description' => t('TODO: please describe this field!'),
  3321. 'type' => 'text',
  3322. 'not null' => FALSE,
  3323. ),
  3324. 'rank' => array(
  3325. 'description' => t('TODO: please describe this field!'),
  3326. 'type' => 'int',
  3327. 'not null' => TRUE,
  3328. 'default' => 0,
  3329. ),
  3330. ),
  3331. 'primary key' => array('quantificationprop_id'),
  3332. 'unique keys' => array(
  3333. 'quantificationprop_c1' => array('quantification_id', 'type_id', 'rank')
  3334. ),
  3335. 'indexes' => array(
  3336. 'quantificationprop_idx1' => array('quantification_id'),
  3337. 'quantificationprop_idx2' => array('type_id'),
  3338. ),
  3339. );
  3340. $schema['stats_paths_to_root'] = array(
  3341. 'description' => t('TODO: please describe this table!'),
  3342. 'fields' => array(
  3343. 'cvterm_id' => array(
  3344. 'description' => t('TODO: please describe this field!'),
  3345. 'type' => 'int',
  3346. 'not null' => FALSE,
  3347. ),
  3348. 'total_paths' => array(
  3349. 'description' => t('TODO: please describe this field!'),
  3350. 'type' => 'int',
  3351. 'size' => 'big',
  3352. 'not null' => FALSE,
  3353. ),
  3354. 'avg_distance' => array(
  3355. 'description' => t('TODO: please describe this field!'),
  3356. 'type' => 'numeric',
  3357. 'not null' => FALSE,
  3358. 'precision' => 0,
  3359. 'scale' => 0,
  3360. ),
  3361. 'min_distance' => array(
  3362. 'description' => t('TODO: please describe this field!'),
  3363. 'type' => 'int',
  3364. 'not null' => FALSE,
  3365. ),
  3366. 'max_distance' => array(
  3367. 'description' => t('TODO: please describe this field!'),
  3368. 'type' => 'int',
  3369. 'not null' => FALSE,
  3370. ),
  3371. ),
  3372. );
  3373. $schema['stock'] = array(
  3374. 'description' => t('TODO: please describe this table!'),
  3375. 'fields' => array(
  3376. 'stock_id' => array(
  3377. 'description' => t('TODO: please describe this field!'),
  3378. 'type' => 'serial',
  3379. 'not null' => TRUE,
  3380. ),
  3381. 'dbxref_id' => array(
  3382. 'description' => t('TODO: please describe this field!'),
  3383. 'type' => 'int',
  3384. 'not null' => FALSE,
  3385. ),
  3386. 'organism_id' => array(
  3387. 'description' => t('TODO: please describe this field!'),
  3388. 'type' => 'int',
  3389. 'not null' => TRUE,
  3390. ),
  3391. 'name' => array(
  3392. 'description' => t('TODO: please describe this field!'),
  3393. 'type' => 'varchar',
  3394. 'length' => '255',
  3395. 'not null' => FALSE,
  3396. ),
  3397. 'uniquename' => array(
  3398. 'description' => t('TODO: please describe this field!'),
  3399. 'type' => 'text',
  3400. 'not null' => TRUE,
  3401. ),
  3402. 'description' => array(
  3403. 'description' => t('TODO: please describe this field!'),
  3404. 'type' => 'text',
  3405. 'not null' => FALSE,
  3406. ),
  3407. 'type_id' => array(
  3408. 'description' => t('TODO: please describe this field!'),
  3409. 'type' => 'int',
  3410. 'not null' => TRUE,
  3411. ),
  3412. 'is_obsolete' => array(
  3413. 'description' => t('TODO: please describe this field!'),
  3414. 'type' => 'boolean',
  3415. 'not null' => TRUE,
  3416. 'default' => 'als',
  3417. ),
  3418. ),
  3419. 'primary key' => array('stock_id'),
  3420. 'unique keys' => array(
  3421. 'stock_c1' => array('organism_id', 'uniquename', 'type_id')
  3422. ),
  3423. 'indexes' => array(
  3424. 'stock_idx1' => array('dbxref_id'),
  3425. 'stock_idx2' => array('organism_id'),
  3426. 'stock_idx3' => array('type_id'),
  3427. 'stock_idx4' => array('uniquename'),
  3428. 'stock_name_ind1' => array('name'),
  3429. ),
  3430. 'foreign keys' => array(
  3431. 'organism' => array(
  3432. 'table' => 'organism',
  3433. 'columns' => array('organism_id' => 'organism_id'),
  3434. ),
  3435. 'dbxref' => array(
  3436. 'table' => 'dbxref',
  3437. 'columns' => array('dbxref_id' => 'dbxref_id'),
  3438. ),
  3439. 'cvterm' => array(
  3440. 'table' => 'cvterm',
  3441. 'columns' => array('type_id' => 'cvterm_id'),
  3442. ),
  3443. ),
  3444. );
  3445. $schema['stock_cvterm'] = array(
  3446. 'description' => t('TODO: please describe this table!'),
  3447. 'fields' => array(
  3448. 'stock_cvterm_id' => array(
  3449. 'description' => t('TODO: please describe this field!'),
  3450. 'type' => 'serial',
  3451. 'not null' => TRUE,
  3452. ),
  3453. 'stock_id' => array(
  3454. 'description' => t('TODO: please describe this field!'),
  3455. 'type' => 'int',
  3456. 'not null' => TRUE,
  3457. ),
  3458. 'cvterm_id' => array(
  3459. 'description' => t('TODO: please describe this field!'),
  3460. 'type' => 'int',
  3461. 'not null' => TRUE,
  3462. ),
  3463. 'pub_id' => array(
  3464. 'description' => t('TODO: please describe this field!'),
  3465. 'type' => 'int',
  3466. 'not null' => TRUE,
  3467. ),
  3468. ),
  3469. 'primary key' => array('stock_cvterm_id'),
  3470. 'unique keys' => array(
  3471. 'stock_cvterm_c1' => array('stock_id', 'cvterm_id', 'pub_id')
  3472. ),
  3473. 'indexes' => array(
  3474. 'stock_cvterm_idx1' => array('stock_id'),
  3475. 'stock_cvterm_idx2' => array('cvterm_id'),
  3476. 'stock_cvterm_idx3' => array('pub_id'),
  3477. ),
  3478. );
  3479. $schema['feature_synonym'] = array(
  3480. 'description' => t('TODO: please describe this table!'),
  3481. 'fields' => array(
  3482. 'feature_synonym_id' => array(
  3483. 'description' => t('TODO: please describe this field!'),
  3484. 'type' => 'serial',
  3485. 'not null' => TRUE,
  3486. ),
  3487. 'synonym_id' => array(
  3488. 'description' => t('TODO: please describe this field!'),
  3489. 'type' => 'int',
  3490. 'not null' => TRUE,
  3491. ),
  3492. 'feature_id' => array(
  3493. 'description' => t('TODO: please describe this field!'),
  3494. 'type' => 'int',
  3495. 'not null' => TRUE,
  3496. ),
  3497. 'pub_id' => array(
  3498. 'description' => t('TODO: please describe this field!'),
  3499. 'type' => 'int',
  3500. 'not null' => TRUE,
  3501. ),
  3502. 'is_current' => array(
  3503. 'description' => t('TODO: please describe this field!'),
  3504. 'type' => 'boolean',
  3505. 'not null' => TRUE,
  3506. 'default' => 'als',
  3507. ),
  3508. 'is_internal' => array(
  3509. 'description' => t('TODO: please describe this field!'),
  3510. 'type' => 'boolean',
  3511. 'not null' => TRUE,
  3512. 'default' => 'als',
  3513. ),
  3514. ),
  3515. 'primary key' => array('feature_synonym_id'),
  3516. 'unique keys' => array(
  3517. 'feature_synonym_c1' => array('synonym_id', 'feature_id', 'pub_id')
  3518. ),
  3519. 'indexes' => array(
  3520. 'feature_synonym_idx1' => array('synonym_id'),
  3521. 'feature_synonym_idx2' => array('feature_id'),
  3522. 'feature_synonym_idx3' => array('pub_id'),
  3523. ),
  3524. );
  3525. $schema['feature_relationshipprop_pub'] = array(
  3526. 'description' => t('TODO: please describe this table!'),
  3527. 'fields' => array(
  3528. 'feature_relationshipprop_pub_id' => array(
  3529. 'description' => t('TODO: please describe this field!'),
  3530. 'type' => 'serial',
  3531. 'not null' => TRUE,
  3532. ),
  3533. 'feature_relationshipprop_id' => array(
  3534. 'description' => t('TODO: please describe this field!'),
  3535. 'type' => 'int',
  3536. 'not null' => TRUE,
  3537. ),
  3538. 'pub_id' => array(
  3539. 'description' => t('TODO: please describe this field!'),
  3540. 'type' => 'int',
  3541. 'not null' => TRUE,
  3542. ),
  3543. ),
  3544. 'primary key' => array('feature_relationshipprop_pub_id'),
  3545. 'unique keys' => array(
  3546. 'feature_relationshipprop_pub_c1' => array('feature_relationshipprop_id', 'pub_id')
  3547. ),
  3548. 'indexes' => array(
  3549. 'feature_relationshipprop_pub_idx1' => array('feature_relationshipprop_id'),
  3550. 'feature_relationshipprop_pub_idx2' => array('pub_id'),
  3551. ),
  3552. );
  3553. $schema['cell_line_relationship'] = array(
  3554. 'description' => t('TODO: please describe this table!'),
  3555. 'fields' => array(
  3556. 'cell_line_relationship_id' => array(
  3557. 'description' => t('TODO: please describe this field!'),
  3558. 'type' => 'serial',
  3559. 'not null' => TRUE,
  3560. ),
  3561. 'subject_id' => array(
  3562. 'description' => t('TODO: please describe this field!'),
  3563. 'type' => 'int',
  3564. 'not null' => TRUE,
  3565. ),
  3566. 'object_id' => array(
  3567. 'description' => t('TODO: please describe this field!'),
  3568. 'type' => 'int',
  3569. 'not null' => TRUE,
  3570. ),
  3571. 'type_id' => array(
  3572. 'description' => t('TODO: please describe this field!'),
  3573. 'type' => 'int',
  3574. 'not null' => TRUE,
  3575. ),
  3576. ),
  3577. 'primary key' => array('cell_line_relationship_id'),
  3578. 'unique keys' => array(
  3579. 'cell_line_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  3580. ),
  3581. );
  3582. $schema['cell_line_pub'] = array(
  3583. 'description' => t('TODO: please describe this table!'),
  3584. 'fields' => array(
  3585. 'cell_line_pub_id' => array(
  3586. 'description' => t('TODO: please describe this field!'),
  3587. 'type' => 'serial',
  3588. 'not null' => TRUE,
  3589. ),
  3590. 'cell_line_id' => array(
  3591. 'description' => t('TODO: please describe this field!'),
  3592. 'type' => 'int',
  3593. 'not null' => TRUE,
  3594. ),
  3595. 'pub_id' => array(
  3596. 'description' => t('TODO: please describe this field!'),
  3597. 'type' => 'int',
  3598. 'not null' => TRUE,
  3599. ),
  3600. ),
  3601. 'primary key' => array('cell_line_pub_id'),
  3602. 'unique keys' => array(
  3603. 'cell_line_pub_c1' => array('cell_line_id', 'pub_id')
  3604. ),
  3605. );
  3606. $schema['cell_line_synonym'] = array(
  3607. 'description' => t('TODO: please describe this table!'),
  3608. 'fields' => array(
  3609. 'cell_line_synonym_id' => array(
  3610. 'description' => t('TODO: please describe this field!'),
  3611. 'type' => 'serial',
  3612. 'not null' => TRUE,
  3613. ),
  3614. 'cell_line_id' => array(
  3615. 'description' => t('TODO: please describe this field!'),
  3616. 'type' => 'int',
  3617. 'not null' => TRUE,
  3618. ),
  3619. 'synonym_id' => array(
  3620. 'description' => t('TODO: please describe this field!'),
  3621. 'type' => 'int',
  3622. 'not null' => TRUE,
  3623. ),
  3624. 'pub_id' => array(
  3625. 'description' => t('TODO: please describe this field!'),
  3626. 'type' => 'int',
  3627. 'not null' => TRUE,
  3628. ),
  3629. 'is_current' => array(
  3630. 'description' => t('TODO: please describe this field!'),
  3631. 'type' => 'boolean',
  3632. 'not null' => TRUE,
  3633. 'default' => 'als',
  3634. ),
  3635. 'is_internal' => array(
  3636. 'description' => t('TODO: please describe this field!'),
  3637. 'type' => 'boolean',
  3638. 'not null' => TRUE,
  3639. 'default' => 'als',
  3640. ),
  3641. ),
  3642. 'primary key' => array('cell_line_synonym_id'),
  3643. 'unique keys' => array(
  3644. 'cell_line_synonym_c1' => array('synonym_id', 'cell_line_id', 'pub_id')
  3645. ),
  3646. );
  3647. $schema['cell_lineprop'] = array(
  3648. 'description' => t('TODO: please describe this table!'),
  3649. 'fields' => array(
  3650. 'cell_lineprop_id' => array(
  3651. 'description' => t('TODO: please describe this field!'),
  3652. 'type' => 'serial',
  3653. 'not null' => TRUE,
  3654. ),
  3655. 'cell_line_id' => array(
  3656. 'description' => t('TODO: please describe this field!'),
  3657. 'type' => 'int',
  3658. 'not null' => TRUE,
  3659. ),
  3660. 'type_id' => array(
  3661. 'description' => t('TODO: please describe this field!'),
  3662. 'type' => 'int',
  3663. 'not null' => TRUE,
  3664. ),
  3665. 'value' => array(
  3666. 'description' => t('TODO: please describe this field!'),
  3667. 'type' => 'text',
  3668. 'not null' => FALSE,
  3669. ),
  3670. 'rank' => array(
  3671. 'description' => t('TODO: please describe this field!'),
  3672. 'type' => 'int',
  3673. 'not null' => TRUE,
  3674. 'default' => 0,
  3675. ),
  3676. ),
  3677. 'primary key' => array('cell_lineprop_id'),
  3678. 'unique keys' => array(
  3679. 'cell_lineprop_c1' => array('cell_line_id', 'type_id', 'rank')
  3680. ),
  3681. );
  3682. $schema['cell_lineprop_pub'] = array(
  3683. 'description' => t('TODO: please describe this table!'),
  3684. 'fields' => array(
  3685. 'cell_lineprop_pub_id' => array(
  3686. 'description' => t('TODO: please describe this field!'),
  3687. 'type' => 'serial',
  3688. 'not null' => TRUE,
  3689. ),
  3690. 'cell_lineprop_id' => array(
  3691. 'description' => t('TODO: please describe this field!'),
  3692. 'type' => 'int',
  3693. 'not null' => TRUE,
  3694. ),
  3695. 'pub_id' => array(
  3696. 'description' => t('TODO: please describe this field!'),
  3697. 'type' => 'int',
  3698. 'not null' => TRUE,
  3699. ),
  3700. ),
  3701. 'primary key' => array('cell_lineprop_pub_id'),
  3702. 'unique keys' => array(
  3703. 'cell_lineprop_pub_c1' => array('cell_lineprop_id', 'pub_id')
  3704. ),
  3705. );
  3706. $schema['cell_line_library'] = array(
  3707. 'description' => t('TODO: please describe this table!'),
  3708. 'fields' => array(
  3709. 'cell_line_library_id' => array(
  3710. 'description' => t('TODO: please describe this field!'),
  3711. 'type' => 'serial',
  3712. 'not null' => TRUE,
  3713. ),
  3714. 'cell_line_id' => array(
  3715. 'description' => t('TODO: please describe this field!'),
  3716. 'type' => 'int',
  3717. 'not null' => TRUE,
  3718. ),
  3719. 'library_id' => array(
  3720. 'description' => t('TODO: please describe this field!'),
  3721. 'type' => 'int',
  3722. 'not null' => TRUE,
  3723. ),
  3724. 'pub_id' => array(
  3725. 'description' => t('TODO: please describe this field!'),
  3726. 'type' => 'int',
  3727. 'not null' => TRUE,
  3728. ),
  3729. ),
  3730. 'primary key' => array('cell_line_library_id'),
  3731. 'unique keys' => array(
  3732. 'cell_line_library_c1' => array('cell_line_id', 'library_id', 'pub_id')
  3733. ),
  3734. );
  3735. $schema['cell_line_feature'] = array(
  3736. 'description' => t('TODO: please describe this table!'),
  3737. 'fields' => array(
  3738. 'cell_line_feature_id' => array(
  3739. 'description' => t('TODO: please describe this field!'),
  3740. 'type' => 'serial',
  3741. 'not null' => TRUE,
  3742. ),
  3743. 'cell_line_id' => array(
  3744. 'description' => t('TODO: please describe this field!'),
  3745. 'type' => 'int',
  3746. 'not null' => TRUE,
  3747. ),
  3748. 'feature_id' => array(
  3749. 'description' => t('TODO: please describe this field!'),
  3750. 'type' => 'int',
  3751. 'not null' => TRUE,
  3752. ),
  3753. 'pub_id' => array(
  3754. 'description' => t('TODO: please describe this field!'),
  3755. 'type' => 'int',
  3756. 'not null' => TRUE,
  3757. ),
  3758. ),
  3759. 'primary key' => array('cell_line_feature_id'),
  3760. 'unique keys' => array(
  3761. 'cell_line_feature_c1' => array('cell_line_id', 'feature_id', 'pub_id')
  3762. ),
  3763. );
  3764. $schema['cell_line'] = array(
  3765. 'description' => t('TODO: please describe this table!'),
  3766. 'fields' => array(
  3767. 'cell_line_id' => array(
  3768. 'description' => t('TODO: please describe this field!'),
  3769. 'type' => 'serial',
  3770. 'not null' => TRUE,
  3771. ),
  3772. 'name' => array(
  3773. 'description' => t('TODO: please describe this field!'),
  3774. 'type' => 'varchar',
  3775. 'length' => '255',
  3776. 'not null' => FALSE,
  3777. ),
  3778. 'uniquename' => array(
  3779. 'description' => t('TODO: please describe this field!'),
  3780. 'type' => 'varchar',
  3781. 'length' => '255',
  3782. 'not null' => TRUE,
  3783. ),
  3784. 'organism_id' => array(
  3785. 'description' => t('TODO: please describe this field!'),
  3786. 'type' => 'int',
  3787. 'not null' => TRUE,
  3788. ),
  3789. 'timeaccessioned' => array(
  3790. 'description' => t('TODO: please describe this field!'),
  3791. 'type' => 'datetime',
  3792. 'not null' => TRUE,
  3793. 'default' => 'ow(',
  3794. ),
  3795. 'timelastmodified' => array(
  3796. 'description' => t('TODO: please describe this field!'),
  3797. 'type' => 'datetime',
  3798. 'not null' => TRUE,
  3799. 'default' => 'ow(',
  3800. ),
  3801. ),
  3802. 'primary key' => array('cell_line_id'),
  3803. 'unique keys' => array(
  3804. 'cell_line_c1' => array('uniquename', 'organism_id')
  3805. ),
  3806. );
  3807. $schema['cell_line_cvterm'] = array(
  3808. 'description' => t('TODO: please describe this table!'),
  3809. 'fields' => array(
  3810. 'cell_line_cvterm_id' => array(
  3811. 'description' => t('TODO: please describe this field!'),
  3812. 'type' => 'serial',
  3813. 'not null' => TRUE,
  3814. ),
  3815. 'cell_line_id' => array(
  3816. 'description' => t('TODO: please describe this field!'),
  3817. 'type' => 'int',
  3818. 'not null' => TRUE,
  3819. ),
  3820. 'cvterm_id' => array(
  3821. 'description' => t('TODO: please describe this field!'),
  3822. 'type' => 'int',
  3823. 'not null' => TRUE,
  3824. ),
  3825. 'pub_id' => array(
  3826. 'description' => t('TODO: please describe this field!'),
  3827. 'type' => 'int',
  3828. 'not null' => TRUE,
  3829. ),
  3830. 'rank' => array(
  3831. 'description' => t('TODO: please describe this field!'),
  3832. 'type' => 'int',
  3833. 'not null' => TRUE,
  3834. 'default' => 0,
  3835. ),
  3836. ),
  3837. 'primary key' => array('cell_line_cvterm_id'),
  3838. 'unique keys' => array(
  3839. 'cell_line_cvterm_c1' => array('cell_line_id', 'cvterm_id', 'pub_id', 'rank')
  3840. ),
  3841. );
  3842. $schema['cell_line_cvtermprop'] = array(
  3843. 'description' => t('TODO: please describe this table!'),
  3844. 'fields' => array(
  3845. 'cell_line_cvtermprop_id' => array(
  3846. 'description' => t('TODO: please describe this field!'),
  3847. 'type' => 'serial',
  3848. 'not null' => TRUE,
  3849. ),
  3850. 'cell_line_cvterm_id' => array(
  3851. 'description' => t('TODO: please describe this field!'),
  3852. 'type' => 'int',
  3853. 'not null' => TRUE,
  3854. ),
  3855. 'type_id' => array(
  3856. 'description' => t('TODO: please describe this field!'),
  3857. 'type' => 'int',
  3858. 'not null' => TRUE,
  3859. ),
  3860. 'value' => array(
  3861. 'description' => t('TODO: please describe this field!'),
  3862. 'type' => 'text',
  3863. 'not null' => FALSE,
  3864. ),
  3865. 'rank' => array(
  3866. 'description' => t('TODO: please describe this field!'),
  3867. 'type' => 'int',
  3868. 'not null' => TRUE,
  3869. 'default' => 0,
  3870. ),
  3871. ),
  3872. 'primary key' => array('cell_line_cvtermprop_id'),
  3873. 'unique keys' => array(
  3874. 'cell_line_cvtermprop_c1' => array('cell_line_cvterm_id', 'type_id', 'rank')
  3875. ),
  3876. );
  3877. $schema['cell_line_dbxref'] = array(
  3878. 'description' => t('TODO: please describe this table!'),
  3879. 'fields' => array(
  3880. 'cell_line_dbxref_id' => array(
  3881. 'description' => t('TODO: please describe this field!'),
  3882. 'type' => 'serial',
  3883. 'not null' => TRUE,
  3884. ),
  3885. 'cell_line_id' => array(
  3886. 'description' => t('TODO: please describe this field!'),
  3887. 'type' => 'int',
  3888. 'not null' => TRUE,
  3889. ),
  3890. 'dbxref_id' => array(
  3891. 'description' => t('TODO: please describe this field!'),
  3892. 'type' => 'int',
  3893. 'not null' => TRUE,
  3894. ),
  3895. 'is_current' => array(
  3896. 'description' => t('TODO: please describe this field!'),
  3897. 'type' => 'boolean',
  3898. 'not null' => TRUE,
  3899. 'default' => 'ru',
  3900. ),
  3901. ),
  3902. 'primary key' => array('cell_line_dbxref_id'),
  3903. 'unique keys' => array(
  3904. 'cell_line_dbxref_c1' => array('cell_line_id', 'dbxref_id')
  3905. ),
  3906. );
  3907. $schema['channel'] = array(
  3908. 'description' => t('TODO: please describe this table!'),
  3909. 'fields' => array(
  3910. 'channel_id' => array(
  3911. 'description' => t('TODO: please describe this field!'),
  3912. 'type' => 'serial',
  3913. 'not null' => TRUE,
  3914. ),
  3915. 'name' => array(
  3916. 'description' => t('TODO: please describe this field!'),
  3917. 'type' => 'text',
  3918. 'not null' => TRUE,
  3919. ),
  3920. 'definition' => array(
  3921. 'description' => t('TODO: please describe this field!'),
  3922. 'type' => 'text',
  3923. 'not null' => TRUE,
  3924. ),
  3925. ),
  3926. 'primary key' => array('channel_id'),
  3927. 'unique keys' => array(
  3928. 'channel_c1' => array('name')
  3929. ),
  3930. );
  3931. $schema['common_ancestor_cvterm'] = array(
  3932. 'description' => t('TODO: please describe this table!'),
  3933. 'fields' => array(
  3934. 'cvterm1_id' => array(
  3935. 'description' => t('TODO: please describe this field!'),
  3936. 'type' => 'int',
  3937. 'not null' => FALSE,
  3938. ),
  3939. 'cvterm2_id' => array(
  3940. 'description' => t('TODO: please describe this field!'),
  3941. 'type' => 'int',
  3942. 'not null' => FALSE,
  3943. ),
  3944. 'ancestor_cvterm_id' => array(
  3945. 'description' => t('TODO: please describe this field!'),
  3946. 'type' => 'int',
  3947. 'not null' => FALSE,
  3948. ),
  3949. 'pathdistance1' => array(
  3950. 'description' => t('TODO: please describe this field!'),
  3951. 'type' => 'int',
  3952. 'not null' => FALSE,
  3953. ),
  3954. 'pathdistance2' => array(
  3955. 'description' => t('TODO: please describe this field!'),
  3956. 'type' => 'int',
  3957. 'not null' => FALSE,
  3958. ),
  3959. 'total_pathdistance' => array(
  3960. 'description' => t('TODO: please describe this field!'),
  3961. 'type' => 'int',
  3962. 'not null' => FALSE,
  3963. ),
  3964. ),
  3965. );
  3966. $schema['cv_cvterm_count_with_obs'] = array(
  3967. 'description' => t('TODO: please describe this table!'),
  3968. 'fields' => array(
  3969. 'name' => array(
  3970. 'description' => t('TODO: please describe this field!'),
  3971. 'type' => 'varchar',
  3972. 'length' => '255',
  3973. 'not null' => FALSE,
  3974. ),
  3975. 'num_terms_incl_obs' => array(
  3976. 'description' => t('TODO: please describe this field!'),
  3977. 'type' => 'int',
  3978. 'size' => 'big',
  3979. 'not null' => FALSE,
  3980. ),
  3981. ),
  3982. );
  3983. $schema['cv_leaf'] = array(
  3984. 'description' => t('TODO: please describe this table!'),
  3985. 'fields' => array(
  3986. 'cv_id' => array(
  3987. 'description' => t('TODO: please describe this field!'),
  3988. 'type' => 'int',
  3989. 'not null' => FALSE,
  3990. ),
  3991. 'cvterm_id' => array(
  3992. 'description' => t('TODO: please describe this field!'),
  3993. 'type' => 'int',
  3994. 'not null' => FALSE,
  3995. ),
  3996. ),
  3997. );
  3998. $schema['cv_link_count'] = array(
  3999. 'description' => t('TODO: please describe this table!'),
  4000. 'fields' => array(
  4001. 'cv_name' => array(
  4002. 'description' => t('TODO: please describe this field!'),
  4003. 'type' => 'varchar',
  4004. 'length' => '255',
  4005. 'not null' => FALSE,
  4006. ),
  4007. 'relation_name' => array(
  4008. 'description' => t('TODO: please describe this field!'),
  4009. 'type' => 'varchar',
  4010. 'length' => '1024',
  4011. 'not null' => FALSE,
  4012. ),
  4013. 'relation_cv_name' => array(
  4014. 'description' => t('TODO: please describe this field!'),
  4015. 'type' => 'varchar',
  4016. 'length' => '255',
  4017. 'not null' => FALSE,
  4018. ),
  4019. 'num_links' => array(
  4020. 'description' => t('TODO: please describe this field!'),
  4021. 'type' => 'int',
  4022. 'size' => 'big',
  4023. 'not null' => FALSE,
  4024. ),
  4025. ),
  4026. );
  4027. $schema['cv_path_count'] = array(
  4028. 'description' => t('TODO: please describe this table!'),
  4029. 'fields' => array(
  4030. 'cv_name' => array(
  4031. 'description' => t('TODO: please describe this field!'),
  4032. 'type' => 'varchar',
  4033. 'length' => '255',
  4034. 'not null' => FALSE,
  4035. ),
  4036. 'relation_name' => array(
  4037. 'description' => t('TODO: please describe this field!'),
  4038. 'type' => 'varchar',
  4039. 'length' => '1024',
  4040. 'not null' => FALSE,
  4041. ),
  4042. 'relation_cv_name' => array(
  4043. 'description' => t('TODO: please describe this field!'),
  4044. 'type' => 'varchar',
  4045. 'length' => '255',
  4046. 'not null' => FALSE,
  4047. ),
  4048. 'num_paths' => array(
  4049. 'description' => t('TODO: please describe this field!'),
  4050. 'type' => 'int',
  4051. 'size' => 'big',
  4052. 'not null' => FALSE,
  4053. ),
  4054. ),
  4055. );
  4056. $schema['cv_cvterm_count'] = array(
  4057. 'description' => t('TODO: please describe this table!'),
  4058. 'fields' => array(
  4059. 'name' => array(
  4060. 'description' => t('TODO: please describe this field!'),
  4061. 'type' => 'varchar',
  4062. 'length' => '255',
  4063. 'not null' => FALSE,
  4064. ),
  4065. 'num_terms_excl_obs' => array(
  4066. 'description' => t('TODO: please describe this field!'),
  4067. 'type' => 'int',
  4068. 'size' => 'big',
  4069. 'not null' => FALSE,
  4070. ),
  4071. ),
  4072. );
  4073. $schema['cv'] = array(
  4074. 'description' => t('TODO: please describe this table!'),
  4075. 'fields' => array(
  4076. 'cv_id' => array(
  4077. 'description' => t('TODO: please describe this field!'),
  4078. 'type' => 'serial',
  4079. 'not null' => TRUE,
  4080. ),
  4081. 'name' => array(
  4082. 'description' => t('TODO: please describe this field!'),
  4083. 'type' => 'varchar',
  4084. 'length' => '255',
  4085. 'not null' => TRUE,
  4086. ),
  4087. 'definition' => array(
  4088. 'description' => t('TODO: please describe this field!'),
  4089. 'type' => 'text',
  4090. 'not null' => FALSE,
  4091. ),
  4092. ),
  4093. 'primary key' => array('cv_id'),
  4094. 'unique keys' => array(
  4095. 'cv_c1' => array('name')
  4096. ),
  4097. );
  4098. $schema['common_descendant_cvterm'] = array(
  4099. 'description' => t('TODO: please describe this table!'),
  4100. 'fields' => array(
  4101. 'cvterm1_id' => array(
  4102. 'description' => t('TODO: please describe this field!'),
  4103. 'type' => 'int',
  4104. 'not null' => FALSE,
  4105. ),
  4106. 'cvterm2_id' => array(
  4107. 'description' => t('TODO: please describe this field!'),
  4108. 'type' => 'int',
  4109. 'not null' => FALSE,
  4110. ),
  4111. 'ancestor_cvterm_id' => array(
  4112. 'description' => t('TODO: please describe this field!'),
  4113. 'type' => 'int',
  4114. 'not null' => FALSE,
  4115. ),
  4116. 'pathdistance1' => array(
  4117. 'description' => t('TODO: please describe this field!'),
  4118. 'type' => 'int',
  4119. 'not null' => FALSE,
  4120. ),
  4121. 'pathdistance2' => array(
  4122. 'description' => t('TODO: please describe this field!'),
  4123. 'type' => 'int',
  4124. 'not null' => FALSE,
  4125. ),
  4126. 'total_pathdistance' => array(
  4127. 'description' => t('TODO: please describe this field!'),
  4128. 'type' => 'int',
  4129. 'not null' => FALSE,
  4130. ),
  4131. ),
  4132. );
  4133. $schema['contact'] = array(
  4134. 'description' => t('TODO: please describe this table!'),
  4135. 'fields' => array(
  4136. 'contact_id' => array(
  4137. 'description' => t('TODO: please describe this field!'),
  4138. 'type' => 'serial',
  4139. 'not null' => TRUE,
  4140. ),
  4141. 'type_id' => array(
  4142. 'description' => t('TODO: please describe this field!'),
  4143. 'type' => 'int',
  4144. 'not null' => FALSE,
  4145. ),
  4146. 'name' => array(
  4147. 'description' => t('TODO: please describe this field!'),
  4148. 'type' => 'varchar',
  4149. 'length' => '255',
  4150. 'not null' => TRUE,
  4151. ),
  4152. 'description' => array(
  4153. 'description' => t('TODO: please describe this field!'),
  4154. 'type' => 'varchar',
  4155. 'length' => '255',
  4156. 'not null' => FALSE,
  4157. ),
  4158. ),
  4159. 'primary key' => array('contact_id'),
  4160. 'unique keys' => array(
  4161. 'contact_c1' => array('name')
  4162. ),
  4163. );
  4164. $schema['contact_relationship'] = array(
  4165. 'description' => t('TODO: please describe this table!'),
  4166. 'fields' => array(
  4167. 'contact_relationship_id' => array(
  4168. 'description' => t('TODO: please describe this field!'),
  4169. 'type' => 'serial',
  4170. 'not null' => TRUE,
  4171. ),
  4172. 'type_id' => array(
  4173. 'description' => t('TODO: please describe this field!'),
  4174. 'type' => 'int',
  4175. 'not null' => TRUE,
  4176. ),
  4177. 'subject_id' => array(
  4178. 'description' => t('TODO: please describe this field!'),
  4179. 'type' => 'int',
  4180. 'not null' => TRUE,
  4181. ),
  4182. 'object_id' => array(
  4183. 'description' => t('TODO: please describe this field!'),
  4184. 'type' => 'int',
  4185. 'not null' => TRUE,
  4186. ),
  4187. ),
  4188. 'primary key' => array('contact_relationship_id'),
  4189. 'unique keys' => array(
  4190. 'contact_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  4191. ),
  4192. 'indexes' => array(
  4193. 'contact_relationship_idx1' => array('type_id'),
  4194. 'contact_relationship_idx2' => array('subject_id'),
  4195. 'contact_relationship_idx3' => array('object_id'),
  4196. ),
  4197. );
  4198. $schema['control'] = array(
  4199. 'description' => t('TODO: please describe this table!'),
  4200. 'fields' => array(
  4201. 'control_id' => array(
  4202. 'description' => t('TODO: please describe this field!'),
  4203. 'type' => 'serial',
  4204. 'not null' => TRUE,
  4205. ),
  4206. 'type_id' => array(
  4207. 'description' => t('TODO: please describe this field!'),
  4208. 'type' => 'int',
  4209. 'not null' => TRUE,
  4210. ),
  4211. 'assay_id' => array(
  4212. 'description' => t('TODO: please describe this field!'),
  4213. 'type' => 'int',
  4214. 'not null' => TRUE,
  4215. ),
  4216. 'tableinfo_id' => array(
  4217. 'description' => t('TODO: please describe this field!'),
  4218. 'type' => 'int',
  4219. 'not null' => TRUE,
  4220. ),
  4221. 'row_id' => array(
  4222. 'description' => t('TODO: please describe this field!'),
  4223. 'type' => 'int',
  4224. 'not null' => TRUE,
  4225. ),
  4226. 'name' => array(
  4227. 'description' => t('TODO: please describe this field!'),
  4228. 'type' => 'text',
  4229. 'not null' => FALSE,
  4230. ),
  4231. 'value' => array(
  4232. 'description' => t('TODO: please describe this field!'),
  4233. 'type' => 'text',
  4234. 'not null' => FALSE,
  4235. ),
  4236. 'rank' => array(
  4237. 'description' => t('TODO: please describe this field!'),
  4238. 'type' => 'int',
  4239. 'not null' => TRUE,
  4240. 'default' => 0,
  4241. ),
  4242. ),
  4243. 'primary key' => array('control_id'),
  4244. 'indexes' => array(
  4245. 'control_idx1' => array('type_id'),
  4246. 'control_idx2' => array('assay_id'),
  4247. 'control_idx3' => array('tableinfo_id'),
  4248. 'control_idx4' => array('row_id'),
  4249. ),
  4250. );
  4251. $schema['biomaterialprop'] = array(
  4252. 'description' => t('TODO: please describe this table!'),
  4253. 'fields' => array(
  4254. 'biomaterialprop_id' => array(
  4255. 'description' => t('TODO: please describe this field!'),
  4256. 'type' => 'serial',
  4257. 'not null' => TRUE,
  4258. ),
  4259. 'biomaterial_id' => array(
  4260. 'description' => t('TODO: please describe this field!'),
  4261. 'type' => 'int',
  4262. 'not null' => TRUE,
  4263. ),
  4264. 'type_id' => array(
  4265. 'description' => t('TODO: please describe this field!'),
  4266. 'type' => 'int',
  4267. 'not null' => TRUE,
  4268. ),
  4269. 'value' => array(
  4270. 'description' => t('TODO: please describe this field!'),
  4271. 'type' => 'text',
  4272. 'not null' => FALSE,
  4273. ),
  4274. 'rank' => array(
  4275. 'description' => t('TODO: please describe this field!'),
  4276. 'type' => 'int',
  4277. 'not null' => TRUE,
  4278. 'default' => 0,
  4279. ),
  4280. ),
  4281. 'primary key' => array('biomaterialprop_id'),
  4282. 'unique keys' => array(
  4283. 'biomaterialprop_c1' => array('biomaterial_id', 'type_id', 'rank')
  4284. ),
  4285. 'indexes' => array(
  4286. 'biomaterialprop_idx1' => array('biomaterial_id'),
  4287. 'biomaterialprop_idx2' => array('type_id'),
  4288. ),
  4289. );
  4290. $schema['biomaterial_treatment'] = array(
  4291. 'description' => t('TODO: please describe this table!'),
  4292. 'fields' => array(
  4293. 'biomaterial_treatment_id' => array(
  4294. 'description' => t('TODO: please describe this field!'),
  4295. 'type' => 'serial',
  4296. 'not null' => TRUE,
  4297. ),
  4298. 'biomaterial_id' => array(
  4299. 'description' => t('TODO: please describe this field!'),
  4300. 'type' => 'int',
  4301. 'not null' => TRUE,
  4302. ),
  4303. 'treatment_id' => array(
  4304. 'description' => t('TODO: please describe this field!'),
  4305. 'type' => 'int',
  4306. 'not null' => TRUE,
  4307. ),
  4308. 'unittype_id' => array(
  4309. 'description' => t('TODO: please describe this field!'),
  4310. 'type' => 'int',
  4311. 'not null' => FALSE,
  4312. ),
  4313. 'value' => array(
  4314. 'description' => t('TODO: please describe this field!'),
  4315. 'type' => 'float',
  4316. 'not null' => FALSE,
  4317. ),
  4318. 'rank' => array(
  4319. 'description' => t('TODO: please describe this field!'),
  4320. 'type' => 'int',
  4321. 'not null' => TRUE,
  4322. 'default' => 0,
  4323. ),
  4324. ),
  4325. 'primary key' => array('biomaterial_treatment_id'),
  4326. 'unique keys' => array(
  4327. 'biomaterial_treatment_c1' => array('biomaterial_id', 'treatment_id')
  4328. ),
  4329. 'indexes' => array(
  4330. 'biomaterial_treatment_idx1' => array('biomaterial_id'),
  4331. 'biomaterial_treatment_idx2' => array('treatment_id'),
  4332. 'biomaterial_treatment_idx3' => array('unittype_id'),
  4333. ),
  4334. );
  4335. $schema['acquisition_relationship'] = array(
  4336. 'description' => t('TODO: please describe this table!'),
  4337. 'fields' => array(
  4338. 'acquisition_relationship_id' => array(
  4339. 'description' => t('TODO: please describe this field!'),
  4340. 'type' => 'serial',
  4341. 'not null' => TRUE,
  4342. ),
  4343. 'subject_id' => array(
  4344. 'description' => t('TODO: please describe this field!'),
  4345. 'type' => 'int',
  4346. 'not null' => TRUE,
  4347. ),
  4348. 'type_id' => array(
  4349. 'description' => t('TODO: please describe this field!'),
  4350. 'type' => 'int',
  4351. 'not null' => TRUE,
  4352. ),
  4353. 'object_id' => array(
  4354. 'description' => t('TODO: please describe this field!'),
  4355. 'type' => 'int',
  4356. 'not null' => TRUE,
  4357. ),
  4358. 'value' => array(
  4359. 'description' => t('TODO: please describe this field!'),
  4360. 'type' => 'text',
  4361. 'not null' => FALSE,
  4362. ),
  4363. 'rank' => array(
  4364. 'description' => t('TODO: please describe this field!'),
  4365. 'type' => 'int',
  4366. 'not null' => TRUE,
  4367. 'default' => 0,
  4368. ),
  4369. ),
  4370. 'primary key' => array('acquisition_relationship_id'),
  4371. 'unique keys' => array(
  4372. 'acquisition_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  4373. ),
  4374. 'indexes' => array(
  4375. 'acquisition_relationship_idx1' => array('subject_id'),
  4376. 'acquisition_relationship_idx2' => array('type_id'),
  4377. 'acquisition_relationship_idx3' => array('object_id'),
  4378. ),
  4379. );
  4380. $schema['acquisition'] = array(
  4381. 'description' => t('TODO: please describe this table!'),
  4382. 'fields' => array(
  4383. 'acquisition_id' => array(
  4384. 'description' => t('TODO: please describe this field!'),
  4385. 'type' => 'serial',
  4386. 'not null' => TRUE,
  4387. ),
  4388. 'assay_id' => array(
  4389. 'description' => t('TODO: please describe this field!'),
  4390. 'type' => 'int',
  4391. 'not null' => TRUE,
  4392. ),
  4393. 'protocol_id' => array(
  4394. 'description' => t('TODO: please describe this field!'),
  4395. 'type' => 'int',
  4396. 'not null' => FALSE,
  4397. ),
  4398. 'channel_id' => array(
  4399. 'description' => t('TODO: please describe this field!'),
  4400. 'type' => 'int',
  4401. 'not null' => FALSE,
  4402. ),
  4403. 'acquisitiondate' => array(
  4404. 'description' => t('TODO: please describe this field!'),
  4405. 'type' => 'datetime',
  4406. 'not null' => FALSE,
  4407. 'default' => 'ow(',
  4408. ),
  4409. 'name' => array(
  4410. 'description' => t('TODO: please describe this field!'),
  4411. 'type' => 'text',
  4412. 'not null' => FALSE,
  4413. ),
  4414. 'uri' => array(
  4415. 'description' => t('TODO: please describe this field!'),
  4416. 'type' => 'text',
  4417. 'not null' => FALSE,
  4418. ),
  4419. ),
  4420. 'primary key' => array('acquisition_id'),
  4421. 'unique keys' => array(
  4422. 'acquisition_c1' => array('name')
  4423. ),
  4424. 'indexes' => array(
  4425. 'acquisition_idx1' => array('assay_id'),
  4426. 'acquisition_idx2' => array('protocol_id'),
  4427. 'acquisition_idx3' => array('channel_id'),
  4428. ),
  4429. );
  4430. $schema['acquisitionprop'] = array(
  4431. 'description' => t('TODO: please describe this table!'),
  4432. 'fields' => array(
  4433. 'acquisitionprop_id' => array(
  4434. 'description' => t('TODO: please describe this field!'),
  4435. 'type' => 'serial',
  4436. 'not null' => TRUE,
  4437. ),
  4438. 'acquisition_id' => array(
  4439. 'description' => t('TODO: please describe this field!'),
  4440. 'type' => 'int',
  4441. 'not null' => TRUE,
  4442. ),
  4443. 'type_id' => array(
  4444. 'description' => t('TODO: please describe this field!'),
  4445. 'type' => 'int',
  4446. 'not null' => TRUE,
  4447. ),
  4448. 'value' => array(
  4449. 'description' => t('TODO: please describe this field!'),
  4450. 'type' => 'text',
  4451. 'not null' => FALSE,
  4452. ),
  4453. 'rank' => array(
  4454. 'description' => t('TODO: please describe this field!'),
  4455. 'type' => 'int',
  4456. 'not null' => TRUE,
  4457. 'default' => 0,
  4458. ),
  4459. ),
  4460. 'primary key' => array('acquisitionprop_id'),
  4461. 'unique keys' => array(
  4462. 'acquisitionprop_c1' => array('acquisition_id', 'type_id', 'rank')
  4463. ),
  4464. 'indexes' => array(
  4465. 'acquisitionprop_idx1' => array('acquisition_id'),
  4466. 'acquisitionprop_idx2' => array('type_id'),
  4467. ),
  4468. );
  4469. $schema['all_feature_names'] = array(
  4470. 'description' => t('TODO: please describe this table!'),
  4471. 'fields' => array(
  4472. 'feature_id' => array(
  4473. 'description' => t('TODO: please describe this field!'),
  4474. 'type' => 'int',
  4475. 'not null' => FALSE,
  4476. ),
  4477. 'name' => array(
  4478. 'description' => t('TODO: please describe this field!'),
  4479. 'type' => 'varchar',
  4480. 'length' => '255',
  4481. 'not null' => FALSE,
  4482. ),
  4483. 'organism_id' => array(
  4484. 'description' => t('TODO: please describe this field!'),
  4485. 'type' => 'int',
  4486. 'not null' => FALSE,
  4487. ),
  4488. ),
  4489. );
  4490. $schema['analysis'] = array(
  4491. 'description' => t('TODO: please describe this table!'),
  4492. 'fields' => array(
  4493. 'analysis_id' => array(
  4494. 'description' => t('TODO: please describe this field!'),
  4495. 'type' => 'serial',
  4496. 'not null' => TRUE,
  4497. ),
  4498. 'name' => array(
  4499. 'description' => t('TODO: please describe this field!'),
  4500. 'type' => 'varchar',
  4501. 'length' => '255',
  4502. 'not null' => FALSE,
  4503. ),
  4504. 'description' => array(
  4505. 'description' => t('TODO: please describe this field!'),
  4506. 'type' => 'text',
  4507. 'not null' => FALSE,
  4508. ),
  4509. 'program' => array(
  4510. 'description' => t('TODO: please describe this field!'),
  4511. 'type' => 'varchar',
  4512. 'length' => '255',
  4513. 'not null' => TRUE,
  4514. ),
  4515. 'programversion' => array(
  4516. 'description' => t('TODO: please describe this field!'),
  4517. 'type' => 'varchar',
  4518. 'length' => '255',
  4519. 'not null' => TRUE,
  4520. ),
  4521. 'algorithm' => array(
  4522. 'description' => t('TODO: please describe this field!'),
  4523. 'type' => 'varchar',
  4524. 'length' => '255',
  4525. 'not null' => FALSE,
  4526. ),
  4527. 'sourcename' => array(
  4528. 'description' => t('TODO: please describe this field!'),
  4529. 'type' => 'varchar',
  4530. 'length' => '255',
  4531. 'not null' => FALSE,
  4532. ),
  4533. 'sourceversion' => array(
  4534. 'description' => t('TODO: please describe this field!'),
  4535. 'type' => 'varchar',
  4536. 'length' => '255',
  4537. 'not null' => FALSE,
  4538. ),
  4539. 'sourceuri' => array(
  4540. 'description' => t('TODO: please describe this field!'),
  4541. 'type' => 'text',
  4542. 'not null' => FALSE,
  4543. ),
  4544. 'timeexecuted' => array(
  4545. 'description' => t('TODO: please describe this field!'),
  4546. 'type' => 'datetime',
  4547. 'not null' => TRUE,
  4548. 'default' => 'ow(',
  4549. ),
  4550. ),
  4551. 'primary key' => array('analysis_id'),
  4552. 'unique keys' => array(
  4553. 'analysis_c1' => array('program', 'programversion', 'sourcename')
  4554. ),
  4555. );
  4556. $schema['analysisfeature'] = array(
  4557. 'description' => t('TODO: please describe this table!'),
  4558. 'fields' => array(
  4559. 'analysisfeature_id' => array(
  4560. 'description' => t('TODO: please describe this field!'),
  4561. 'type' => 'serial',
  4562. 'not null' => TRUE,
  4563. ),
  4564. 'feature_id' => array(
  4565. 'description' => t('TODO: please describe this field!'),
  4566. 'type' => 'int',
  4567. 'not null' => TRUE,
  4568. ),
  4569. 'analysis_id' => array(
  4570. 'description' => t('TODO: please describe this field!'),
  4571. 'type' => 'int',
  4572. 'not null' => TRUE,
  4573. ),
  4574. 'rawscore' => array(
  4575. 'description' => t('TODO: please describe this field!'),
  4576. 'type' => 'float',
  4577. 'size' => 'big',
  4578. 'not null' => FALSE,
  4579. ),
  4580. 'normscore' => array(
  4581. 'description' => t('TODO: please describe this field!'),
  4582. 'type' => 'float',
  4583. 'size' => 'big',
  4584. 'not null' => FALSE,
  4585. ),
  4586. 'significance' => array(
  4587. 'description' => t('TODO: please describe this field!'),
  4588. 'type' => 'float',
  4589. 'size' => 'big',
  4590. 'not null' => FALSE,
  4591. ),
  4592. 'identity' => array(
  4593. 'description' => t('TODO: please describe this field!'),
  4594. 'type' => 'float',
  4595. 'size' => 'big',
  4596. 'not null' => FALSE,
  4597. ),
  4598. ),
  4599. 'primary key' => array('analysisfeature_id'),
  4600. 'unique keys' => array(
  4601. 'analysisfeature_c1' => array('feature_id', 'analysis_id')
  4602. ),
  4603. 'indexes' => array(
  4604. 'analysisfeature_idx1' => array('feature_id'),
  4605. 'analysisfeature_idx2' => array('analysis_id'),
  4606. ),
  4607. );
  4608. $schema['analysisfeatureprop'] = array(
  4609. 'description' => t('TODO: please describe this table!'),
  4610. 'fields' => array(
  4611. 'analysisfeatureprop_id' => array(
  4612. 'description' => t('TODO: please describe this field!'),
  4613. 'type' => 'serial',
  4614. 'not null' => TRUE,
  4615. ),
  4616. 'analysisfeature_id' => array(
  4617. 'description' => t('TODO: please describe this field!'),
  4618. 'type' => 'int',
  4619. 'not null' => TRUE,
  4620. ),
  4621. 'type_id' => array(
  4622. 'description' => t('TODO: please describe this field!'),
  4623. 'type' => 'int',
  4624. 'not null' => TRUE,
  4625. ),
  4626. 'value' => array(
  4627. 'description' => t('TODO: please describe this field!'),
  4628. 'type' => 'text',
  4629. 'not null' => FALSE,
  4630. ),
  4631. 'rank' => array(
  4632. 'description' => t('TODO: please describe this field!'),
  4633. 'type' => 'int',
  4634. 'not null' => TRUE,
  4635. ),
  4636. ),
  4637. 'primary key' => array('analysisfeatureprop_id'),
  4638. 'unique keys' => array(
  4639. 'analysisfeature_id_type_id_rank' => array('analysisfeature_id', 'type_id', 'rank')
  4640. ),
  4641. );
  4642. $schema['assayprop'] = array(
  4643. 'description' => t('TODO: please describe this table!'),
  4644. 'fields' => array(
  4645. 'assayprop_id' => array(
  4646. 'description' => t('TODO: please describe this field!'),
  4647. 'type' => 'serial',
  4648. 'not null' => TRUE,
  4649. ),
  4650. 'assay_id' => array(
  4651. 'description' => t('TODO: please describe this field!'),
  4652. 'type' => 'int',
  4653. 'not null' => TRUE,
  4654. ),
  4655. 'type_id' => array(
  4656. 'description' => t('TODO: please describe this field!'),
  4657. 'type' => 'int',
  4658. 'not null' => TRUE,
  4659. ),
  4660. 'value' => array(
  4661. 'description' => t('TODO: please describe this field!'),
  4662. 'type' => 'text',
  4663. 'not null' => FALSE,
  4664. ),
  4665. 'rank' => array(
  4666. 'description' => t('TODO: please describe this field!'),
  4667. 'type' => 'int',
  4668. 'not null' => TRUE,
  4669. 'default' => 0,
  4670. ),
  4671. ),
  4672. 'primary key' => array('assayprop_id'),
  4673. 'unique keys' => array(
  4674. 'assayprop_c1' => array('assay_id', 'type_id', 'rank')
  4675. ),
  4676. 'indexes' => array(
  4677. 'assayprop_idx1' => array('assay_id'),
  4678. 'assayprop_idx2' => array('type_id'),
  4679. ),
  4680. );
  4681. $schema['biomaterial'] = array(
  4682. 'description' => t('TODO: please describe this table!'),
  4683. 'fields' => array(
  4684. 'biomaterial_id' => array(
  4685. 'description' => t('TODO: please describe this field!'),
  4686. 'type' => 'serial',
  4687. 'not null' => TRUE,
  4688. ),
  4689. 'taxon_id' => array(
  4690. 'description' => t('TODO: please describe this field!'),
  4691. 'type' => 'int',
  4692. 'not null' => FALSE,
  4693. ),
  4694. 'biosourceprovider_id' => array(
  4695. 'description' => t('TODO: please describe this field!'),
  4696. 'type' => 'int',
  4697. 'not null' => FALSE,
  4698. ),
  4699. 'dbxref_id' => array(
  4700. 'description' => t('TODO: please describe this field!'),
  4701. 'type' => 'int',
  4702. 'not null' => FALSE,
  4703. ),
  4704. 'name' => array(
  4705. 'description' => t('TODO: please describe this field!'),
  4706. 'type' => 'text',
  4707. 'not null' => FALSE,
  4708. ),
  4709. 'description' => array(
  4710. 'description' => t('TODO: please describe this field!'),
  4711. 'type' => 'text',
  4712. 'not null' => FALSE,
  4713. ),
  4714. ),
  4715. 'primary key' => array('biomaterial_id'),
  4716. 'unique keys' => array(
  4717. 'biomaterial_c1' => array('name')
  4718. ),
  4719. 'indexes' => array(
  4720. 'biomaterial_idx1' => array('taxon_id'),
  4721. 'biomaterial_idx2' => array('biosourceprovider_id'),
  4722. 'biomaterial_idx3' => array('dbxref_id'),
  4723. ),
  4724. );
  4725. $schema['biomaterial_dbxref'] = array(
  4726. 'description' => t('TODO: please describe this table!'),
  4727. 'fields' => array(
  4728. 'biomaterial_dbxref_id' => array(
  4729. 'description' => t('TODO: please describe this field!'),
  4730. 'type' => 'serial',
  4731. 'not null' => TRUE,
  4732. ),
  4733. 'biomaterial_id' => array(
  4734. 'description' => t('TODO: please describe this field!'),
  4735. 'type' => 'int',
  4736. 'not null' => TRUE,
  4737. ),
  4738. 'dbxref_id' => array(
  4739. 'description' => t('TODO: please describe this field!'),
  4740. 'type' => 'int',
  4741. 'not null' => TRUE,
  4742. ),
  4743. ),
  4744. 'primary key' => array('biomaterial_dbxref_id'),
  4745. 'unique keys' => array(
  4746. 'biomaterial_dbxref_c1' => array('biomaterial_id', 'dbxref_id')
  4747. ),
  4748. 'indexes' => array(
  4749. 'biomaterial_dbxref_idx1' => array('biomaterial_id'),
  4750. 'biomaterial_dbxref_idx2' => array('dbxref_id'),
  4751. ),
  4752. );
  4753. $schema['biomaterial_relationship'] = array(
  4754. 'description' => t('TODO: please describe this table!'),
  4755. 'fields' => array(
  4756. 'biomaterial_relationship_id' => array(
  4757. 'description' => t('TODO: please describe this field!'),
  4758. 'type' => 'serial',
  4759. 'not null' => TRUE,
  4760. ),
  4761. 'subject_id' => array(
  4762. 'description' => t('TODO: please describe this field!'),
  4763. 'type' => 'int',
  4764. 'not null' => TRUE,
  4765. ),
  4766. 'type_id' => array(
  4767. 'description' => t('TODO: please describe this field!'),
  4768. 'type' => 'int',
  4769. 'not null' => TRUE,
  4770. ),
  4771. 'object_id' => array(
  4772. 'description' => t('TODO: please describe this field!'),
  4773. 'type' => 'int',
  4774. 'not null' => TRUE,
  4775. ),
  4776. ),
  4777. 'primary key' => array('biomaterial_relationship_id'),
  4778. 'unique keys' => array(
  4779. 'biomaterial_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  4780. ),
  4781. 'indexes' => array(
  4782. 'biomaterial_relationship_idx1' => array('subject_id'),
  4783. 'biomaterial_relationship_idx2' => array('object_id'),
  4784. 'biomaterial_relationship_idx3' => array('type_id'),
  4785. ),
  4786. );
  4787. $schema['assay_project'] = array(
  4788. 'description' => t('TODO: please describe this table!'),
  4789. 'fields' => array(
  4790. 'assay_project_id' => array(
  4791. 'description' => t('TODO: please describe this field!'),
  4792. 'type' => 'serial',
  4793. 'not null' => TRUE,
  4794. ),
  4795. 'assay_id' => array(
  4796. 'description' => t('TODO: please describe this field!'),
  4797. 'type' => 'int',
  4798. 'not null' => TRUE,
  4799. ),
  4800. 'project_id' => array(
  4801. 'description' => t('TODO: please describe this field!'),
  4802. 'type' => 'int',
  4803. 'not null' => TRUE,
  4804. ),
  4805. ),
  4806. 'primary key' => array('assay_project_id'),
  4807. 'unique keys' => array(
  4808. 'assay_project_c1' => array('assay_id', 'project_id')
  4809. ),
  4810. 'indexes' => array(
  4811. 'assay_project_idx1' => array('assay_id'),
  4812. 'assay_project_idx2' => array('project_id'),
  4813. ),
  4814. );
  4815. $schema['assay_biomaterial'] = array(
  4816. 'description' => t('TODO: please describe this table!'),
  4817. 'fields' => array(
  4818. 'assay_biomaterial_id' => array(
  4819. 'description' => t('TODO: please describe this field!'),
  4820. 'type' => 'serial',
  4821. 'not null' => TRUE,
  4822. ),
  4823. 'assay_id' => array(
  4824. 'description' => t('TODO: please describe this field!'),
  4825. 'type' => 'int',
  4826. 'not null' => TRUE,
  4827. ),
  4828. 'biomaterial_id' => array(
  4829. 'description' => t('TODO: please describe this field!'),
  4830. 'type' => 'int',
  4831. 'not null' => TRUE,
  4832. ),
  4833. 'channel_id' => array(
  4834. 'description' => t('TODO: please describe this field!'),
  4835. 'type' => 'int',
  4836. 'not null' => FALSE,
  4837. ),
  4838. 'rank' => array(
  4839. 'description' => t('TODO: please describe this field!'),
  4840. 'type' => 'int',
  4841. 'not null' => TRUE,
  4842. 'default' => 0,
  4843. ),
  4844. ),
  4845. 'primary key' => array('assay_biomaterial_id'),
  4846. 'unique keys' => array(
  4847. 'assay_biomaterial_c1' => array('assay_id', 'biomaterial_id', 'channel_id', 'rank')
  4848. ),
  4849. 'indexes' => array(
  4850. 'assay_biomaterial_idx1' => array('assay_id'),
  4851. 'assay_biomaterial_idx2' => array('biomaterial_id'),
  4852. 'assay_biomaterial_idx3' => array('channel_id'),
  4853. ),
  4854. );
  4855. $schema['analysisprop'] = array(
  4856. 'description' => t('TODO: please describe this table!'),
  4857. 'fields' => array(
  4858. 'analysisprop_id' => array(
  4859. 'description' => t('TODO: please describe this field!'),
  4860. 'type' => 'serial',
  4861. 'not null' => TRUE,
  4862. ),
  4863. 'analysis_id' => array(
  4864. 'description' => t('TODO: please describe this field!'),
  4865. 'type' => 'int',
  4866. 'not null' => TRUE,
  4867. ),
  4868. 'type_id' => array(
  4869. 'description' => t('TODO: please describe this field!'),
  4870. 'type' => 'int',
  4871. 'not null' => TRUE,
  4872. ),
  4873. 'value' => array(
  4874. 'description' => t('TODO: please describe this field!'),
  4875. 'type' => 'text',
  4876. 'not null' => FALSE,
  4877. ),
  4878. 'rank' => array(
  4879. 'description' => t('TODO: please describe this field!'),
  4880. 'type' => 'int',
  4881. 'not null' => TRUE,
  4882. 'default' => 0,
  4883. ),
  4884. ),
  4885. 'primary key' => array('analysisprop_id'),
  4886. 'unique keys' => array(
  4887. 'analysisprop_c1' => array('analysis_id', 'type_id', 'rank')
  4888. ),
  4889. 'indexes' => array(
  4890. 'analysisprop_idx1' => array('analysis_id'),
  4891. 'analysisprop_idx2' => array('type_id'),
  4892. ),
  4893. );
  4894. $schema['arraydesign'] = array(
  4895. 'description' => t('TODO: please describe this table!'),
  4896. 'fields' => array(
  4897. 'arraydesign_id' => array(
  4898. 'description' => t('TODO: please describe this field!'),
  4899. 'type' => 'serial',
  4900. 'not null' => TRUE,
  4901. ),
  4902. 'manufacturer_id' => array(
  4903. 'description' => t('TODO: please describe this field!'),
  4904. 'type' => 'int',
  4905. 'not null' => TRUE,
  4906. ),
  4907. 'platformtype_id' => array(
  4908. 'description' => t('TODO: please describe this field!'),
  4909. 'type' => 'int',
  4910. 'not null' => TRUE,
  4911. ),
  4912. 'substratetype_id' => array(
  4913. 'description' => t('TODO: please describe this field!'),
  4914. 'type' => 'int',
  4915. 'not null' => FALSE,
  4916. ),
  4917. 'protocol_id' => array(
  4918. 'description' => t('TODO: please describe this field!'),
  4919. 'type' => 'int',
  4920. 'not null' => FALSE,
  4921. ),
  4922. 'dbxref_id' => array(
  4923. 'description' => t('TODO: please describe this field!'),
  4924. 'type' => 'int',
  4925. 'not null' => FALSE,
  4926. ),
  4927. 'name' => array(
  4928. 'description' => t('TODO: please describe this field!'),
  4929. 'type' => 'text',
  4930. 'not null' => TRUE,
  4931. ),
  4932. 'version' => array(
  4933. 'description' => t('TODO: please describe this field!'),
  4934. 'type' => 'text',
  4935. 'not null' => FALSE,
  4936. ),
  4937. 'description' => array(
  4938. 'description' => t('TODO: please describe this field!'),
  4939. 'type' => 'text',
  4940. 'not null' => FALSE,
  4941. ),
  4942. 'array_dimensions' => array(
  4943. 'description' => t('TODO: please describe this field!'),
  4944. 'type' => 'text',
  4945. 'not null' => FALSE,
  4946. ),
  4947. 'element_dimensions' => array(
  4948. 'description' => t('TODO: please describe this field!'),
  4949. 'type' => 'text',
  4950. 'not null' => FALSE,
  4951. ),
  4952. 'num_of_elements' => array(
  4953. 'description' => t('TODO: please describe this field!'),
  4954. 'type' => 'int',
  4955. 'not null' => FALSE,
  4956. ),
  4957. 'num_array_columns' => array(
  4958. 'description' => t('TODO: please describe this field!'),
  4959. 'type' => 'int',
  4960. 'not null' => FALSE,
  4961. ),
  4962. 'num_array_rows' => array(
  4963. 'description' => t('TODO: please describe this field!'),
  4964. 'type' => 'int',
  4965. 'not null' => FALSE,
  4966. ),
  4967. 'num_grid_columns' => array(
  4968. 'description' => t('TODO: please describe this field!'),
  4969. 'type' => 'int',
  4970. 'not null' => FALSE,
  4971. ),
  4972. 'num_grid_rows' => array(
  4973. 'description' => t('TODO: please describe this field!'),
  4974. 'type' => 'int',
  4975. 'not null' => FALSE,
  4976. ),
  4977. 'num_sub_columns' => array(
  4978. 'description' => t('TODO: please describe this field!'),
  4979. 'type' => 'int',
  4980. 'not null' => FALSE,
  4981. ),
  4982. 'num_sub_rows' => array(
  4983. 'description' => t('TODO: please describe this field!'),
  4984. 'type' => 'int',
  4985. 'not null' => FALSE,
  4986. ),
  4987. ),
  4988. 'primary key' => array('arraydesign_id'),
  4989. 'unique keys' => array(
  4990. 'arraydesign_c1' => array('name')
  4991. ),
  4992. 'indexes' => array(
  4993. 'arraydesign_idx1' => array('manufacturer_id'),
  4994. 'arraydesign_idx2' => array('platformtype_id'),
  4995. 'arraydesign_idx3' => array('substratetype_id'),
  4996. 'arraydesign_idx4' => array('protocol_id'),
  4997. 'arraydesign_idx5' => array('dbxref_id'),
  4998. ),
  4999. );
  5000. $schema['arraydesignprop'] = array(
  5001. 'description' => t('TODO: please describe this table!'),
  5002. 'fields' => array(
  5003. 'arraydesignprop_id' => array(
  5004. 'description' => t('TODO: please describe this field!'),
  5005. 'type' => 'serial',
  5006. 'not null' => TRUE,
  5007. ),
  5008. 'arraydesign_id' => array(
  5009. 'description' => t('TODO: please describe this field!'),
  5010. 'type' => 'int',
  5011. 'not null' => TRUE,
  5012. ),
  5013. 'type_id' => array(
  5014. 'description' => t('TODO: please describe this field!'),
  5015. 'type' => 'int',
  5016. 'not null' => TRUE,
  5017. ),
  5018. 'value' => array(
  5019. 'description' => t('TODO: please describe this field!'),
  5020. 'type' => 'text',
  5021. 'not null' => FALSE,
  5022. ),
  5023. 'rank' => array(
  5024. 'description' => t('TODO: please describe this field!'),
  5025. 'type' => 'int',
  5026. 'not null' => TRUE,
  5027. 'default' => 0,
  5028. ),
  5029. ),
  5030. 'primary key' => array('arraydesignprop_id'),
  5031. 'unique keys' => array(
  5032. 'arraydesignprop_c1' => array('arraydesign_id', 'type_id', 'rank')
  5033. ),
  5034. 'indexes' => array(
  5035. 'arraydesignprop_idx1' => array('arraydesign_id'),
  5036. 'arraydesignprop_idx2' => array('type_id'),
  5037. ),
  5038. );
  5039. $schema['assay'] = array(
  5040. 'description' => t('TODO: please describe this table!'),
  5041. 'fields' => array(
  5042. 'assay_id' => array(
  5043. 'description' => t('TODO: please describe this field!'),
  5044. 'type' => 'serial',
  5045. 'not null' => TRUE,
  5046. ),
  5047. 'arraydesign_id' => array(
  5048. 'description' => t('TODO: please describe this field!'),
  5049. 'type' => 'int',
  5050. 'not null' => TRUE,
  5051. ),
  5052. 'protocol_id' => array(
  5053. 'description' => t('TODO: please describe this field!'),
  5054. 'type' => 'int',
  5055. 'not null' => FALSE,
  5056. ),
  5057. 'assaydate' => array(
  5058. 'description' => t('TODO: please describe this field!'),
  5059. 'type' => 'datetime',
  5060. 'not null' => FALSE,
  5061. 'default' => 'ow(',
  5062. ),
  5063. 'arrayidentifier' => array(
  5064. 'description' => t('TODO: please describe this field!'),
  5065. 'type' => 'text',
  5066. 'not null' => FALSE,
  5067. ),
  5068. 'arraybatchidentifier' => array(
  5069. 'description' => t('TODO: please describe this field!'),
  5070. 'type' => 'text',
  5071. 'not null' => FALSE,
  5072. ),
  5073. 'operator_id' => array(
  5074. 'description' => t('TODO: please describe this field!'),
  5075. 'type' => 'int',
  5076. 'not null' => TRUE,
  5077. ),
  5078. 'dbxref_id' => array(
  5079. 'description' => t('TODO: please describe this field!'),
  5080. 'type' => 'int',
  5081. 'not null' => FALSE,
  5082. ),
  5083. 'name' => array(
  5084. 'description' => t('TODO: please describe this field!'),
  5085. 'type' => 'text',
  5086. 'not null' => FALSE,
  5087. ),
  5088. 'description' => array(
  5089. 'description' => t('TODO: please describe this field!'),
  5090. 'type' => 'text',
  5091. 'not null' => FALSE,
  5092. ),
  5093. ),
  5094. 'primary key' => array('assay_id'),
  5095. 'unique keys' => array(
  5096. 'assay_c1' => array('name')
  5097. ),
  5098. 'indexes' => array(
  5099. 'assay_idx1' => array('arraydesign_id'),
  5100. 'assay_idx2' => array('protocol_id'),
  5101. 'assay_idx3' => array('operator_id'),
  5102. 'assay_idx4' => array('dbxref_id'),
  5103. ),
  5104. );
  5105. $schema['cv_root'] = array(
  5106. 'description' => t('TODO: please describe this table!'),
  5107. 'fields' => array(
  5108. 'cv_id' => array(
  5109. 'description' => t('TODO: please describe this field!'),
  5110. 'type' => 'int',
  5111. 'not null' => FALSE,
  5112. ),
  5113. 'root_cvterm_id' => array(
  5114. 'description' => t('TODO: please describe this field!'),
  5115. 'type' => 'int',
  5116. 'not null' => FALSE,
  5117. ),
  5118. ),
  5119. );
  5120. $schema['cvterm'] = array(
  5121. 'description' => t('TODO: please describe this table!'),
  5122. 'fields' => array(
  5123. 'cvterm_id' => array(
  5124. 'description' => t('TODO: please describe this field!'),
  5125. 'type' => 'serial',
  5126. 'not null' => TRUE,
  5127. ),
  5128. 'cv_id' => array(
  5129. 'description' => t('TODO: please describe this field!'),
  5130. 'type' => 'int',
  5131. 'not null' => TRUE,
  5132. ),
  5133. 'name' => array(
  5134. 'description' => t('TODO: please describe this field!'),
  5135. 'type' => 'varchar',
  5136. 'length' => '1024',
  5137. 'not null' => TRUE,
  5138. ),
  5139. 'definition' => array(
  5140. 'description' => t('TODO: please describe this field!'),
  5141. 'type' => 'text',
  5142. 'not null' => FALSE,
  5143. ),
  5144. 'dbxref_id' => array(
  5145. 'description' => t('TODO: please describe this field!'),
  5146. 'type' => 'int',
  5147. 'not null' => TRUE,
  5148. ),
  5149. 'is_obsolete' => array(
  5150. 'description' => t('TODO: please describe this field!'),
  5151. 'type' => 'int',
  5152. 'not null' => TRUE,
  5153. 'default' => 0,
  5154. ),
  5155. 'is_relationshiptype' => array(
  5156. 'description' => t('TODO: please describe this field!'),
  5157. 'type' => 'int',
  5158. 'not null' => TRUE,
  5159. 'default' => 0,
  5160. ),
  5161. ),
  5162. 'primary key' => array('cvterm_id'),
  5163. 'unique keys' => array(
  5164. 'cvterm_c1' => array('name', 'cv_id', 'is_obsolete'),
  5165. 'cvterm_c2' => array('dbxref_id')
  5166. ),
  5167. 'indexes' => array(
  5168. 'cvterm_idx1' => array('cv_id'),
  5169. 'cvterm_idx2' => array('name'),
  5170. 'cvterm_idx3' => array('dbxref_id'),
  5171. ),
  5172. 'foreign keys' => array(
  5173. 'cv' => array(
  5174. 'table' => 'cv',
  5175. 'columns' => array('cv_id' => 'cv_id'),
  5176. ),
  5177. 'dbxref' => array(
  5178. 'table' => 'dbxref',
  5179. 'columns' => array('dbxref_id' => 'dbxref_id'),
  5180. ),
  5181. ),
  5182. );
  5183. $schema['feature_dbxref'] = array(
  5184. 'description' => t('TODO: please describe this table!'),
  5185. 'fields' => array(
  5186. 'feature_dbxref_id' => array(
  5187. 'description' => t('TODO: please describe this field!'),
  5188. 'type' => 'serial',
  5189. 'not null' => TRUE,
  5190. ),
  5191. 'feature_id' => array(
  5192. 'description' => t('TODO: please describe this field!'),
  5193. 'type' => 'int',
  5194. 'not null' => TRUE,
  5195. ),
  5196. 'dbxref_id' => array(
  5197. 'description' => t('TODO: please describe this field!'),
  5198. 'type' => 'int',
  5199. 'not null' => TRUE,
  5200. ),
  5201. 'is_current' => array(
  5202. 'description' => t('TODO: please describe this field!'),
  5203. 'type' => 'boolean',
  5204. 'not null' => TRUE,
  5205. 'default' => 'ru',
  5206. ),
  5207. ),
  5208. 'primary key' => array('feature_dbxref_id'),
  5209. 'unique keys' => array(
  5210. 'feature_dbxref_c1' => array('feature_id', 'dbxref_id')
  5211. ),
  5212. 'indexes' => array(
  5213. 'feature_dbxref_idx1' => array('feature_id'),
  5214. 'feature_dbxref_idx2' => array('dbxref_id'),
  5215. ),
  5216. );
  5217. $schema['feature_cvtermprop'] = array(
  5218. 'description' => t('TODO: please describe this table!'),
  5219. 'fields' => array(
  5220. 'feature_cvtermprop_id' => array(
  5221. 'description' => t('TODO: please describe this field!'),
  5222. 'type' => 'serial',
  5223. 'not null' => TRUE,
  5224. ),
  5225. 'feature_cvterm_id' => array(
  5226. 'description' => t('TODO: please describe this field!'),
  5227. 'type' => 'int',
  5228. 'not null' => TRUE,
  5229. ),
  5230. 'type_id' => array(
  5231. 'description' => t('TODO: please describe this field!'),
  5232. 'type' => 'int',
  5233. 'not null' => TRUE,
  5234. ),
  5235. 'value' => array(
  5236. 'description' => t('TODO: please describe this field!'),
  5237. 'type' => 'text',
  5238. 'not null' => FALSE,
  5239. ),
  5240. 'rank' => array(
  5241. 'description' => t('TODO: please describe this field!'),
  5242. 'type' => 'int',
  5243. 'not null' => TRUE,
  5244. 'default' => 0,
  5245. ),
  5246. ),
  5247. 'primary key' => array('feature_cvtermprop_id'),
  5248. 'unique keys' => array(
  5249. 'feature_cvtermprop_c1' => array('feature_cvterm_id', 'type_id', 'rank')
  5250. ),
  5251. 'indexes' => array(
  5252. 'feature_cvtermprop_idx1' => array('feature_cvterm_id'),
  5253. 'feature_cvtermprop_idx2' => array('type_id'),
  5254. ),
  5255. );
  5256. $schema['feature_difference'] = array(
  5257. 'description' => t('TODO: please describe this table!'),
  5258. 'fields' => array(
  5259. 'subject_id' => array(
  5260. 'description' => t('TODO: please describe this field!'),
  5261. 'type' => 'int',
  5262. 'not null' => FALSE,
  5263. ),
  5264. 'object_id' => array(
  5265. 'description' => t('TODO: please describe this field!'),
  5266. 'type' => 'int',
  5267. 'not null' => FALSE,
  5268. ),
  5269. 'srcfeature_id' => array(
  5270. 'description' => t('TODO: please describe this field!'),
  5271. 'type' => 'int',
  5272. 'size' => 'small',
  5273. 'not null' => FALSE,
  5274. ),
  5275. 'fmin' => array(
  5276. 'description' => t('TODO: please describe this field!'),
  5277. 'type' => 'int',
  5278. 'not null' => FALSE,
  5279. ),
  5280. 'fmax' => array(
  5281. 'description' => t('TODO: please describe this field!'),
  5282. 'type' => 'int',
  5283. 'not null' => FALSE,
  5284. ),
  5285. 'strand' => array(
  5286. 'description' => t('TODO: please describe this field!'),
  5287. 'type' => 'int',
  5288. 'not null' => FALSE,
  5289. ),
  5290. ),
  5291. );
  5292. $schema['feature_disjoint'] = array(
  5293. 'description' => t('TODO: please describe this table!'),
  5294. 'fields' => array(
  5295. 'subject_id' => array(
  5296. 'description' => t('TODO: please describe this field!'),
  5297. 'type' => 'int',
  5298. 'not null' => FALSE,
  5299. ),
  5300. 'object_id' => array(
  5301. 'description' => t('TODO: please describe this field!'),
  5302. 'type' => 'int',
  5303. 'not null' => FALSE,
  5304. ),
  5305. ),
  5306. );
  5307. $schema['feature_distance'] = array(
  5308. 'description' => t('TODO: please describe this table!'),
  5309. 'fields' => array(
  5310. 'subject_id' => array(
  5311. 'description' => t('TODO: please describe this field!'),
  5312. 'type' => 'int',
  5313. 'not null' => FALSE,
  5314. ),
  5315. 'object_id' => array(
  5316. 'description' => t('TODO: please describe this field!'),
  5317. 'type' => 'int',
  5318. 'not null' => FALSE,
  5319. ),
  5320. 'srcfeature_id' => array(
  5321. 'description' => t('TODO: please describe this field!'),
  5322. 'type' => 'int',
  5323. 'not null' => FALSE,
  5324. ),
  5325. 'subject_strand' => array(
  5326. 'description' => t('TODO: please describe this field!'),
  5327. 'type' => 'int',
  5328. 'size' => 'small',
  5329. 'not null' => FALSE,
  5330. ),
  5331. 'object_strand' => array(
  5332. 'description' => t('TODO: please describe this field!'),
  5333. 'type' => 'int',
  5334. 'size' => 'small',
  5335. 'not null' => FALSE,
  5336. ),
  5337. 'distance' => array(
  5338. 'description' => t('TODO: please describe this field!'),
  5339. 'type' => 'int',
  5340. 'not null' => FALSE,
  5341. ),
  5342. ),
  5343. );
  5344. $schema['feature_cvterm_pub'] = array(
  5345. 'description' => t('TODO: please describe this table!'),
  5346. 'fields' => array(
  5347. 'feature_cvterm_pub_id' => array(
  5348. 'description' => t('TODO: please describe this field!'),
  5349. 'type' => 'serial',
  5350. 'not null' => TRUE,
  5351. ),
  5352. 'feature_cvterm_id' => array(
  5353. 'description' => t('TODO: please describe this field!'),
  5354. 'type' => 'int',
  5355. 'not null' => TRUE,
  5356. ),
  5357. 'pub_id' => array(
  5358. 'description' => t('TODO: please describe this field!'),
  5359. 'type' => 'int',
  5360. 'not null' => TRUE,
  5361. ),
  5362. ),
  5363. 'primary key' => array('feature_cvterm_pub_id'),
  5364. 'unique keys' => array(
  5365. 'feature_cvterm_pub_c1' => array('feature_cvterm_id', 'pub_id')
  5366. ),
  5367. 'indexes' => array(
  5368. 'feature_cvterm_pub_idx1' => array('feature_cvterm_id'),
  5369. 'feature_cvterm_pub_idx2' => array('pub_id'),
  5370. ),
  5371. );
  5372. $schema['feature_cvterm_dbxref'] = array(
  5373. 'description' => t('TODO: please describe this table!'),
  5374. 'fields' => array(
  5375. 'feature_cvterm_dbxref_id' => array(
  5376. 'description' => t('TODO: please describe this field!'),
  5377. 'type' => 'serial',
  5378. 'not null' => TRUE,
  5379. ),
  5380. 'feature_cvterm_id' => array(
  5381. 'description' => t('TODO: please describe this field!'),
  5382. 'type' => 'int',
  5383. 'not null' => TRUE,
  5384. ),
  5385. 'dbxref_id' => array(
  5386. 'description' => t('TODO: please describe this field!'),
  5387. 'type' => 'int',
  5388. 'not null' => TRUE,
  5389. ),
  5390. ),
  5391. 'primary key' => array('feature_cvterm_dbxref_id'),
  5392. 'unique keys' => array(
  5393. 'feature_cvterm_dbxref_c1' => array('feature_cvterm_id', 'dbxref_id')
  5394. ),
  5395. 'indexes' => array(
  5396. 'feature_cvterm_dbxref_idx1' => array('feature_cvterm_id'),
  5397. 'feature_cvterm_dbxref_idx2' => array('dbxref_id'),
  5398. ),
  5399. );
  5400. $schema['f_type'] = array(
  5401. 'description' => t('TODO: please describe this table!'),
  5402. 'fields' => array(
  5403. 'feature_id' => array(
  5404. 'description' => t('TODO: please describe this field!'),
  5405. 'type' => 'int',
  5406. 'not null' => FALSE,
  5407. ),
  5408. 'name' => array(
  5409. 'description' => t('TODO: please describe this field!'),
  5410. 'type' => 'varchar',
  5411. 'length' => '255',
  5412. 'not null' => FALSE,
  5413. ),
  5414. 'dbxref_id' => array(
  5415. 'description' => t('TODO: please describe this field!'),
  5416. 'type' => 'int',
  5417. 'not null' => FALSE,
  5418. ),
  5419. 'type' => array(
  5420. 'description' => t('TODO: please describe this field!'),
  5421. 'type' => 'varchar',
  5422. 'length' => '1024',
  5423. 'not null' => FALSE,
  5424. ),
  5425. 'residues' => array(
  5426. 'description' => t('TODO: please describe this field!'),
  5427. 'type' => 'text',
  5428. 'not null' => FALSE,
  5429. ),
  5430. 'seqlen' => array(
  5431. 'description' => t('TODO: please describe this field!'),
  5432. 'type' => 'int',
  5433. 'not null' => FALSE,
  5434. ),
  5435. 'md5checksum' => array(
  5436. 'description' => t('TODO: please describe this field!'),
  5437. 'type' => 'char',
  5438. 'length' => '32',
  5439. 'not null' => FALSE,
  5440. ),
  5441. 'type_id' => array(
  5442. 'description' => t('TODO: please describe this field!'),
  5443. 'type' => 'int',
  5444. 'not null' => FALSE,
  5445. ),
  5446. 'timeaccessioned' => array(
  5447. 'description' => t('TODO: please describe this field!'),
  5448. 'type' => 'datetime',
  5449. 'not null' => FALSE,
  5450. ),
  5451. 'timelastmodified' => array(
  5452. 'description' => t('TODO: please describe this field!'),
  5453. 'type' => 'datetime',
  5454. 'not null' => FALSE,
  5455. ),
  5456. ),
  5457. );
  5458. $schema['feature'] = array(
  5459. 'description' => t('TODO: please describe this table!'),
  5460. 'fields' => array(
  5461. 'feature_id' => array(
  5462. 'description' => t('TODO: please describe this field!'),
  5463. 'type' => 'serial',
  5464. 'not null' => TRUE,
  5465. ),
  5466. 'dbxref_id' => array(
  5467. 'description' => t('TODO: please describe this field!'),
  5468. 'type' => 'int',
  5469. 'not null' => FALSE,
  5470. ),
  5471. 'organism_id' => array(
  5472. 'description' => t('TODO: please describe this field!'),
  5473. 'type' => 'int',
  5474. 'not null' => TRUE,
  5475. ),
  5476. 'name' => array(
  5477. 'description' => t('TODO: please describe this field!'),
  5478. 'type' => 'varchar',
  5479. 'length' => '255',
  5480. 'not null' => FALSE,
  5481. ),
  5482. 'uniquename' => array(
  5483. 'description' => t('TODO: please describe this field!'),
  5484. 'type' => 'text',
  5485. 'not null' => TRUE,
  5486. ),
  5487. 'residues' => array(
  5488. 'description' => t('TODO: please describe this field!'),
  5489. 'type' => 'text',
  5490. 'not null' => FALSE,
  5491. ),
  5492. 'seqlen' => array(
  5493. 'description' => t('TODO: please describe this field!'),
  5494. 'type' => 'int',
  5495. 'not null' => FALSE,
  5496. ),
  5497. 'md5checksum' => array(
  5498. 'description' => t('TODO: please describe this field!'),
  5499. 'type' => 'char',
  5500. 'length' => '32',
  5501. 'not null' => FALSE,
  5502. ),
  5503. 'type_id' => array(
  5504. 'description' => t('TODO: please describe this field!'),
  5505. 'type' => 'int',
  5506. 'not null' => TRUE,
  5507. ),
  5508. 'is_analysis' => array(
  5509. 'description' => t('TODO: please describe this field!'),
  5510. 'type' => 'boolean',
  5511. 'not null' => TRUE,
  5512. 'default' => 'als',
  5513. ),
  5514. 'is_obsolete' => array(
  5515. 'description' => t('TODO: please describe this field!'),
  5516. 'type' => 'boolean',
  5517. 'not null' => TRUE,
  5518. 'default' => 'als',
  5519. ),
  5520. 'timeaccessioned' => array(
  5521. 'description' => t('TODO: please describe this field!'),
  5522. 'type' => 'datetime',
  5523. 'not null' => TRUE,
  5524. 'default' => 'ow(',
  5525. ),
  5526. 'timelastmodified' => array(
  5527. 'description' => t('TODO: please describe this field!'),
  5528. 'type' => 'datetime',
  5529. 'not null' => TRUE,
  5530. 'default' => 'ow(',
  5531. ),
  5532. ),
  5533. 'primary key' => array('feature_id'),
  5534. 'unique keys' => array(
  5535. 'feature_c1' => array('organism_id', 'uniquename', 'type_id')
  5536. ),
  5537. 'indexes' => array(
  5538. 'feature_idx1' => array('dbxref_id'),
  5539. 'feature_idx2' => array('organism_id'),
  5540. 'feature_idx3' => array('type_id'),
  5541. 'feature_idx4' => array('uniquename'),
  5542. 'feature_name_ind1' => array('name'),
  5543. ),
  5544. 'foreign keys' => array(
  5545. 'organism' => array(
  5546. 'table' => 'organism',
  5547. 'columns' => array('organism_id' => 'organism_id'),
  5548. ),
  5549. 'dbxref' => array(
  5550. 'table' => 'dbxref',
  5551. 'columns' => array('dbxref_id' => 'dbxref_id'),
  5552. ),
  5553. 'cvterm' => array(
  5554. 'table' => 'cvterm',
  5555. 'columns' => array('type_id' => 'cvterm_id'),
  5556. ),
  5557. ),
  5558. );
  5559. $schema['feature_contains'] = array(
  5560. 'description' => t('TODO: please describe this table!'),
  5561. 'fields' => array(
  5562. 'subject_id' => array(
  5563. 'description' => t('TODO: please describe this field!'),
  5564. 'type' => 'int',
  5565. 'not null' => FALSE,
  5566. ),
  5567. 'object_id' => array(
  5568. 'description' => t('TODO: please describe this field!'),
  5569. 'type' => 'int',
  5570. 'not null' => FALSE,
  5571. ),
  5572. ),
  5573. );
  5574. $schema['feature_cvterm'] = array(
  5575. 'description' => t('TODO: please describe this table!'),
  5576. 'fields' => array(
  5577. 'feature_cvterm_id' => array(
  5578. 'description' => t('TODO: please describe this field!'),
  5579. 'type' => 'serial',
  5580. 'not null' => TRUE,
  5581. ),
  5582. 'feature_id' => array(
  5583. 'description' => t('TODO: please describe this field!'),
  5584. 'type' => 'int',
  5585. 'not null' => TRUE,
  5586. ),
  5587. 'cvterm_id' => array(
  5588. 'description' => t('TODO: please describe this field!'),
  5589. 'type' => 'int',
  5590. 'not null' => TRUE,
  5591. ),
  5592. 'pub_id' => array(
  5593. 'description' => t('TODO: please describe this field!'),
  5594. 'type' => 'int',
  5595. 'not null' => TRUE,
  5596. ),
  5597. 'is_not' => array(
  5598. 'description' => t('TODO: please describe this field!'),
  5599. 'type' => 'boolean',
  5600. 'not null' => TRUE,
  5601. 'default' => 'als',
  5602. ),
  5603. 'rank' => array(
  5604. 'description' => t('TODO: please describe this field!'),
  5605. 'type' => 'int',
  5606. 'not null' => TRUE,
  5607. 'default' => 0,
  5608. ),
  5609. ),
  5610. 'primary key' => array('feature_cvterm_id'),
  5611. 'unique keys' => array(
  5612. 'feature_cvterm_c1' => array('feature_id', 'cvterm_id', 'pub_id', 'rank')
  5613. ),
  5614. 'indexes' => array(
  5615. 'feature_cvterm_idx1' => array('feature_id'),
  5616. 'feature_cvterm_idx2' => array('cvterm_id'),
  5617. 'feature_cvterm_idx3' => array('pub_id'),
  5618. ),
  5619. );
  5620. $schema['feature_expression'] = array(
  5621. 'description' => t('TODO: please describe this table!'),
  5622. 'fields' => array(
  5623. 'feature_expression_id' => array(
  5624. 'description' => t('TODO: please describe this field!'),
  5625. 'type' => 'serial',
  5626. 'not null' => TRUE,
  5627. ),
  5628. 'expression_id' => array(
  5629. 'description' => t('TODO: please describe this field!'),
  5630. 'type' => 'int',
  5631. 'not null' => TRUE,
  5632. ),
  5633. 'feature_id' => array(
  5634. 'description' => t('TODO: please describe this field!'),
  5635. 'type' => 'int',
  5636. 'not null' => TRUE,
  5637. ),
  5638. 'pub_id' => array(
  5639. 'description' => t('TODO: please describe this field!'),
  5640. 'type' => 'int',
  5641. 'not null' => TRUE,
  5642. ),
  5643. ),
  5644. 'primary key' => array('feature_expression_id'),
  5645. 'unique keys' => array(
  5646. 'feature_expression_c1' => array('expression_id', 'feature_id', 'pub_id')
  5647. ),
  5648. 'indexes' => array(
  5649. 'feature_expression_idx1' => array('expression_id'),
  5650. 'feature_expression_idx2' => array('feature_id'),
  5651. 'feature_expression_idx3' => array('pub_id'),
  5652. ),
  5653. );
  5654. $schema['feature_expressionprop'] = array(
  5655. 'description' => t('TODO: please describe this table!'),
  5656. 'fields' => array(
  5657. 'feature_expressionprop_id' => array(
  5658. 'description' => t('TODO: please describe this field!'),
  5659. 'type' => 'serial',
  5660. 'not null' => TRUE,
  5661. ),
  5662. 'feature_expression_id' => array(
  5663. 'description' => t('TODO: please describe this field!'),
  5664. 'type' => 'int',
  5665. 'not null' => TRUE,
  5666. ),
  5667. 'type_id' => array(
  5668. 'description' => t('TODO: please describe this field!'),
  5669. 'type' => 'int',
  5670. 'not null' => TRUE,
  5671. ),
  5672. 'value' => array(
  5673. 'description' => t('TODO: please describe this field!'),
  5674. 'type' => 'text',
  5675. 'not null' => FALSE,
  5676. ),
  5677. 'rank' => array(
  5678. 'description' => t('TODO: please describe this field!'),
  5679. 'type' => 'int',
  5680. 'not null' => TRUE,
  5681. 'default' => 0,
  5682. ),
  5683. ),
  5684. 'primary key' => array('feature_expressionprop_id'),
  5685. 'unique keys' => array(
  5686. 'feature_expressionprop_c1' => array('feature_expression_id', 'type_id', 'rank')
  5687. ),
  5688. 'indexes' => array(
  5689. 'feature_expressionprop_idx1' => array('feature_expression_id'),
  5690. 'feature_expressionprop_idx2' => array('type_id'),
  5691. ),
  5692. );
  5693. $schema['feature_pubprop'] = array(
  5694. 'description' => t('TODO: please describe this table!'),
  5695. 'fields' => array(
  5696. 'feature_pubprop_id' => array(
  5697. 'description' => t('TODO: please describe this field!'),
  5698. 'type' => 'serial',
  5699. 'not null' => TRUE,
  5700. ),
  5701. 'feature_pub_id' => array(
  5702. 'description' => t('TODO: please describe this field!'),
  5703. 'type' => 'int',
  5704. 'not null' => TRUE,
  5705. ),
  5706. 'type_id' => array(
  5707. 'description' => t('TODO: please describe this field!'),
  5708. 'type' => 'int',
  5709. 'not null' => TRUE,
  5710. ),
  5711. 'value' => array(
  5712. 'description' => t('TODO: please describe this field!'),
  5713. 'type' => 'text',
  5714. 'not null' => FALSE,
  5715. ),
  5716. 'rank' => array(
  5717. 'description' => t('TODO: please describe this field!'),
  5718. 'type' => 'int',
  5719. 'not null' => TRUE,
  5720. 'default' => 0,
  5721. ),
  5722. ),
  5723. 'primary key' => array('feature_pubprop_id'),
  5724. 'unique keys' => array(
  5725. 'feature_pubprop_c1' => array('feature_pub_id', 'type_id', 'rank')
  5726. ),
  5727. 'indexes' => array(
  5728. 'feature_pubprop_idx1' => array('feature_pub_id'),
  5729. ),
  5730. );
  5731. $schema['feature_relationship'] = array(
  5732. 'description' => t('TODO: please describe this table!'),
  5733. 'fields' => array(
  5734. 'feature_relationship_id' => array(
  5735. 'description' => t('TODO: please describe this field!'),
  5736. 'type' => 'serial',
  5737. 'not null' => TRUE,
  5738. ),
  5739. 'subject_id' => array(
  5740. 'description' => t('TODO: please describe this field!'),
  5741. 'type' => 'int',
  5742. 'not null' => TRUE,
  5743. ),
  5744. 'object_id' => array(
  5745. 'description' => t('TODO: please describe this field!'),
  5746. 'type' => 'int',
  5747. 'not null' => TRUE,
  5748. ),
  5749. 'type_id' => array(
  5750. 'description' => t('TODO: please describe this field!'),
  5751. 'type' => 'int',
  5752. 'not null' => TRUE,
  5753. ),
  5754. 'value' => array(
  5755. 'description' => t('TODO: please describe this field!'),
  5756. 'type' => 'text',
  5757. 'not null' => FALSE,
  5758. ),
  5759. 'rank' => array(
  5760. 'description' => t('TODO: please describe this field!'),
  5761. 'type' => 'int',
  5762. 'not null' => TRUE,
  5763. 'default' => 0,
  5764. ),
  5765. ),
  5766. 'primary key' => array('feature_relationship_id'),
  5767. 'unique keys' => array(
  5768. 'feature_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  5769. ),
  5770. 'indexes' => array(
  5771. 'feature_relationship_idx1' => array('subject_id'),
  5772. 'feature_relationship_idx2' => array('object_id'),
  5773. 'feature_relationship_idx3' => array('type_id'),
  5774. ),
  5775. );
  5776. $schema['feature_relationship_pub'] = array(
  5777. 'description' => t('TODO: please describe this table!'),
  5778. 'fields' => array(
  5779. 'feature_relationship_pub_id' => array(
  5780. 'description' => t('TODO: please describe this field!'),
  5781. 'type' => 'serial',
  5782. 'not null' => TRUE,
  5783. ),
  5784. 'feature_relationship_id' => array(
  5785. 'description' => t('TODO: please describe this field!'),
  5786. 'type' => 'int',
  5787. 'not null' => TRUE,
  5788. ),
  5789. 'pub_id' => array(
  5790. 'description' => t('TODO: please describe this field!'),
  5791. 'type' => 'int',
  5792. 'not null' => TRUE,
  5793. ),
  5794. ),
  5795. 'primary key' => array('feature_relationship_pub_id'),
  5796. 'unique keys' => array(
  5797. 'feature_relationship_pub_c1' => array('feature_relationship_id', 'pub_id')
  5798. ),
  5799. 'indexes' => array(
  5800. 'feature_relationship_pub_idx1' => array('feature_relationship_id'),
  5801. 'feature_relationship_pub_idx2' => array('pub_id'),
  5802. ),
  5803. );
  5804. $schema['feature_relationshipprop'] = array(
  5805. 'description' => t('TODO: please describe this table!'),
  5806. 'fields' => array(
  5807. 'feature_relationshipprop_id' => array(
  5808. 'description' => t('TODO: please describe this field!'),
  5809. 'type' => 'serial',
  5810. 'not null' => TRUE,
  5811. ),
  5812. 'feature_relationship_id' => array(
  5813. 'description' => t('TODO: please describe this field!'),
  5814. 'type' => 'int',
  5815. 'not null' => TRUE,
  5816. ),
  5817. 'type_id' => array(
  5818. 'description' => t('TODO: please describe this field!'),
  5819. 'type' => 'int',
  5820. 'not null' => TRUE,
  5821. ),
  5822. 'value' => array(
  5823. 'description' => t('TODO: please describe this field!'),
  5824. 'type' => 'text',
  5825. 'not null' => FALSE,
  5826. ),
  5827. 'rank' => array(
  5828. 'description' => t('TODO: please describe this field!'),
  5829. 'type' => 'int',
  5830. 'not null' => TRUE,
  5831. 'default' => 0,
  5832. ),
  5833. ),
  5834. 'primary key' => array('feature_relationshipprop_id'),
  5835. 'unique keys' => array(
  5836. 'feature_relationshipprop_c1' => array('feature_relationship_id', 'type_id', 'rank')
  5837. ),
  5838. 'indexes' => array(
  5839. 'feature_relationshipprop_idx1' => array('feature_relationship_id'),
  5840. 'feature_relationshipprop_idx2' => array('type_id'),
  5841. ),
  5842. );
  5843. $schema['feature_pub'] = array(
  5844. 'description' => t('TODO: please describe this table!'),
  5845. 'fields' => array(
  5846. 'feature_pub_id' => array(
  5847. 'description' => t('TODO: please describe this field!'),
  5848. 'type' => 'serial',
  5849. 'not null' => TRUE,
  5850. ),
  5851. 'feature_id' => array(
  5852. 'description' => t('TODO: please describe this field!'),
  5853. 'type' => 'int',
  5854. 'not null' => TRUE,
  5855. ),
  5856. 'pub_id' => array(
  5857. 'description' => t('TODO: please describe this field!'),
  5858. 'type' => 'int',
  5859. 'not null' => TRUE,
  5860. ),
  5861. ),
  5862. 'primary key' => array('feature_pub_id'),
  5863. 'unique keys' => array(
  5864. 'feature_pub_c1' => array('feature_id', 'pub_id')
  5865. ),
  5866. 'indexes' => array(
  5867. 'feature_pub_idx1' => array('feature_id'),
  5868. 'feature_pub_idx2' => array('pub_id'),
  5869. ),
  5870. );
  5871. $schema['feature_phenotype'] = array(
  5872. 'description' => t('TODO: please describe this table!'),
  5873. 'fields' => array(
  5874. 'feature_phenotype_id' => array(
  5875. 'description' => t('TODO: please describe this field!'),
  5876. 'type' => 'serial',
  5877. 'not null' => TRUE,
  5878. ),
  5879. 'feature_id' => array(
  5880. 'description' => t('TODO: please describe this field!'),
  5881. 'type' => 'int',
  5882. 'not null' => TRUE,
  5883. ),
  5884. 'phenotype_id' => array(
  5885. 'description' => t('TODO: please describe this field!'),
  5886. 'type' => 'int',
  5887. 'not null' => TRUE,
  5888. ),
  5889. ),
  5890. 'primary key' => array('feature_phenotype_id'),
  5891. 'unique keys' => array(
  5892. 'feature_phenotype_c1' => array('feature_id', 'phenotype_id')
  5893. ),
  5894. 'indexes' => array(
  5895. 'feature_phenotype_idx1' => array('feature_id'),
  5896. 'feature_phenotype_idx2' => array('phenotype_id'),
  5897. ),
  5898. );
  5899. $schema['feature_genotype'] = array(
  5900. 'description' => t('TODO: please describe this table!'),
  5901. 'fields' => array(
  5902. 'feature_genotype_id' => array(
  5903. 'description' => t('TODO: please describe this field!'),
  5904. 'type' => 'serial',
  5905. 'not null' => TRUE,
  5906. ),
  5907. 'feature_id' => array(
  5908. 'description' => t('TODO: please describe this field!'),
  5909. 'type' => 'int',
  5910. 'not null' => TRUE,
  5911. ),
  5912. 'genotype_id' => array(
  5913. 'description' => t('TODO: please describe this field!'),
  5914. 'type' => 'int',
  5915. 'not null' => TRUE,
  5916. ),
  5917. 'chromosome_id' => array(
  5918. 'description' => t('TODO: please describe this field!'),
  5919. 'type' => 'int',
  5920. 'not null' => FALSE,
  5921. ),
  5922. 'rank' => array(
  5923. 'description' => t('TODO: please describe this field!'),
  5924. 'type' => 'int',
  5925. 'not null' => TRUE,
  5926. ),
  5927. 'cgroup' => array(
  5928. 'description' => t('TODO: please describe this field!'),
  5929. 'type' => 'int',
  5930. 'not null' => TRUE,
  5931. ),
  5932. 'cvterm_id' => array(
  5933. 'description' => t('TODO: please describe this field!'),
  5934. 'type' => 'int',
  5935. 'not null' => TRUE,
  5936. ),
  5937. ),
  5938. 'primary key' => array('feature_genotype_id'),
  5939. 'unique keys' => array(
  5940. 'feature_genotype_c1' => array('feature_id', 'genotype_id', 'cvterm_id', 'chromosome_id', 'rank', 'cgroup')
  5941. ),
  5942. 'indexes' => array(
  5943. 'feature_genotype_idx1' => array('feature_id'),
  5944. 'feature_genotype_idx2' => array('genotype_id'),
  5945. ),
  5946. );
  5947. $schema['feature_intersection'] = array(
  5948. 'description' => t('TODO: please describe this table!'),
  5949. 'fields' => array(
  5950. 'subject_id' => array(
  5951. 'description' => t('TODO: please describe this field!'),
  5952. 'type' => 'int',
  5953. 'not null' => FALSE,
  5954. ),
  5955. 'object_id' => array(
  5956. 'description' => t('TODO: please describe this field!'),
  5957. 'type' => 'int',
  5958. 'not null' => FALSE,
  5959. ),
  5960. 'srcfeature_id' => array(
  5961. 'description' => t('TODO: please describe this field!'),
  5962. 'type' => 'int',
  5963. 'not null' => FALSE,
  5964. ),
  5965. 'subject_strand' => array(
  5966. 'description' => t('TODO: please describe this field!'),
  5967. 'type' => 'int',
  5968. 'size' => 'small',
  5969. 'not null' => FALSE,
  5970. ),
  5971. 'object_strand' => array(
  5972. 'description' => t('TODO: please describe this field!'),
  5973. 'type' => 'int',
  5974. 'size' => 'small',
  5975. 'not null' => FALSE,
  5976. ),
  5977. 'fmin' => array(
  5978. 'description' => t('TODO: please describe this field!'),
  5979. 'type' => 'int',
  5980. 'not null' => FALSE,
  5981. ),
  5982. 'fmax' => array(
  5983. 'description' => t('TODO: please describe this field!'),
  5984. 'type' => 'int',
  5985. 'not null' => FALSE,
  5986. ),
  5987. ),
  5988. );
  5989. $schema['feature_meets'] = array(
  5990. 'description' => t('TODO: please describe this table!'),
  5991. 'fields' => array(
  5992. 'subject_id' => array(
  5993. 'description' => t('TODO: please describe this field!'),
  5994. 'type' => 'int',
  5995. 'not null' => FALSE,
  5996. ),
  5997. 'object_id' => array(
  5998. 'description' => t('TODO: please describe this field!'),
  5999. 'type' => 'int',
  6000. 'not null' => FALSE,
  6001. ),
  6002. ),
  6003. );
  6004. $schema['feature_meets_on_same_strand'] = array(
  6005. 'description' => t('TODO: please describe this table!'),
  6006. 'fields' => array(
  6007. 'subject_id' => array(
  6008. 'description' => t('TODO: please describe this field!'),
  6009. 'type' => 'int',
  6010. 'not null' => FALSE,
  6011. ),
  6012. 'object_id' => array(
  6013. 'description' => t('TODO: please describe this field!'),
  6014. 'type' => 'int',
  6015. 'not null' => FALSE,
  6016. ),
  6017. ),
  6018. );
  6019. $schema['f_loc'] = array(
  6020. 'description' => t('TODO: please describe this table!'),
  6021. 'fields' => array(
  6022. 'feature_id' => array(
  6023. 'description' => t('TODO: please describe this field!'),
  6024. 'type' => 'int',
  6025. 'not null' => FALSE,
  6026. ),
  6027. 'name' => array(
  6028. 'description' => t('TODO: please describe this field!'),
  6029. 'type' => 'varchar',
  6030. 'length' => '255',
  6031. 'not null' => FALSE,
  6032. ),
  6033. 'dbxref_id' => array(
  6034. 'description' => t('TODO: please describe this field!'),
  6035. 'type' => 'int',
  6036. 'not null' => FALSE,
  6037. ),
  6038. 'nbeg' => array(
  6039. 'description' => t('TODO: please describe this field!'),
  6040. 'type' => 'int',
  6041. 'not null' => FALSE,
  6042. ),
  6043. 'nend' => array(
  6044. 'description' => t('TODO: please describe this field!'),
  6045. 'type' => 'int',
  6046. 'not null' => FALSE,
  6047. ),
  6048. 'strand' => array(
  6049. 'description' => t('TODO: please describe this field!'),
  6050. 'type' => 'int',
  6051. 'size' => 'small',
  6052. 'not null' => FALSE,
  6053. ),
  6054. ),
  6055. );
  6056. $schema['expressionprop'] = array(
  6057. 'description' => t('TODO: please describe this table!'),
  6058. 'fields' => array(
  6059. 'expressionprop_id' => array(
  6060. 'description' => t('TODO: please describe this field!'),
  6061. 'type' => 'serial',
  6062. 'not null' => TRUE,
  6063. ),
  6064. 'expression_id' => array(
  6065. 'description' => t('TODO: please describe this field!'),
  6066. 'type' => 'int',
  6067. 'not null' => TRUE,
  6068. ),
  6069. 'type_id' => array(
  6070. 'description' => t('TODO: please describe this field!'),
  6071. 'type' => 'int',
  6072. 'not null' => TRUE,
  6073. ),
  6074. 'value' => array(
  6075. 'description' => t('TODO: please describe this field!'),
  6076. 'type' => 'text',
  6077. 'not null' => FALSE,
  6078. ),
  6079. 'rank' => array(
  6080. 'description' => t('TODO: please describe this field!'),
  6081. 'type' => 'int',
  6082. 'not null' => TRUE,
  6083. 'default' => 0,
  6084. ),
  6085. ),
  6086. 'primary key' => array('expressionprop_id'),
  6087. 'unique keys' => array(
  6088. 'expressionprop_c1' => array('expression_id', 'type_id', 'rank')
  6089. ),
  6090. 'indexes' => array(
  6091. 'expressionprop_idx1' => array('expression_id'),
  6092. 'expressionprop_idx2' => array('type_id'),
  6093. ),
  6094. );
  6095. $schema['db_dbxref_count'] = array(
  6096. 'description' => t('TODO: please describe this table!'),
  6097. 'fields' => array(
  6098. 'name' => array(
  6099. 'description' => t('TODO: please describe this field!'),
  6100. 'type' => 'varchar',
  6101. 'length' => '255',
  6102. 'not null' => FALSE,
  6103. ),
  6104. 'num_dbxrefs' => array(
  6105. 'description' => t('TODO: please describe this field!'),
  6106. 'type' => 'int',
  6107. 'size' => 'big',
  6108. 'not null' => FALSE,
  6109. ),
  6110. ),
  6111. );
  6112. $schema['dbxref'] = array(
  6113. 'description' => t('TODO: please describe this table!'),
  6114. 'fields' => array(
  6115. 'dbxref_id' => array(
  6116. 'description' => t('TODO: please describe this field!'),
  6117. 'type' => 'serial',
  6118. 'not null' => TRUE,
  6119. ),
  6120. 'db_id' => array(
  6121. 'description' => t('TODO: please describe this field!'),
  6122. 'type' => 'int',
  6123. 'not null' => TRUE,
  6124. ),
  6125. 'accession' => array(
  6126. 'description' => t('TODO: please describe this field!'),
  6127. 'type' => 'varchar',
  6128. 'length' => '255',
  6129. 'not null' => TRUE,
  6130. ),
  6131. 'version' => array(
  6132. 'description' => t('TODO: please describe this field!'),
  6133. 'type' => 'varchar',
  6134. 'length' => '255',
  6135. 'not null' => TRUE,
  6136. 'default' => '',
  6137. ),
  6138. 'description' => array(
  6139. 'description' => t('TODO: please describe this field!'),
  6140. 'type' => 'text',
  6141. 'not null' => FALSE,
  6142. ),
  6143. ),
  6144. 'primary key' => array('dbxref_id'),
  6145. 'unique keys' => array(
  6146. 'dbxref_c1' => array('db_id', 'accession', 'version')
  6147. ),
  6148. 'indexes' => array(
  6149. 'dbxref_idx1' => array('db_id'),
  6150. 'dbxref_idx2' => array('accession'),
  6151. 'dbxref_idx3' => array('version'),
  6152. ),
  6153. );
  6154. $schema['dbxrefprop'] = array(
  6155. 'description' => t('TODO: please describe this table!'),
  6156. 'fields' => array(
  6157. 'dbxrefprop_id' => array(
  6158. 'description' => t('TODO: please describe this field!'),
  6159. 'type' => 'serial',
  6160. 'not null' => TRUE,
  6161. ),
  6162. 'dbxref_id' => array(
  6163. 'description' => t('TODO: please describe this field!'),
  6164. 'type' => 'int',
  6165. 'not null' => TRUE,
  6166. ),
  6167. 'type_id' => array(
  6168. 'description' => t('TODO: please describe this field!'),
  6169. 'type' => 'int',
  6170. 'not null' => TRUE,
  6171. ),
  6172. 'value' => array(
  6173. 'description' => t('TODO: please describe this field!'),
  6174. 'type' => 'text',
  6175. 'not null' => TRUE,
  6176. 'default' => '',
  6177. ),
  6178. 'rank' => array(
  6179. 'description' => t('TODO: please describe this field!'),
  6180. 'type' => 'int',
  6181. 'not null' => TRUE,
  6182. 'default' => 0,
  6183. ),
  6184. ),
  6185. 'primary key' => array('dbxrefprop_id'),
  6186. 'unique keys' => array(
  6187. 'dbxrefprop_c1' => array('dbxref_id', 'type_id', 'rank')
  6188. ),
  6189. 'indexes' => array(
  6190. 'dbxrefprop_idx1' => array('dbxref_id'),
  6191. 'dbxrefprop_idx2' => array('type_id'),
  6192. ),
  6193. );
  6194. $schema['dfeatureloc'] = array(
  6195. 'description' => t('TODO: please describe this table!'),
  6196. 'fields' => array(
  6197. 'featureloc_id' => array(
  6198. 'description' => t('TODO: please describe this field!'),
  6199. 'type' => 'int',
  6200. 'not null' => FALSE,
  6201. ),
  6202. 'feature_id' => array(
  6203. 'description' => t('TODO: please describe this field!'),
  6204. 'type' => 'int',
  6205. 'not null' => FALSE,
  6206. ),
  6207. 'srcfeature_id' => array(
  6208. 'description' => t('TODO: please describe this field!'),
  6209. 'type' => 'int',
  6210. 'not null' => FALSE,
  6211. ),
  6212. 'nbeg' => array(
  6213. 'description' => t('TODO: please describe this field!'),
  6214. 'type' => 'int',
  6215. 'not null' => FALSE,
  6216. ),
  6217. 'is_nbeg_partial' => array(
  6218. 'description' => t('TODO: please describe this field!'),
  6219. 'type' => 'boolean',
  6220. 'not null' => FALSE,
  6221. ),
  6222. 'nend' => array(
  6223. 'description' => t('TODO: please describe this field!'),
  6224. 'type' => 'int',
  6225. 'not null' => FALSE,
  6226. ),
  6227. 'is_nend_partial' => array(
  6228. 'description' => t('TODO: please describe this field!'),
  6229. 'type' => 'boolean',
  6230. 'not null' => FALSE,
  6231. ),
  6232. 'strand' => array(
  6233. 'description' => t('TODO: please describe this field!'),
  6234. 'type' => 'int',
  6235. 'size' => 'small',
  6236. 'not null' => FALSE,
  6237. ),
  6238. 'phase' => array(
  6239. 'description' => t('TODO: please describe this field!'),
  6240. 'type' => 'int',
  6241. 'not null' => FALSE,
  6242. ),
  6243. 'residue_info' => array(
  6244. 'description' => t('TODO: please describe this field!'),
  6245. 'type' => 'text',
  6246. 'not null' => FALSE,
  6247. ),
  6248. 'locgroup' => array(
  6249. 'description' => t('TODO: please describe this field!'),
  6250. 'type' => 'int',
  6251. 'not null' => FALSE,
  6252. ),
  6253. 'rank' => array(
  6254. 'description' => t('TODO: please describe this field!'),
  6255. 'type' => 'int',
  6256. 'not null' => FALSE,
  6257. ),
  6258. ),
  6259. );
  6260. $schema['db'] = array(
  6261. 'description' => t('TODO: please describe this table!'),
  6262. 'fields' => array(
  6263. 'db_id' => array(
  6264. 'description' => t('TODO: please describe this field!'),
  6265. 'type' => 'serial',
  6266. 'not null' => TRUE,
  6267. ),
  6268. 'name' => array(
  6269. 'description' => t('TODO: please describe this field!'),
  6270. 'type' => 'varchar',
  6271. 'length' => '255',
  6272. 'not null' => TRUE,
  6273. ),
  6274. 'description' => array(
  6275. 'description' => t('TODO: please describe this field!'),
  6276. 'type' => 'varchar',
  6277. 'length' => '255',
  6278. 'not null' => FALSE,
  6279. ),
  6280. 'urlprefix' => array(
  6281. 'description' => t('TODO: please describe this field!'),
  6282. 'type' => 'varchar',
  6283. 'length' => '255',
  6284. 'not null' => FALSE,
  6285. ),
  6286. 'url' => array(
  6287. 'description' => t('TODO: please describe this field!'),
  6288. 'type' => 'varchar',
  6289. 'length' => '255',
  6290. 'not null' => FALSE,
  6291. ),
  6292. ),
  6293. 'primary key' => array('db_id'),
  6294. 'unique keys' => array(
  6295. 'db_c1' => array('name')
  6296. ),
  6297. );
  6298. $schema['cvtermsynonym'] = array(
  6299. 'description' => t('TODO: please describe this table!'),
  6300. 'fields' => array(
  6301. 'cvtermsynonym_id' => array(
  6302. 'description' => t('TODO: please describe this field!'),
  6303. 'type' => 'serial',
  6304. 'not null' => TRUE,
  6305. ),
  6306. 'cvterm_id' => array(
  6307. 'description' => t('TODO: please describe this field!'),
  6308. 'type' => 'int',
  6309. 'not null' => TRUE,
  6310. ),
  6311. 'synonym' => array(
  6312. 'description' => t('TODO: please describe this field!'),
  6313. 'type' => 'varchar',
  6314. 'length' => '1024',
  6315. 'not null' => TRUE,
  6316. ),
  6317. 'type_id' => array(
  6318. 'description' => t('TODO: please describe this field!'),
  6319. 'type' => 'int',
  6320. 'not null' => FALSE,
  6321. ),
  6322. ),
  6323. 'primary key' => array('cvtermsynonym_id'),
  6324. 'unique keys' => array(
  6325. 'cvtermsynonym_c1' => array('cvterm_id', 'synonym')
  6326. ),
  6327. 'indexes' => array(
  6328. 'cvtermsynonym_idx1' => array('cvterm_id'),
  6329. ),
  6330. );
  6331. $schema['cvterm_dbxref'] = array(
  6332. 'description' => t('TODO: please describe this table!'),
  6333. 'fields' => array(
  6334. 'cvterm_dbxref_id' => array(
  6335. 'description' => t('TODO: please describe this field!'),
  6336. 'type' => 'serial',
  6337. 'not null' => TRUE,
  6338. ),
  6339. 'cvterm_id' => array(
  6340. 'description' => t('TODO: please describe this field!'),
  6341. 'type' => 'int',
  6342. 'not null' => TRUE,
  6343. ),
  6344. 'dbxref_id' => array(
  6345. 'description' => t('TODO: please describe this field!'),
  6346. 'type' => 'int',
  6347. 'not null' => TRUE,
  6348. ),
  6349. 'is_for_definition' => array(
  6350. 'description' => t('TODO: please describe this field!'),
  6351. 'type' => 'int',
  6352. 'not null' => TRUE,
  6353. 'default' => 0,
  6354. ),
  6355. ),
  6356. 'primary key' => array('cvterm_dbxref_id'),
  6357. 'unique keys' => array(
  6358. 'cvterm_dbxref_c1' => array('cvterm_id', 'dbxref_id')
  6359. ),
  6360. 'indexes' => array(
  6361. 'cvterm_dbxref_idx1' => array('cvterm_id'),
  6362. 'cvterm_dbxref_idx2' => array('dbxref_id'),
  6363. ),
  6364. );
  6365. $schema['cvterm_relationship'] = array(
  6366. 'description' => t('TODO: please describe this table!'),
  6367. 'fields' => array(
  6368. 'cvterm_relationship_id' => array(
  6369. 'description' => t('TODO: please describe this field!'),
  6370. 'type' => 'serial',
  6371. 'not null' => TRUE,
  6372. ),
  6373. 'type_id' => array(
  6374. 'description' => t('TODO: please describe this field!'),
  6375. 'type' => 'int',
  6376. 'not null' => TRUE,
  6377. ),
  6378. 'subject_id' => array(
  6379. 'description' => t('TODO: please describe this field!'),
  6380. 'type' => 'int',
  6381. 'not null' => TRUE,
  6382. ),
  6383. 'object_id' => array(
  6384. 'description' => t('TODO: please describe this field!'),
  6385. 'type' => 'int',
  6386. 'not null' => TRUE,
  6387. ),
  6388. ),
  6389. 'primary key' => array('cvterm_relationship_id'),
  6390. 'unique keys' => array(
  6391. 'cvterm_relationship_c1' => array('subject_id', 'object_id', 'type_id')
  6392. ),
  6393. 'indexes' => array(
  6394. 'cvterm_relationship_idx1' => array('type_id'),
  6395. 'cvterm_relationship_idx2' => array('subject_id'),
  6396. 'cvterm_relationship_idx3' => array('object_id'),
  6397. ),
  6398. );
  6399. $schema['cvtermpath'] = array(
  6400. 'description' => t('TODO: please describe this table!'),
  6401. 'fields' => array(
  6402. 'cvtermpath_id' => array(
  6403. 'description' => t('TODO: please describe this field!'),
  6404. 'type' => 'serial',
  6405. 'not null' => TRUE,
  6406. ),
  6407. 'type_id' => array(
  6408. 'description' => t('TODO: please describe this field!'),
  6409. 'type' => 'int',
  6410. 'not null' => FALSE,
  6411. ),
  6412. 'subject_id' => array(
  6413. 'description' => t('TODO: please describe this field!'),
  6414. 'type' => 'int',
  6415. 'not null' => TRUE,
  6416. ),
  6417. 'object_id' => array(
  6418. 'description' => t('TODO: please describe this field!'),
  6419. 'type' => 'int',
  6420. 'not null' => TRUE,
  6421. ),
  6422. 'cv_id' => array(
  6423. 'description' => t('TODO: please describe this field!'),
  6424. 'type' => 'int',
  6425. 'not null' => TRUE,
  6426. ),
  6427. 'pathdistance' => array(
  6428. 'description' => t('TODO: please describe this field!'),
  6429. 'type' => 'int',
  6430. 'not null' => FALSE,
  6431. ),
  6432. ),
  6433. 'primary key' => array('cvtermpath_id'),
  6434. 'unique keys' => array(
  6435. 'cvtermpath_c1' => array('subject_id', 'object_id', 'type_id', 'pathdistance')
  6436. ),
  6437. 'indexes' => array(
  6438. 'cvtermpath_idx1' => array('type_id'),
  6439. 'cvtermpath_idx2' => array('subject_id'),
  6440. 'cvtermpath_idx3' => array('object_id'),
  6441. 'cvtermpath_idx4' => array('cv_id'),
  6442. ),
  6443. );
  6444. $schema['cvtermprop'] = array(
  6445. 'description' => t('TODO: please describe this table!'),
  6446. 'fields' => array(
  6447. 'cvtermprop_id' => array(
  6448. 'description' => t('TODO: please describe this field!'),
  6449. 'type' => 'serial',
  6450. 'not null' => TRUE,
  6451. ),
  6452. 'cvterm_id' => array(
  6453. 'description' => t('TODO: please describe this field!'),
  6454. 'type' => 'int',
  6455. 'not null' => TRUE,
  6456. ),
  6457. 'type_id' => array(
  6458. 'description' => t('TODO: please describe this field!'),
  6459. 'type' => 'int',
  6460. 'not null' => TRUE,
  6461. ),
  6462. 'value' => array(
  6463. 'description' => t('TODO: please describe this field!'),
  6464. 'type' => 'text',
  6465. 'not null' => TRUE,
  6466. 'default' => '',
  6467. ),
  6468. 'rank' => array(
  6469. 'description' => t('TODO: please describe this field!'),
  6470. 'type' => 'int',
  6471. 'not null' => TRUE,
  6472. 'default' => 0,
  6473. ),
  6474. ),
  6475. 'primary key' => array('cvtermprop_id'),
  6476. 'unique keys' => array(
  6477. 'cvterm_id' => array('cvterm_id', 'type_id', 'value', 'rank')
  6478. ),
  6479. 'indexes' => array(
  6480. 'cvtermprop_idx1' => array('cvterm_id'),
  6481. 'cvtermprop_idx2' => array('type_id'),
  6482. ),
  6483. );
  6484. $schema['eimage'] = array(
  6485. 'description' => t('TODO: please describe this table!'),
  6486. 'fields' => array(
  6487. 'eimage_id' => array(
  6488. 'description' => t('TODO: please describe this field!'),
  6489. 'type' => 'serial',
  6490. 'not null' => TRUE,
  6491. ),
  6492. 'eimage_data' => array(
  6493. 'description' => t('TODO: please describe this field!'),
  6494. 'type' => 'text',
  6495. 'not null' => FALSE,
  6496. ),
  6497. 'eimage_type' => array(
  6498. 'description' => t('TODO: please describe this field!'),
  6499. 'type' => 'varchar',
  6500. 'length' => '255',
  6501. 'not null' => TRUE,
  6502. ),
  6503. 'image_uri' => array(
  6504. 'description' => t('TODO: please describe this field!'),
  6505. 'type' => 'varchar',
  6506. 'length' => '255',
  6507. 'not null' => FALSE,
  6508. ),
  6509. ),
  6510. 'primary key' => array('eimage_id'),
  6511. );
  6512. $schema['element'] = array(
  6513. 'description' => t('TODO: please describe this table!'),
  6514. 'fields' => array(
  6515. 'element_id' => array(
  6516. 'description' => t('TODO: please describe this field!'),
  6517. 'type' => 'serial',
  6518. 'not null' => TRUE,
  6519. ),
  6520. 'feature_id' => array(
  6521. 'description' => t('TODO: please describe this field!'),
  6522. 'type' => 'int',
  6523. 'not null' => FALSE,
  6524. ),
  6525. 'arraydesign_id' => array(
  6526. 'description' => t('TODO: please describe this field!'),
  6527. 'type' => 'int',
  6528. 'not null' => TRUE,
  6529. ),
  6530. 'type_id' => array(
  6531. 'description' => t('TODO: please describe this field!'),
  6532. 'type' => 'int',
  6533. 'not null' => FALSE,
  6534. ),
  6535. 'dbxref_id' => array(
  6536. 'description' => t('TODO: please describe this field!'),
  6537. 'type' => 'int',
  6538. 'not null' => FALSE,
  6539. ),
  6540. ),
  6541. 'primary key' => array('element_id'),
  6542. 'unique keys' => array(
  6543. 'element_c1' => array('feature_id', 'arraydesign_id')
  6544. ),
  6545. 'indexes' => array(
  6546. 'element_idx1' => array('feature_id'),
  6547. 'element_idx2' => array('arraydesign_id'),
  6548. 'element_idx3' => array('type_id'),
  6549. 'element_idx4' => array('dbxref_id'),
  6550. ),
  6551. );
  6552. $schema['expression_cvterm'] = array(
  6553. 'description' => t('TODO: please describe this table!'),
  6554. 'fields' => array(
  6555. 'expression_cvterm_id' => array(
  6556. 'description' => t('TODO: please describe this field!'),
  6557. 'type' => 'serial',
  6558. 'not null' => TRUE,
  6559. ),
  6560. 'expression_id' => array(
  6561. 'description' => t('TODO: please describe this field!'),
  6562. 'type' => 'int',
  6563. 'not null' => TRUE,
  6564. ),
  6565. 'cvterm_id' => array(
  6566. 'description' => t('TODO: please describe this field!'),
  6567. 'type' => 'int',
  6568. 'not null' => TRUE,
  6569. ),
  6570. 'rank' => array(
  6571. 'description' => t('TODO: please describe this field!'),
  6572. 'type' => 'int',
  6573. 'not null' => TRUE,
  6574. 'default' => 0,
  6575. ),
  6576. 'cvterm_type_id' => array(
  6577. 'description' => t('TODO: please describe this field!'),
  6578. 'type' => 'int',
  6579. 'not null' => TRUE,
  6580. ),
  6581. ),
  6582. 'primary key' => array('expression_cvterm_id'),
  6583. 'unique keys' => array(
  6584. 'expression_cvterm_c1' => array('expression_id', 'cvterm_id', 'cvterm_type_id')
  6585. ),
  6586. 'indexes' => array(
  6587. 'expression_cvterm_idx1' => array('expression_id'),
  6588. 'expression_cvterm_idx2' => array('cvterm_id'),
  6589. 'expression_cvterm_idx3' => array('cvterm_type_id'),
  6590. ),
  6591. );
  6592. $schema['expression_cvtermprop'] = array(
  6593. 'description' => t('TODO: please describe this table!'),
  6594. 'fields' => array(
  6595. 'expression_cvtermprop_id' => array(
  6596. 'description' => t('TODO: please describe this field!'),
  6597. 'type' => 'serial',
  6598. 'not null' => TRUE,
  6599. ),
  6600. 'expression_cvterm_id' => array(
  6601. 'description' => t('TODO: please describe this field!'),
  6602. 'type' => 'int',
  6603. 'not null' => TRUE,
  6604. ),
  6605. 'type_id' => array(
  6606. 'description' => t('TODO: please describe this field!'),
  6607. 'type' => 'int',
  6608. 'not null' => TRUE,
  6609. ),
  6610. 'value' => array(
  6611. 'description' => t('TODO: please describe this field!'),
  6612. 'type' => 'text',
  6613. 'not null' => FALSE,
  6614. ),
  6615. 'rank' => array(
  6616. 'description' => t('TODO: please describe this field!'),
  6617. 'type' => 'int',
  6618. 'not null' => TRUE,
  6619. 'default' => 0,
  6620. ),
  6621. ),
  6622. 'primary key' => array('expression_cvtermprop_id'),
  6623. 'unique keys' => array(
  6624. 'expression_cvtermprop_c1' => array('expression_cvterm_id', 'type_id', 'rank')
  6625. ),
  6626. 'indexes' => array(
  6627. 'expression_cvtermprop_idx1' => array('expression_cvterm_id'),
  6628. 'expression_cvtermprop_idx2' => array('type_id'),
  6629. ),
  6630. );
  6631. $schema['expression_image'] = array(
  6632. 'description' => t('TODO: please describe this table!'),
  6633. 'fields' => array(
  6634. 'expression_image_id' => array(
  6635. 'description' => t('TODO: please describe this field!'),
  6636. 'type' => 'serial',
  6637. 'not null' => TRUE,
  6638. ),
  6639. 'expression_id' => array(
  6640. 'description' => t('TODO: please describe this field!'),
  6641. 'type' => 'int',
  6642. 'not null' => TRUE,
  6643. ),
  6644. 'eimage_id' => array(
  6645. 'description' => t('TODO: please describe this field!'),
  6646. 'type' => 'int',
  6647. 'not null' => TRUE,
  6648. ),
  6649. ),
  6650. 'primary key' => array('expression_image_id'),
  6651. 'unique keys' => array(
  6652. 'expression_image_c1' => array('expression_id', 'eimage_id')
  6653. ),
  6654. 'indexes' => array(
  6655. 'expression_image_idx1' => array('expression_id'),
  6656. 'expression_image_idx2' => array('eimage_id'),
  6657. ),
  6658. );
  6659. $schema['expression_pub'] = array(
  6660. 'description' => t('TODO: please describe this table!'),
  6661. 'fields' => array(
  6662. 'expression_pub_id' => array(
  6663. 'description' => t('TODO: please describe this field!'),
  6664. 'type' => 'serial',
  6665. 'not null' => TRUE,
  6666. ),
  6667. 'expression_id' => array(
  6668. 'description' => t('TODO: please describe this field!'),
  6669. 'type' => 'int',
  6670. 'not null' => TRUE,
  6671. ),
  6672. 'pub_id' => array(
  6673. 'description' => t('TODO: please describe this field!'),
  6674. 'type' => 'int',
  6675. 'not null' => TRUE,
  6676. ),
  6677. ),
  6678. 'primary key' => array('expression_pub_id'),
  6679. 'unique keys' => array(
  6680. 'expression_pub_c1' => array('expression_id', 'pub_id')
  6681. ),
  6682. 'indexes' => array(
  6683. 'expression_pub_idx1' => array('expression_id'),
  6684. 'expression_pub_idx2' => array('pub_id'),
  6685. ),
  6686. );
  6687. $schema['expression'] = array(
  6688. 'description' => t('TODO: please describe this table!'),
  6689. 'fields' => array(
  6690. 'expression_id' => array(
  6691. 'description' => t('TODO: please describe this field!'),
  6692. 'type' => 'serial',
  6693. 'not null' => TRUE,
  6694. ),
  6695. 'uniquename' => array(
  6696. 'description' => t('TODO: please describe this field!'),
  6697. 'type' => 'text',
  6698. 'not null' => TRUE,
  6699. ),
  6700. 'md5checksum' => array(
  6701. 'description' => t('TODO: please describe this field!'),
  6702. 'type' => 'char',
  6703. 'length' => '32',
  6704. 'not null' => FALSE,
  6705. ),
  6706. 'description' => array(
  6707. 'description' => t('TODO: please describe this field!'),
  6708. 'type' => 'text',
  6709. 'not null' => FALSE,
  6710. ),
  6711. ),
  6712. 'primary key' => array('expression_id'),
  6713. 'unique keys' => array(
  6714. 'expression_c1' => array('uniquename')
  6715. ),
  6716. );
  6717. $schema['environment_cvterm'] = array(
  6718. 'description' => t('TODO: please describe this table!'),
  6719. 'fields' => array(
  6720. 'environment_cvterm_id' => array(
  6721. 'description' => t('TODO: please describe this field!'),
  6722. 'type' => 'serial',
  6723. 'not null' => TRUE,
  6724. ),
  6725. 'environment_id' => array(
  6726. 'description' => t('TODO: please describe this field!'),
  6727. 'type' => 'int',
  6728. 'not null' => TRUE,
  6729. ),
  6730. 'cvterm_id' => array(
  6731. 'description' => t('TODO: please describe this field!'),
  6732. 'type' => 'int',
  6733. 'not null' => TRUE,
  6734. ),
  6735. ),
  6736. 'primary key' => array('environment_cvterm_id'),
  6737. 'unique keys' => array(
  6738. 'environment_cvterm_c1' => array('environment_id', 'cvterm_id')
  6739. ),
  6740. 'indexes' => array(
  6741. 'environment_cvterm_idx1' => array('environment_id'),
  6742. 'environment_cvterm_idx2' => array('cvterm_id'),
  6743. ),
  6744. );
  6745. $schema['element_relationship'] = array(
  6746. 'description' => t('TODO: please describe this table!'),
  6747. 'fields' => array(
  6748. 'element_relationship_id' => array(
  6749. 'description' => t('TODO: please describe this field!'),
  6750. 'type' => 'serial',
  6751. 'not null' => TRUE,
  6752. ),
  6753. 'subject_id' => array(
  6754. 'description' => t('TODO: please describe this field!'),
  6755. 'type' => 'int',
  6756. 'not null' => TRUE,
  6757. ),
  6758. 'type_id' => array(
  6759. 'description' => t('TODO: please describe this field!'),
  6760. 'type' => 'int',
  6761. 'not null' => TRUE,
  6762. ),
  6763. 'object_id' => array(
  6764. 'description' => t('TODO: please describe this field!'),
  6765. 'type' => 'int',
  6766. 'not null' => TRUE,
  6767. ),
  6768. 'value' => array(
  6769. 'description' => t('TODO: please describe this field!'),
  6770. 'type' => 'text',
  6771. 'not null' => FALSE,
  6772. ),
  6773. 'rank' => array(
  6774. 'description' => t('TODO: please describe this field!'),
  6775. 'type' => 'int',
  6776. 'not null' => TRUE,
  6777. 'default' => 0,
  6778. ),
  6779. ),
  6780. 'primary key' => array('element_relationship_id'),
  6781. 'unique keys' => array(
  6782. 'element_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  6783. ),
  6784. 'indexes' => array(
  6785. 'element_relationship_idx1' => array('subject_id'),
  6786. 'element_relationship_idx2' => array('type_id'),
  6787. 'element_relationship_idx3' => array('object_id'),
  6788. 'element_relationship_idx4' => array('value'),
  6789. ),
  6790. );
  6791. $schema['elementresult'] = array(
  6792. 'description' => t('TODO: please describe this table!'),
  6793. 'fields' => array(
  6794. 'elementresult_id' => array(
  6795. 'description' => t('TODO: please describe this field!'),
  6796. 'type' => 'serial',
  6797. 'not null' => TRUE,
  6798. ),
  6799. 'element_id' => array(
  6800. 'description' => t('TODO: please describe this field!'),
  6801. 'type' => 'int',
  6802. 'not null' => TRUE,
  6803. ),
  6804. 'quantification_id' => array(
  6805. 'description' => t('TODO: please describe this field!'),
  6806. 'type' => 'int',
  6807. 'not null' => TRUE,
  6808. ),
  6809. 'signal' => array(
  6810. 'description' => t('TODO: please describe this field!'),
  6811. 'type' => 'float',
  6812. 'size' => 'big',
  6813. 'not null' => TRUE,
  6814. ),
  6815. ),
  6816. 'primary key' => array('elementresult_id'),
  6817. 'unique keys' => array(
  6818. 'elementresult_c1' => array('element_id', 'quantification_id')
  6819. ),
  6820. 'indexes' => array(
  6821. 'elementresult_idx1' => array('element_id'),
  6822. 'elementresult_idx2' => array('quantification_id'),
  6823. 'elementresult_idx3' => array('signal'),
  6824. ),
  6825. );
  6826. $schema['elementresult_relationship'] = array(
  6827. 'description' => t('TODO: please describe this table!'),
  6828. 'fields' => array(
  6829. 'elementresult_relationship_id' => array(
  6830. 'description' => t('TODO: please describe this field!'),
  6831. 'type' => 'serial',
  6832. 'not null' => TRUE,
  6833. ),
  6834. 'subject_id' => array(
  6835. 'description' => t('TODO: please describe this field!'),
  6836. 'type' => 'int',
  6837. 'not null' => TRUE,
  6838. ),
  6839. 'type_id' => array(
  6840. 'description' => t('TODO: please describe this field!'),
  6841. 'type' => 'int',
  6842. 'not null' => TRUE,
  6843. ),
  6844. 'object_id' => array(
  6845. 'description' => t('TODO: please describe this field!'),
  6846. 'type' => 'int',
  6847. 'not null' => TRUE,
  6848. ),
  6849. 'value' => array(
  6850. 'description' => t('TODO: please describe this field!'),
  6851. 'type' => 'text',
  6852. 'not null' => FALSE,
  6853. ),
  6854. 'rank' => array(
  6855. 'description' => t('TODO: please describe this field!'),
  6856. 'type' => 'int',
  6857. 'not null' => TRUE,
  6858. 'default' => 0,
  6859. ),
  6860. ),
  6861. 'primary key' => array('elementresult_relationship_id'),
  6862. 'unique keys' => array(
  6863. 'elementresult_relationship_c1' => array('subject_id', 'object_id', 'type_id', 'rank')
  6864. ),
  6865. 'indexes' => array(
  6866. 'elementresult_relationship_idx1' => array('subject_id'),
  6867. 'elementresult_relationship_idx2' => array('type_id'),
  6868. 'elementresult_relationship_idx3' => array('object_id'),
  6869. 'elementresult_relationship_idx4' => array('value'),
  6870. ),
  6871. );
  6872. $schema['environment'] = array(
  6873. 'description' => t('TODO: please describe this table!'),
  6874. 'fields' => array(
  6875. 'environment_id' => array(
  6876. 'description' => t('TODO: please describe this field!'),
  6877. 'type' => 'serial',
  6878. 'not null' => TRUE,
  6879. ),
  6880. 'uniquename' => array(
  6881. 'description' => t('TODO: please describe this field!'),
  6882. 'type' => 'text',
  6883. 'not null' => TRUE,
  6884. ),
  6885. 'description' => array(
  6886. 'description' => t('TODO: please describe this field!'),
  6887. 'type' => 'text',
  6888. 'not null' => FALSE,
  6889. ),
  6890. ),
  6891. 'primary key' => array('environment_id'),
  6892. 'unique keys' => array(
  6893. 'environment_c1' => array('uniquename')
  6894. ),
  6895. 'indexes' => array(
  6896. 'environment_idx1' => array('uniquename'),
  6897. ),
  6898. );
  6899. return $schema;
  6900. }