-- Host: db-master-8.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=34529;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$/uGRQuYeXC76hHWPSnbjvH9XQ.S8Wikir5FosGVOfszZ4PemwPhH2','user','ak_09f2b38ea443ef9c','2023-09-27 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$k1g41CE39HeKtC.93ULZFQpdEhfGDX.cm..b63YaHTG5q09rVk/lo','user','ak_d36cbfe877bb5021','2023-02-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$EsoIswpio1kV6NxAHwc/D3z/B2DgGL7UZXvyfWEy0c2nt08bRSLa7','user','ak_5c97f14e9cb67b7c','2023-12-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$aOUyyTCAvGRn14A2cGbhrSMAZUO4ViapOUjvIcqHu6nf7YZzaXVGU','user','ak_711a2d00a8582d6e','2023-06-08 10:00: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=35156;

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


