DROP TABLE IF EXISTS jokes_users;
DROP TABLE IF EXISTS jokes_jokes;

CREATE TABLE jokes_users (
	uid	SERIAL PRIMARY KEY,
	login	VARCHAR(16),
	passwd	VARCHAR(40),
	email	VARCHAR(128),
	ddn	VARCHAR(10));

CREATE TABLE jokes_jokes (
	jid	SERIAL PRIMARY KEY,
	uid	INTEGER,
	ts	INTEGER,
	joke	TEXT);
