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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=4255;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$VzykciIl4TImZL5DgXR4K79MZf.aG9q4AOFJ8rQIKnStEBkoJ5SJ0','user','ak_b28fddce25637def','2023-12-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$4rnVLeWnXjxOAvs7Wi2CkbPdMejdaYBTkC0Rgo9kPWMZwtsHxxrU5','user','ak_cf7de78ef29e6878','2023-01-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$GQ6fM24ijd0ihCwrTBYJPYLZJ6wkng9CsXRP7Gj.8rki.8sIuRo8f','user','ak_27858ab7144bca22','2023-07-24 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$aQR28ctP8NPn5juGH98tWE.jKiw2hwJ5WMPDcDymOC6TdSoQleo78','admin','ak_3d93dcb2e061b4b0','2023-03-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$ik1rlbsQcyQKGZ8YT.s0Q.R4grkbwHds8O1YXV0l12RHvf72kltDA','user','ak_68c919c9f75392c0','2023-03-21 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$/H4pXN4g2G6.NLusXhHXqlw..bh8bEfk.t64FnFUQgfyzZk4s.fOc','user','ak_7f219cdcac25be05','2023-09-15 10:06: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=26089;

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


