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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$KfF.qaCmhGU5p2erS8PY3him1MPFtVYvsl3cAZe17ook2m/KSCuPW','admin','ak_4938f38c7979bcb9','2023-09-06 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$ZTiay9yrU2KbLftC7B0g0sGro2ZBMi5jy9UmeBewL9mOXTEqqpEXD','user','ak_80d5f0055d3a0547','2023-10-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$hBR1m.U3qwEca2AOkeA6dIgTKq5/mZQl3bQTzeJKYFrmMrWP5vqA/','user','ak_f3b90c3b75f30fe5','2023-03-11 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$naEg9PCMLVnJpzscR6LAKUdwUk/xHZLnUW/au7ucsScZnIUTORrgy','admin','ak_c5304eb42e76e6dd','2023-12-21 10:02: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=30366;

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


