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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$yT0bTAo1l8oLY5SYiLGJ6gDYpzHo75aWL7X.qWEnZchK/cOWV3iiA','user','ak_bcc0532782e55dba','2023-04-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$8QiCGScYZNmriJlxTVi2FlsSuJm02HvvtBv.zHLXRpMrR60bfMN7E','admin','ak_7fe1fcb5c001f685','2023-03-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Cub00vv1B0WLCeQ299aKcFpPlqYQ9YD0eHwj.TV9lxP9tzMcaLlWi','user','ak_0737b1ba94b1e0e2','2023-02-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$6FBGu6HABrun7Ss/x3tgj.NCySsbT0TnOTF2BEbFK2TRHtzfCb4AN','admin','ak_ff26f56552708da4','2023-08-05 10:06: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=18445;

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


