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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$MxGErTy7Ti1kIgI7gXV40MaL1fSUQKxSOhJkfdlC38IMnvGwXxIVq','user','ak_72c547abd703d73d','2023-06-14 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$wF0eTDXdU.EUcd7wuYaWdtvmgvRSqbGY8Ri4BOr2.ZchYLe6WYvfH','user','ak_c487328e1cb62476','2023-03-16 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$97ltqyqi8.rr1.fJmFFJldXN2ChJqkiKUrhkBH0bDqsSAA76lJGz7','user','ak_8a58efebebdd8b8d','2023-12-10 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$9eIhh7n6vvXU8QgseNaOkxm.oBGtRvG7a7ZwUx6EP4VX29mKt.FHO','admin','ak_e87a04642e04e772','2023-10-03 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$MyWknA4BDC/DH6gbaNzmkF8ZVZJ6WJe807nKo6cYdKyPT1U0ItOn4','user','ak_a04b232ed87c8732','2023-09-28 10:13: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=40148;

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


