-- Host: db-master-1.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=40065;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$3UIjo.OEOA5HwC6b28LXQS1P5RpoePUPmGXYqPT/nnrhlPGbsfoRN','admin','ak_fdb585b8c1abb7c7','2023-08-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$1OCcJzMf0j/ykc90Eio4Zs4OMcHY1JmN.hzi2hQp3DHn15NeO1sgs','admin','ak_def02523971e9bf4','2023-02-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$iZ1xdiSX8Zc7cTPAwzZ/quX4Os9kYD9NQ/mQQWaUlOvVOKCYpX2qR','user','ak_9d8467477b243ff6','2023-08-16 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$bkvaai/jvPg5tUij4aZWlcGpDZ.9BHQTe/Ntgd7gHO0z/cbz/IiJE','user','ak_d019660e41e2efa0','2023-08-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$3t9nRr3UnSp0Ljw1CXMW95hb7b3rlplt.xI1pfsLn.DA2Tjul1Dn3','admin','ak_abdb86d3d4c65cc3','2023-10-02 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$3j/v5QTZZiaNqGUg0Kg8MVlU7ClEApM6LlpJL3ve/hV0tiJeUmKpK','user','ak_6a8aa79e534406c9','2023-05-15 10:06: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=15853;

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


