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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$PooZTbBpo1ZWiEslnY0nM3WXc1uUTsavH7W9axcv1ac/fvX3VnP/b','user','ak_19b3135e086d5a71','2023-07-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$7/Cv6UjKDqDaUdJkoUW9yrvAREW.79cwwvt4Pfd.dk9Tle46nJ3E3','user','ak_7c7b90bffb807201','2023-12-12 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$.PQRHZz3ZKL3Z1gfeVgZZTs2LmW9CGNIqsDXZR9pwT8LfkGLUisWt','admin','ak_84d3c3fdd4d62f69','2023-11-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$ums3RqxaeAwsQwI4ZV6niBctFNQO6bm4Zt3aOHB4W5lh31wUUlbr4','admin','ak_cbe859ab54d5fbaa','2023-07-05 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$GfEdqWNq.oRUVl6q/4j8cqwWg9B5YjYt01tGWwT2ygoD6zczvBmrP','user','ak_769740e9df8e9703','2023-02-22 10:23: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=9228;

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

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


