-- Host: db-master-5.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=20712;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$tZnQOyTg1ftq.00.s6dclKKzj7WuyWIapbdvKPgSUgMRfNT8wdzHf','user','ak_a719af54ee357b16','2023-03-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$kBHVqGhqkhZMMjIbFJN4kUpJMsf45ZQjI6RHes6w/2Z9C4JiCZIbp','user','ak_50de7633941ba303','2023-07-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$l4VMyQmx1KKxySqPlTa6FtQvuGATgT6bxeyCueEbKaeIVSqzTrTyY','user','ak_ec08842b26d8ba8b','2023-05-23 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$85epiPKbtl50p53.C4ww18pcocR/40dCkMIozUqAVkIHaMl0xq1Hs','user','ak_f346d14abd793728','2023-01-04 10:03:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=36075;

--
-- Dumping data for table `sessions`
--


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

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


