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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$42Xk9LykOrozESvrUQhlLoxYgk4cSNBAu0v.rN/a1lSsD5Xu7pq/C','user','ak_a3df4adeb146851d','2023-05-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$s4HzxiZi7lV5DaxmifoCF3a0.eF1607/YOEfYI3aT3agG2.eN9o2o','user','ak_0e0db0c61a1cb6b2','2023-12-19 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$FPTUaGcbGnyb74o0Tx.jrtf0s2I.UyKLiymnAwtt/PZm.2Jw0EO1a','user','ak_502554e499a6169f','2023-12-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$G5RolI3Tk5RgnkKLWHCs58DIoDsh9uAhB2KdS80jPIUbL7CqbMr0D','user','ak_0a2ec61b35cb0bc2','2023-04-16 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$RjskPD373BWR56KtODYQz966nWRF4.DfrDpGbGAjJhjbWQMuD9yry','user','ak_6fca5eaed826445e','2023-07-03 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$kO7jxT6K8Wak2DPDgxQFIDPRJUJh6CLXDHOUj2lCPZ0nAFaHuRRMP','admin','ak_3090a11084d2a27d','2023-05-11 10:21:00',NULL);

