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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$yPLS0hAMw45Op9pGhCUuzrBABMjVZ/BA7o7qcCg4A1o5p5cNpd5Ea','admin','ak_2613f22e3376e70b','2023-09-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$bjj0l0bn4DGcdggjc4uVgYEWnngCOlxvAxZT2N6wy7uf0J5Axd8Pu','user','ak_e2ac8e72f5461892','2023-09-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$d.gNOQBhfY1F9TUw43I78yM0iqYy5mO2yEL6vvhxEA6IUR.5cq4tM','user','ak_d75d2a554c8191ae','2023-11-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$3xl3YH.JqFyEI7B5W7hpwGKZ34LP8CD9h8XEUZAMVhBbfIzL0r6dm','user','ak_d33b016c1a18937d','2023-08-08 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$wokZG0oQ./0L6JqIYxSVqBXYcqBVA5sE0m6779RNHRu641U10bMZv','admin','ak_47cc5706c4d28503','2023-11-15 10:06:00',NULL);

