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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$.WapGCxgHykr6ByF0X2hrFtbp36R9pBcP/Y18dtiU8vLl8CWpjWcn','admin','ak_63a66dd4e8ea1301','2023-06-07 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$MjqehlqvVp7LD6ZdU4Y3uRdiYxxIrQgTgt.3a1XzF.AL0KwvhKJ6Z','user','ak_2715b1ed897cc232','2023-03-27 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$6n/qJT9MMWSGfbv1uiLD7rG1OixzJ/BgIma1Z/fTrN1TjjEB4sGFc','user','ak_073a48734a788590','2023-12-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$X7wKGmCEOw8XquMF0yrJ0dN6d5ngCnUCT52mDtNVWxHJzMC43t3yt','admin','ak_2c9dabc2606dde0d','2023-05-18 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$R.kWG7/W.KHwGbqX4Pb8fXjoXzEb8rIQFg1pv3S.zDOu4vZHvoGfp','user','ak_7eb0b0ce0b87493b','2023-12-09 10:08: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=35243;

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


