-- Host: db-master-9.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=34103;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$ssktmQC/5sO.qSHkgoERv9h4aJ7LQHxoCNXTRJgCQKrFsMMuXDCq/','user','ak_ed062c1100c89509','2023-05-14 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$7u1pug.3v/pTPwx49M7fN6jJN/xrqzwkuWZ54RMeJmKmcM8XhCNrU','user','ak_b6c114688caa0aa0','2023-08-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$am92uo0fsSDbSYkRKiQ7dolPSmGY/xpjQUYD.mxeHchgEtLlO9JZY','admin','ak_d921fb3932b76faa','2023-08-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$G5LIVVIZ6FhUVFi2xd3Dmx8HBkRlSBjUtAcSun7f8Jh8eptWmzwjd','admin','ak_cf5b7cf0a6973aa1','2023-02-12 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$rCf7A0fQ/QfZ3KW3s6TtYZyt2MOIAeSdDE8naflaZcI/J7r76qkul','user','ak_1a8a4b31705cd635','2023-03-13 10:02: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=2813;

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

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


