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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$MCUyCbGRJ8llbG6aftzgsIm5/07ZFKHM0vGM3cBHO6z2RlMsMRZCr','admin','ak_3fad4d9b5ee12711','2023-03-19 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$/6nYTaQ8yumzcMO/fDh41VLnJaqX61TvWbF.urbh.Id5VVey/NK.y','user','ak_e53ef20dbf1a7da1','2023-09-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$OtL.RIIrymJrF7Y3SAWYumdRThtaindqMCiAopr3Ozd/UXxztPGAE','user','ak_e51664b80b9e6204','2023-12-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$YBj4W0egd2JugGb8dquZ8Ky4cWQfAa4qCkznQ7JMuJXR84izjTfFC','user','ak_26a4363f793588b9','2023-07-09 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$F8wrn1MXqrkDSyuikIz92y8edogDe4N2c5f7QDfie5jA.3OLUsE3g','admin','ak_a63aa2b8bc99a91c','2023-05-07 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$K72AP3Egaq9lpOsm0vJei4jMQ1RO/jJd9ZcSogmBZf6NwLQ.UgQKj','user','ak_d5c05c43a8c31e28','2023-05-19 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$vP08U.M9394c3DemhxybmTZ55DQsMbtjVphFp0UcHPf1/xBKFE/xz','user','ak_d6fa84b879857001','2023-04-17 10:03: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=12352;

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


