-- Host: db-master-3.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=21687;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$x6QBxaA4JOyXOx723kF81EMTJ6IsIv73udwt21JEm0hegcM1YFffb','admin','ak_ab22c31d3ede103e','2023-06-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$qa1epnAx607lYYnBOtX6lgOvTfQljR9kngQXqk9H037LUw5SlLOip','user','ak_dae9a8b42ae18e30','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$fJzHH2KpDFjROX4LgaoWXZLYNuMlmBple3LWu1M.GRv/yE76qTV7b','user','ak_8d1e999bcb4448fb','2023-10-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$yihP.fZRBUJ3daaVqIjgpDituaDW8iHodDiN51jfExHTLwGU/wkFn','user','ak_2f1b9679daae525f','2023-03-15 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$c6bOlTEPzbKBxc9X5V5isq6mMT7hLCgMyGFdKK0WFhH3s.fRZkzh7','user','ak_5f870574f9a0bac6','2023-10-26 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$lmP8TmfcQH2qkN1BOgYTeUbDHovDG3pJOBuUv3J4fB60gOVDcikrv','admin','ak_bb1acfa05919b56e','2023-02-10 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$EWKBaV7RB5qboWZagGB3cNrodXq5x8yBt2rXPUL4k3pPFYkAaTTgf','user','ak_b7fb5ee1ad6a8e0d','2023-05-19 10:21:00',NULL);

