Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (60 sloc) 1.431 kb
-- FIXME damnit, is a serial bigint or integer under the hood?
create table users (
id serial primary key,
username varchar(20) not null,
password varchar not null,
realname varchar(80) not null,
UNIQUE(username)
)
---
create table techs (
id serial primary key,
tech varchar not null,
UNIQUE(tech)
)
---
create table user_techs (
id serial primary key,
user_id integer not null,
tech_id integer not null,
UNIQUE(user_id, tech_id)
)
---
create table meetings (
id serial primary key,
meeting_time date not null,
UNIQUE(meeting_time)
)
---
create table projects (
id serial primary key,
user_id integer not null,
name varchar(80) not null,
description text not null,
source_code_url varchar,
UNIQUE(name)
)
---
create table project_techs (
id serial primary key,
project_id integer not null,
tech_id integer not null,
UNIQUE(project_id, tech_id)
)
---
-- "this user is interested in this project"
create table user_projects_interested (
id serial primary key,
user_id integer not null,
project_id integer not null,
-- FIXME integrate later -- don't forget the unique key
--meeting_id integer not null,
UNIQUE(user_id, project_id)
)
---
create table project_meeting_assignment (
id serial primary key,
project_id integer not null,
meeting_id integer not null,
UNIQUE(project_id, meeting_id)
)
Jump to Line
Something went wrong with that request. Please try again.