-- Host: db-master-5.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=21099;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$5JWlMRjrnk2ZSguhpfd/u8bi0WTDbb50upuGrG2jtdqK0oCPKOaXN','user','ak_39ba830d84d3b4eb','2023-11-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ZWV5Dc0SKJm1qv0DvAcn6wT0Gk6NJmd99JVWyL63O9piQ0icIMMnS','user','ak_9fbed87254724da0','2023-09-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$xndT7VEtoIDAqXC9GdGIKjmCZto4tFxN11UTj5I4xNsBJntJeU8Ha','user','ak_a7b3db89a7633710','2023-05-21 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$e1cwzS9moNP8Bi1wAHEZT2T3PT/6JJZPYyZEeFzgbVdKy6MtmzjDG','user','ak_3d288fbfe4cc0eed','2023-12-13 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$OtsueIb39V1zBBu9AqRZgGdH/lhV/qp.0PYVtRmOwDXCS43hUoIXB','user','ak_3f34eb0cf26af613','2023-10-22 10:05:00',NULL);

