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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Us6bFA65mCUiTWvR0fiDy26PRQ6KMAlYDsNOKzLyqS.DHzOHJb5xA','admin','ak_f7810dbc7f07113a','2023-12-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$r8QW9lNtZ1pVbTgWK4tN3se1ozuZJiyfigVyTpZEJXVqmL2payOMW','admin','ak_6cd26d7b959a2259','2023-06-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$jbogTr833j50ejquWbEQcuizZNrdnSpvA.oaQqOlsStO4PcYpWHOb','user','ak_f8a2ab5630edf0fe','2023-03-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ucF78m.AiEdy45PMzJNTa.hLf5gTpXNAcCVq6GzAwBmgsEMOlj7Xk','user','ak_fd1301680b3e5f45','2023-03-16 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$233.ZNouXqfzm.GQ.qKbQb8b6NW127AEsyUUVd9zYF4kpxsoJYEIh','user','ak_77d7cb6175f46e2c','2023-09-28 10:15:00',NULL);

