femto-backend/Femto.Database/Migrations/20250526220032_AddReactions.sql
2025-05-27 00:28:16 +02:00

12 lines
No EOL
272 B
SQL

-- Migration: AddReactions
-- Created at: 26/05/2025 22:00:32
ALTER TABLE blog.post
ADD COLUMN possible_reactions TEXT;
CREATE TABLE blog.post_reaction
(
post_id uuid REFERENCES blog.post(id),
author_id uuid REFERENCES blog.author(id),
emoji text not null
);