-- Host: db-master-9.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=24062;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$dPSaRBOVn/Pg2ZQlA48NYxqfvldm4.C4A1Rg7JcmTsP0FVyn/J/IS','user','ak_41594892118129c4','2023-12-03 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$kbIkDagXd8K0JEnwpDP8YxYAJl.SfoTdlN6gzVG9NeyKcxYOjL0a/','admin','ak_6dd9e722540505cf','2023-08-12 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$H96Q3swYu8XGmCei0xWS58J7yqH1t0qyzoc.Yi9Cihq0e4Jg1Ii87','user','ak_5a999fbcb0456ae8','2023-01-06 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$7C9y2qTjn3bArxg2gN.Sh1MmOs1x7CAbJTqMXH/wBXlSRcsO.lHCz','user','ak_ca94549e5f411349','2023-07-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$jFWaESRTbVYR4gelRgUVldeIxcjLwWfcvy5X75NZv6t7tj1ZF8Z.X','admin','ak_214c8ba21e62931d','2023-02-24 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$901JJPAl/M0Qm6L/8N57K.h1q9x61hjiei5HlxbedjgKbgqQn/vln','user','ak_9933e7a389c3f74b','2023-07-21 10:19: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=49785;

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


