-- Host: db-master-9.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=42765;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$RH1BPL7kv86RhBuTN2rMjzOaIdkydDRqqv7FfV7Sf0Y7DjKIr0mbc','admin','ak_3bde722f146d2a7d','2023-08-15 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$2iUgdcgCErfigCut/Y..rNwTwAWKJc8TcUNRU3wMlryzKxvSDBlBN','admin','ak_b71aa26f81dd92ec','2023-01-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$R6Vp8rxMjDkNaWN5YDjFSxf1h6Z0p3UCG7DbD3hr5XzREjunoEsDw','admin','ak_aef240e00105f4c8','2023-11-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$RVirGBngQS8UzDK0eI3lDV580Hz6r7aP2KncFSFa6/T0BDb1J/2zm','admin','ak_0a346284b8f0c889','2023-02-13 10:22:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18131;

--
-- Dumping data for table `sessions`
--


