-- Host: db-master-7.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$tc9VBHeCMckYuyXU5NsVryED4iUrxjIlQ75RsC7C9FgWnGg6I751b','user','ak_924a19bb5b20f991','2023-04-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$v3ys2Okgh3jpNI9ulwv7.NkD/4LzfrxTEQcEDq.m6neMCCFYXjSH1','admin','ak_46f1076e2ff12e0f','2023-07-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$mcjQCH2yhPYT9MLVuffDnpTmB6N6JM3UNOR7MgIW3dKmqhR4HRIfZ','user','ak_43e60c0f5b96b06e','2023-02-04 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$XRhh3vLW9jBsyWRFfPM8gnBFU2MD.WO5d4A2ujEmgSAIJyQfxdbrq','admin','ak_00448a7ea1f35a7c','2023-07-24 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$.ESFk2pvvZbFOrwiDUn.eFL.3jjKUYuy4TBLsJjtuuWjEmjIDf6nB','user','ak_fbbb2cf208a9c7c4','2023-04-05 10:09: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=39582;

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


