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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$cfdQ6Yyvj2VV1MLOPRUROdgbzwEMrtMy.5u5pEJ0K/ABapP5oVFYy','admin','ak_6cf7f43a13420fe2','2023-10-01 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$CEkZ09gSijSqU2akCL6OClcd6kK1HXgNLRMibMYFXKFqBa0ps77GJ','admin','ak_2b9fc7f933b08d61','2023-01-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$pY9tBC8bb/VcJ3aY/IzO/uM6Jm7oEgUsddhT5VKEpUq6Kwuz5a5LZ','admin','ak_35740af278823c34','2023-03-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$BICEw3vkVWaRAZjv.QgfhFrcV8pjmp9Uubhh0HBrJON0yKUYp5clc','user','ak_6a20dd5dcc316ea1','2023-01-27 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$3HRH73KKoz5DF8UHvw3NE9kg5BetR3E4dV3adMvi2PQAVarjHlO/c','user','ak_97682ac219451a2f','2023-11-14 10:13:00',NULL);

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

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


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

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


