-- Host: db-master-9.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=6840;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$6NpNi1LnbFe4Ixv0Zm0EMSfvrsxrg5.keQUfCESY4IWdLddOtUEGe','user','ak_f911a34d48011de9','2023-02-07 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$wxkOAZaQwb1NkCIdhQBhBRLqJj8GQU/P.XLBOmkQepHqFDDas0uvA','user','ak_dfe2a7c3bb7970b4','2023-03-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Zkta6tpYNmEAEgNu6JUHGWx4oEoTkS5T0CQ2hzXwVuHzl9SM9G9CG','user','ak_d91cd4eb958da57a','2023-10-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$o737SC9BReOV1XE4Zdvl5oU.Opsa8n5vnDS4Y49.8j8NqiEFminfW','user','ak_4943432a32f5a30f','2023-09-03 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$LH9sv2k6LbmkEJMM8ZZyEb9iqw7u7KhBUDiELAg2/UImHa60MCNZf','user','ak_5405b936e9a18d80','2023-03-02 10:04: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=1274;

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


