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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$hjL98sjBxn6sP2YuoKdS7FkSnQEps60QzrfOoguwMdLzQQyX0V0wi','admin','ak_ec7ed08046f2e746','2023-05-02 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$pp.TkRVBD4H3bOpbls0anqPtW85D9xDJQJJ2h0oOic2gE5uJvRhgN','user','ak_2c745b6f6278a7c7','2023-03-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$n56LctMNqFx/fUKP9QRy9JK8cifRB89pIdkYxtoi1cvcyodd1Orpo','user','ak_b1ae99330b57b548','2023-09-09 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$cy4udljF9/7pKGpTM8dftSmtnpPuviomUw3vyohtVUez573hZqXHo','admin','ak_c06572744085a38b','2023-07-14 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$7DIKWMdttqFKq9laOZgDGaQ7viuqi254OgjdDxMjZvMJjAO//2DpD','admin','ak_996db874dbc85a90','2023-06-12 10:00:00',NULL);

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

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


