added types
This commit is contained in:
@@ -3,13 +3,15 @@
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS "anwesenheit";
|
||||
CREATE TABLE "anwesenheit" (
|
||||
"counter_id" bigserial PRIMARY KEY,
|
||||
"timestamp" timestamptz(6) DEFAULT CURRENT_TIMESTAMP,
|
||||
"card_uid" varchar(255),
|
||||
"check_in_out" int2,
|
||||
"geraet_id" int2,
|
||||
"manuelle_buchung" bool
|
||||
"counter_id" bigserial NOT NULL,
|
||||
"timestamp" timestamptz NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"card_uid" character varying(255) NOT NULL,
|
||||
"check_in_out" smallint NOT NULL,
|
||||
"geraet_id" smallint NULL,
|
||||
-- "anwesenheit_typ" int2,
|
||||
PRIMARY KEY ("counter_id")
|
||||
);
|
||||
|
||||
COMMENT ON COLUMN "anwesenheit"."check_in_out" IS '1=Check In 2=Check Out , 3=Check in Manuell, 4=Check out manuell255=Automatic Check Out';
|
||||
COMMENT ON COLUMN "anwesenheit"."geraet_id" IS 'ID des Lesegerätes';
|
||||
|
||||
@@ -78,6 +80,7 @@ CREATE TABLE "wochen_report" (
|
||||
"personal_nummer" int4,
|
||||
"woche_start" date,
|
||||
"bestaetigt" bool DEFAULT FALSE,
|
||||
"ueberstunden" smallint,
|
||||
UNIQUE ("personal_nummer", "woche_start")
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user