-- Host: db-master-5.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$QCnK37NqrvAtE2.SqCE.hCjeG8E1pBUf6Bsu2s6CqKFf7NSZoWtbU','user','ak_e53afc5bff760e2d','2023-10-06 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ctKwzIY7EAitZnh0UB5BEkymAQVwkZCyJcXBQ35Mm3Pe1I7p4JXP4','user','ak_8ea0c740e830d78a','2023-03-16 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$w9NOOHH71lciFN9rX5f1WaVLLDZ8E/ZEwxaABIzkySkzXWCzNpOly','admin','ak_1b18280a96709405','2023-06-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$CW1BV0DIshd7BLNO3juETorhcPWQk6qY0kNdgY4P0BO9EkscsJbUk','user','ak_ccdd9ac80120b52f','2023-07-26 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$Knzi4LoqtphRJTSVUNu7ckVLOlLHgKU7fQVW5MWEahzwmgyIBBZO5','user','ak_a3a4c50b05fa9505','2023-07-15 10:19: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=41047;

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


