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


--
-- 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=28913;

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


--
-- 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=13683;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$oH7c7YO1K152nJSABeeOjxh7.lp32LVTWXwbLlpKy.UDan4Zkk24K','user','ak_516b15ed2fd645e1','2023-11-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$s236GlbcO63nvxX9CIXjKQ3msudqL9ct7PBAZyZPIVvslIJSbxdMo','user','ak_fb470bb0a20f83a9','2023-02-10 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$0kPlWFMAcPBrJlL4N7biePqViUzm9RW10uBm68H3APbux9emWc0JP','admin','ak_9af6a11b4571101e','2023-11-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$LUaOFtqtfn8TWY5sEKU34AvdZTzO6hbexY/xln7ARngbEDm1K.I7h','user','ak_a49160239f491156','2023-01-08 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$0AQbO3DOY3eUXgtlKfDQMsEwgtIlLsLuzThtCuDKw/qIJ.mF8ES6i','admin','ak_1a87c920fa866dce','2023-01-27 10:12:00',NULL);

