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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$VGwN48KdAoSN9W6gw1aQuMoa5uZKzZSyOXzcXYoxTQmvlydpcrUMl','user','ak_777de7d0a080cdca','2023-10-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$HmrY5cz4x24AzJN7C6gs6K9cGmULGF3E8gF3syUTRN5gETmC5ym/q','user','ak_549ea8ac7b1ba810','2023-12-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$NRAH/h3x6/qd.IkQovBJB0xr5Yqorbh3DFXdngqvhFC3FTWK5NNtm','user','ak_8ed8b5039a196125','2023-10-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$HOUoWDX42sdbGXaAFpxpEG8PaIfpNzrmVhSfSIN1qt4pRuCpD9iyf','user','ak_6c7b93e132253986','2023-03-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$tw.CujFzyJUPHAdvmWlv3uZH5fjLzY6mO8q8J4KLcPXEBMC6qweRc','admin','ak_175e6cd3a1880f4c','2023-04-01 10:18: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=45305;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=1267;

--
-- Dumping data for table `products`
--


