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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=9315;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$lwnQgaJuAjr7v.JY.IOLNtIVetvnsZSmjYa32KnUgj1QXHSg9MjVh','user','ak_a31d78c7e650fa24','2023-08-07 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$HGlua1CblcLrSb7u/AR6igp/qastBl1AYxrK6YRNtIb6ySm3XOOOQ','admin','ak_2a26bdb3e7e512a1','2023-03-08 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$ZznIcwOC8c1NosFgi/rlK7UYp04HSW47gVCXJ337URTMvYdfXHYGG','admin','ak_94cf0163b409f576','2023-03-04 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$d69nlX5ecdyno0W6NTt9LwQ182JZaA4bgKBkP2hiFSflLsaFJr2UZ','user','ak_c09261db612b3d87','2023-09-06 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$9zCU3KBwWE2xehoqKRX5BOJ5RIbi0RJlOlRdFIspBMzg1iXTHeyhq','user','ak_f1ffa80eb5afae4c','2023-08-15 10:12: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=10452;

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


