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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$qFgxNBOsBORfUgPVJ/4bTMoZlseJyQZBenaBVFHSsuTMAM2Le42dB','user','ak_60c60520963a3fa3','2023-12-07 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$MsqGoHE.EF.F8hdNXwu0rm108bWt3M5MiIcBb8K968PG9oqJJ4tjT','user','ak_44ca62462be4fe93','2023-08-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$3IgeqCspcSZyahYixAiXF1UMK1Btqb/9Dp06ItsPt.4Z.SZxtekbe','user','ak_ac7ab103fbeb6f82','2023-10-02 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$TKryuHNk.tJ5argT800BQXH8j3gF9NkejoG8F2QZidtGKD.183ktR','user','ak_4ff0cb8d8a534d66','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$OF8Aab2jeget./hxa8yEoABxb2603ApZpGmHGvXeME6Koqk1XGrei','user','ak_956600bd8316201d','2023-08-03 10:16:00',NULL);

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

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


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

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


