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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$JNmaLp9mqVU7uUf3/xjxhGaHzCqen3rfu6x4s964s1s9OZ2LDRVY2','user','ak_3751389c545d810f','2023-11-28 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$CBko6U35aYZSaxhad8cl66T7B9RRFSd.0R3O/7m3AVgg6gCntqq0Y','user','ak_71a1fe0110e1cbca','2023-09-28 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$GPyyLnEi6SE1wU1ksx0KsQA8VfvdYA1rtLihA8rYoZ0zTuHi51XZk','user','ak_30768496cfad800e','2023-12-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$gVov3NRwS5HtEkQCS70FbO5PBwxTbHJL.yrB6dtLDBfJ.me4TVUUv','user','ak_39c292315c7cf10a','2023-10-04 10:18:00',NULL);

