-- Host: db-master-9.internal    Database: webapp_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=10952;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$/GfQrZwbudG6eu/N8n9iddsrolHhFC2IK39h.pdBjjt2OWzONHp1b','admin','ak_4fe62706d8dd160d','2023-11-06 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$5dOUxTGgdrPU6J87uw1KDS1eQ82eBBrTY8tvWbS2IJhClheJyN8aP','admin','ak_f499b97fc7bdeab4','2023-06-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$yi8iGRQ/wF7eTU0o1QmehRHq2iPOqX4RfZI7J6N2TQhjJV5ei1QOU','user','ak_8a8b1611708eb2f4','2023-04-24 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$cV88rA6ufnl86tWOfKR/n0t4esdWJENN6cGa476EXIGdvzky6S0NF','user','ak_a9c0927efe8037df','2023-08-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$8dsQ2F37vmg/gSwSAN8bQneC7tHUX0whmS5jEJDa6WeFSJmFMPKW5','user','ak_20d2c36a72693213','2023-11-24 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=6354;

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

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


