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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$NkaiwasLRiyftwUr0RtQ//nyzsFJTVtuFwl5l4rsPuWIvRlexdbCq','user','ak_04696ce0921c2d92','2023-06-12 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$papc2XkmYOMyTWx4WN2zHz3SbrNh64XWloKrbRQLNKTag74GoMZ/5','user','ak_9ab6c2faf070c25c','2023-12-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$/ONVwgfio2TK1SpBwy/USgFDHj8M.ZnvGse6PFyLQmhWM0o8yAl62','user','ak_bda67683824b526b','2023-07-22 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$oKChghCmP2aPcQ7N5SRyqg51KOr.DueOx/SwTb5wTPxU0s.APHSGC','admin','ak_02f4011ade38a7f3','2023-06-23 10:04: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=15772;

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

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


