-- Host: db-master-1.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=48105;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$xHUHTCyDx2w5hXh2Tv4N8CoHGj0bPU6hx.bsipgIlRq7WzbMsAOkP','user','ak_2bb22602f308aa2f','2023-05-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$bFkT4x18RGP0hPuZCIXOlN/4hXEUqnqilp1umpxjx4hbctXgepf9C','user','ak_51fe0238d0c5f342','2023-01-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$jxDYFNyrZ2jNevu598yUfThjj03u6Fg7oUHlJ29FIen/UnSdGSKIj','user','ak_3b5f84b782abdea7','2023-10-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$6UIOqCv3XvlaO4pYaq0hZoueV73mHu09O1NN2pqliX9wC82K5fTbz','user','ak_27dd26bd554d2bef','2023-07-08 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$04H5fBDlgYEeHMWnT65b/mNa9Wp6rifuzyu8VDsMnlm5lwNV4zB3z','admin','ak_9d96b19bf014c87a','2023-12-28 10:13: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=23111;

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

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


