-- Host: db-master-3.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=23940;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$LYIktmxu8SbI7EdPRNdNK6.m84wZpAnoSdJGhg4lbJ3A8M03.8saX','admin','ak_5b1f0317abc04411','2023-03-17 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$3pIfLoTMFjWWtUdaZaV9m0YNalWqKFITyt2xgmt.7evPCee.NJNlQ','admin','ak_827115bbf8c37fee','2023-05-02 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$0/DIDeZfQE7Q5/VByDicFFyHP3aKMtgJDEfNBsomTx2Ck.Hpd8rIo','admin','ak_270ce0db76d789e5','2023-03-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$yoAfc9Hx.cG84cbxNo9DEM3Xg3gLkMvhAkRD.FmbtraoCAvCmnxlZ','admin','ak_d9b83aee483357c8','2023-10-05 10:10: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=9724;

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

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


