-- Host: db-master-1.internal    Database: webapp_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$rEdVdGNUGwAk4rqclY17SEQW9InbbnbocgAAmmlCpreUXm9JBUIHX','user','ak_2a451c7caa014c27','2023-12-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$xWpQExZQiAb3gcYDLwjz03Ld5nZuzTS.mCpWBDTOV4GHZnk1OXi9I','user','ak_7b0d0a6db459c057','2023-01-26 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$2FMrbaa9YwRwXFvcYJBp7UmpB8XTso45P66ZJP7Bx9nUnV0VQLBLl','user','ak_ba096c5a311c4d39','2023-05-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$SBaWDk5nMnlkw2J69aCJW30qKqEw09zrYn0D3d89X7FQc65Sl3Yna','user','ak_68a9dbb3539e95e4','2023-11-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$y.dPWr80R/A69PAaBO5tWM/14ro2gmIej7ZCDfCpbyWpzuY92F./u','admin','ak_fbb94b5d8d2d2cb8','2023-05-14 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$YRyIDFMq/R2wV06iAKRih7x4ChCiwmRU0F02N8LCWkRcwxWw7w6T6','user','ak_7ba646cd43059865','2023-10-23 10:19:00',NULL);

