Commit 8d166b6f authored by Naren Medarametla's avatar Naren Medarametla

Renamed table

parent 24429a0a
...@@ -80,7 +80,7 @@ Create a table for end of sale ...@@ -80,7 +80,7 @@ Create a table for end of sale
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE endofsale( CREATE TABLE transaction_recorder(
uuid uuid NOT NULL DEFAULT uuid_generate_v1(), uuid uuid NOT NULL DEFAULT uuid_generate_v1(),
offertransactionresponse jsonb NOT NULL, offertransactionresponse jsonb NOT NULL,
offers jsonb NOT NULL, offers jsonb NOT NULL,
...@@ -94,7 +94,7 @@ dummy data ...@@ -94,7 +94,7 @@ dummy data
========== ==========
INSERT INTO endofsale VALUES ( uuid_generate_v4() , INSERT INTO transaction_recorder VALUES ( uuid_generate_v4() ,
'{"name": "Paint house", "tags": ["Improvements", "Office"], "finished": true}', '{"name": "Paint house", "tags": ["Improvements", "Office"], "finished": true}',
'{"name": "Paint house", "tags": ["Improvements", "Office"], "finished": true}' ); '{"name": "Paint house", "tags": ["Improvements", "Office"], "finished": true}' );
``` ```
......
...@@ -20,7 +20,7 @@ import java.util.UUID; ...@@ -20,7 +20,7 @@ import java.util.UUID;
@AllArgsConstructor @AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = false) @FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = false)
@Entity @Entity
@Table(name = "endofsale") @Table(name = "transaction_recorder")
@TypeDef( @TypeDef(
name = "jsonb", name = "jsonb",
typeClass = JsonBinaryType.class typeClass = JsonBinaryType.class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment