Database Table Description of "camera_type"

Name

camera_type

Description

A listing of all known camera types in the system.

Purpose

We could have several cameras of the same type, so this is a way of specifiying the common stuff.

For example, I could have several 'Nikon D70' cameras, which are otherwise identical – but the specifics (like serial number) are stored in the camera table.

Schema

CREATE TABLE camera_type (
  identifier            integer NOT NULL PRIMARY KEY,
  manufacturer          integer NOT NULL REFERENCES manufacturer(identifier),
  model                 varchar(100),
  variation             varchar(100),
  last_modified_date 	timestamp,
  last_modifying_users	integer REFERENCES users(identifier),
  raw_icc_profile       integer
);

References tables

  • manufacturer references manufacturer(identifier)
  • users references users(identifier)

Is referenced by tables

  • camera(type) references identifier

Related tables

Related sequences

Related indexes

Related functions

Related views

History

Used first

Version 2.5

Used last

Still in use

Schema change history

= Version 2.5 =

CREATE TABLE camera_type (
  identifier            integer NOT NULL PRIMARY KEY,
  manufacturer          integer NOT NULL REFERENCES manufacturer(identifier),
  model                 varchar(100),
  variation             varchar(100),
  last_modified_date 	timestamp,
  last_modifying_users	integer REFERENCES users(identifier)
);

= Version 2.29 =

ALTER TABLE camera_type ADD raw_icc_profile integer;
Data change history

= Version 2.29 =

UPDATE camera_type SET raw_icc_profile=NULL;
podoc/camera_type_sql_table.txt · Last modified: 2007/04/20 08:02 by Luud
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0