-- Host: db-master-8.internal    Database: analytics


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=7416;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$MR9alD4pSZQJvirmGXMcLEPliPLeyzaL6LbsSGKMFVjXHByA/F9tj','user','ak_a020317eb5b0a421','2023-04-07 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$vn.eHvQDi9zsOBlG6QV0KRv1BCJL7H37HTjz9u2zwDQ1QRcbar9gQ','user','ak_00fd094055c0b9af','2023-03-28 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$NBrpJc6K.WIbFQywW8vbBE33Ysxx0lPdvvioKUWcZwBktxe8OWMaM','user','ak_086342ba0e003abd','2023-03-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$s1HVKd.YubIGmWYqWI5.l4uoVwAL5qaV9gS751KHrxcBn8H0fNCPz','admin','ak_a01d13575628d9b4','2023-06-08 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$4xpWuNzmWheVezhGBXtlBNrxuCwN8CBTKe/4wj3yZoO7N8BVRrHQo','user','ak_8cadbfc50f0d4744','2023-09-17 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$y0YF3WEvWZ8vQQlFe5E.kxyi.2sI0KsYVz8L6RuHuCR/O3aTQl.gZ','user','ak_e6fdc9038ebe8ced','2023-03-25 10:10:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=17215;

--
-- Dumping data for table `audit_log`
--


