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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$58ClKLUQ9XMRI3h8Z.EyV6wfCJA1ACMF3oWF72x/FQcDJJ.oliK47','admin','ak_01b93cd9e8f91993','2023-11-25 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$QgYkqK534EYfkqUfqgD83ial.ApIlUHfLdzCBt1YFOYfEYMaYmsZE','user','ak_0ef444dea3e30107','2023-09-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$VS3zoqaRYX8qlAgSGQSAgUDO8uyHKTut4cPrYPXxLziZ0U7uvVUqa','admin','ak_79190d128ca5f31a','2023-10-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$L0i.8xn0KqkBK8kikm/RnB.Z5ICw5CVK240X4RotGQf3y3y59EP4T','user','ak_bb8cce670eb9985f','2023-07-25 10:19: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=5477;

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


