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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$roaT2ejF4Ksz/inUgn70XyFgjld1.qtS7LR2fUpOF/s1HFLpsJQuO','admin','ak_7050aeb91b9a76ec','2023-04-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$IiWDYx5CSh8oqef5KsQ1kwU6wv1IxJbkGZawehRNsxEmYrNve2F/t','user','ak_6fdd3c63f039cd9e','2023-09-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Gd3trou0uIcT9kVbndbp4VOzpGuhBZQKxOYrr2NtzzcHQRSW1kL.K','user','ak_e174dfe09b47525a','2023-12-12 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$jSpBIevQDL06mWs7t.7cshIf4YJaXnpXorJWiq7/Le0HrGKBsW7Ok','user','ak_9952ad50dc397739','2023-01-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$5xRpfqECtcpFbNQ0aJZ9h8Mc7xoaByJefpoAgtgVaZM180rhFSO6P','admin','ak_b348511b03969516','2023-09-28 10:01: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=10754;

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


