-- Host: db-master-2.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$.Ehth4tRDJkrxNpJRD3WBCxfq3KHzv.0IEcg4HZvh0BXrig8eclI8','user','ak_aa8dcc7d2faa0924','2023-05-18 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$.Uppou7OO5/TJizoAVM2g53uAgaWUMFHKtV6TF1HxtJ7Y69G98Nuh','admin','ak_dbfacadabb2c37dc','2023-01-21 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$hKJkEGIJZ8dnZelXDjLxfEE4.F/gzxXTP22lrsKx3l3062gYHowQ6','user','ak_fdaaf58a9bdcaefd','2023-01-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$irqi4vUfI9nCc78H18pD/J5m1Ciguz2Ir8gTBXgZluuuXZ2jhmW0K','admin','ak_b4c657112096ca47','2023-08-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Tt.781K/Kj/nwU2mJHQgvtW.LecScTkYc/9CFlhLomJ2lf0LVSr1Y','user','ak_36b926d1710b88d7','2023-06-14 10:21:00',NULL);

