-- Host: db-master-5.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$nZp.YwoJyDQbu.jo1DjN04Rx25cOSQLDnk.MbPAtcknOzNnv78B3r','admin','ak_bb656f4134b0d526','2023-04-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$CQnkNCVTqFKwvnx5sbP.JONGyPUQnMRCPtECVzzpNVID5H36jrkxL','user','ak_a7946980845ca91b','2023-01-04 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$O2tWyE1bkWWrkB6UQML2szTCOLqL5bu3Igp3o9d9UPBBL5lWl8s.v','user','ak_5d9a57a64d29e4d8','2023-01-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$RtstIBkEH/N9v6bHgp52GiFj3qr.QFknVqtH8pFiYJCVt6Z899Kdy','user','ak_fd04335c30dccd8e','2023-09-26 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$JacEpTVVKNc5lcqEjtlOLRVVzUdFYPR8hNSk8Vtau99JLDtx.kpwd','user','ak_85d1fe0948b6e767','2023-07-15 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$xvsu6hkIyun9/HXauMK0YQFi/.4PitFqM9pbNvA0u.Gx22U/SiHS4','admin','ak_358f48035724fef2','2023-12-22 10:11: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=46351;

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


