-- Host: db-master-1.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=6588;

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$o1T932.cD.xma7iJGr80N/CLE7n4VlHGaUF.zEHzFe1bhhGiGqK.l','user','ak_c721705532c6199a','2023-12-12 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$RWpxYvcVXjpHSgtz39mmQbI.Vj.YwLiNdwlktZ0v2HkboMUtGNMhH','user','ak_90790be7181b8b6e','2023-12-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xI.ku0uUNpcyn8bsD2xBVi4jz3YFkO6bMKuCd18fszuOB54QpgqbQ','user','ak_18f5586201a92684','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$1YVIefk/DFK/WzCkAXOVoz7sJ0Wk92kKkQM.F.q2v5MPeyOTD2Mql','user','ak_38e8309e2495b04f','2023-04-21 10:13:00',NULL);

