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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$xR4DuoRSgULiLjJhgWXudnPoAgKW/.UxKjj.XvTNXhzVvZ/77/HTg','user','ak_7b911d55bf6164f4','2023-11-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$oDv8PuTXeumVstJsfl0nCYLOx4jriJMZF0v0Pfdfe9gMaleq2Ys0Z','user','ak_baf77d53a12889f6','2023-10-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$VJCyre/DKCDbMxgeYC6qMb9s50CJiOUA5SCtflUKmq8d0oF9HczoI','user','ak_9ac001090b21d63f','2023-02-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Nfq8DgaHYzYan9o4hIg9KBNz6grpk5fb8Oa3SJvNuGCjLMrlG49hz','user','ak_faf8cc62b5355330','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$TzILqjdhqdoEl/c4Lcbk9vBBVFiOIFLlXsVUy7la1HFFtpv5.GsMS','user','ak_5fbbea7d79ec7546','2023-11-13 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$PFr2hCjZvdpyeW0C9KbmnoDckzHcAIIZQCFljJoJEK9eSJCqVWUjh','user','ak_b7463448dac0ded4','2023-06-14 10:12: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=31549;

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


