Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OTSWithFeign
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bhaskar Katakam
OTSWithFeign
Commits
25e6dcb3
Commit
25e6dcb3
authored
Apr 15, 2020
by
Naren Medarametla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated readme.md
parent
719036cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
26 deletions
+25
-26
readme.md
readme.md
+25
-26
No files found.
readme.md
View file @
25e6dcb3
...
...
@@ -39,16 +39,16 @@ In Header click on Tool -> Query Tool --> and paste the below query
--
DROP TABLE public.offer_lookup
;
CREATE TABLE
public.
offer_lookup
CREATE TABLE offer_lookup
(
id
INTEGER, COLLATE pg_catalog.
"default"
NOT NULL
,
store_id text COLLATE pg_catalog.
"default"
NOT NULL
,
terminal text COLLATE pg_catalog.
"default"
NOT NULL
,
offer_type text COLLATE pg_catalog.
"default"
NOT NULL
,
offer_id text COLLATE pg_catalog.
"default"
NOT NULL
,
pre_condition text COLLATE pg_catalog.
"default"
NOT NULL
,
CONSTRAINT
"OfferLookup_pkey"
PRIMARY KEY
(
id
, offer_type,offer_id
)
)
id
INTEGER
,
store_id VARCHAR
(
200
)
,
terminal VARCHAR
(
200
)
,
offer_type VARCHAR
(
200
)
,
offer_id INTEGER
,
pre_condition VARCHAR
(
100
)
,
PRIMARY KEY
(
id
, offer_type,offer_id
)
)
;
TABLESPACE pg_default
;
...
...
@@ -109,19 +109,18 @@ INSERT INTO endofsale VALUES ( uuid_generate_v4() ,
-- DROP TABLE public.offer_meta_data;
CREATE TABLE
public.offer_meta_
data
CREATE TABLE
offer_meta
data
(
offer_id INTEGER COLLATE pg_catalog."default" NOT NULL,
eligibility text COLLATE pg_catalog."default" NOT NULL,
discount_type text COLLATE pg_catalog."default" NOT NULL,
status text COLLATE pg_catalog."default" NOT NULL,
start_time timestamp with time zone NOT NULL,
end_time timestamp with time zone NOT NULL,
offer_desc text COLLATE pg_catalog."default" NOT NULL,
offer_type text COLLATE pg_catalog."default" NOT NULL,
rcpt_text text COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT offer_meta_data_pkey PRIMARY KEY (offer_id)
)
offer_id serial PRIMARY KEY,
eligibilty VARCHAR(200),
discount_type VARCHAR(200),
status VARCHAR(50) NOT NULL,
start_time VARCHAR(20),
end_time VARCHAR(20),
offer_desc VARCHAR (355),
offer_type INTEGER,
rcpt_text VARCHAR (200)
);
TABLESPACE pg_default;
...
...
@@ -140,24 +139,24 @@ ALTER TABLE public.offer_meta_data
dummy data
==========
INSERT INTO public.offer_meta
_
data(
INSERT INTO public.offer_metadata(
offer_id, eligibility, discount_type, status, start_time,end_time,
offer_desc,offer_type,rcpt_text)
VALUES (1,'elgibility','dicounted','Active','2020-04-14 19:10:25','2020-04-15 19:10:25',
'30 percent','5','RCPT TXT');
INSERT INTO public.offer_meta
_
data(
INSERT INTO public.offer_metadata(
offer_id, eligibility, discount_type, status, start_time,end_time,
offer_desc,offer_type,rcpt_text)
VALUES (2,'elgibility','dicounted','InActive','2020-04-14 19:10:25','2020-04-15 19:10:25',
'20 percent','5','RCPT TXT');
INSERT INTO public.offer_meta
_
data(
INSERT INTO public.offer_metadata(
offer_id, eligibility, discount_type, status, start_time,end_time,
offer_desc,offer_type,rcpt_text)
VALUES (3,'elgibility','dicounted','Active','2020-04-15 19:10:25','2020-04-16 19:10:25',
'10 percent','5','RCPT TXT');
INSERT INTO public.offer_meta
_
data(
INSERT INTO public.offer_metadata(
offer_id, eligibility, discount_type, status, start_time,end_time,
offer_desc,offer_type,rcpt_text)
VALUES (4,'elgibility','dicounted','Active','2020-04-1 19:10:25','2020-04-15 19:10:25',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment