-- Host: db-master-8.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=43488;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$zkkxQrbiZZnbDWB3831dqhRV2ZAy/CwhBgPGq8yrTsh1feU7kF/Rj','admin','ak_b16216bd82a9e37e','2023-04-06 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$QxT7GiZ6o2nBWhSQ4oeaqUUYnY5TiO2Q.1Q2acRJs4H4/mgwuWoKp','admin','ak_4e2ca8be89ff4a9d','2023-12-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$kzrop/OFd4STujoGli2MONdqOVpAUf59yv6NFwliOqXO8D3c0Cz4E','user','ak_8cfd14cee466aae8','2023-05-25 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$loq7w3AHlzy1IJHlHm54UG3H9.dhZ7cejtAFun7VSgBZEOClCM.DM','admin','ak_2a88d256c1675c0d','2023-05-28 10:12: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=4526;

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

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


