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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$aJ.ungFB1H.UU7nUggpgw9x55P0S4yijJTHOVi4DKi9adB5I1oICh','user','ak_99f40d940ebc778a','2023-08-07 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$MvGIx3uzmRk0biWj1M0n6Le2Tcn.36jrFisDs88f0xtXuhLyCKwsq','user','ak_c7a181ee6e09596c','2023-02-17 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$2LVBJwMk8P8Wamav.kw6E40BkTT4gf5nuV.QM/r8zRW0JXmJnjR4q','user','ak_d7c664c19a2a4181','2023-06-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$l3IOH5Q7g9JoUHE3Pu6t43WH0sr85oWyuO/bW3gVBs3ySyF/f6XRC','user','ak_b2b6491225231724','2023-02-21 10:02: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=35122;

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


