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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$VAb4JSgkl57kKGJWUARpScQzYyYOFYmAzwov/dU7OPehEUD7B5CMj','user','ak_975df80a694b0949','2023-09-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$2cs9Ck5uNuiM6HlidUNndJfKon0IZUhu19fnWF857RjY3QowPJtqa','user','ak_cf6a98adf08b35cf','2023-04-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Ig0TaVuQGZ9KYLHMib8eU1Vn8Wx6Wb1ZBjjT3QOWgZ5BkuTNA1Ah.','admin','ak_8350b6bde3eead21','2023-11-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$VPIVzEZH7tguUlbOq0fBl3x9oZQzUG1uPEDqaBjZWgJCawiLVDnc/','user','ak_1e6c278675564bc9','2023-01-05 10:07:00',NULL);

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

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

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


