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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Yga0ve3NOopmzBz9vQUeR4/ZiZleI2C26/DJq8MrZw93ocrwcsWh6','admin','ak_e5662f8a2b57e1ad','2023-07-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$7C0sRYmJCQZUoDH2J6YJ6TiG.sMENDbZmy2tTCjFULlYbVpiZPvB0','user','ak_b8888558da98dccc','2023-08-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$jwnlzpBACVP3PIzqhDsF6rJLWMzdTltvXpCQxMdt5rwvt/kk06y7b','user','ak_1dd9a006c90e21ff','2023-03-25 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ZPT5eErfZPX0WJ7kSUjuMJv3toA1V/YAafxzgj6J071iEnQw9X/lC','user','ak_6e383f645d488c57','2023-01-13 10:02:00',NULL);

