summaryrefslogtreecommitdiff
path: root/tables.sql
blob: ed1e8429c951b0ea88ece02bac612691678477ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
drop table users;
drop table knowledge;
drop table words;
drop table replies;
drop table actions_0r;
drop table strings;
drop table nicknames;
drop table aliases;

create table users (
	id		text,
	nick		text,

	words		integer,
	lines		integer,
        w0rds           integer,

        isaway          bool default false,
        awaymsg         text,

	lastlogin	timestamp,
	lasthost	text
);

create table knowledge (
	trigger		text,
	reply		text,
	hilfsverb	text
);

create table words (
	word		text,
	is_0r		boolean,
	is_action	boolean
);

create table replies (
	template	text,
	probability	real
);

create table actions_0r (
	template	text,
	probability	real default 0.1
);

create table strings (
	name		text,
	value		text
);

create table nicknames (
	from_nick	text,
	extension	text,
	probability	real default 1
);

create table aliases (
	nick		text,
	alias		text
);