-- Host: db-master-3.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=6154;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$zW.NjyIlR1DP7aZoH8lp3wekiud4OhSv6CE5pdqgHArXvCKU6f490','user','ak_83ecc7481ff2719b','2023-07-17 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$zU6cVNwkju3h1t7I9UMaL7rteABPaFspPRprHyIfyylaTw6IdGa7c','admin','ak_9c248708824cfc03','2023-02-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Vn8XngEGXIPWg.nGH./cFh2IensE9KSbjTs2TM9BBvKvEi/.ItMvi','user','ak_83d824dd0a8b3529','2023-06-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$ITnkJ4OeSoWhrddV90f6fQeNd5oqktFZxEfekK.6N6t/mWkbQLESA','user','ak_50d5afb069c7baf2','2023-03-01 10:19: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=13040;

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


