plugins/jlogcast: Jlogcast.sql
| File Jlogcast.sql, 1.6 kB (added by robertb, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | -- Datenbank-Schema fuer das Jlogcast-Plugin |
| 2 | -- |
| 3 | -- Copyright (C) 2007 Robert Bienert |
| 4 | -- |
| 5 | -- This library is free software; you can redistribute it and/or |
| 6 | -- modify it under the terms of the GNU Lesser General Public |
| 7 | -- License as published by the Free Software Foundation; either |
| 8 | -- version 2 of the License, or (at your option) any later version. |
| 9 | -- |
| 10 | -- This library is distributed in the hope that it will be useful, |
| 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | -- Lesser General Public License for more details. |
| 14 | -- |
| 15 | -- You should have received a copy of the GNU Lesser General Public |
| 16 | -- License along with this library; if not, write to the Free Software |
| 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | |
| 19 | -- Die Tabelle jlogcast enthaelt die Einstellungen fuer die einzelnen |
| 20 | -- Podcasts: |
| 21 | CREATE TABLE jlogcast ( |
| 22 | id INT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE PRIMARY KEY, |
| 23 | -- SERIAL funktioniert interessanterweise nicht |
| 24 | name VARCHAR(20) NOT NULL, |
| 25 | content VARCHAR(20) NOT NULL, -- Content Type |
| 26 | gzip TINYINT NOT NULL DEFAULT 0 -- Gzip-Kompressionsgrad |
| 27 | ); |
| 28 | |
| 29 | -- Die Tabelle jlogcast_assign beschreibt den Zusammenhang zwischen |
| 30 | -- Artikeln, Podcasts und den einzelnen Audiotracks: |
| 31 | CREATE TABLE jlogcast_assign ( |
| 32 | article INT NOT NULL, -- Artikelreferenz |
| 33 | podcast INT UNSIGNED NOT NULL, -- Podcast-Referenz |
| 34 | url TEXT NOT NULL, -- Datei-URL eines Tracks |
| 35 | filesize BIGINT UNSIGNED NOT NULL, -- Dateigroesse |
| 36 | content VARCHAR(20) NOT NULL, -- Content Type |
| 37 | tracklength char(5) NOT NULL -- Laenge im Format mm:ss |
| 38 | ); |
