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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$IH80R0N5WkuzZQDpXifLp9mKva0/dD4AXkkgyD/JrjU5UFTbUP2bR','user','ak_67e67b94d2e06e6c','2023-06-27 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Wg5jBERY7txYQNpBTIFex6tPDH/w4U7Oo7aUD.NeC2aEt1AzEACFE','user','ak_e4a43550b4431a4c','2023-09-01 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$9ZYjLzxScfcd.ucxfJZ6rZBKIdyxAR3/LrgoXVnbXqxMw2mWrfbtu','user','ak_91ba30acbbf016ca','2023-01-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$dJxSUEQ6SULrTfHr..G1k.iJcxm01FQWx6kawRraRBVKs2ruxoszR','admin','ak_bbb4f33063ebeff4','2023-11-03 10:01:00',NULL);

