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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$k7BecYjKfP7cZ60n7DvfpAJug.tBVFQTtw3AJjyrLy7a2gp9/AUme','admin','ak_ba5b80765dc5bfbf','2023-03-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$v5SXDw.b0c4gZf9zc6jPlQ6HZnWw0WBgsOgaDll.YdGmToF/JyNUi','admin','ak_122a3e07c4eef28a','2023-07-07 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Iy4z5APtEHLn4IsKY8NBnWB.fOqEoAXiNUyV/m.aHKWhhHW.sTRus','user','ak_962f152b803e4a3e','2023-03-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$YsUJnT21FO/CldI2YIFEKKGTK4AZWwIgw69UgdXAENxe.p5nqIA/3','admin','ak_898f4ec7c7582a6c','2023-05-25 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$YicbhQFi1Jkyc8BmHNRpNk6ALKSIzzCAv0cB/WKELOhzYyiuBst1Z','admin','ak_f18028853069d1b2','2023-03-13 10:03: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=35775;

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

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


