website/migrations/20240330145505_posts.up.sql
2024-03-30 19:14:58 +02:00

12 lines
293 B
SQL

-- Add up migration script here
CREATE TABLE IF NOT EXISTS posts (
id UUID NOT NULL UNIQUE,
title TEXT NOT NULL,
descr TEXT NOT NULL,
img_url TEXT NOT NULL,
origin_url TEXT NOT NULL,
original_request TEXT NOT NULL,
posted_on BIGINT NOT NULL,
PRIMARY KEY (id)
)