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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$xCcv5Q8cOrWVSwTRxGTWZ1C0rQD/jS41hfuKwtqPY8bgw.7y1//om','user','ak_81d8b65865747777','2023-05-17 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$VBvMfLom0t5xW/O5frwdSoRdWW3KvWjSvXPJDD4JRNHvFtQXHdR.H','user','ak_5c61c210ee5aac58','2023-11-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$eXhkitfulI/b644Z88yMTk56y2iJ5xnAvo/goVwQkXim7RpFZEDND','user','ak_93530046b443fe58','2023-08-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$P9ZTvd34bpTVBiViST7jR53YYG/Qi..XNE7J.PLn7wagI9rRnslXh','user','ak_44e3b01d836e3fbe','2023-09-18 10:08: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=36724;

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

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


