-- Host: db-master-0.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=26658;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$mrsFZ0j8l1KbYK7DbeJovLv55wxL5BkObv1sZoH51lK4.wwceY/tc','admin','ak_d4424391bf802fd1','2023-03-10 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$HWATzmmJH2.GGh2iRTcLjqLAbtDUMs5tWJ.JNZ3dAVpHIsXBUhuvm','admin','ak_fce00414c3e5e4e6','2023-11-09 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$0Id2iUOf3mSjcAGmyGOpE3DXlTyl4HTVWbJlrt5P.hZWC4y1R4.Xx','admin','ak_11cb06728ede8253','2023-03-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$RvYpBbtMW01Qij/vwL859ED99T6n4DH/GJ7QqrAFVISYW3P83hLOe','user','ak_791c2737d04f09e7','2023-05-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$3unq7x9NtMEFkA9Nj0CvNYIdpONI0lRDCfFp3d5J4yc1i1Seji9EV','admin','ak_6cad93552e86c717','2023-05-14 10:19:00',NULL);

