This repository has been archived on 2023-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
automated-youtube-dl/server/sql/database.sql

152 lines
3.5 KiB
SQL

-- phpMyAdmin SQL Dump
-- version 5.1.1deb5ubuntu1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jul 15, 2023 at 02:56 PM
-- Server version: 10.11.3-MariaDB-1:10.11.3+maria~ubu2204
-- PHP Version: 8.1.2-1ubuntu2.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `automated_ytdlp`
--
-- --------------------------------------------------------
--
-- Table structure for table `logging_job_output`
--
CREATE TABLE `logging_job_output`
(
`job_id` text NOT NULL,
`level` text NOT NULL,
`time` datetime NOT NULL DEFAULT current_timestamp(),
`message` longtext NOT NULL,
`id` int(11) NOT NULL
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `logging_logs`
--
CREATE TABLE `logging_logs`
(
`level` text NOT NULL,
`time` datetime NOT NULL DEFAULT current_timestamp(),
`message` longtext NOT NULL,
`id` int(11) NOT NULL
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `video_lists`
--
CREATE TABLE `video_lists`
(
`name` text NOT NULL,
`url` text NOT NULL,
`added` datetime NOT NULL DEFAULT current_timestamp(),
`last_ran` datetime DEFAULT NULL,
`id` int(11) NOT NULL
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `video_lists_content`
--
CREATE TABLE `video_lists_content`
(
`list_id` int(11) NOT NULL,
`video_id` text NOT NULL,
`name` text NOT NULL,
`url` text NOT NULL,
`date_added` datetime NOT NULL DEFAULT current_timestamp(),
`id` int(11) NOT NULL
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `logging_job_output`
--
ALTER TABLE `logging_job_output`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `logging_logs`
--
ALTER TABLE `logging_logs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `video_lists`
--
ALTER TABLE `video_lists`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `video_lists_content`
--
ALTER TABLE `video_lists_content`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `video_id` (`video_id`) USING HASH;
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `logging_job_output`
--
ALTER TABLE `logging_job_output`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `logging_logs`
--
ALTER TABLE `logging_logs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `video_lists`
--
ALTER TABLE `video_lists`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `video_lists_content`
--
ALTER TABLE `video_lists_content`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT = @OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS = @OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION = @OLD_COLLATION_CONNECTION */;