Migrated samskivert into its own, sensibly organized, repository.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1774 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2006-01-30 19:52:55 +00:00
parent 5966766e26
commit 9d62b407e7
413 changed files with 0 additions and 9443 deletions
+25
View File
@@ -0,0 +1,25 @@
/**
* $Id: create_site_tables.mysql,v 1.2 2003/11/13 16:57:47 mdb Exp $
*
* Creates the necessary database tables in MySQL for the JDBC table site
* identifier.
*/
/**
* The sites table contains a row for every site, along with its human
* readable name identifier.
*/
DROP TABLE IF EXISTS sites;
CREATE TABLE sites (
siteId INTEGER(5) PRIMARY KEY NOT NULL AUTO_INCREMENT,
siteString VARCHAR(24) NOT NULL
);
/**
* The domains table contains a row for every domain to site mapping.
*/
DROP TABLE IF EXISTS domains;
CREATE TABLE domains (
domain VARCHAR(128) PRIMARY KEY NOT NULL,
siteId INTEGER(5) NOT NULL
);
+38
View File
@@ -0,0 +1,38 @@
/**
* $Id: create_user_tables.mysql,v 1.3 2001/11/01 01:49:12 mdb Exp $
*
* Creates the necessary database tables in MySQL for the user repository.
*/
/**
* The users table contains a row for every user.
*/
DROP TABLE IF EXISTS users;
CREATE TABLE users (
userId INTEGER(10) PRIMARY KEY NOT NULL AUTO_INCREMENT,
username VARCHAR(24) NOT NULL,
password VARCHAR(13) NOT NULL,
email VARCHAR(128) NOT NULL,
realname VARCHAR(128) NOT NULL,
created DATE NOT NULL,
siteId INTEGER(5) NOT NULL,
UNIQUE INDEX username_index (username)
);
/**
* The sessions table contains a row for every authenticated
* user. Sessions map a session identifier to a user record and expire
* after an application determined amount of time. A request that supplies
* a valid session identifier is treated as being authenticated as the
* user to which that session is mapped, so long timeouts are discouraged.
*/
DROP TABLE IF EXISTS sessions;
CREATE TABLE sessions (
sessionId INTEGER(10) PRIMARY KEY NOT NULL AUTO_INCREMENT,
authcode VARCHAR(32) NOT NULL,
userId INTEGER(10) NOT NULL,
expires DATE NOT NULL,
UNIQUE INDEX authcode_index (authcode)
);