-- Host: db-master-0.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=10545;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$3xNg2KHu4C6irDMGyzgtDVwMFX.wCV1mcIEa09nD37ynIW7TZ0ANJ','user','ak_e4fd8772ff7e9f6f','2023-04-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$gdrVpRzObz.Vqy315WT1CMyeJXskZSGvhhyDZUVaioqhHSJB4RMbU','user','ak_ad9a690570dbd047','2023-09-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$PYpFptgQZbEDN5jjI.9uzNnekuia9vfBJ4OMp.O2wZ5YUIxu/3xGU','user','ak_dee633d152b57598','2023-09-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$HWkxiRj1mv9p//I3Nd2o4NrlIfLqUZhrZeYcse.wZH9VGandf/WZd','user','ak_4a3f41ada23dce8b','2023-02-15 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$q4DUHJKwe/.3U5b7IINSEUcS9qeEX5t9qzFGBHINjtiT9LuLeR62v','admin','ak_d0cb7902d34f00dd','2023-06-07 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$jZ06C7biF.MUHOnG7HVycV.WKNzLwxYEZ5aAmBQtmNzNxtgAWBhpP','user','ak_ec29d9c4aa8f2dc3','2023-02-14 10:13: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=37887;

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

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


