-- Host: db-master-1.internal    Database: production_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$ovJFaNKr4SCQkZWyx0MwfjoC79jS6dVtrQLYY2x85L81EAXgjZsoH','user','ak_bbe632546d838c8d','2023-01-08 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Ep8wDljnPUhm0PNkmYCQLRZHlcxqv8snLTtzSpVFC9Nhw8CDGxudj','user','ak_69d67d5305dd1c80','2023-01-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$BjtW.G5Ds3FtiEUkju29SWDBHgJkTTUNRa24D0B3Q61n1nxZztwJI','user','ak_c2260a77e0eca5be','2023-08-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$WgoGzmudxYvcDxhC/ozRuHXisWXGra12blDTFBFn1BYwpS3dPkqVx','user','ak_371d08ef5b44fa67','2023-04-25 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$Z6N94N4FxSN7tfzr4.w9BGkqsL/6rD.vht8ugsqMAjYJL0ttUDRIQ','user','ak_b92fc99d4f47c4ce','2023-09-05 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$ZFor6vmD198ZSp8qdWJIFJsDULYXgXrPaBqrvS5yE9G6gNfDOSQR1','user','ak_3d9aad78409cbd88','2023-01-06 10:02:00',NULL);

