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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$VrYp3WpNr1VxogctuP9pTuOw3b.6sE9NoK.T.OJcnWGwZTVW5i/Ss','user','ak_704a0bbe270996a8','2023-06-12 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$/3twr2a4Rly.P16nena/pUUeTshatMbwPHjuHaqSumDikvICYrR0g','user','ak_5c628b3352e6ff52','2023-03-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Wy4qoYzgYjg6itiWCVKWr3AGGgMAQOkA1UOOv12YodDO/ocf3bb1W','user','ak_952310c6ec2f3973','2023-04-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$Rmy1jjQsXmtxTyuxAokTEWnk8O2ofaaR2pyONyroB6HgVuWchROMt','user','ak_524ac311cb6cd2a1','2023-06-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$rMms2g0Df4zmNy2kX1xwfvs8d0po7GxAft2zxhdZRAfjwYqbi3LL.','admin','ak_2319da5d647c35b2','2023-10-28 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$BQOyW4lLFrAsPqkQkp2lt8BYLObwbh5D/HC6.bIYGh6LI22xUltT6','user','ak_9fe9133459fa6a0f','2023-03-25 10:03: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=4274;

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


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

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


