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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$KPj3kqlx7yqM/UEN2SLCDSG2aiPR.Oxv1MABECYscwR2tkpi1r507','user','ak_e5fa1a56f2028e05','2023-12-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$3sUPg9Ru7.o6797Pemv13MhMHYOBt38u.xg5pmXUM4O7UZSFnZ.dE','user','ak_56d6f90c03022834','2023-07-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$J5A3SqgwuQMa3mkaGlENGw5w6miync.Bej5oxFIwNBJgt5uanEb9O','user','ak_eae136b69d910d11','2023-02-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$prXcxzDJJ9SBWcawKfNC0sklG4gNNTe4yA.n0RdLSXjAdcEvhKXR5','admin','ak_731dd18f750ec650','2023-09-11 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$aRG37.i.DTdNnPz7rmJPUKWRJ.szSxSusLgCC37DR5IxUNR14Ulh8','user','ak_32875af9b9d64050','2023-08-17 10:17:00',NULL);

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

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


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

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


