website/migrations/20240330145505_posts.up.sql

12 lines
296 B
MySQL
Raw Normal View History

2024-03-30 15:06:34 +00:00
-- Add up migration script here
CREATE TABLE IF NOT EXISTS posts (
2024-03-30 00:52:46 +00:00
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 JSON NOT NULL,
2024-03-30 15:06:34 +00:00
posted_on TIMESTAMP NOT NULL,
2024-03-30 00:52:46 +00:00
PRIMARY KEY (id)
)