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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$6UgL2iw6Y1L1MNpek9n9XlCO9bgV9pOXuY/MoktaHvnRUEorNedqT','user','ak_3b421dfb07ea7bd7','2023-06-10 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$PAnGNLST/dmrii3h7uMZu9bdstsEgFFl05xZszmbJhS9R3A2qe7Wb','user','ak_53e38ee9552e33ad','2023-12-06 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$/ryqvCNnSidRx9HmyAVSXHbOV4Fl3MYEP32nwAsAQsrxDPYLkOdAV','admin','ak_afa1b01fa6c96147','2023-12-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$CRwybcoZaVE.IrTPrpoCBQ2u.KrN7GwqIrT/j0GFFM360bn8HWFCv','user','ak_561a83e7e7a1b4f6','2023-04-14 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$VhLBcXHX2sqnaLd85TsWA9VeSeAe3Dk3D5ep2YWooR0UXDlzEQTvA','admin','ak_2ceb733932ceec88','2023-12-17 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$lttz4g8hUyMhqwUcIdriq3lpcLUZgPbArSRJ5kYuTAxaNxBvyyxSd','user','ak_31291b098d92d982','2023-09-15 10:16: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=23910;

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


