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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$yR1Iih26JgW0B34erCAQ1TcLFLPPyGWsf0cK6KY/4YdniB7xwZEPh','user','ak_8cafe5c22642f4b5','2023-06-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$XRYNKUVpuEQwQvdbOqtnEuKu/yIPYA1IAQ/bK3ZVgzBpExbMPyCPB','admin','ak_d60039e858b0f001','2023-09-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$njZGyH4AFEm5tngn2KKfsRz90O7VRonmA.jCP5d05hsQdXx7KB5VU','admin','ak_da1b9a10824666e5','2023-05-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Y1/0meBfmWbYdjWvY8rU77K0NDTAw8SmiFpA7Vbg/Z2f.sWp8IVTZ','admin','ak_2889d42b6f211b15','2023-02-19 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$aDgRlnH4VsU1obnDQuVUVNSTZYpC2dW37thidRnNtEpbJ/CkA8WwV','user','ak_e705032e538ae4fe','2023-04-03 10:22: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=11544;

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


