-- Host: db-master-4.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=36107;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$70RPsHo04If31PfVdWwcLev2VgWsv8.bsNrbqKrlouaJNvj.N4M/2','user','ak_34f340c04c535663','2023-11-17 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$kW.300gpmT7Upsi6GHXBhA9LizXiB.Sb2a0w55XuxQdxb9XviI5kR','user','ak_c28af5e8d48429ce','2023-11-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$U/eryKe1gv1Dyv1KDxF2ulV6pCo/frMRO2HKoZrvlIpvWC5wJMWdN','user','ak_238f770f482af9d7','2023-07-03 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$BdOT6nM4jEHyuUGCtp5ObcRdJ8vYwzU4ULe4jFPKl.OlxZR3v1t4t','user','ak_3994d6da218d0d8b','2023-05-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$/R5rABFNVFLRCeR2PkELt6F.qqBSlaapU8Pb5yaDzujRSw5Ue1s/O','user','ak_ac5d44449db14ed8','2023-03-23 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$SecIpOVWQHI/H/PsoN1N3Woe4oU3axgfw6GX9Jf6UgwQIOak/haSU','user','ak_09372a28372a2bef','2023-04-11 10:12: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=6861;

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

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


