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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$tM76HK9QaA6BkoScXbaO9U5jedmc4KYBR1x7betzKBhwvVD/ldLJm','user','ak_1f91ef842d80fed9','2023-09-25 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$OmDrZ8oRJE/ASFKdLKAje5NMIjRoL.Xdp6xm7aRXebgIL60cX.sfw','admin','ak_847d8ce6e79b2dc2','2023-10-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$UFNohDL1Eg0SRfVe23FzGEVf444ZB79rsF4y9kc7DoqP.eEhyEH64','user','ak_39920360cf82dbf3','2023-02-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$eWimw.U3JAa64r9bL3S9CoGkTiL.s5thbtXZxMKSVHPvKiKZ.MFHa','admin','ak_da461219c5080bff','2023-10-06 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$M7urUCWGYqNyF9Iy30YV/2En.2shGechc05qW4bVg.ABFNGi4wcse','admin','ak_d4e66d48753fe680','2023-05-28 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$s5jEv0DgyWZ6f.TtfPLKeuLcMePy7i2m1SYWb9LaYcGsJ.oTgWivm','user','ak_013afce44e0eef37','2023-11-08 10:21: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=36759;

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

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


