-- Host: db-master-9.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$76tAr7Sl4Mzn7K/MUJHGJmq3emkRlXEye069jbrdKLc2Myd9ipg85','user','ak_fd159757b85e9777','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$arBNHJ1iGBENhWvxPFu/B.YYcwCbPPcvOQJafA2ww3KCujZf0oZ/w','admin','ak_fad14517e9e17e64','2023-06-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$3/ZSmOX/mPo7sklxY1UsiQec6AHwPUo79wFkWP6pY83sLzZunSXKt','user','ak_f0a1eb924e982d0e','2023-04-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$H/kuWzD/EORkD98SN7xArccZRdgqkjN0R.L2VuZspwffB1SAfOil/','user','ak_481bf9231f603f09','2023-08-21 10:14:00',NULL);

