aboutsummaryrefslogtreecommitdiff
path: root/sql/schema.org
blob: 0d0646f01a7dafab27268b1d7aef5cafbde53730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#+TITLE: GeneNetwork Database Schema

This is an attempt to reverse engineer and understand the schema of the
GeneNetwork database. The goal is to prune redundant tables, fields, etc. and
arrive at a simplified schema. This simplified schema will be useful when
migrating the database.

* Species
** Id
   Primary key
** SpeciesId
   Looks like a redundant key referred to as a foreign key from many other
   tables. This field should be replaced by Id.
** SpeciesName
   Common name of the species. This field can be replaced by MenuName.
** Name
   Downcased common name used as key for the species in dictionaries
** MenuName
   Name in the Species dropdown menu. This is the SpeciesName, but sometimes
   with the reference genome identifier mentioned in brackets.
** FullName
   Binomial name of the species
** TaxonomyId
   Foreign keys?
** OrderId
   Foreign keys?