mirror of https://github.com/sipwise/db-schema.git
This reverts commit 2431bb6374
.
Change-Id: Iaf9a3a4acd932fb36733fad16ec14aa5a1ae8e92
changes/24/2224/1
parent
2431bb6374
commit
4f0043b6b2
@ -1,15 +1,14 @@
|
|||||||
USE billing;
|
USE billing;
|
||||||
CREATE TABLE `journals` (
|
CREATE TABLE `journals` (
|
||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`operation` enum('create','update','delete') NOT NULL DEFAULT 'create',
|
`type` enum('create','update','delete') NOT NULL DEFAULT 'create',
|
||||||
`resource_name` varchar(64) NOT NULL,
|
`resource` varchar(64) NOT NULL,
|
||||||
`resource_id` int(11) unsigned NOT NULL,
|
`resource_id` int(11) unsigned NOT NULL,
|
||||||
`timestamp` decimal(13,3) NOT NULL,
|
`timestamp` decimal(13,3) NOT NULL,
|
||||||
`username` varchar(127) DEFAULT NULL,
|
|
||||||
`content_format` enum('storable','json','json_deflate') NOT NULL DEFAULT 'json',
|
|
||||||
`content` longblob,
|
`content` longblob,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `res_idx` (`resource_name`,`resource_id`),
|
KEY `res_idx` (`resource`,`resource_id`),
|
||||||
KEY `ts_idx` (`timestamp`),
|
KEY `ts_idx` (`timestamp`),
|
||||||
KEY `op_idx` (`operation`)
|
KEY `type_idx` (`type`)
|
||||||
) ENGINE=InnoDB;
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
Loading…
Reference in new issue