-- Host: db-master-4.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=6848;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$cf4MHn6PWCATk9ye8tJpZd.8RER.7/gypAzscytVJbzs8a576t0hA','admin','ak_ca924c7b13869038','2023-06-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$AgLp7R0o4V1J120QKT5sm566pVCQuUZzFf2O0Hq/NtipqucN9YBfV','admin','ak_a1a1c22c1e9e6879','2023-06-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$1DgLnh4jkzNZHhyIdmSbL8sK8HogUzGF2wMY4bUi6gobjM35X0uz8','user','ak_d42ac4bf3705a35b','2023-08-23 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$IhMOOadfp145WCt2OsH2e/LTOFJpTyLaARgb1jZFNLOCA5ESxkvHT','user','ak_6bdfe440911fc16d','2023-11-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$bZGX7jTGNvDVEpL5BDXcB1zZ5plqolTXzGIv2CW8QhsVcZPjsT2so','user','ak_c92f0932020a8988','2023-10-11 10:02:00',NULL);

