-- Host: db-master-8.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=42172;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$DKCzAZRyH6SSekyi194wLOPTUrPBOwIXOugJ2WyImj.6YRRX.epj9','user','ak_f798bb0a74fe6a11','2023-04-22 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$UMtQ33gWjmNSyJ2k4XJUbX4UZDzB5.ZT2aECgTG./iy0sZo0OzvRj','user','ak_a6004e9697e910f0','2023-03-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$OxPkz2Bioul4h1TbR52EKhhTtzwjx7mgBIZI/xj2Fy3mFcOy6NKGi','user','ak_f2e33da52b7e6095','2023-03-12 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$gBiHB3ZHBskN05zgCOm.QPS59AAmik4lD2PDNwVf1p6nYfwMqY22g','admin','ak_fe0d9b9c0071cb39','2023-04-25 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$kAYZPp4ulSDy3D5EDEU0rAM7UJJLh43OIhJA8s5py5627tPNnKQTz','user','ak_bdb0b0b5d5ad4017','2023-10-28 10:12: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=8418;

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


