-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$OWI7gYJxOZ4tZd7m9yF4s2agm9dMV.K3V/NquzHInhQNwz95T7n84','user','ak_5ad652a7190b7048','2023-09-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$gboPRA8WGjmSqJjdbbjSqd1sVIvvxyDGSuSgkHPsnX0uN0V1hSDfa','user','ak_bbfe7c80480fb37f','2023-11-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$3rDk7lzoFGieMWJ7UfzGIh6pPVo.nsSBe6PBdqmlwt93nN48blMy3','user','ak_7131ffe75558808b','2023-12-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$4WndLMvPFq.Ku2rF7rbOihPZF8iMwhlPBgVSnHk2zVBt7qWdxSmVa','user','ak_c5e1a9d16a19d149','2023-03-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$U3okoYly/du7TAKyHlPvtlU/2uRZv.YN/EViFUdI9i6BD8tA3cvg8','user','ak_f5b95eacf4dea467','2023-04-15 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$DHLizQp7NvFVY6r6PgU4w6U3vqnYgGmJfG9o1jvM27XvzxO7KkZFL','admin','ak_e1637a0b69b04299','2023-08-15 10:16:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=1114;

--
-- Dumping data for table `audit_log`
--


