@@ -16,6 +16,8 @@ SET xmloption = content;
16
16
SET client_min_messages = warning;
17
17
SET row_security = off;
18
18
19
+ create extension "uuid-ossp";
20
+
19
21
--
20
22
-- Name: comment_kind_enum; Type: TYPE; Schema: public; Owner: -
21
23
--
@@ -103,33 +105,14 @@ ALTER SEQUENCE public.comments_id_seq OWNED BY public.comments.id;
103
105
--
104
106
105
107
CREATE TABLE public.notes (
106
- id integer NOT NULL ,
108
+ id UUID PRIMARY KEY DEFAULT uuid_generate_v4() ,
107
109
text text NOT NULL,
108
110
created_by integer,
109
111
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
110
112
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
111
113
);
112
114
113
115
114
- --
115
- -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
116
- --
117
-
118
- CREATE SEQUENCE public.notes_id_seq
119
- AS integer
120
- START WITH 1
121
- INCREMENT BY 1
122
- NO MINVALUE
123
- NO MAXVALUE
124
- CACHE 1;
125
-
126
-
127
- --
128
- -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
129
- --
130
-
131
- ALTER SEQUENCE public.notes_id_seq OWNED BY public.notes.id;
132
-
133
116
134
117
--
135
118
-- Name: migrations; Type: TABLE; Schema: public; Owner: -
@@ -421,13 +404,6 @@ ALTER TABLE ONLY public.addresses ALTER COLUMN id SET DEFAULT nextval('public.ad
421
404
ALTER TABLE ONLY public.comments ALTER COLUMN id SET DEFAULT nextval('public.comments_id_seq'::regclass);
422
405
423
406
424
- --
425
- -- Name: notes id; Type: DEFAULT; Schema: public; Owner: -
426
- --
427
-
428
- ALTER TABLE ONLY public.notes ALTER COLUMN id SET DEFAULT nextval('public.notes_id_seq'::regclass);
429
-
430
-
431
407
--
432
408
-- Name: migrations id; Type: DEFAULT; Schema: public; Owner: -
433
409
--
@@ -508,13 +484,6 @@ ALTER TABLE ONLY public.comments
508
484
ADD CONSTRAINT "PK_8bf68bc960f2b69e818bdb90dcb" PRIMARY KEY (id);
509
485
510
486
511
- --
512
- -- Name: notes PK_notes; Type: CONSTRAINT; Schema: public; Owner: -
513
- --
514
-
515
- ALTER TABLE ONLY public.notes
516
- ADD CONSTRAINT "PK_notes" PRIMARY KEY (id);
517
-
518
487
--
519
488
-- Name: migrations PK_8c82d7f526340ab734260ea46be; Type: CONSTRAINT; Schema: public; Owner: -
520
489
--
0 commit comments