-- Host: db-master-2.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=11975;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$cNa194EWnHBmYZPoTzUt3DLioNtIao0Cvp7ishlmsJJmT/3rW2JBF','admin','ak_5de083fa3dda2dd8','2023-12-18 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$B.73/L9riJmjjLWRNWPV.qI9MtqGXY5HaRI.jakxiXTrMxyVPNHER','user','ak_80c5e9ade21b96c1','2023-02-09 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$0fK6RHELns4QcHEorWYKLscQIO.5rOjcvf18fE/NowPxTL0Exx/Rw','user','ak_554c7dc6309fdb3f','2023-12-13 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$4q2TbUUQQoThmD/8FgO1EvGAg0lJvVmKZZKYPbj6EeegGRSE2CMeu','admin','ak_bc40fa2a53a73afa','2023-05-01 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$4i16R3a7j6oABdhiTaTI.xPU6PSVnMAIXqQXmEU9PXIRvMLaMZwVG','user','ak_7c0badcdfa53927c','2023-05-13 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$ognEEU2ajqzIzmu0x4Y82Ex3v5eeSZAiF1xilZT00H0Qz5IB3KdAE','user','ak_e5ba9d83a1e69283','2023-05-19 10:23: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=31575;

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


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

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


