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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$a5e0FdsiTm1diQfMiQgrSygpykpAoOFMvTIgii.3Rza2wLCSa.2v4','user','ak_5ff9625777cca77a','2023-02-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$hW9qsc5ULGSUa5/3XDUnavQPCHZzuQW3NRGU9z7z9F4Bybi7c0Hdi','user','ak_32e52e98db383b41','2023-07-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$dNcr/jpVhGJrnqBYkja9IPPXAeVcgombgFbGbLPMWDi9OeGnItZr0','user','ak_f85823e796f66d77','2023-03-07 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$sCnzJoMqF82DH59b6wTdJbReSqgVPw0Z33p9vvzNsq/yzdUPKTb/R','admin','ak_e7fb5344a34b0dec','2023-03-24 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=27353;

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


