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

#Where a contig is inside of a chromosome.
CREATE TABLE ctgPos (
    contig varchar(255) not null,	# Name of contig
    size int unsigned not null,	# Size of contig
    chrom varchar(255) not null,	# Chromosome name
    chromStart int unsigned not null,	# Start in chromosome
    chromEnd int unsigned not null,	# End in chromosome
              #Indices
    PRIMARY KEY(contig(14)),
    UNIQUE(chrom(16),chromStart)
);
