-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$qr3VaULNtdP/1lJg0CGCSaXIirM3Pxu8coJK7lPjSaO5RttcCUkAJ','user','ak_f2632c00f533a540','2023-01-02 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$SbQs1tYQHxyYWzEIF7rN5ukk4zxk0extqaDVccOKsQZrr05sL2nuY','user','ak_0c3c7ff48a934268','2023-12-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$E7JIyYxErkPDPXQz8.HfkNMIk9TaUrxFEUtwrnOipRi83LVpTNKHF','admin','ak_02160ec7a7919975','2023-03-22 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$h/RaajwA1SYCK.9oruuyeKIACqVp5/MYhC5v4LKxgQivyr74mBNFi','user','ak_cd3e24cf51e61090','2023-11-26 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$WnAB8mHqOXHkuWIyqnuVyFJXHQY9df1VyVXBi86Mj4nWM6HO5EHJZ','admin','ak_a2c029a3ca96f878','2023-10-26 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$q5qqnt/B.gtQTS4jKWiNCBAns46MfLhx32lM7J1gpLDO0wuE4n9zC','admin','ak_466036e61d35ad13','2023-06-19 10:16:00',NULL);

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

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


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

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


