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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$1x8KWsacRCTwKoEtQ6MA2SHCxJIUrwvykvpMbBIdsL0sPlB5E99cy','user','ak_2df4f0fb4ccc5438','2023-12-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$maG8zfqvsqlvXKih9eLm496PzptSigvd9Qbqx546imdMvEozAFlQ9','user','ak_415a258dc9bdd56d','2023-02-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$0S3DPKqRox6TRmTEmUIhGPFIHKNuZwE/Iq2rzn4Kk3/Dl/0HI/jTB','user','ak_aa183671aee67a9e','2023-02-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$hgxrBuKif0QxSqE7JGJwuhBDzCMK6aAvEd5EN4/ghlgR3rNGUvYVy','user','ak_47c138484d79bc22','2023-10-12 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$B0wEJOqKI0f4Mgz.tD5XfvmjEjxmG2rESdd7QVUe0Y5sb.OjyIB4w','user','ak_364cfe48c2e4b48b','2023-03-27 10:01:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=47064;

--
-- Dumping data for table `sessions`
--


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

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


