-- Host: db-master-1.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=9777;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=27256;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$Xcmzi7JFFZMoBvYfNsYG/.VdZKKmx8b1Tf8eHaqUvEvQ/u5g/4FVw','user','ak_0951c653985fc5a0','2023-11-28 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$/tlY8P.Slb9J7.5DqOXVBD5YyJ/QF7YEzaN1kR7Rm1UtqqFePXN23','user','ak_3d70a49fbdb13821','2023-09-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$.YdLiAG7ssTKn12KeCqSIR7MCFglZXclREY.uHNV5obF9WmB7j0PN','user','ak_f366a20d58c578f0','2023-03-23 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$D5MnwZuWJx6zGc.798/ob5YZP1zcqVaq9VUhNX28zjQpo5yUsh.Lu','user','ak_1a2f6ced97b9b981','2023-02-07 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$knd6cSangb0eE8y9wg0w3j4QkZ9/FAmnUmBc.fEmRHz68RXAKN8ZB','admin','ak_aeb7bbd4cc594482','2023-05-18 10:01:00',NULL);

