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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$3o4gbS923PamRLAqVmSlq2D7P/Dalzi0TzAaPWrhFcFrIo6TAz0aF','user','ak_baf33d9dc9cda3ad','2023-05-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$iLTBcFFnyhXDKFC/U1HFTXunR7nR1OhQXJp3xlWpCTnakCgLiTVj.','user','ak_54bf4ac6eee49370','2023-04-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$qd6Wh1P5JikLkzztU8L3y2A5Flm6p1sAA0TJmzHYWFkMpblcg6Wrn','user','ak_7d5ea79bc6fa8068','2023-02-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$f94S.QJUAoZWnnDWDIVtMteoAtJBgXqEDRM4KjIuGXT6VMtf.oRmq','user','ak_34729632ccdb0ccc','2023-06-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Iu6KJlugwf9HM7oYC7QfAwAuo4weF1jvvZ2N./2HLztvR4MBkfgFt','user','ak_cd1a3bac5471cb40','2023-04-22 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$K9eHxFkFO7LW52Wb7TXGm7CaNtXclB4V8Mi2gOpZYEy29Mb1xGMz/','user','ak_5ffa43d1606871c0','2023-08-04 10:19: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=9731;

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


