-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$/NNJ7LPCnIKFAwfKMbFtWIlrvz1wIWB0ViHPysfgTdkRf/TyV.KsQ','user','ak_0a1ed75a5d46c285','2023-06-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$qR.qkLeNX/0rTe4A3u1C.bjo6y5CYcPFfqiTqLr2BkRsV9RSPuBtc','user','ak_6e5798dbdcc3f764','2023-04-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$ORXWvzh8F9iABUH6SFqsWO6rfYiwiSTx3CibqPtO7mVXoHaIM20cK','user','ak_b10c1fdeb1c48698','2023-10-13 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Uc2emt0jrvyZx/HnZX0.GLakpT5z1O0T7AckN/M/g2jqlq4YGGJBI','admin','ak_93908da5eb3b5e1e','2023-05-25 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$72YW2OhZXhXOppk5zA8q53rXfYhjdBDk.BFx.AcpHej2t5R5xcHAR','user','ak_5ca377b8497469c3','2023-08-11 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$nBPfW3vyvrT88.KrCVaV0REte.TxGE.xRL94R.D7Mo7VkJf6YFYzF','admin','ak_158924780a70157c','2023-05-09 10:04: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=1078;

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


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

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


