-- Host: db-master-5.internal    Database: production_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=42230;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$nGvwWRHe39/szTZETrtn7C6CO2O.Q8BnQZnWW0u0rNked9QniZq98','admin','ak_5172a94d604bc307','2023-10-05 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$zzWcqnE8Lz.5b2Y1O2D3eD1CcCW0cM49/pl7/PGGe32MH27tUbyiA','user','ak_e9012703a3edd9ab','2023-09-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$pr81.9anjEWSYh9SfdfqIVbFz8QVB8q5ZbU9NohhZW4I9ASJ2mOtt','user','ak_d7ebb84059b4e4a0','2023-02-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$PlGvLHt5E51kfOAbUcfjUnJ2y3k7sHr8UU7oCnmJ.PQDAjx/Nllul','user','ak_f11c9b2d81e381b5','2023-01-02 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$ihL3d31u0lh.fk9n2V8exIcwiyQ6YeHKmYXIZadpqRv2ErqsyDUip','user','ak_6c918728d0c79b51','2023-10-25 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$mn/GwwnjVmb1UMflGmHdXNd5ycyvHK1zRSNgGAluLqNW36O/Rn.4b','user','ak_51a34fad2adbfa4b','2023-02-19 10:06:00',NULL);

