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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$aLsBQah/zQ0GOqySgiweL8i4P9dRHhpWozuv9dSb9ZAu/EX4ZaNdN','user','ak_f6af63dbf29ddb30','2023-11-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$eSloEsrH2zSySTtIK4wCp5tzSwkmiTotDL4gqmOk8.ZOA1OKG.Z0M','user','ak_543234a7850b86eb','2023-08-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$IwJjXpEvbg9V1C65a5Bms2g77Vdw9lAQExZkpOYAcEYodZeXyG1wG','user','ak_830bffcd1ac3fd2a','2023-02-08 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$VUFNSFoTiITyoi4aAulC5rA1psKJDb/i6C3HaSnw5.eUJ4lMq93DU','admin','ak_1ec0a5c3c63ecb85','2023-01-04 10:16: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=45856;

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


