# Description of Schema

## Tables
featuremap
featurerange
featurepos
featuremap_pub

### featuremap | Top

Comments:
$Id: map.html,v 1.3 2007-03-23 15:18:02 scottcain Exp $
==========================================
Chado map module
=================================================================
Dependencies:
:import feature from sequence
:import cvterm from cv
:import pub from pub
=================================================================
================================================
TABLE: featuremap
================================================

Field Name | Data Type | Size | Default Value | Other | Foreign Key
--- | --- | --- | --- | --- | ---
featuremap_id | integer | 11 |  | PRIMARY KEY, NOT NULL |
name | varchar | 255 |  | UNIQUE |
description | text | 64000 |  |  |
unittype_id | integer | 10 | NULL |  | cvterm.cvterm_id

### Constraints

Type | Fields
--- | ---
NOT NULL | featuremap_id
FOREIGN KEY | unittype_id
UNIQUE | name

### featurerange | Top

Comments:
================================================
TABLE: featurerange
================================================
In cases where the start and end of a mapped feature is a range, leftendf and rightstartf are populated. leftstartf_id, leftendf_id, rightstartf_id, rightendf_id are the ids of features with respect to which the feature is being mapped. These may be cytological bands.

Field Name | Data Type | Size | Default Value | Other | Foreign Key
--- | --- | --- | --- | --- | ---
featurerange_id | integer | 11 |  | PRIMARY KEY, NOT NULL |
featuremap_id | integer | 10 |  | NOT NULL, featuremap_id is the id of the feature being mapped. | featuremap.featuremap_id
feature_id | integer | 10 |  | NOT NULL | feature.feature_id
leftstartf_id | integer | 10 |  | NOT NULL | feature.feature_id
leftendf_id | integer | 10 |  |  | feature.feature_id
rightstartf_id | integer | 10 |  |  | feature.feature_id
rightendf_id | integer | 10 |  | NOT NULL | feature.feature_id
rangestr | varchar | 255 |  |  |

### Indices

Name | Fields
--- | ---
featurerange_idx1 | featuremap_id
featurerange_idx2 | feature_id
featurerange_idx3 | leftstartf_id
featurerange_idx4 | leftendf_id
featurerange_idx5 | rightstartf_id
featurerange_idx6 | rightendf_id

### Constraints

Type | Fields
--- | ---
NOT NULL | featurerange_id
NOT NULL | featuremap_id
FOREIGN KEY | featuremap_id
NOT NULL | feature_id
FOREIGN KEY | feature_id
NOT NULL | leftstartf_id
FOREIGN KEY | leftstartf_id
FOREIGN KEY | leftendf_id
FOREIGN KEY | rightstartf_id
NOT NULL | rightendf_id
FOREIGN KEY | rightendf_id

### featurepos | Top

Comments:
================================================
TABLE: featurepos
================================================

Field Name | Data Type | Size | Default Value | Other | Foreign Key
--- | --- | --- | --- | --- | ---
featurepos_id | integer | 11 |  | PRIMARY KEY, NOT NULL |
featuremap_id | integer | 11 |  | NOT NULL | featuremap.featuremap_id
feature_id | integer | 10 |  | NOT NULL | feature.feature_id
map_feature_id | integer | 10 |  | NOT NULL, map_feature_id links to the feature (map) upon which the feature is being localized. | feature.feature_id
mappos | float | 20 |  | NOT NULL |

### Indices

Name | Fields
--- | ---
featurepos_idx1 | featuremap_id
featurepos_idx2 | feature_id
featurepos_idx3 | map_feature_id

### Constraints

Type | Fields
--- | ---
NOT NULL | featurepos_id
NOT NULL | featuremap_id
FOREIGN KEY | featuremap_id
NOT NULL | feature_id
FOREIGN KEY | feature_id
NOT NULL | map_feature_id
FOREIGN KEY | map_feature_id
NOT NULL | mappos

### featuremap_pub | Top

Comments:
================================================
TABLE: featuremap_pub
================================================

Field Name | Data Type | Size | Default Value | Other | Foreign Key
--- | --- | --- | --- | --- | ---
featuremap_pub_id | integer | 11 |  | PRIMARY KEY, NOT NULL |
featuremap_id | integer | 10 |  | NOT NULL | featuremap.featuremap_id
pub_id | integer | 10 |  | NOT NULL | pub.pub_id

### Indices

Name | Fields
--- | ---
featuremap_pub_idx1 | featuremap_id
featuremap_pub_idx2 | pub_id

### Constraints

Type | Fields
--- | ---
NOT NULL | featuremap_pub_id
NOT NULL | featuremap_id
FOREIGN KEY | featuremap_id
NOT NULL | pub_id
FOREIGN KEY | pub_id

Created by SQL::Translator 0.08_01