camera
A listing of all *specific* cameras that the users owns, complete with serial number. A camera can be associated with a photo.
A user should be able to keep track of their cameras.
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), ignore_comment BOOLEAN NOT NULL );
Version 2.5
Still in use
= 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) );
= Version 2.34 =
-- Add a flag to ignore the camera's user comments ALTER TABLE camera ADD ignore_comment BOOLEAN;
ALTER TABLE camera ALTER ignore_comment SET NOT NULL;
= Version 2.34 =
UPDATE camera SET ignore_comment = 'f';