-- Host: db-master-6.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Ifa8Syv.8W9PzIlz4CcmGrnCQe5L/QyE936GlC0PnkFjy/YB7PeIY','user','ak_1d0bc548cf8e4a5c','2023-12-14 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$M02MojEdFSK7Qn/un.7pqtXHFruOI8uiohKqeIiJOtXOpC.sr4kHK','user','ak_c0705c90c2834718','2023-03-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$q2oyB/wtTxyaiMHUPisQYlzN7Lm.F1Y7Ys/iurk9ymdnYqiqO26LF','user','ak_ea318787463c5f26','2023-11-03 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$clyQBDNT8rL0uKJqcYIULdZHg2Z6eGysLOLez.daPsGW9Q7E01y/S','user','ak_3333233ed1f923e3','2023-09-20 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$uRXXEtkQvDL6klNAyVg8mB49JSx92NsrF5Pja.KGG3KUb6/tJoAnd','user','ak_46d254d66039a2bd','2023-09-02 10:20: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=32161;

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


