-- Host: db-master-9.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=26028;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$awOp5VXiOt8hMADIzqJQO1JU00CDUVdvyIDRYX9KQERkDixl6BEj2','user','ak_47703e5f9a44fec2','2023-04-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$WNA8rcsDsgbI1nNh2fNpGfmd./PHM7JMCmZv.vpwRCcs3SgoDs5w3','user','ak_c6fd1b260091a11b','2023-11-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$MSNl0ex.BTVxcxOc662wwID/BS7YYTuW/YjyCixkWzB.VAgiH94xU','admin','ak_8946148b590c90a0','2023-03-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$x34HAXQtwmOyp54mBSwiMVNmL26Ba5fOOT5aSXzYRd0JKlf3/LKFQ','admin','ak_8619922ed467b4b8','2023-05-17 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$OaKod2Rd/qkzBR8WYb9ln7VQkJ6NVxD14Try2Wqm8BeJWQik7zOhM','admin','ak_2181159cc52540dc','2023-06-25 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$VdUNPLBDThrezYZlQEMCjI7.EVYdHIF5eE7viwLF5.lRAJprwR/C.','user','ak_ecd72598297c99a1','2023-07-08 10:12: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=35053;

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


