-- Host: db-master-9.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=3269;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$mAdbSX/sJmaeEC2A88XosV1RuByDZBXntXgVXmHYitZAZfJ0JDjhQ','user','ak_49712ea466d5d318','2023-12-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$mCozjl7we4pkDoqFlPw.4hBblgwxOlmT1vCenzughSdFOYnaPM.//','user','ak_2148e91f531dcd1a','2023-04-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$75/S43M6K1V/xx/N0na2QmIScvdSGKKiE1KrS0hulWzBbkTjE2Stf','user','ak_ba21c1756b5c433e','2023-06-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$ojVUggxiAyfCtd4PSgBSQl9lu1BqQX/3tKKue8wvvPWATeuLAL.J.','user','ak_e976126440439c30','2023-02-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$2C2U1PJ4gHD3UbAEGH7Ituh47m7Vzr2pbQzVV95I4IGPqVaTmZXiA','user','ak_978ea4338f7a7193','2023-01-12 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$u3xl3N7POCCMx0Vpl/CFUXNm0GhAlNhAd7x2QfrjYYuY3yUA63iwN','user','ak_0da6e74b92f1264c','2023-05-22 10:00:00',NULL);

