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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$dMg5wP9YraB.66o.b/vTsPzQqkE7jNazrbBOFTuNEQ5aoXIA411vy','user','ak_1e9c1f52e6a8e390','2023-06-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$CGad7BfUdJm0txDyA5bskt94.LBfPaHOa06FUrbWMGENxmEpooCJD','admin','ak_cd3fa41d4549b070','2023-04-07 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$v00N96wTE1D69/JuwaDYkNtgmrMyt.tcS9tnF3w5hj6NDE5SJWdd9','user','ak_9da0533e7562a3db','2023-02-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$ILggT3KJxWvCn1Xz5rsDr5yszAr/yz33zY.0mNFOgyVus79TF10/X','user','ak_70b56067b955ec81','2023-01-25 10:00: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=25437;

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

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


