-- Host: db-master-1.internal    Database: webapp_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=20275;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$6KG6Wh0ztXYbJt2SuWXZn27U0RnbWuAmJzbtcaC.0xz.N7926m6xv','user','ak_b775a6ad5f0ee432','2023-11-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$CHS0kwL9ReZonTTE.b7VjNI8NAt8oiQw1RPHtIFxhoM1ZXXacv/PM','user','ak_6f896a9999c91811','2023-02-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$IwA7PQK.Yo8Tvw5Vr5BlwyynEpQz8..njlLGngKetKkl4NOmfIW72','user','ak_ae233b244027ac57','2023-11-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$zsOX..jSa2mO8.zGWvMBEPvd64Jellb12qYGAot0eMc9XsLC3S9BB','admin','ak_191e5e8c89e99983','2023-12-11 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$zx2GRpWep6SWKto0d8ckXMgs7f6ZO7fCz7ZhiHdpzc7QLcTkk4tCb','user','ak_cb6cc3e1e61f30a8','2023-03-27 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$ATA/UdvWrLsIEq.a2sffvo83/r9q/ikq3CjtZgOAAnnQmH9lniWzY','user','ak_ac2c6bdced04c1e4','2023-10-03 10:02: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=10491;

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

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


