-- Host: db-master-5.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=42356;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$lBA725JLIbsU5zyIwHLdq2Ufci089L95Jheklyq1J0PYIW21DPuyP','user','ak_560c3a0251ff415d','2023-10-06 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$NWAbli8KyjTzg8AsufGzBBfz7K8GBYDJ5Jvfb8bnKRhi//KhvhQXn','user','ak_917c91bd0b9bce30','2023-11-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$/2NHRVxzJ/P4dt4aMTJQpNuQPV7RtwKKVFbHml/QMecynEf3kyA.v','user','ak_fac87b1e76612ef2','2023-04-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$wEUcw4WJNBhBB1P14FSbWsSGaBLXuc7D5fq4Oi0E4Cy50RomOifKv','admin','ak_29aa3807990b7a9e','2023-12-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$rIBw1j7AJ40T/Q9f4wdebc7gI7M9C1d9llzazzWYQi1OdAwEZVhK6','user','ak_9a39610b9760561a','2023-08-27 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$ycW0cOZLR.UA5Tk2Mb/K9J3KMVdo4WIHUQcnVglIByDulGu3ytvPk','user','ak_eabcd447eaf7ce04','2023-08-13 10:12:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=24674;

--
-- Dumping data for table `sessions`
--


