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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$xapvku8WnA6QvjvJYbJ96ZDLdAfllDA4bXUfuInasK.3eJ18ow8zK','user','ak_3371264c7aa140a0','2023-08-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$un3SRq/u1Cb/kA69aMgFE.bhdsHcFRrw97HnceXS2RrUkqmKmZw2v','user','ak_21e66e25b5f77476','2023-10-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$8Jw8i/sEexPiVrmwZLXRXfXJJq6dkxknqCf2on8M1xOMLOuQqv63c','admin','ak_a87359e926763471','2023-10-21 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$v.bDw4KcNOGzj87h6Ym2NrBy9QDgVqFNB7CBbFF8.pC3QlMzrI12t','user','ak_a1dbc211031b3079','2023-06-28 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$D4WUOuJqzrKqfJPubufYQJ6jx8c1f2PTydVRrHmFzC3xFaifRdFM7','user','ak_140ef96e6568cf0b','2023-08-01 10:10: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=35234;

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

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


