-- Host: db-master-4.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=30403;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$UahaJyG88rH3nUFRxGaHX/El6uGoajJV/mCD0I8kpP0dHIJ6FXKbf','user','ak_09c3e305a1ce3f3a','2023-05-12 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$U6EffMa7/6SApHRrvkHtZn.Y5DkwA.4kUhJ5Z293OwSwFXwn/TPJ/','user','ak_61d4bf933008a321','2023-12-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$uOw19V6lY58UjkMGMaAOWWhWRje7VMxkj5zI3aUZzfYnKITTAeHby','admin','ak_be466ddbedd9ff5c','2023-04-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$cfJ3WF/nQqPApW6aGiQOKCLsqlPdOdUmaQw2GIIExkwAb1MW57xxs','user','ak_732b29a0f0a62b24','2023-04-01 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$T4wMzV1ceL74v9XtBDQvzByS4wWl1KVYsp.H8zNYCzPec.RnJxXvk','user','ak_37fd0e806731caa5','2023-07-13 10:12:00',NULL);

