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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$wLzh0YR9z5JCIZ6P1FbR0t7pcKiYtbrz733RdOXQ4Prz6l50BpJQi','user','ak_8d751a17b8446ba1','2023-05-17 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$UPVFaZhAG5DP53codKY6/f3adLEH4jEpHwUm0NV9s0Stkei6YVXFs','user','ak_7743b560c5251012','2023-10-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Eii3/9fkV/S2LqZlFoq9.xx9xedvbPYTU7IUGbnG5y2Uj8g55iYrF','user','ak_cb87be9da77d2ff5','2023-01-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$QUR3nNElS1a1kAJLvOy0XHC9sy7fS3y/XxsC70fflrVrbyglJb1E/','user','ak_a36ee33fd212e5e2','2023-12-14 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$tAubL3l0yVEKKk82gqjUE5AiWcgKugDvQkyvuKVmLOe6cRPkxWISe','user','ak_b7c928a86e02c83f','2023-03-01 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$8lUxMXbf66/6wRJg3p6ZExRBkntlvRsDqWgHLF/YPcIZvL79kcXz7','admin','ak_d6bf67e98ff4bee0','2023-07-14 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$dAHzH//VVxXeO6pmSclLjR50ac8zsN/ZyfA.PQvjHpjiv20UlLXEE','admin','ak_4e1a9831bc9ced58','2023-03-22 10:14:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=15466;

--
-- Dumping data for table `products`
--


