-- Host: db-master-5.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=25223;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$nHGceVR8UrhiNjyk/cB02FmxbXt8eTljKkN06pVJlEhcB.UtJeoA0','user','ak_e1bd6c0706a52a0a','2023-04-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$E2RU5.KLcQVBwnGicH5uqoJzpbcoJ5GlA8kkHyP3DmVd4tlRBRoij','user','ak_5aa7c20055376526','2023-10-22 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$qIwgUFV2/InigGA2U.wyUe/p7Dyr4sKQdv4tJ4yolBsaHYHIy0VEp','admin','ak_2461d8fdb7f71a74','2023-09-19 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$57c0mbNtMoPpA4EqCYEDjxXO7ijEWE9Gn/XovFtxXYCRXNbqTuMOR','user','ak_78d262aabf2e83c7','2023-05-05 10:04: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=33549;

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


