-- Host: db-master-4.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=16868;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$2tLTsgUHtxXL2l6k6nwXiavrmZsxwnRwdsbWWkhlqbxwIBXiUi6Cg','admin','ak_5c7b5823e9c11ac4','2023-07-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$7Cku5N3ZKm0SrLCuCxen2bmBWzYLHqms73yHGr4yDR4f4VMfg2xfH','user','ak_d18fb3c85821f811','2023-08-06 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$wRPn2fay9Fbc8nxKXas5uKnG6fX5aE7QCQilbK5YWAjh5aGjUO9kU','user','ak_90a0f32cbc4abcee','2023-03-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$1Pkk8esfzWuR3av7vzCWrwWv39JDxKsTNRvVc7MJ0N2FAt8aXW/PF','admin','ak_7a27f2964e6d72ad','2023-12-09 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$9rSVJRlK9ELm7nnAK3TawGXUfXoZilaUJkmEbsOs7qCeLUphJyRb/','admin','ak_f3474a9201c73fcd','2023-01-22 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$ZvRpUiDhibvRiBZJpOCP7sPJb8Wj30gq4/MhdTkLv/aMXKdhbfXvO','admin','ak_26ac701f40d1ca54','2023-02-16 10:11: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=42527;

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

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


