-- Host: db-master-6.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=39499;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$M2tTANC0g0XPQxTTCz5VtpgDeS5OJtSFyEdTctk.XSuED4f4GIf50','admin','ak_1cdeb707867bffce','2023-11-15 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$OwoV/T9FRJX7taI7yirmoZbrYh0piWbi2r9toAcQSIg7KwBOnNnq.','user','ak_56dadac46d9f45a4','2023-11-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$F52lKA1YjJG8RQ3P6kuHuciAGMQTfUNwZYysIxI3o7i7wzWaxJNHS','user','ak_08bca0e7c0319f52','2023-12-26 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$YBAaFFvrGGZbpghvcidcJZs9U7EKAHBRqAOAvUHngHRAjm8LpfEK6','user','ak_e8d9a61aaa1f5a7f','2023-12-08 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$mUyOkDTnp8wI4EbAjCWlAxdDbFOjNAQIur9lPBa9YKWZwzCvrDWAc','user','ak_7cba0b33b82f3e08','2023-06-02 10:10:00',NULL);

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

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


