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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$mjRt6WQ.Vga8axZ2t9L7G4EeejyuwbHGzyTBreFFQUi5rGsfOmf0j','user','ak_73e833e3913adfd9','2023-11-13 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$eraBFQI8/Smn598sRQeyIlO0bPY9edNuCcNhmbm0VQy4oVFl7UcZg','user','ak_8fcb5480390e7398','2023-03-25 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$gbpUu2ZeAxolaZLcWoLPUmh0ndKXgzdn/9ntGUL8lJ4zSGZnzYJE8','user','ak_224e3bab2dfe0f52','2023-02-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$oq2gnQGi1kObaOsX2CCXWDtPh76Jk1bLJueZHR7LhJYqctrEhAae8','admin','ak_ce386fe5b73981d5','2023-05-09 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$zOJXofJDxqPHrrlE2bu3G.xfpQZjRGNnh2X668odsRNaPCTCQqeN8','user','ak_b83294a24cf2dbb3','2023-11-12 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$ylKPZBStLdYqg7lNJxfP0EeWSwIFOL7EnJz43wT0c6HMvnYj1IHeX','user','ak_083cb387251f4f28','2023-11-23 10:11:00',NULL);

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

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


