-
Notifications
You must be signed in to change notification settings - Fork 2
/
beacon_actions.tbl
40 lines (33 loc) · 1.21 KB
/
beacon_actions.tbl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--------------------------------------------------------
-- File created - Tuesday-September-12-2017
--------------------------------------------------------
WHENEVER SQLERROR EXIT
--------------------------------------------------------
-- DDL for Table ACTIONS
--------------------------------------------------------
CREATE TABLE "BEACON"."ACTIONS" (
"ID" NUMBER
GENERATED BY DEFAULT ON NULL AS IDENTITY,
"ACTION" VARCHAR2(100),
"VALUE" VARCHAR2(100)
);
COMMENT ON COLUMN "BEACON"."ACTIONS"."ACTION" IS
'Function to run';
COMMENT ON COLUMN "BEACON"."ACTIONS"."VALUE" IS
'Value passed to function';
--------------------------------------------------------
-- DDL for Index ACTIONS_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "BEACON"."ACTIONS_PK" ON
"BEACON"."ACTIONS" ( "ID" );
--------------------------------------------------------
-- Constraints for Table ACTIONS
--------------------------------------------------------
ALTER TABLE "BEACON"."ACTIONS" MODIFY (
"ACTION"
NOT NULL ENABLE
);
ALTER TABLE "BEACON"."ACTIONS" ADD
CONSTRAINT "ACTIONS_PK" PRIMARY KEY ( "ID" )
USING INDEX actions_pk
ENABLE VALIDATE;