-- Host: db-master-6.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$uY9EPGid2hHWygLTeaDmgRCtAY4tvYPHWa2EFSGqSm3.0qtk17Otq','user','ak_8b1f9034b3d72d82','2023-10-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$X1Fi0dk7xSmBvKxnRK0LgRw3VNb12T4YRAUkzVjtUsDgsKDjQaJMC','user','ak_aacd67c1633025f7','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$VhrAbWBxFiiqgxBx4lm9w5AFZheK2DvqnjZWDq2MGnJlXvpRQ/xk.','user','ak_4910992c31c170f3','2023-11-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Rjy3PsmrM/xftO6Ogt1pvH4epUfL0tH.17AoCFrto7HITm7KtVAZI','admin','ak_0e4f258170e9ada9','2023-12-10 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$fLcSwzSk2dtqW2eGO2HHpzGgNvuyyhq.YaS/NKZ6r/.LsYjKi6W16','user','ak_32d7a00a428da845','2023-04-27 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$8g6jMW2zQQyM7Pvaqnzo5SsxquRZzl2dGm/UR1X3dZEhCHJxN1MTy','user','ak_af2d5c8e8da8b039','2023-07-05 10:22: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=33523;

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


