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

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$bP5D/Ei3bSFV5pDxYs1Izvq6AENJlTyQW43vJ9ZDi72vj2vARFKgY','user','ak_ee0d2583afff4606','2023-12-26 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$8S6NaHKx6yAHyJOzlA5sy3GbBdb9xH7BbMcnO5vymhvH4C8JGiy9B','admin','ak_65c21d3a617f2228','2023-02-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$5HBjAeDG9eJtrX23lq0C/cQzuE/6uo6gDP1qJlxBEHQzyIjRnmZ.U','user','ak_b1a6ee527ad6fbb9','2023-04-27 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$RkZPIab4pYqNZO..S2fDLJdWLjcW932zn0viWA//v2kT899VaYdv6','user','ak_ee057dd3d65a95ec','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$KeMP04O2QryKMMFvMCgx.6qV9T0ky1dsUB1rsYOUTIh8Jlvpd/Cvs','user','ak_0eddedf80d18f6e9','2023-06-25 10:03:00',NULL);

