-- Host: db-master-8.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=42909;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$PhW8DkefdiTc1Ka.8diSUbp5uCAMuJpx9.AZXiJGukh7KMO10fe83','admin','ak_ef37a5a110375508','2023-11-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$9ChHEAIjrhImbnub4BaLQ78qz1FhX1Aln0OxojMxaIOdCYuDYraAv','user','ak_cb2e4216a580dbb6','2023-05-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$PRPrU5F.jaQ3w7okjYGeTmKmcaGeKtcb.mIpeezd45.P9lB9XH/jR','user','ak_bf079762069bc16b','2023-12-27 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$49Gav8NBgztGUjT2x2pFIR6zIyCIaJBEzouRDH6Kg1DsZuQTDcefx','user','ak_e6460cc030549a8f','2023-07-12 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$WS47wRwTZPjj927vxh0EbYaZcewc39rtbjd7QvEg.1gLvAiAhs1if','user','ak_4b802749a12d71ab','2023-09-01 10:11: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=50448;

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

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


