-- Host: db-master-4.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=33469;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$hItJPTj5111IjQN1Z8o3pHnRCWaBXU4xj8n0scEXyMT9DHMuh4FP6','user','ak_369a5226c52af79f','2023-01-20 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$ShNwZuRAGlBkV2HR/R91xnYGbMAunmGJ7zT.uv8FM0VP9WWMSpATC','user','ak_c59468ab6bfc1a4d','2023-03-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$cABjluydbM38d7a0ZlBisimrfT7DQ7dUFEP2qPqpePce6uRqGlO4o','user','ak_eadfb5c01e9930f2','2023-09-01 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$/I/D2hnJO5sYXu5eT5j8It1tTP3EE5gznKsDufwXG4fcLP6fWKMDD','user','ak_d60ee77034f46e7b','2023-06-03 10:20: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=22888;

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


