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

#GTEx donor (subject) description
CREATE TABLE gtexDonor (
    name varchar(255) not null,	# GTEX subject identifier (minus leading GTEX-), e.g. N7MS
    gender varchar(255) not null,	# Gender (M/F)
    age int unsigned not null,	# Subject age, to the decade (60 means 60-69 yrs)
    deathClass int not null,	# Hardy scale: 0=Ventilator, 1=Fast violent, 2=Fast natural, 3=Intermediate, 4=Slow.  -1 for unknown
              #Indices
    PRIMARY KEY(name)
);
