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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$ddQaaXJi04w1VqbyL3OATfpc3iNngU0Od9TIqL6Mm3Y//1xyxaGJ.','user','ak_8b2302ed49a679da','2023-04-27 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$wR1xpoupaJBu6galRp8Jr9pOirbF13ItiomWlxE55eT0ESK/pjeVo','user','ak_62c4f8c89873116a','2023-12-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$NmpEK61I5AIjAhYuiJwn0LGxLAFUeZBhmNAGzTfdpX2tM1a6yi4vl','admin','ak_d252e579c4470cb7','2023-02-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$SJ63E/VPm9OVX9ZnWPpGW8YEOIJVm0fIpH8V1VLi2DS/1xUm941Ir','admin','ak_473424aaa9f51ce0','2023-09-08 10:12:00',NULL);

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

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


