-- Host: db-master-8.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=44091;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$1P/hE9r63qVHzNktxCGFatacQRpXzY73Eev6SAVnE4/el/mooYU1d','user','ak_93b8700c2eaa176e','2023-04-03 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$xNssTYKAVheOErZT20TysvhkZsHWzp1vZriuTO1LNHpHHrld8cQrH','user','ak_d7a3389f65cdf411','2023-06-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$XWML80G3Bpe6AZ02F2flJt0zcen48z7dkkbGqJ/P7FQ.s4bSfehgO','user','ak_1c45ab60ec4a4ce3','2023-10-01 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$H5imXMOI6u0d68Pgrp8xFWCnfdPCauIcFCATnKS9QWI/1V9mfOL0t','user','ak_07f459d2a9964d47','2023-09-23 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$M94su7qdKFaFVbJ/8fyY9Tf6SREAm8janhD6GUxZedIMtJQrSh3V4','user','ak_18d78d42ee1d6f83','2023-07-23 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$RcgLHyXpe5TTenWIhCvxgl/lwfMANRXSerjAILnrz1llvSu0C.vE0','admin','ak_243535e6387c96b6','2023-02-11 10:14:00',NULL);

