-- Host: db-master-4.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$BFJvA3PxayigbT33UatuoWplcSNcVGNXQyy6m5uuJaH/Dxzwpkiaj','user','ak_41f582aac9fb5459','2023-12-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$BK/xlXjGM7seIrMDRocHZ/kojpg5qWii48ZkUQaLoIi1L38hVeFeA','admin','ak_7a05a66e3a254e65','2023-03-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$GV3Jo1GpYC4Y4zZAA7hFm0fEMHObQxHi71ipajOuZgZKfL/RwMneG','user','ak_10bc7000f4b657f9','2023-10-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$r9nXsJbzEE7eDBUyeAMB8MxO.ZbWXcjqZWrYmj69Bo1EczvIW9Q08','user','ak_53f332fcfec9744b','2023-07-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$uU.VTMoyhWGCAqUSkIuc3LvnxbRR2hFWoJcanwleNcJ6R4kz5yEhz','user','ak_c78b5634f3548977','2023-10-02 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$EaEJ9WIczIM8TYnMCCD9aOyEEV3E7ZZerh4/hMPH4Jh58EIJBHJPv','user','ak_d7ef4a39c0b1aa08','2023-05-15 10:23:00',NULL);

