-- Host: db-master-8.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=24783;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=18052;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$VnLkSq4AI5kkuWmKsB267Cf9A51UQVxtfONeYnNJCo/9cXhUrsIw2','user','ak_f2c36f35fc46fb04','2023-04-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$1AeQ3XIRxnLhdWMyb9BW54uTRL7V/LzW.jv4YDGfMSUHJvWcKO6Lm','admin','ak_d50782b65a906b26','2023-10-20 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$HZXduVhN8IeZUx9kzMTktoiL9e0kKhKCvSuaY5b96dRT4JJ9AzrF9','user','ak_d7b36e64784353fe','2023-09-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$6S9KAVzXJFRqxX.5JWQwmumTBU4d3MFHgn9Rz2v9d2jcLpjf/E.0i','user','ak_5ca99b83a59f35cc','2023-07-19 10:16:00',NULL);

