-- Host: db-master-6.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$Vy8andATWU9cH2I0aXOfmQkpmKImX36xAy8Ulo4Z.I8FI95jKaPZO','admin','ak_440c1cfce1b3c4d3','2023-09-19 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$kYcFSripXwJPJvUENjLjw9qmOGT0LM96TyQ0MSCJ/RkMhjql5cZ9X','admin','ak_46926afa05895638','2023-09-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$CDqJLZp2xL4hbbFPRTQwLDV0yJg4yXmvSkNNTSvKstYpHkPSI4U9S','user','ak_c4efbcf864a9f482','2023-05-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$16oFnWyGEtm/xbT8JCldkJGgTyjrv6w.RbPDy1cQQecdX5rqsQJOY','admin','ak_e4d6e7e0e7e1c708','2023-12-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$EzVjvl1fuGhkqWFrhEcEKujMJKOy7nWi5FFWPiQFGeehJ8AsHLU7l','user','ak_760ffb9ee624f61b','2023-01-23 10:12: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=48968;

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

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


