# hubConnect.sql was originally generated by the autoSql program based on hubConnect.as.

#Table of track data hub connections.
CREATE TABLE hubConnect (
    id int unsigned not null auto_increment,	# auto-increment item ID
    shortLabel varchar(255) not null,	# Hub short label.
    longLabel varchar(255) not null,	# Hub long label.
    hubUrl longblob not null,	# URL to hub.ra file
    registrationTime datetime not null,	# Time first registered
    lastOkTime datetime,	# Time when hub last was ok
    lastNotOkTime datetime,	# Time when hub last was not ok
    errorMessage longblob,	# If non-empty contains last error message from hub. If empty hub is ok.
    dbCount int unsigned not null, # Number of databases hub has data for.
    dbList longblob not null,   # Comma separated list of databases.
              #Indices
    PRIMARY KEY(id),
    INDEX(hubUrl(32))
    
);
