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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$QbR2jJqaucnNEZQmH.xlLeDE5u4fZM5ya0WcblJTjyBLRK.q7QmdV','user','ak_55cd596605b9b081','2023-04-14 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$.zQ2KCE/eoatq2cXy1tR6zMUqhGRfSLJqBfUmf.pYojSnE74QSRCP','user','ak_dafe9ab60e69796c','2023-09-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$i5Ld7JDyD1dCkbHzhXAkP902krH0daYOX3MC7OieMB0/v6cl0I1CP','user','ak_3d14021ecbde4ff1','2023-04-17 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$AitQLyOmYQi2iNTxhOldFCQPnVaK9tBDtQ1Dx9dWgYDl8sRVBliw5','user','ak_0d92ba8b133db741','2023-04-17 10:07: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=24432;

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


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

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


