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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$S.2J2OE7hYsyo/4vaPxIfnX87xkvMjmk2BscQvHJ3h/WyYfYNsgXz','user','ak_b83f33cdf37fc60c','2023-07-22 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$4ZNYjZUGQq3RoY2LEkJknU4yhVIBQXuioSNwHmanNpk1NEyLBBUOd','user','ak_91d6109ce07828e7','2023-05-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$1f8x0HxJJvIu3NND0fUvJ4atjJ3c69qLZ4dxnf2u8JAtxcLTn240k','user','ak_9a8870f7e8e401fb','2023-07-13 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$OP93rrI/IK.cXngLujA9g5KOtjclAhz.cNqudB2Twf.ASttU77Q2A','user','ak_56510ab7219a1662','2023-04-16 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$cX6nhT17d3gQsQSz25GxDzCi1X8Wcu8uUKV3KvTCbGhkL103I70VK','user','ak_5999b76bd464771d','2023-09-08 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$kDjski0AAi61W.1yQHOkPmzWh9iXTo..4x7ZOHVPmyb8t2uut0Cp0','user','ak_e26c0e383dfa0385','2023-09-13 10:09:00',NULL);

