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

#ENCODE experiments
CREATE TABLE encodeExp (
    ix int auto_increment,	        # auto-increment ID
    organism varchar(255) not null,	# human or mouse
    lab varchar(255) not null,	        # lab name from ENCODE cv.ra
    dataType varchar(255) not null,	# dataType from ENCODE cv.ra
    cellType varchar(255) not null,	# cellType from ENCODE cv.ra
    expVars varchar(255),	        # var=value list of experiment-defining variables. May be NULL if none.
    accession varchar(255),	        # wgEncodeE[H|M]00000N or NULL if proposed but not yet approved
    updateTime timestamp default now() on update now(),  # last update date-time
              #Indices
    PRIMARY KEY(ix)
);
