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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$.JOtUeDj2zq.XSaru9WIkaQZb/XByhFTPKdE9UaNJUvQlNXqzkK4p','admin','ak_b7d562698f24d575','2023-10-23 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$PzNgppcoVaANM9sAhcdgYmNQ.flHyNXV.x/1tM06Gxty7YFR.wjg.','admin','ak_51a563342c28dcdb','2023-08-07 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$JOW8LbpZrWXgpgAZM2awp0E4VH9htwR1m06EAr60o2C3Yiy2.pz2G','user','ak_e930f4f8fc35c8e5','2023-02-24 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$rjo4jzcbxShNO.Tfy7vjYpgqdLZUcy8TGxq44LcBccakSD3bvD/tz','user','ak_1df2c448d31c8365','2023-12-01 10:01:00',NULL);

