-- Host: db-master-6.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=28584;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$1tZeOUWFZBOoMrWDtO7Xbv9PHlWxtGRKvs/e7eZuntJ9q9VQBw6Xj','user','ak_12b7733fae96ec1e','2023-07-10 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$icjTLUHel/R1qPp1JnuCkX.MYVbJdRom1jKZTnWFOD0qNdAXxeHPO','user','ak_ed50437d76d4d4c3','2023-04-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$wt34d0HkqJ2CzpBiNLvsT6kiwxypQ6SgzoPlnVxL8ZmGo/OrfWwSY','user','ak_49541a56074586e6','2023-02-11 10:23:00',NULL);

