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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$O1QOeXFQ1nnnl7nsRb8r72w/O/3mFeZHXFiAQVOSNSsNecVfImDeE','user','ak_31fe04710dbebfca','2023-02-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$bvwG9p0bcY1P2K2ALTWCBtwxCjUi4lYixyhrJ9Jp8DbU8WSciswwi','admin','ak_bc04a1f8090d6a50','2023-09-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ZJy3c2nmwX9E8qrTVjLHEIBXONrloZCaTfG/619VdLqJKTT3wknkh','user','ak_c0e7399e8c03d566','2023-08-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$5MdJROizi3jaem8N1SrRzV4fl1SQ5WFkAa79r0zCs/qPpIvSg3BsL','user','ak_0424c442811916b7','2023-02-22 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$PM3CzfMGK/Q8mUy3WvxVRYrwBIyzlzQKInkdgrDx5BTTvxhPXPBEl','admin','ak_c32becb8cf76b655','2023-12-25 10:08:00',NULL);

