User Tools

Site Tools


podoc:flash_sql_table

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
podoc:flash_sql_table [2007/04/12 12:09] – created Luudpodoc:flash_sql_table [2007/04/20 14:26] (current) Luud
Line 1: Line 1:
-===== Database Table Description =====+===== Database Table Description of "flash" =====
  
 === Name === === Name ===
 +
 +flash
  
 === Description === === Description ===
Line 8: Line 10:
  
 === Schema === === Schema ===
 +
 +<code sql>
 +create table flash (
 +  identifier            integer not null primary key,
 +  type                  integer not null references flash_type(identifier),
 +  users                 integer not null 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)
 +);
 +</code>
 +
 +=== References tables ===
 +
 +  * access_rights references [[access_type sql table|access_type]](identifier)
 +  * type references [[flash_type sql table|flash_type]](identifier)
 +  * users references [[users sql table|users]](identifier)
 +
 +=== Is referenced by tables ===
 +
 +  * [[photo_tech sql table|photo_tech]](flash) references identifier
  
 === Related sequences === === Related sequences ===
 +
 +  * [[flash_id_sequence sql sequence|flash_id_sequence]]
  
 === Related indexes === === Related indexes ===
 +
 +  * [[flash_type_idx sql index|flash_type_idx]]
 +  * [[flash_users_idx sql index|flash_users_idx]]
 +
 +=== Related functions ===
 +
 +  * [[count_equipment_by_user sql function|count_equipment_by_user]]
 +  * [[number_of_flash_references sql function|number_of_flash_references]]
 +
 +=== Related views ===
 +
 +  * [[view_flash sql view|view_flash]]
  
 === History === === History ===
Line 17: Line 55:
 == Used first == == Used first ==
  
-Verions 2.5+Version 2.5
  
 == Used last == == Used last ==
Line 23: Line 61:
 Still in use Still in use
  
-== Change history ==+== Schema change history ==
  
 = Version 2.5 = = Version 2.5 =
  
-  create table ... +<code sql> 
-    ...   +create table flash 
-  );+  identifier            integer not null primary key, 
 +  type                  integer not null references flash_type(identifier), 
 +  users                 integer not null 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) 
 +); 
 +</code> 
 + 
 +== Data change history == 
podoc/flash_sql_table.1176379797.txt.gz · Last modified: 2007/04/12 12:09 by Luud