-- Host: db-master-2.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=48207;

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$GGt40qsyNkRiwaQQ80iqh7rfooDjpyyfH9D1w.j1EJW8zUAlLr/0Z','user','ak_8267ccff6864ef84','2023-09-20 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$1DQgNzcGp01PYxWWC.nNU2rbvbCYUNlaFhAigywSPjk2IX8A40cqj','admin','ak_8acff19402cc0c8c','2023-02-10 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$q/vkyoXiP88lFbXb4gh6hJvqrRfoc4AgPtyJoEUdvZuF7ynOpbl1L','user','ak_67b8c5551fab186a','2023-05-14 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$U6d3qKI5FQvT8liISC4RNdkBC/eNQSnpmQm6dbcFi4T2ac0iGlRgu','user','ak_d203cae179f24d87','2023-02-12 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$GNfXgKqtEga79uKPTlR5lGUQKjZPbrtWW6gvhzf9ZImjsRcSV22wh','user','ak_53e4c5c2266e029f','2023-06-15 10:17:00',NULL);

