User Tools

Site Tools


podoc:label_sql_table

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
podoc:label_sql_table [2007/04/19 08:49] Luudpodoc:label_sql_table [2007/04/20 15:28] (current) Luud
Line 11: Line 11:
 === Schema === === Schema ===
  
-  create table label ( -- labels, for printing +<code sql> 
-    identifier            integer not null primary key, +create table label ( -- labels, for printing 
-    users                 integer references users(identifier), +  identifier            integer not null primary key, 
-    manufacturer          integer references manufacturer(identifier), +  users                 integer references users(identifier), 
-    name                  varchar(300), +  manufacturer          integer references manufacturer(identifier), 
-    space_x               float, +  name                  varchar(300), 
-    space_y               float, +  space_x               float, 
-    size_x                float, +  space_y               float, 
-    size_y                float, +  size_x                float, 
-    offset_x              float, +  size_y                float, 
-    offset_y              float, +  offset_x              float, 
-    columns               float, +  offset_y              float, 
-    rows                  float, +  columns               float, 
-    paper                 integer not null references paper(identifier), +  rows                  float, 
-    date_of_creation      timestamp, +  paper                 integer not null references paper(identifier), 
-    last_modified_date timestamp +  date_of_creation      timestamp, 
-  );+  last_modified_date timestamp 
 +); 
 +</code> 
 + 
 +=== References tables === 
 + 
 +  * manufacturer references [[manufacturer sql table|manufacturer]](identifier) 
 +  * paper references [[paper sql table|paper]](identifier) 
 +  * users references [[users sql table|users]](identifier) 
 + 
 +=== Is referenced by tables === 
 + 
 +  * [[preferences sql table|preferences]](label) references identifier 
 +  * [[system_preferences sql table|system_preferences]](new_user_label) references identifier
  
 === Related sequences === === Related sequences ===
Line 59: Line 72:
 = Version 2.5 = = Version 2.5 =
  
-  create table label ( -- labels, for printing +<code sql> 
-    identifier            integer not null primary key, +create table label ( -- labels, for printing 
-    users                 integer references users(identifier), +  identifier            integer not null primary key, 
-    manufacturer          integer references manufacturer(identifier), +  users                 integer references users(identifier), 
-    name                  varchar(300), +  manufacturer          integer references manufacturer(identifier), 
-    space_x               float, +  name                  varchar(300), 
-    space_y               float, +  space_x               float, 
-    size_x                float, +  space_y               float, 
-    size_y                float, +  size_x                float, 
-    offset_x              float, +  size_y                float, 
-    offset_y              float, +  offset_x              float, 
-    columns               float, +  offset_y              float, 
-    rows                  float, +  columns               float, 
-    paper                 integer not null references paper(identifier), +  rows                  float, 
-    date_of_creation      timestamp, +  paper                 integer not null references paper(identifier), 
-    last_modified_date timestamp +  date_of_creation      timestamp, 
-  );+  last_modified_date timestamp 
 +); 
 +</code>
  
 == Data change history == == Data change history ==
Line 81: Line 96:
 = Version 2.5 = = Version 2.5 =
  
-<code>+<code sql>
 insert into label values (nextval('label_id_sequence'), null, 1, '5267 - Return Address', 2.06300*25.4, 0.50000*25.4, 1.75000*25.4, 0.50000*25.4, 0.28100*25.4, 0.50000*25.4, 4, 20, 13, now(), now()); insert into label values (nextval('label_id_sequence'), null, 1, '5267 - Return Address', 2.06300*25.4, 0.50000*25.4, 1.75000*25.4, 0.50000*25.4, 0.28100*25.4, 0.50000*25.4, 4, 20, 13, now(), now());
 insert into label values (nextval('label_id_sequence'), null, 1, '5960 - Address', 2.75000*25.4, 1.00000*25.4, 2.62500*25.4, 1.00000*25.4, 0.18800*25.4, 0.50000*25.4, 3, 10, 13, now(), now()); insert into label values (nextval('label_id_sequence'), null, 1, '5960 - Address', 2.75000*25.4, 1.00000*25.4, 2.62500*25.4, 1.00000*25.4, 0.18800*25.4, 0.50000*25.4, 3, 10, 13, now(), now());
podoc/label_sql_table.1176972582.txt.gz · Last modified: 2007/04/19 08:49 by Luud