-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$8DttcnNQbObZtv.QRkoybvm2C.7HFV1hIQkRd36uof6lj5Rvpsj.z','admin','ak_c56bfa10415c67aa','2023-07-07 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$uDKrWs3XYoKgIdMD6QgzkJ3J2yuS/CyW.7F96ZwUv.ytc1uJQ8CGx','admin','ak_0d3bd8d609a15372','2023-11-28 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$1uIythpTghVHpt3TzTUTpXmWqPzlSCMShTTLwF16doW8Z0wh9R2LC','user','ak_6ca9b8fed624cbf3','2023-11-01 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$tva.XcGclD6AqUgNf11/J6uUgED48Df.CZQgLd8oxxGeixEyWbqLm','admin','ak_039608e05d1727f2','2023-03-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$rcIND/6wnj3MEBVOxGnL4SUibqbsLIASg82FicxLtZ.wYKO2J1y7R','user','ak_a3c2603ac906a2b0','2023-09-07 10:17: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=2257;

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


