Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing schema to allow history of lending books.... might not be real…

…ly efficient after all to let that table grow infinitely, but it is a good starting approach
  • Loading branch information...
commit 40eb759a4e007c683961060f5005656d6a83facd 1 parent 6d5d642
bmejias authored September 15, 2011

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  sql/pgsql_create_schema.sql
5  sql/pgsql_create_schema.sql
@@ -49,14 +49,13 @@ CREATE TABLE group_users
49 49
 
50 50
 CREATE TABLE loans
51 51
 (
52  
-	id			serial,
  52
+	id			serial		PRIMARY KEY,
53 53
 	material_id	serial		REFERENCES materials(id),
54 54
 	user_id		serial		REFERENCES users(id),
55 55
 	date_out	date		NOT NULL,
56 56
 	date_in		date,
57 57
 	status		varchar(16)	NOT NULL,
58  
-	money		int,
59  
-	PRIMARY KEY (material_id, user_id) 
  58
+	money		int
60 59
 );
61 60
 
62 61
 CREATE TABLE rules

0 notes on commit 40eb759

Please sign in to comment.
Something went wrong with that request. Please try again.