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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$bedDFoi0D8JYnB.G7R4I15HvvaTBQVA7EQKvvHVuYvrfikUqCJ7nC','user','ak_fa2666d280f1ae61','2023-08-25 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$CKwtVe69Q.jEBeKWq6pEknDulvaXZz6OIznvjq/7u8sRPWMwNKtr2','user','ak_3ff979bb49c92104','2023-04-02 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$WtkTGDDsRQe6MgWgWS/i2kCyfRfl5SVncY.M1o7FP8h6CA.ZcjeJy','admin','ak_50f4ca32e9e4c2d8','2023-12-04 10:01: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=19384;

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


