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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$G5Z0lmW4mvn/zCWKQ7PYtD2YQYr/zn7XIhfnlqvh9U5qENq/bd51Q','user','ak_cbb2b9966b5ab5e7','2023-06-03 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$CUQqIcgMogRPdtgYQ1KRa2qeDnopxnb8AD.fJBYysV5Dc89bp11pR','user','ak_4da982c48eb76005','2023-05-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Zq7AZrQSzDu1NMYohFvlASFDKV04HtsrKA/UKcqSqe.0GNaVenmvB','user','ak_30a2edf970d1b30b','2023-08-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$P6WRuS4thFhveBylz8btHVlSYWRIiuk.ZmCCClpVjr4gXP9UyKJ4L','admin','ak_572b3d29a79742f6','2023-11-15 10:20:00',NULL);

