fjord/memoapp/memos.sql
2024-08-18 22:59:25 +09:00

9 lines
244 B
SQL

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
);