-- Host: db-master-2.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=39321;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Dygp2CkQtozkrw4c3yZQOXdUX3xtnVyyHXtgqQ8nXt5atqkN3hQj6','user','ak_40c52f9c4825f21d','2023-10-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$/GU93DuG0YCSbmcAg.Gs9Brb4ILgDsR98yjtzOphCYxUCYEvrazVh','user','ak_5a9d693bb4a4399e','2023-01-20 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$wziTftpvlvqE78832V3kxnHCNrR6KRxIUcYexooOYovHT0tXtl8b1','user','ak_921865b4ced2af2b','2023-07-12 10:14: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=38343;

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


