-- Host: db-master-2.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$3te3XP.C6Fc1Yd6YikPi6R4LUcbTQb2JRT.ioVt4Tk9cIsQz9A6Rb','admin','ak_c8234c3516880176','2023-11-27 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$X80GOYr.OfB4TqiPj0SM1LZlfjYhIFYNlyQeNKa5YG/SC45aV9FHs','user','ak_3a33d12aa173f918','2023-03-24 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$v98EMATiP841NTftywRcilMGUzPmVka5E9HRBLKBo/6ZCyQsILOoy','user','ak_025f8794f2c4aa56','2023-06-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$S3UMLBxqmaceniuJYr19V5WsxTSbcHk76CQs4SHAE4XOTz/D0dkqs','user','ak_6725a629f5c4d3f7','2023-06-05 10:23: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=19770;

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

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


