schema: add mailbox_usage.for_nameplate too
This commit is contained in:
parent
bae020d5a7
commit
db8511c700
|
@ -60,6 +60,7 @@ CREATE TABLE `messages`
|
||||||
);
|
);
|
||||||
CREATE INDEX `messages_idx` ON `messages` (`app_id`, `mailbox_id`);
|
CREATE INDEX `messages_idx` ON `messages` (`app_id`, `mailbox_id`);
|
||||||
|
|
||||||
|
ALTER TABLE `mailbox_usage` ADD COLUMN `for_nameplate` BOOLEAN;
|
||||||
CREATE INDEX `mailbox_usage_result_idx` ON `mailbox_usage` (`result`);
|
CREATE INDEX `mailbox_usage_result_idx` ON `mailbox_usage` (`result`);
|
||||||
CREATE INDEX `transit_usage_result_idx` ON `transit_usage` (`result`);
|
CREATE INDEX `transit_usage_result_idx` ON `transit_usage` (`result`);
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ CREATE INDEX `nameplate_usage_idx` ON `nameplate_usage` (`app_id`, `started`);
|
||||||
CREATE TABLE `mailbox_usage`
|
CREATE TABLE `mailbox_usage`
|
||||||
(
|
(
|
||||||
`app_id` VARCHAR,
|
`app_id` VARCHAR,
|
||||||
|
`for_nameplate` BOOLEAN, -- allocated for a nameplate, not standalone
|
||||||
`started` INTEGER, -- seconds since epoch, rounded to "blur time"
|
`started` INTEGER, -- seconds since epoch, rounded to "blur time"
|
||||||
`total_time` INTEGER, -- seconds from open to last close
|
`total_time` INTEGER, -- seconds from open to last close
|
||||||
`waiting_time` INTEGER, -- seconds from start to 2nd side appearing, or None
|
`waiting_time` INTEGER, -- seconds from start to 2nd side appearing, or None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user