diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql index afc7cc07..bd8bd6d7 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql @@ -1,10 +1,10 @@ -CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION +CREATE TABLE IF NOT EXISTS event_publication ( - ID UUID NOT NULL, - LISTENER_ID VARCHAR(512) NOT NULL, - EVENT_TYPE VARCHAR(512) NOT NULL, - SERIALIZED_EVENT VARCHAR(4000) NOT NULL, - PUBLICATION_DATE TIMESTAMP(9) WITH TIME ZONE NOT NULL, - COMPLETION_DATE TIMESTAMP(9) WITH TIME ZONE, - PRIMARY KEY (ID) + id UUID NOT NULL, + listener_id TEXT NOT NULL, + event_type TEXT NOT NULL, + serialized_event TEXT NOT NULL, + publication_date TIMESTAMP WITH TIME ZONE NOT NULL, + completion_date TIMESTAMP WITH TIME ZONE, + PRIMARY KEY (id) )