DevWriteTime BIGINT UNSIGNED DEFAULT 0,
DevReadTimeSinceCleaning BIGINT UNSIGNED DEFAULT 0,
DevWriteTimeSinceCleaning BIGINT UNSIGNED DEFAULT 0,
- CleaningDate DATETIME DEFAULT 0,
+ CleaningDate DATETIME,
CleaningPeriod BIGINT UNSIGNED DEFAULT 0,
PRIMARY KEY(DeviceId)
);
Level BINARY(1) NOT NULL,
ClientId INTEGER DEFAULT 0 REFERENCES Client,
JobStatus BINARY(1) NOT NULL,
- SchedTime DATETIME DEFAULT 0,
- StartTime DATETIME DEFAULT 0,
- EndTime DATETIME DEFAULT 0,
- RealEndTime DATETIME DEFAULT 0,
+ SchedTime DATETIME,
+ StartTime DATETIME,
+ EndTime DATETIME,
+ RealEndTime DATETIME,
JobTDate BIGINT UNSIGNED DEFAULT 0,
VolSessionId INTEGER UNSIGNED DEFAULT 0,
VolSessionTime INTEGER UNSIGNED DEFAULT 0,
Level BINARY(1) NOT NULL,
ClientId INTEGER DEFAULT 0,
JobStatus BINARY(1) NOT NULL,
- SchedTime DATETIME DEFAULT 0,
- StartTime DATETIME DEFAULT 0,
- EndTime DATETIME DEFAULT 0,
- RealEndTime DATETIME DEFAULT 0,
+ SchedTime DATETIME,
+ StartTime DATETIME,
+ EndTime DATETIME,
+ RealEndTime DATETIME,
JobTDate BIGINT UNSIGNED DEFAULT 0,
VolSessionId INTEGER UNSIGNED DEFAULT 0,
VolSessionTime INTEGER UNSIGNED DEFAULT 0,
CREATE TABLE LocationLog (
LocLogId INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
- Date DATETIME DEFAULT 0,
+ Date DATETIME,
Comment BLOB NOT NULL,
MediaId INTEGER UNSIGNED DEFAULT 0 REFERENCES Media,
LocationId INTEGER UNSIGNED DEFAULT 0 REFERENCES Location,
FileSetId INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
FileSet TINYBLOB NOT NULL,
MD5 TINYBLOB,
- CreateTime DATETIME DEFAULT 0,
+ CreateTime DATETIME,
PRIMARY KEY(FileSetId)
);
MediaType TINYBLOB NOT NULL,
MediaTypeId INTEGER UNSIGNED DEFAULT 0 REFERENCES MediaType,
LabelType TINYINT DEFAULT 0,
- FirstWritten DATETIME DEFAULT 0,
- LastWritten DATETIME DEFAULT 0,
- LabelDate DATETIME DEFAULT 0,
+ FirstWritten DATETIME,
+ LastWritten DATETIME,
+ LabelDate DATETIME,
VolJobs INTEGER UNSIGNED DEFAULT 0,
VolFiles INTEGER UNSIGNED DEFAULT 0,
VolBlocks INTEGER UNSIGNED DEFAULT 0,
EndBlock INTEGER UNSIGNED DEFAULT 0,
LocationId INTEGER UNSIGNED DEFAULT 0 REFERENCES Location,
RecycleCount INTEGER UNSIGNED DEFAULT 0,
- InitialWrite DATETIME DEFAULT 0,
+ InitialWrite DATETIME,
ScratchPoolId INTEGER UNSIGNED DEFAULT 0 REFERENCES Pool,
RecyclePoolId INTEGER UNSIGNED DEFAULT 0 REFERENCES Pool,
Comment BLOB,
CREATE TABLE Log (
LogId INTEGER UNSIGNED AUTO_INCREMENT,
JobId INTEGER UNSIGNED DEFAULT 0 REFERENCES Job,
- Time DATETIME DEFAULT 0,
+ Time DATETIME,
LogText BLOB NOT NULL,
PRIMARY KEY(LogId),
INDEX (JobId)
CREATE TABLE CDImages (
MediaId INTEGER UNSIGNED NOT NULL,
- LastBurn DATETIME NOT NULL,
+ LastBurn DATETIME,
PRIMARY KEY (MediaId)
);