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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$0DN00gdA1TrOF9XHQO8qTxKjlqHIP4UaHKh9xPQtlgKa.4b.rJXL5','admin','ak_63322a2cbaf6771d','2023-03-23 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$aU5N42gsy0R1oOkb343My47do79vifxxBqjrewUmM2HcmN3CluMP1','user','ak_3375a8091f72bd19','2023-07-26 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$zpkfem2goxb8tV/BhMqQ0UGIG2kqhGR/E8ToMMYdxg8vQybcfbN5u','user','ak_a0288c8eb1a9b2d4','2023-11-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$vMA1mvw3i9BF3lbWxbva4zqQUuI7Ne/7p76Ty4kjWE1y/cUyu1VqE','user','ak_c657267a56888df2','2023-06-07 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$nshLY7curNurOFUfXPrsYMi56WoeO0xsmdZuYyII3/XhU1q3.DFLV','user','ak_8708491f1c7672b4','2023-12-22 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$qfW14OwfSG9zCZERtMtduO4Ly/Kiq6T69tfeT78QK0sa/sJwBxJWz','user','ak_6c0e0107f5657982','2023-11-07 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@example.org','$2b$12$9WSCtj.huz5rHhtJuVzfIAd/l9N88qzkW6QKmfa0/cIf8Zs0rXiVr','user','ak_1ce1613cda430055','2023-02-08 10:07: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=15430;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=48382;

--
-- Dumping data for table `products`
--


