-- Host: db-master-4.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=25857;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$VUVpthF1tcagdJR0cqNtHhZxG6Z8NxQ0pGvkMCPGAR5hqi9JMt12m','user','ak_9a665fbf14c3df3f','2023-12-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$nOWlOl8tW.Aq5g0RLEvQhxP6WzbSb5SvAhYhrvk3TF4uN.JNqiVYY','user','ak_805317289e9d9ea1','2023-04-15 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$3KK3TOhpXtve8lPoJelD1k60X7u/r2AgwfgzJzUaqpQCG3hSH2m5g','admin','ak_e655ddc3fd8cdbcc','2023-03-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$NxgyVkVcKOsSlCeYFDp5iQ9rnFxxOxbwAKIK91e6/n7SMykdYS0WZ','user','ak_f02425b9416cac15','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$x92xhg1LkEUhcw1lzJrc6uHqGwxdAIZC9Sz9vKXB/.YF5Sx2b83VN','user','ak_913a421d9e9170f5','2023-11-02 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$TTerBM2pIosLGiB1h3KhsXzMqYV0/SB0AnIP1DNWawf0oXlJRPmzq','user','ak_ad98c28136905bc6','2023-12-22 10:14: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=37637;

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

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


