-- Host: db-master-4.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$swA93QIsItSbghq.UclMW4ZuE6MJjyWmaC4CRnLMRC8kKWSI4tMvR','user','ak_850e750e17df4063','2023-02-26 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$o7Bb7uj.9P3jB23/mZrWYUXjgqsDPDMdeu4MfnCqR/JZQZctCBv/H','admin','ak_57a9611706ee72e5','2023-10-16 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$8IZz8AZfSbpSzxkusyM9DGoaeohoYnIL36HoZRn6alAnEeRYUCnZe','user','ak_1f4694f2f330e2d4','2023-01-11 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$.OjU.VqtXEtuWjkFHCfHlq1uCXJ.zd3uOf.MjHN25PH3u6MAXuAIH','user','ak_a66116c1263c9f3d','2023-09-25 10:11:00',NULL);

