-- Host: db-master-9.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=42791;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$Ijm4oFEq67xLwNWJkXLzyE5M5PGb0YyqGRxTK./gQKnmX8uim5AR1','user','ak_1be2b17849364560','2023-04-13 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$8fTDhitYpb6JuqHKag/K9XwXmfrdMsZF0/4x2YMWxVe/YKQ7vHYFd','user','ak_763660e1f1e81127','2023-10-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$z1EXs.39zNZO3Q6lHWSUVdIWdTtI8k9EAWgVGuX/6kAx4PubmrB9z','admin','ak_db2022b66938498c','2023-04-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$WsxFwHGdBdN4w1U08kcB44YGe.W41K/4ZRs8kyYVxe2uUd7m19rdn','user','ak_380579dae91e00d7','2023-04-06 10:04: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=8058;

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


