-- Host: db-master-0.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$xoYfvpPDlJEm13C4LTHC7PegvS5cw8Un9ONXdm7bhhxgY/f7mACgm','user','ak_927fd45ade6e5de2','2023-03-24 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$prFFK1Quahu9ayJrkTCVLIgBljoGt5UJOhodtyB9BQNZzNAUJRm4N','admin','ak_008b9565a2b49fdd','2023-05-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$ttxu464takQVjRIGxotfhPUaZ1xuGsZmGb.Lr0n6CCNVYuiaSLxdD','user','ak_804bb816e22b7107','2023-07-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$RHzv6cDoX2r8xAo559C6ePI5Ybq5QZ2oIZdg47Jh5NKtQS8f1NtQr','admin','ak_7870eb4555fc1988','2023-11-27 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$hAYzrl0W/pkba5Lno0gxcxeWKxKHJS0C.APDK4fOTYD0WWpFL/C2W','admin','ak_9c9382670a905f5b','2023-03-05 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$XS4O8LVqFS6SNRvc4/5aP8v1ZFNEvMRyODAWpIloCYAEGoZ82zJp3','admin','ak_0f51aef2c5d53b4e','2023-05-13 10:07: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=36514;

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


