1
0

stat_table_User_auth.sql 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. -- --------------------------------------------------------
  2. --
  3. -- Структура таблицы `User_auth`
  4. --
  5. CREATE TABLE `User_auth` (
  6. `id` int(11) NOT NULL,
  7. `user_id` int(11) NOT NULL DEFAULT 0,
  8. `ip` varchar(18) NOT NULL DEFAULT '',
  9. `ip_int` int(10) UNSIGNED NOT NULL DEFAULT 0,
  10. `save_traf` tinyint(1) NOT NULL DEFAULT 0,
  11. `enabled` tinyint(1) NOT NULL DEFAULT 0,
  12. `dhcp` tinyint(1) NOT NULL DEFAULT 1,
  13. `filter_group_id` tinyint(1) NOT NULL DEFAULT 0,
  14. `deleted` tinyint(4) NOT NULL DEFAULT 0,
  15. `comments` text DEFAULT NULL,
  16. `dns_name` varchar(60) NOT NULL DEFAULT '',
  17. `dhcp_acl` text DEFAULT NULL,
  18. `queue_id` int(11) NOT NULL DEFAULT 0,
  19. `mac` varchar(20) NOT NULL DEFAULT '',
  20. `dhcp_action` varchar(10) NOT NULL DEFAULT '',
  21. `dhcp_time` datetime NOT NULL DEFAULT current_timestamp(),
  22. `dhcp_hostname` varchar(60) DEFAULT NULL,
  23. `last_found` datetime NOT NULL DEFAULT current_timestamp(),
  24. `blocked` tinyint(1) NOT NULL DEFAULT 0,
  25. `day_quota` int(11) NOT NULL DEFAULT 0,
  26. `month_quota` int(11) NOT NULL DEFAULT 0,
  27. `timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
  28. `clientid` varchar(50) NOT NULL DEFAULT '',
  29. `nagios` tinyint(1) NOT NULL DEFAULT 0,
  30. `nagios_status` varchar(10) NOT NULL DEFAULT '',
  31. `host_model` varchar(50) NOT NULL DEFAULT '',
  32. `nagios_handler` varchar(50) NOT NULL DEFAULT '',
  33. `link_check` tinyint(1) NOT NULL DEFAULT 0,
  34. `changed` tinyint(1) NOT NULL DEFAULT 0,
  35. `changed_time` datetime NOT NULL DEFAULT current_timestamp()
  36. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;