-- Host: db-master-6.internal    Database: production_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=30421;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$xAMo4BJhhZdvtYgcqJ/QeuzmuV/C4jsB1NWYEzISuo329o/FFGxmv','user','ak_89d91f726c441638','2023-03-07 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$CY71OW5m4GN9b3aa8FboDYfvdiMsGuCeFyEJzw9LuvWUIUMLiBsTn','user','ak_7825a1c716f2a78f','2023-11-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$pyZ4jS4Co1ZfYIFS1PSGLqp/rw8iUG222dZKI0EE8z8GRcr1HWACZ','user','ak_b0666d42d35d8af7','2023-05-07 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$JN83nbk9tFw/Jm8mcI7RanqyHW5zXXtCaaYiLhfOj4jpxqlG1m3g4','admin','ak_d41462960ff0720c','2023-02-02 10:20:00',NULL);

