summaryrefslogtreecommitdiffstats
path: root/db_demo/sql/tables/cr_tbl_person.sql
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-05-27 09:50:18 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-05-27 09:50:18 (GMT)
commite2b5d9764888e0f307ebcdf9c20835b197a0f63c (patch)
tree00bf9c6fbc7dae49d14ac91d44fe5e3f20d1454d /db_demo/sql/tables/cr_tbl_person.sql
parent9b5236ed96a79e0fe979e2d7a7bc7173170af6cf (diff)
download2iv55-e2b5d9764888e0f307ebcdf9c20835b197a0f63c.zip
2iv55-e2b5d9764888e0f307ebcdf9c20835b197a0f63c.tar.gz
2iv55-e2b5d9764888e0f307ebcdf9c20835b197a0f63c.tar.bz2
db functies
Diffstat (limited to 'db_demo/sql/tables/cr_tbl_person.sql')
-rw-r--r--db_demo/sql/tables/cr_tbl_person.sql7
1 files changed, 4 insertions, 3 deletions
diff --git a/db_demo/sql/tables/cr_tbl_person.sql b/db_demo/sql/tables/cr_tbl_person.sql
index 95e01b7..87fc5bd 100644
--- a/db_demo/sql/tables/cr_tbl_person.sql
+++ b/db_demo/sql/tables/cr_tbl_person.sql
@@ -1,8 +1,9 @@
CREATE SEQUENCE seq_person START 1;
CREATE TABLE tbl_person (
- key integer PRIMARY KEY, -- primary key
+ key integer DEFAULT nextval('seq_person') PRIMARY KEY, -- primary key
agegroupid integer NOT NULL REFERENCES const_agegroup(key), -- age group foreign key
- c_experience boolean NOT NULL, -- computer experience
- w_experience boolean NOT NULL -- wiimote experience
+ cexperience boolean NOT NULL, -- computer experience
+ wexperience boolean NOT NULL, -- wiimote experience
+ inserttime timestamp DEFAULT current_timestamp -- time of insertion
); \ No newline at end of file