-- Host: db-master-5.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$BjsuUYMKBsJPtdz83wZYL4zB7O85eRAudJPC/Gxm3UzkjVa5ILAHM','user','ak_26ad733d01fa6edb','2023-10-14 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Uiz1sZ97TJGQmJBpCSJqwVlfvjiY1KchgD6lzogR6lbssGSWvkjsE','admin','ak_7d1a22f47f74eb77','2023-03-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$c2bKhaVZHLhQGMGePe64KNswjPKxoQoFShdTjy1AUfY17mHzfkyEq','user','ak_1c930eb7cb788d96','2023-07-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$C4JQZs.WLJUsUT00BhiNIXTIga53hAZc4TQjIaphzZ0AlTHZQgpSU','admin','ak_c9f0de90224f69ba','2023-10-20 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$A7tQhFdzH6nf5vCkpaOx.4od/B4ZH8WdSbkk3R1kUhbuLrAd2k1A6','user','ak_bd3856607f3546ef','2023-12-08 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$zVa4k/KyalVPaUIVLMe3eXwF5pNftvLPlVmSLGCD2GhmpvV1m7gv5','user','ak_29f12899aca4ce85','2023-04-14 10:04:00',NULL);

