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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Me35m6BvVUJq3udslNRzv9.74wkxKolDA8hRuA/q2/IFNDqwor0jB','admin','ak_4f5bf1f24785d076','2023-06-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$KooFKA4IIJ/8ttjWuxu/tm2h8RPBIBwjfamu3G.b3B4oIKG5vQUki','admin','ak_e5af4913d9ba172e','2023-11-20 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$4dHOMouAqg76v6nUr1ikuuur/6WBsQHgvufyyN3LTDypcPposSrrg','user','ak_dbcac98670c5efdb','2023-06-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$vT4vvj5hnk5R/Lm9pbQ7VO9xnUqyyl3oY.s8Sv0C23v7z/BLhl9nn','user','ak_1cd2104ce5c4c472','2023-01-28 10:06: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=14499;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=19787;

--
-- Dumping data for table `audit_log`
--


