-- Host: db-master-1.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$/oZ99I0rqwcr4XBGto6ETC94QJzPtaEtPKzJu59dLdFyukNEus0fv','user','ak_1c03cf6af4639f46','2023-06-13 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$jancEZmCAX3of0eXxsjf.y4kB68IgECSscsvVkQxcR6wi32QnXzLx','user','ak_e070dbb8aeb460e0','2023-10-20 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$DShVLL2yvm.urYxs684rxUAZh/IJyqgAcuUvXPvt1EoUOJWlW1IIy','user','ak_010565e4d99bb4d5','2023-03-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$4GDGJWRaJjnIfJCA6pJoWHX3SQ2BZL2qJimSTEn/GNGnIzH3OQEm7','user','ak_386d667d17f22146','2023-11-09 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$Z3BfJ0e12hJWiFcjHv6.pdEW4wgK2tqdWCLwU8hYYps9nE.4.wNY/','user','ak_525cca1b7fb9ee1b','2023-04-01 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$EaqgbHLtF6hxyH3TpLJNi45tFScDmaiuhSHqMAh8Etvlm4CNXsJ4D','user','ak_e6d93fbdb2dbc948','2023-01-09 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$I4/VIeem3uC7VxBGpntGI5svPQvhthdllaPvM9NeADW2AJEw01ikS','user','ak_b0d85005d0c66bd0','2023-05-17 10:20: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=17938;

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


