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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$FGwyq83nYTPJ35IJLrkIj.J8UHH4hZiPONStX8uSnz9iK7aa.ViRN','user','ak_ce5404822a7947ee','2023-03-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$k1BUqBwsrUCIifxhiJqN7gi/S363wguTi/AVk3cKVSDJOfMYhAfxS','user','ak_01f360d1787f9634','2023-05-10 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$mglMSH5AiLtI/7f1eEnG3IPOQurQWk2ap2wp6.LsATEOYmiU1D2JY','user','ak_4ae6455e7ddc6349','2023-07-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$pl7AYR18p.IB79f9KQa9uHkJe8bnDq8.3kj6l7k63WVUqdLwcluY5','user','ak_3ee52aadf6b29f58','2023-07-19 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$TSuClYgdsJgdGYnNZ1CSx6gbndYl/tw1koQectsueXuU3k5Gf/a85','user','ak_22b0f3fbc4c42192','2023-02-28 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$FOXzw0KeSC8nuAjS68luQfFuO6M/CG2W/zghHNkMA3WXmSduyM5Yw','user','ak_814561266559e9c1','2023-08-13 10:20: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=43844;

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

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


