chado_tables.schema.inc 219 KB

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