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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Fy.PfNWom6KzoFpVue46Dhdd7HqzxOFXq8PfF94TC.evcW46Z1nzm','admin','ak_77fbeea922e220b0','2023-01-13 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$gB361y9CanrSyP21UT8lw0ULuLkp9By0IlxNNT0yFQoy4rYhE//Za','user','ak_8675204da0745a74','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$O2Vvtb0eZ.ZwrUc0TtiIY.mkBlpn.MElqXG9eDroaQPy9SrKSo6U5','user','ak_efb8c2593041d9c0','2023-03-20 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$oDbxWHO319dJvJkaSNM5tTRA0ALgennC8jR9/inrCKv.OjsBIcbLx','admin','ak_1207667539d8d2e4','2023-01-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$mK0qAu87Vnmd5jbJJVlrFpWGs4DAsAHbq3kwj24/7Z7uXHSZQT2Sr','user','ak_b68e9c0fff281b93','2023-12-16 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$RCPG2IqxpAX8QfU.I7mWz7kS3nvITnkwGJKf/VkKfzcv81RCXteQ4','user','ak_7d6064698dbc3d5b','2023-03-01 10:19: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=50195;

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


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

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


