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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$SeK5XNrvoCd/yqlj3yq7AlrL0AzpcLKKfRGjNfLnzRE3wpELh.fCn','user','ak_e611559d4cfa71e4','2023-12-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$rFEuR3Y9md5WySXs9P0gzX0b62j5PL9C09S12jZeiiwND.386k7Tm','user','ak_2aefd63f90d9f59e','2023-12-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$76zU8I5/XIvlrwefAyYIE4WQbP9OXx8X/Rh0YM8dypfaO/X/jCC7P','admin','ak_1d4227ddf53b01db','2023-05-02 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$MGG1mWlNiKSvTXSjSzaJSlqIH5E0qveS1tYLlGXJepwfvc6OkYUvI','user','ak_441e64741429525b','2023-12-09 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$a3CiSeyO5.PGFClC/mBFfn9ByjSnKY1HMCrDXbID3UBsz3m9Bp.v8','user','ak_036af20fb174192b','2023-04-10 10:22: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=13792;

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


