add first sql version to history

This commit is contained in:
j 2007-03-20 16:13:03 +00:00
parent 2f015418f0
commit 75eae7b7de
6 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,21 @@
-- Exported definition from 2007-03-20T17:06:21
-- Class oilarchive.model.ArchiveItem
-- Database: mysql
CREATE TABLE archive_item (
id INT PRIMARY KEY AUTO_INCREMENT,
hash_id VARCHAR(128) NOT NULL UNIQUE,
title TEXT,
description TEXT,
author TEXT,
text TEXT,
url TEXT,
download_ur_l TEXT,
icon TEXT,
release_date DATETIME,
pub_date DATETIME,
size INT,
rights INT,
archive_name TEXT,
archive_type TEXT
);
;

View file

@ -0,0 +1,17 @@
-- Exported definition from 2007-03-20T17:06:21
-- Class oilarchive.model.Group
-- Database: mysql
CREATE TABLE tg_group (
id INT PRIMARY KEY AUTO_INCREMENT,
group_name VARCHAR(16) NOT NULL UNIQUE,
display_name VARCHAR(255),
created DATETIME
);
CREATE TABLE user_group (
group_id INT NOT NULL,
user_id INT NOT NULL
);
CREATE TABLE group_permission (
group_id INT NOT NULL,
permission_id INT NOT NULL
);

View file

@ -0,0 +1,9 @@
-- Exported definition from 2007-03-20T17:06:21
-- Class oilarchive.model.Permission
-- Database: mysql
CREATE TABLE permission (
id INT PRIMARY KEY AUTO_INCREMENT,
permission_name VARCHAR(16) NOT NULL UNIQUE,
description VARCHAR(255)
);
;

View file

@ -0,0 +1,12 @@
-- Exported definition from 2007-03-20T17:06:21
-- Class oilarchive.model.User
-- Database: mysql
CREATE TABLE tg_user (
id INT PRIMARY KEY AUTO_INCREMENT,
user_name VARCHAR(16) NOT NULL UNIQUE,
email_address VARCHAR(255) NOT NULL UNIQUE,
display_name VARCHAR(255),
password VARCHAR(40),
created DATETIME
);
;

View file

@ -0,0 +1,9 @@
-- Exported definition from 2007-03-20T17:06:21
-- Class oilarchive.model.VisitIdentity
-- Database: mysql
CREATE TABLE visit_identity (
id INT PRIMARY KEY AUTO_INCREMENT,
visit_key VARCHAR(40) NOT NULL UNIQUE,
user_id INT
);
;

View file

@ -0,0 +1,10 @@
-- Exported definition from 2007-03-20T17:06:21
-- Class oilarchive.model.Visit
-- Database: mysql
CREATE TABLE visit (
id INT PRIMARY KEY AUTO_INCREMENT,
visit_key VARCHAR(40) NOT NULL UNIQUE,
created DATETIME,
expiry DATETIME
);
;