You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15150.up

15 lines
435 B

USE billing;
CREATE TABLE `journals` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` enum('create','update','delete') NOT NULL DEFAULT 'create',
`resource` varchar(64) NOT NULL,
`resource_id` int(11) unsigned NOT NULL,
`timestamp` decimal(13,3) NOT NULL,
`content` longblob,
PRIMARY KEY (`id`),
KEY `res_idx` (`resource`,`resource_id`),
KEY `ts_idx` (`timestamp`),
KEY `type_idx` (`type`)
) ENGINE=InnoDB;