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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$ea4UbaCXvkKJAXqoo5FnnXoV12P9sQd8k5IVrIHLOJtRvymeqV9P2','user','ak_41ece39eb129de25','2023-02-15 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$DumU47ZlIp/8GDtoY6yZwznJpgR75IB.puf3VBdBgNBZrAdUW6BLZ','admin','ak_85cc77e9b573c73c','2023-09-06 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$cbAYKTORinyb8Kvr8iRdJ1P0BvKQY.bxeLEWWa7H.XvaPyQu.PMzP','admin','ak_b18d5447dec2df27','2023-11-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$dnS.UgSfmMLfp8nG2f0I8uvz.wtEnj4Z4EAqQbsnibavlCGBEKfJk','user','ak_c32b6627be402249','2023-06-28 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$btoc5yyeOqmTF4P/d4p6r4AzTDFHLCmy8UNbPl7sC9ci43rvru279','admin','ak_5319788ffcf4153f','2023-06-04 10:16:00',NULL);

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

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


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

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


