-- Host: db-master-1.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=19229;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$DR43RGB3dz125bLi3h/kHybkjk37GQBq5u85k8htYmrZW8j7cuTBz','user','ak_1e3ff611be9db1ea','2023-04-25 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$sF//DFZZpH.iA0fZSxpr97kXJf6NEhmD1YsmbUQCPbKcNJlR66kFW','user','ak_1021dc412e975397','2023-11-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$.8F70zrLZYmO1JcbHqIczvAllM2mSTBOIbE0B3qQEQzgs8Sgq/zTq','admin','ak_8627bc1ecab77181','2023-04-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$yFKJirBhHcIzklGYbk0gAaWN82aWq.ffK6zn/PD2a8EZj7D5nM6gU','user','ak_110ea3c5e00b10b0','2023-09-01 10:05:00',NULL);

