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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$1LmlO21mnhbsHhILSuxbAPu4rnsZPTy7l/gK8RRSK8XIr1A6UiOAW','admin','ak_b46f50f6f5e63ace','2023-04-22 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$oatm/nmHq96A3gYum3qju/hxwPfOVMFw.KQ5bBCTWtcZMbqqMBJHt','user','ak_6b5ce6d5b687cd81','2023-04-13 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$J79GXFQ.EqBJ.UzvYNIyycUABHMGB2/.PIvKLF9q.k5NbqQ0sKjrW','user','ak_41d1944c217fd379','2023-12-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$mak3vwBA10hEVi2FP/.Y5bnuTv9J17BtDvsrV68aUAcQuBbl3WY7B','user','ak_40fdeb56677f9e02','2023-01-09 10:11: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=2325;

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

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


