-- Host: db-master-0.internal    Database: production_db


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=19142;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$FGuZT/zUjmCY9B7YBk2VF4HxyBF4KoMirM61HV2jSfp7TssoXNWIz','admin','ak_05244f3421c7b169','2023-05-24 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$NVn3ygDnIDt7SbdOx27PimdKBhGnDt8zj8Z2y9.lqYuqxXtbefScx','user','ak_509bd48bd0c265e1','2023-10-03 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$vjqoQ2Otrhc.EKcWrpn/DpxL.fVTIBk6KWG2rD/4Y8JEWp.O6Wlwu','user','ak_bb5779d53615f5bc','2023-10-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$kjPGzpt4ptG1R1tBHtON6M6w3AdmyQT2meEkGJ1IP2qiJFyGFzEgt','user','ak_a19a62b49ab3235f','2023-12-03 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$ZQ2WgIl6gjAaM7X5I4Y62HMbuK.kAEXGhVUZXTii/DHKmL9CqUrHL','user','ak_0235fac37a1f0841','2023-04-09 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$eumrZGMK.8kBY65Ig0btEaOO8IVPYVHr8loUPoLmPu0EC4Mv15dKb','user','ak_a7c989b1e8314cc0','2023-03-26 10:09:00',NULL);

