Skip to content

Commit 6e30e51

Browse files
author
Max Weller
committed
add database structure dump
1 parent 0b70eb7 commit 6e30e51

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

install.sql

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
-- Exportiere Struktur von Tabelle mwdoc.documents
3+
CREATE TABLE IF NOT EXISTS `documents` (
4+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
5+
`doc_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT '',
6+
`doc_date` date DEFAULT NULL,
7+
`doc_inummer` int(11) DEFAULT NULL,
8+
`doc_mandant` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
9+
`doc_inbound` tinyint(4) NOT NULL,
10+
`title` text COLLATE utf8_unicode_ci NOT NULL,
11+
`import_filename` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
12+
`import_source` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
13+
`description` text COLLATE utf8_unicode_ci NOT NULL,
14+
`tags` text COLLATE utf8_unicode_ci NOT NULL,
15+
`page_count` int(11) NOT NULL,
16+
`file_size` int(11) NOT NULL,
17+
`file_hash` varchar(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
18+
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
19+
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
20+
`deleted_at` timestamp NULL DEFAULT NULL,
21+
PRIMARY KEY (`id`),
22+
FULLTEXT KEY `title` (`title`,`description`,`tags`)
23+
) ENGINE=MyISAM AUTO_INCREMENT=300 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
24+
25+
-- Exportiere Struktur von Tabelle mwdoc.document_tags
26+
CREATE TABLE IF NOT EXISTS `document_tags` (
27+
`document_id` int(11) NOT NULL,
28+
`tag` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
29+
KEY `tag` (`tag`)
30+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
31+

0 commit comments

Comments
 (0)