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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$o9.vM8Vah/PrrEVwvscxUB63fxcHAiAkd0RzYOYhai4l9aHp2sZaG','user','ak_7a877114b1633e09','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$3/CriA/SklXfSpIBIChDB5SD0hwVj8iFtWYiV28S0nGhf3oGop7KL','admin','ak_85ac10c3ad73a707','2023-08-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$wEUASJKAduhAOzWpuX6QFS6AVmHZb859WcZ9ElbgHRNNjW.t3m67x','user','ak_68b23b435dd807ca','2023-06-20 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$63Z76OC0qokS0nqb86ASQx6l0Px3rxH5sO9pE34z/0lIOJYH03iKi','admin','ak_15615c96f08466d5','2023-07-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$M66Wsvi7rtBNcuKei87WU0qHGK1WUPkst4T0ZA9Ndb3sq/Dxzcen3','user','ak_45bae60ffec658de','2023-03-03 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$hEOzxOh43fSQqoPe9jDaa8dcX5f.3GeHQAI9NA5VX0j1tPHJ.JniC','user','ak_08fcc3be1945c4ef','2023-02-17 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=4627;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=48282;

--
-- Dumping data for table `payments`
--


