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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$V41gUq01LiaHyBPISjM6kyb0yoDzXZcTUdMiPHFVu8TL.M5nOZ7cE','admin','ak_d9ad0a2330f85338','2023-03-24 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$B0diagt9mWXY.35vINZSgBuM2mV3s4oUzLgoLC1weqoC7XjtoKr0F','user','ak_ed430d0105abf8ea','2023-08-26 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$m1uRaoyoUTTimhO1ulWqmFqBHtdU2jSctI3SPaiNA59XTbBJxZydm','user','ak_edadba5a8e72f108','2023-09-17 10:03:00',NULL);

