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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$IMyy/V1dw.hT0xV7MdfBbz.oarHVvFiYR7LmbbtgtCZ0yliuz1f/F','user','ak_dc4eac226a3edc43','2023-12-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$vc1BHx5s3gzAIgZiDtpWfqHXu0hD3rUPyLBwDXcb6iJbOxwqMmBN3','admin','ak_7bda82227e6c6fd6','2023-10-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$3s5H0yn7X7UokzWkU.tVY3fbPJMw6DkfKs/PCQZPNMYanZ3rjSqT1','admin','ak_ddad608c6d0bc579','2023-09-14 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$g2WL9/uz/TxtVQMhPHtYKriDoRo7ryqzLiuOIcVs3uND1UazERMqR','user','ak_941a502de19f6bac','2023-12-10 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$YnaVv872lVaH.i6nH.9QzPqqkiglTC.3zFJybzNf91WQSPAIq4LrF','user','ak_cae6d18a1a4b695e','2023-10-24 10:09: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=50331;

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


