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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$2tIuKmSq/AkR4hugGxzQp4frf/BKrS2odYSW46BXjc8wHT6ja5EzV','user','ak_af9ba2039d85f292','2023-12-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$oBzUH0W6vHsw1TcZ0XutWA0w8fKZJgU/P2x3HMObeR2Z9cGb/xqJo','user','ak_f8ef7b9959ce116d','2023-11-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$hg.X51Vh3XuJLLz93tAUS7nkpmMxa0x5UkSyGx.V3pwWIdrss97hk','user','ak_762c11fa2272bd1c','2023-01-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$nOYajpddA8WyxaWzwXljldaSKU3Yleiz9yCs/dSC1OshjYWNmhVAo','admin','ak_d061c38bd80db7c4','2023-05-16 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$bkn8pFoGTLzmV6jxV/dIRV9kBnIzjWH8WBUD3piAmIAcC1FnPRuoy','user','ak_2a5cab631165d101','2023-02-15 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$wEUEvcFc/qV/Xff76p8CKQudW89rher2SQN4WeI0BiusLlUJFMf95','user','ak_bd46fb5e356991d3','2023-10-25 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@internal.io','$2b$12$cczGhU3zOURdgfSB2UlsM83qABlk7gS1O49fmrtSArnZqYR38tEsO','user','ak_a8c6912f548e6cde','2023-05-04 10:05: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=43413;

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


