Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdcd072

Browse files
committed
updated
1 parenta0672db commitcdcd072

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CREATE TABLE
2+
"posts" (
3+
"id" UUIDNOT NULL DEFAULT (uuid_generate_v4()),
4+
"title"VARCHARNOT NULL,
5+
"category"VARCHARNOT NULL,
6+
"content"VARCHARNOT NULL,
7+
"image"VARCHARNOT NULL,
8+
"created_at"TIMESTAMP(3)NOT NULL DEFAULTCURRENT_TIMESTAMP,
9+
"updated_at"TIMESTAMP(3)NOT NULL,
10+
CONSTRAINT"posts_pkey"PRIMARY KEY ("id")
11+
);
12+
13+
CREATEUNIQUE INDEX "users_email_key"ON"users"("email");
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROPTABLE posts;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp