-- Host: db-master-3.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$a1bTLsTG2pfVzmXl4dgWtCx8ybfFQ1.19CbFMMR87.hNJWC4XNyrU','admin','ak_dd1d759ca04ec908','2023-02-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$abrWpYCtSBua8fs/9DCxAasSU0EuoTqsDErXklsXdGkyGXwEQENxI','user','ak_cebe4955ce340d41','2023-08-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$X2lzdtJj1NzJiEc6lIyeWW/4HREdeYo1jR1p0ji0hXPHX84OmGhyC','admin','ak_64b8ef7f0af4df09','2023-01-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$bO3PY3GoZKW..KPCaxqJ6qHRzJHynJeiKokYz0MHdElZDtyrt1upp','admin','ak_514006e2231d3fd1','2023-01-23 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$XYgMR0RrGAEQAYa7kvmyl95WgaWF3HVxu1iKbM4yJJcHCZQkGkgmS','user','ak_cfcea939f88981f2','2023-04-06 10:05: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=40260;

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

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


