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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$xmtBFYXdk7kCBM1UxMwQlrFGKwnS7nh16gs/OEnzC4kU1kbixf36T','admin','ak_24d9090a9e4cbba1','2023-12-25 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$gKtuZrL64fGlCVGA5eW5Usiny6cSlrbAkqPjinsxxgf4.KFlqKEiF','user','ak_03edb5d989380682','2023-08-27 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$mtUNXbZcGFdLMFNkIkzg50LcBQP07xWflY7C808TjAW6MWk1sngMf','user','ak_022b035fd0ca7215','2023-12-11 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$3KYynDn.WFlaI4B7Q9VBIr6RRnql2YPIBhDhzk7ch7YFbLlAL7e7w','user','ak_df0ca6d7a41dc87b','2023-04-11 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$5/nW.pvq.Dvnj/7CUToZu4piO2OeUiS1TsbyhpYxRYY24FWDad.YM','admin','ak_1cf31e53000ef199','2023-03-13 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$rVCW7/jneYljAfLAI6ZZfHSAJzULnWT/H/JbqYDGhHPEVutSll9sw','user','ak_203eafd6707d0d8e','2023-10-10 10:17:00',NULL);

