-- Host: db-master-9.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$nMHNc7hPXPzmhUiTLGxSR4bF2Tv7Vx7Wt/kBNM9buXLLpjdk/cmra','user','ak_67a27baf57d254ed','2023-03-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$rwVX9tezpG.NuX358QZUmIZQIbM3Gp7msZ.fXDY9mS8JmjKYfEDmj','user','ak_9550f486d73cc605','2023-08-26 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$YCumfcTD7xiJGNU0bKhu.1FfaCYa6Es7kvWbVlWdl5tqKSDXct4Og','user','ak_7a9d055e9eab3728','2023-11-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$hcykNYYF4ZKixEN1ShSxBTro1d1nakvHLD/XDdkC0ftPuLBfZdGMa','admin','ak_9a23ceefe8318d7d','2023-12-15 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$JB13LCPMc8HEXBTWtKk.PB25sHMjJHFMBhbI6NB5uDwytQnUJAgT8','user','ak_260b578b5f8913c9','2023-04-16 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$I9isrdI9jaK5sxy1kny6tnlSEiP7QY8VdbNpWH6F5uFJyvO25D3E6','admin','ak_334ef91813fac10c','2023-04-16 10:17: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=40005;

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


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

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


