add on-login / on-up & on-logout / on-down edit script

This commit is contained in:
Ibnu Maksum
2024-06-21 15:52:36 +07:00
parent b0bc35e2be
commit f6ff09957e
12 changed files with 214 additions and 111 deletions

View File

@ -113,7 +113,9 @@ CREATE TABLE `tbl_plans` (
`enabled` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 disabled\r\n',
`prepaid` enum('yes','no') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'yes' COMMENT 'is prepaid',
`plan_type` enum('Business','Personal') COLLATE utf8mb4_general_ci DEFAULT 'Personal' COMMENT 'For selecting account type',
`device` varchar(32) COLLATE utf8mb4_general_ci NOT NULL DEFAULT ''
`device` varchar(32) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`on_login` TEXT NULL DEFAULT NULL,
`on_logout` TEXT NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `tbl_pool`;