-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$AhlP7xlyNwW4pvPFRAM3cYF8o0JVDOL3UY6Qc7Tu6EVm8f2cVl8fD','user','ak_df2e1b7f684d73f3','2023-11-09 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$011KRO3pUXT9uUPRZfiL2COOjy3dNisJIdNkc8JZptIWTk5fYma0m','user','ak_c77a96e36e83f411','2023-04-12 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$e8Y9o3lePRPphPyy2zWf4Kh2b1zQo9DivVEqPuqL0IeCwmOTbfIIf','user','ak_02c0261b0c0b2f04','2023-03-12 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$A/Cn43FgBXdm1ZbpmSx9r.S24NocQyUOlbg1Kw4ybac7LHvKE9AdM','user','ak_e3c2933a7d5eee77','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$VoYrcblsp39vFw7JkBk/s7hbvj.g6ZW1qZAGV9yhl5O6Od34BKMkP','user','ak_74a7d65c7e46cd82','2023-07-10 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$zBocmTmd0F5Rg79MFFcVSMjKWDYUQFnMWv6vR/IgTwv.tWjb5o58e','user','ak_670bc9d27dc691d9','2023-07-04 10:03: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=8054;

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

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


