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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$xGQeGODA/MvABeDVpyIQKQxRioessfRLVHVHmQdDEcy.2KM.D4ckC','user','ak_d933f23a1d6fa865','2023-09-24 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$qbCxnl9qv/7sSK0YLdCgkl6NAZwaxG2CPjcPCVYGT/soQKBxmadn8','user','ak_e172ec7b7db79dde','2023-03-13 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$VSsVJe3pPUtJ.TtDOesMfC/K3Sp4ydKhI1OTiM3S7B4SQS79Ita8i','user','ak_79d7a4eb770e9cc3','2023-04-11 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$cCMndT7Z1HOARaU9Q8oVJZuFa3vd5Pend/I7JpFjd.LLykKk.K1PL','user','ak_7b9225fce54cf240','2023-09-05 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$ZbOMXty/vQOVkmmc3ag5DZTe6X9E8HCivWox.jhm.K/teUWFHOIgY','admin','ak_98dc42478d0cd9f8','2023-06-12 10:20: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=45443;

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


