-- Host: db-master-8.internal    Database: production_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=44584;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$VTYDZfwdlbbG7ai4MstcUOIbJFteWBQcmtL.xaqQJn/oTepfuIk/l','admin','ak_a38700bd1d890fa7','2023-04-13 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$.04uyfEsUmePZMWwXpBywdCJQ0ADfqAiaKIDJjaydbed6JMPbJ42/','admin','ak_ff4cb1b5ba26fab9','2023-08-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$sa3/I7gHV2TpAdXXlp8TLWcknuaZE5/4P0.AH9fqskltPW3GCM3/g','user','ak_90e5911d6f69cccd','2023-07-11 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$2wFMb8/wlhmQxAFmP5q/4l8sJs3nGkqEFhtyV0scbDAeagEvT31wN','user','ak_02f3a942f448e577','2023-07-04 10:03: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=9979;

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


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

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


