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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$os2NIIZ45MFxo5t/hMnXcb8l0UabmqlOiIMG9CmeJfBrCSHs7KkA.','user','ak_e411a9389992a82a','2023-09-20 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$DM.FmV4JR0RAMkAUJnL0.j0GzJ8.ZQGfHxrGcBxoYe67qooL2SMzg','user','ak_2d2c8145b6bcf12a','2023-02-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$WFRR418pyT1Mz7kuG2aIlfJd6yAXV5ziadA/RqoO/2wID8AJ5S0S0','user','ak_e44048b473c6aa27','2023-05-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$dc.buuMnOkAd5mifQNxbzdanCpnAuXvURYMxbEdlhY2Zg21xwNEzt','admin','ak_4004a0f2b6e2e43d','2023-10-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$./wyOnF8FMPbvuhKbBJUDRocm5.PC6B6LpOgdublNtcXV3.TMJOhs','user','ak_f5ab39a34b1e7b9d','2023-03-19 10:05: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=43450;

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


