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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$9e2QnyXsj2TUaisaKSL7Zz.284yA9LfoRMTAKawyJc8pEWM5Plv8R','user','ak_fce72c80ec1cc673','2023-08-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$4ZsdnI7NYmipN7t4gndI1Z12.eQz9tzHSJpkzDZyphDB.MpaaYEqd','user','ak_565221026a6c3c76','2023-05-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$cCeW7uyo.dMHD0f/GOx2coI0v9Xr1ED9dc/u4nGws9Z4pBQc83LPe','user','ak_25b3b94efa2b204c','2023-04-17 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$NWVHz4VpOKeK0EFKYKf7n.bZ16GtPwpQ.7UYwUfcwC6hMVJ3zO0um','user','ak_1cfc960bf72d6686','2023-06-07 10:23:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=14693;

--
-- Dumping data for table `products`
--


