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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$cw1kjbfKcd.GQg2cFD9HgIwxcGCqaoVO3Nad3UulV72EgB8V5rvH/','user','ak_9e5eb97204fd9552','2023-11-22 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$OgjwaNv5SuyZjjwW2mVpFJXLWL6VZdRp1pPCCZro429qD4Y3lAxrB','admin','ak_903506152c8bfcaf','2023-04-26 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$JLmYVgHfpSIlR0bUWNGo5MmnR9hLv6v6uJRRHL.f5KqZ23kcoQzjc','user','ak_066a503aa5ca0fa7','2023-06-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$hkWYaA.fS5xDtb6wS4HSFms5fihLQBKl0dmPPP.BnmAhLIhvjIpx/','user','ak_112579e529578491','2023-07-25 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$iuWDappLA.nrtjOr.llUt4qiDsenDgpWVXQt3cPWYdQbhOFKpkUWl','admin','ak_0b9902d35366881c','2023-05-20 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$XCz45xiL0SPmJO4VFv4feRqKR84mx2/TjlF3or4CU64alkUPfHw5E','user','ak_fee9999b0837b380','2023-03-25 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$vX4T.HKIRw/ELjnXkpd.Lww06x/dTQoBtGwRcxnB3b0L8VW6kPr0t','user','ak_921b552f845467d6','2023-06-13 10:17:00',NULL);

