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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$3qo1SeC9zcsh2hfQ3m9DGvpPdncgW3UZzlkyYOqQWlKVzOlm3xePE','admin','ak_052a03e181eb446d','2023-05-24 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Z7sca65pFF7f4PuWX/GJjEBagUgK68wuhrnvi8V1sr7192pwEhl6N','admin','ak_143395382bb56865','2023-04-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$e5JtDpuRtJzP3K.IyrOUobrJrOuLzJ2hAdOujyqqhe/Ogtqcmih0V','admin','ak_f8e0da22e2883759','2023-07-05 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$A2928CwUvgZC0207DeF1H2RhvzPzx731qao.PX//lcaROkIDPBNN3','user','ak_c82c25171f65d8fd','2023-05-16 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$GFlx95.P.tV/uHD7kcq4cbXAanR1nHK3jy2Q5YVT/e4PEjOqJpLlI','user','ak_8ec19b4af2a49bca','2023-12-13 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$.s3C1dfLtkjsY9Xog7CsngCxbmszDqgIatuU/PIb2qg68DEnFl2jO','user','ak_4cd7b080319f61b4','2023-10-18 10:17: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=1032;

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


