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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$JRJY8iC39eyG/.8bGL7odUOp.tKioAAOIHieB5ndfDHTUOTTxKhnK','user','ak_313d9007b4ec7d62','2023-01-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$F5Rzo7M5LrDtNlP5.c3klribOPKyZOjQb1zPFQUO0Q4SlrGH4BlJ/','user','ak_b151beea76a4b3ac','2023-05-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$CxlMaz3iv8wcpYYo0JaQeBJmDUIw2h1PdBEBcGJTKFUxuH28KwDp6','user','ak_917036340ccbbb85','2023-02-28 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$pt82Yz7.uUnZBWedibIOofI7U6vO0KqIWln6CI6gwbaopga0IT8Ua','user','ak_473a4a9d52d20f58','2023-07-19 10:14:00',NULL);

