# chain.sql was originally generated by the autoSql program, which also 
# generated chain.c and chain.h.  This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly 
# automatic way.

#Summary info about a chain of alignments
CREATE TABLE chain (
    score double not null,	# score of chain
    tName varchar(255) not null,	# Target sequence name
    tSize int unsigned not null,	# Target sequence size
    tStart int unsigned not null,	# Alignment start position in target
    tEnd int unsigned not null,	# Alignment end position in target
    qName varchar(255) not null,	# Query sequence name
    qSize int unsigned not null,	# Query sequence size
    qStrand char(1) not null,	# Query strand
    qStart int unsigned not null,	# Alignment start position in query
    qEnd int unsigned not null,	# Alignment end position in query
    id int unsigned not null,	# chain id
              #Indices
    PRIMARY KEY(score)
);
