-- Host: db-master-6.internal    Database: ecommerce


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$q0xvsWJAxGhkW05yVb0/GVwXcgpPGHRJgxs7CcNW5u5.RfsE9MpXR','user','ak_b3a092a86961dc93','2023-09-06 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$EsiGNnjVUWsieFxgjMm45ZXbmgQvzjf3lWo5LkDTo/tQS7N/qKT81','user','ak_c8beea797f8f2e26','2023-07-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$3ntkFHzgMoIY84BOaxRLLcSHcoZo481Fq5YbiMkr0H.Qs8zB.6/e3','user','ak_d33dc56b5f0c758c','2023-03-07 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$UuF1JVduT5eEGooE/T5hJzKyqbLjXE2EF9NUxL5AJaen2VfSMi7jt','user','ak_ec8de5ddf0681880','2023-07-10 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$7lABJBsPHcRraD2DJeRI7h2p2SajZdCYi801sedFHy2U74lzcBNsm','user','ak_785509418d52851d','2023-07-25 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$K2jidWQk4okAMjo6DGDeyxbJtyx6J2QC8aIaltJI6CmXRaNE2yByQ','user','ak_d51cade30e2efa6e','2023-04-22 10:08:00',NULL);

