-- Host: db-master-4.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$7.B3y.EG4.edv8roOEgCOByjXlcRlDCZ1qfMRNsFDweZFJ4nrro6q','user','ak_57c6f35ad2c3430d','2023-04-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$RSFC1fPM4hxYuLF03XYchnnInl5tZPn6eByb5gVhUFlk0/FdpyVJM','user','ak_c425020e02be1622','2023-03-07 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$m7Q7OnhCSa4IUhmCeBSjLkMH36wCZTZ/BNwL9R.sgAhGZpewUn6cH','admin','ak_d6123c38453eb833','2023-05-03 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$GtQW5Gjf5IToMunGvGNNcqz3jUer22uX.lZt5ICVEqgY8gCel1DqN','user','ak_325bec1c6e580ca5','2023-01-09 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$.cvDlN.XHk53wJPw0u3bQFGDspI2ZFHiBdhBWRaVhwSosBMdG/FgV','admin','ak_b27e33085215ef17','2023-04-12 10:13: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=2210;

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


