Ignore:
Timestamp:
Jul 19, 2000, 12:13:20 AM (25 years ago)
Author:
bird
Message:

Initial team implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/CreateTables.sql

    r3839 r3856  
    1 -- $Id: CreateTables.sql,v 1.9 2000-07-18 07:28:01 bird Exp $
     1-- $Id: CreateTables.sql,v 1.10 2000-07-18 22:13:20 bird Exp $
    22--
    33-- Create all tables.
     
    204204
    205205
     206
     207--
     208--
     209-- Administration
     210--
     211--
     212
     213--
     214-- This table holds the teams (like MAD, WAI,...).
     215--
     216CREATE TABLE team (
     217    refcode     SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
     218    name        VARCHAR(30) NOT NULL,
     219    longname    VARCHAR(128) NOT NULL,
     220    description TEXT NOT NULL,
     221    tasks       TEXT,
     222    notes       TEXT,
     223    UNIQUE u1(refcode),
     224    UNIQUE u2(name)
     225);
     226
     227
     228--
     229-- This table holds the groups under each team.
     230-- Currently only the WAI team is grouped.
     231--
     232CREATE TABLE tgroup (
     233    refcode     SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
     234    team        SMALLINT NOT NULL,
     235    name        VARCHAR(80) NOT NULL,
     236    description TEXT NOT NULL,
     237    notes       TEXT,
     238    UNIQUE u1(refcode),
     239    UNIQUE u2(team, refcode)
     240);
     241
     242
     243--
     244-- This table relates a tgroup with authors
     245-- ( do a distinct select to get all members of a team )
     246--
     247CREATE TABLE tgroupmember (
     248    tgroup      SMALLINT NOT NULL,
     249    author      SMALLINT NOT NULL,
     250    codemaintainer CHAR(1) DEFAULT 'N',
     251    UNIQUE u1(tgroup, author)
     252);
     253
     254
     255--
     256-- This table relates a tgroup with a dll.
     257--
     258CREATE TABLE tgroupdll (
     259    tgroup      SMALLINT NOT NULL,
     260    dll         TINYINT NOT NULL,
     261    UNIQUE u1(tgroup, dll)
     262);
     263
     264
     265--
     266-- This table relates a tgroup with an apigroup.
     267--
     268CREATE TABLE tgroupapigroup (
     269    tgroup      SMALLINT NOT NULL,
     270    apigroup    SMALLINT NOT NULL,
     271    UNIQUE u1(tgroup, apigroup)
     272);
     273
     274
     275
Note: See TracChangeset for help on using the changeset viewer.