-- Host: db-master-4.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=7328;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Twk3XzeRsQmnLkft43ip2NM3PtfaoUkRVfwuIBlRcQb6rN/YWdpTS','admin','ak_4904631e54093abe','2023-01-26 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$aPPlBviuNAWlrhgImVlTKgHj5I3iZ1x0HqpV.aeNf3anBLT20UbeN','user','ak_cf059e1ec36c3a94','2023-12-12 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$xMaefWV1fNcFT0ZwJgtpRAB/P8vYn4WF.aqCxiZwrf2DP4xB7tgby','user','ak_651a53d0bdc334ea','2023-03-09 10:14: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=2435;

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


