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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$zcAPHf2sobdLj.KH7JHupzUbZMi1Sz09StHPj51XF8nS9uGWwGPKP','user','ak_ad606b04a468a0d5','2023-10-16 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$ot2FPkuzLWEq/uK.Qi8su/Y0ZZEptc7J8t9042jZXzxOp20f0AaIU','user','ak_861e115b2a47e226','2023-02-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$n1l0TXCwF0Ugswq.Eo9XsLMWk1I5TbMFT5W/v6OlYtrauWIvygbk.','user','ak_d2caa8d763b2d5d3','2023-12-23 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$sTWpTiefqXDf9QPYROq9Xm9FD2AQckN7ec0h9.gPbB9JlQJIG4jjH','admin','ak_ea2a6e24ac2b5f39','2023-09-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$bERMBn4vCoHHCYMJA9Z.yI4sC8tIgJht9ac1tFEVLt.fSZkOQ2j5Z','user','ak_9d671f0795ccc54c','2023-03-07 10:06: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=40195;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=10659;

--
-- Dumping data for table `products`
--


