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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$1u8EkG7FdXGX3ScHS5CanRnUuAOhkTNCk7U9wDvPOgUc6N6pC/f3M','user','ak_2d8510aff15ad48b','2023-03-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$C5lKrXCNbRw5tuEGoYGKorh1lh/BcXYdnDrCBwbJoT3G6VFuT9KJM','admin','ak_9264200bcd8e1bfd','2023-04-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$CbULu6b4o7RvagbPhEEa1VCgiM46yRP1PmUDF7QkLGcR0NYm6ogmr','admin','ak_294c6656f3393ca7','2023-11-25 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$vf9tdmlLhkCvyiXHA.OZm1qX5HIpV7ekzzrEI4145nyqjxaZavojJ','user','ak_1cf42a295ded86c3','2023-04-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$3WWBwZZ06q2mlMF0foueorUiu4CX4CrU4SXbC2nNxoZWwPjSkApID','admin','ak_c5c6d531b14ac4a8','2023-05-13 10:17: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=10991;

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

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


