User Tools

Site Tools


podoc:camera_sql_table

This is an old revision of the document!


Database Table Description of "camera"

Name

camera

Description

A listing of all *specific* cameras that the users own, complete with serial number. A camera can be associated with a photo.

Purpose

A user should be able to keep track of their cameras.

Schema

create table camera (
  identifier            integer not null primary key,
  type                  integer references camera_type(identifier),
  users                 integer references users(identifier),
  serial_number         varchar(20),
  date_of_purchase      timestamp,
  purchased_new         char(1) check (purchased_new in ('t', 'f')),
  access_rights         integer not null references access_type(identifier)
);

History

Used first

Version 2.5

Used last

Still in use

Change history

= Version 2.5 =

create table camera (
  identifier            integer not null primary key,
  type                  integer references camera_type(identifier),
  users                 integer references users(identifier),
  serial_number         varchar(20),
  date_of_purchase      timestamp,
  purchased_new         char(1) check (purchased_new in ('t', 'f')),
  access_rights         integer not null references access_type(identifier)
);
podoc/camera_sql_table.1176901163.txt.gz · Last modified: 2007/04/18 12:59 by Luud