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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Ivzws9LL2qHWWx.OaGtmZW6gc9AUWyTKvXFC42QcXClnEZi8rOMxm','user','ak_022c522d611695cc','2023-12-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$nNVpT0EVhC4Sl31Q/rdInO3jgtctI8gE5IV7wzTzF395ubbF.G8Fe','user','ak_db57d33289af6f18','2023-06-18 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$mSweYs1CwSEyxlyCVJVi8Ra4zGCKTVg.ONwUH9mje11SvKpq0dv3A','user','ak_0633b65c9e3cf2f2','2023-12-26 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$FtOFfc6VD.30y3rVjPncvjhu/tZufh.b81lWwTsIMYVmm4AbNiiXT','admin','ak_1241d537cd34f6c9','2023-12-28 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$r6.Y7kh8cUN2ycaxpcflCGa3g2T.74vKBXCFLLRpgBS3ABNBDZHSt','user','ak_14d3170701a4b7d9','2023-12-22 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$IF4sWbPETIUE/0Ah1crcC/oUBRpbUGL.6oUKikbLCHwHlx9bXA.XC','admin','ak_c0f6b1bd5c12cfae','2023-10-14 10:20: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=13931;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=2664;

--
-- Dumping data for table `payments`
--


