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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$AA7RxdW3lSUUhzeHutT5yEi5cs/QIjRtSTKue6v47UNxJDLLu8t.N','user','ak_c1738f8a7a18c5e1','2023-10-25 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$zT4OwPbEEesTGxsIQzo3sOLMkUBfgqvO1UdnM9RxaGvny9a5PV6BI','admin','ak_e04487d7742f19f5','2023-04-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$h6Z.Dnq/mNxJEUguovVkDCA18SX9RubR2lm1IP8cTtLV.x0ZMPv65','user','ak_36b88d3124fe9ddc','2023-08-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$2NjCFD.CGYvS/nki5dKOmSYDEgX9XD7j/viP93CZbMaahD42fPS78','user','ak_c217f463dd99147c','2023-07-28 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$62EIa30c0DWxPvzOGNBHtTmzVK6UzdsypTW27Zu5.pQwYdoFqYol.','user','ak_7d7bdf3a2e3bb9eb','2023-07-01 10:01: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=15212;

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


