-- Host: db-master-5.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=30753;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$1Sah/tZ3zIPzRSKWTS4wKV4KM2jS8AGmK9Cxadw0q0UNlHunbptzS','user','ak_1be1f8801e95962b','2023-04-02 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$T2jnWTGXrtiM.Bs4vYxC/01yu/9QnuAun.G4iHhj2wTDTqZ7mjlxu','admin','ak_8df6e992c6ec392d','2023-12-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$rnXvTUKKhfRpMEnalaUy9L2GgP8fWa626zFLawa7DkQdNgrQ4CnAs','user','ak_2e9c78d7400e1cc7','2023-11-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$XuQs2nUYhdiWwm3NBiQFo2MkmCia9rj8ND5Kqx9WlT9z7ePH4iT46','user','ak_7e61c654d4fc9dbb','2023-06-14 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$NKXTN8QfC9kK9sRMosf6QEqRxZk/oFKxtyeFXD96tvdvc6d7ITvG.','user','ak_0574e74993cc78c7','2023-02-21 10:09: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=27729;

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

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


