-- Host: db-master-2.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=28507;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$iOMTbUu.JPVThC2feQ5pNNzDt.HRj2JVhHhdCBBPuC5zlgdOQdvbw','user','ak_53aafd3cbb2da946','2023-05-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$OuvEH3eVI9eXsoQZsDg/XVnMJYRsa1LWOboTwp5IeNh.Rmeu2.MQE','user','ak_d9b1384c76ade561','2023-04-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$xrSvv49vuTo9R4YKFOjoVO7qO8mSkbSeqiFnNXnh4hHbt6JKqWzyS','admin','ak_7e11815f33381468','2023-03-04 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$/.6kyeX5z9BYSyfD92PmLyFJW2EOhpdBInjFQOCHyoQBQ4bdDqE7c','user','ak_f81b56790fc4f43c','2023-02-12 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$dpLT17alCQZ/pcsKwEYrfwYgS.Mbxgv5vHA6eO94p0u3z7uCzzQAc','user','ak_a357c1cdac7944c5','2023-03-26 10:09: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=23914;

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

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


