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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$1P6tleL7NZ1o1FdfzPoATUEkZZhkl6mkm7ilDQt0KBrNr.SV.RhL7','user','ak_a1e81496e17d2200','2023-05-24 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$d8icndwcEyurmCrNu9LEQ7EqeyKoysamE3il4I0wCJLNb.G0AcSXN','user','ak_67b7f275ddaaf729','2023-03-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$dTDvw7BJ617E7HSMRVXKWC/LXFIvILv7F2oDiXu8XnIET/4mBvcJw','user','ak_5b15cd3226626452','2023-01-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$KbfO5DFikUdj6E3lw5p9oU9cJ6iT0vRZsR7QFsl0MwjXgpbChqxPj','user','ak_8f98b90da919e1c3','2023-02-27 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=15325;

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


