10 lines
244 B
MySQL
10 lines
244 B
MySQL
|
CREATE DATABASE memo_app;
|
||
|
DROP TABLE IF EXISTS memos;
|
||
|
\c memo_app
|
||
|
CREATE TABLE memos (
|
||
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||
|
title VARCHAR(255) NOT NULL,
|
||
|
content TEXT NOT NULL,
|
||
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||
|
);
|