-- Host: db-master-0.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$46heiTp2XrUsDiM5jjm2ye1hIRhlD3mTz1c8nRB77c95BazkUJKr3','user','ak_8f3e6030d8938038','2023-08-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$jtEUewSwY1D8ZKXsCZM9mvWrMm9GePMXN3jvzDt2KGDq88VxKZpwM','user','ak_025df97d29923556','2023-10-06 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$OjcqELHKqTebZW8rIB7LqBfhv9aHXIrYL8UHt83JvKTXGKiwk/D4D','admin','ak_5e70c936a811034e','2023-04-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$vwgMocTUD4IJOCEmQ.rdZ/u1DrcorrwpPAQDCH152VH3qRn0JkBRR','user','ak_912e8cacdcb61d1e','2023-06-25 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$.9ZTUP7e8rcneqrAo0gwdnfyp3ttamnv/1LrjBqjUymWoypMY9ROm','admin','ak_c000ebd53ea2cd27','2023-04-28 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$NURLeBTSUzEkFetfYQ4dIuJZGNsQii.g8M7egrsAPDe6/u4zRan5M','user','ak_881d4492d880c25c','2023-09-28 10:22:00',NULL);

