stat_table_User_auth.sql 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. `WikiName` VARCHAR(250) DEFAULT NULL;
  18. `dhcp_acl` text DEFAULT NULL,
  19. `queue_id` int(11) NOT NULL DEFAULT 0,
  20. `mac` varchar(20) NOT NULL DEFAULT '',
  21. `dhcp_action` varchar(10) NOT NULL DEFAULT '',
  22. `dhcp_time` datetime NOT NULL DEFAULT current_timestamp(),
  23. `dhcp_hostname` varchar(60) DEFAULT NULL,
  24. `last_found` datetime NOT NULL DEFAULT current_timestamp(),
  25. `blocked` tinyint(1) NOT NULL DEFAULT 0,
  26. `day_quota` int(11) NOT NULL DEFAULT 0,
  27. `month_quota` int(11) NOT NULL DEFAULT 0,
  28. `timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
  29. `clientid` varchar(50) NOT NULL DEFAULT '',
  30. `nagios` tinyint(1) NOT NULL DEFAULT 0,
  31. `nagios_status` varchar(10) NOT NULL DEFAULT '',
  32. `host_model` varchar(50) NOT NULL DEFAULT '',
  33. `nagios_handler` varchar(50) NOT NULL DEFAULT '',
  34. `link_check` tinyint(1) NOT NULL DEFAULT 0,
  35. `changed` tinyint(1) NOT NULL DEFAULT 0,
  36. `changed_time` datetime NOT NULL DEFAULT current_timestamp()
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;