Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl ReactionService #52

Merged
merged 10 commits into from
Jan 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge migration scripts
ras0q committed Jan 24, 2025
commit bfc7f47b20537159ab6ae7b0ae111b6366f381c5
12 changes: 12 additions & 0 deletions server/migrations/1_init.sql
Original file line number Diff line number Diff line change
@@ -18,3 +18,15 @@ CREATE TABLE IF NOT EXISTS `messages` (
`expires_at` TIMESTAMP NOT NULL,
PRIMARY KEY (`id`)
);

CREATE TABLE IF NOT EXISTS `reactions` (
`id` BINARY(16) NOT NULL,
`user_id` BINARY(16) NOT NULL,
`position_x` INT UNSIGNED NOT NULL,
`position_y` INT UNSIGNED NOT NULL,
`kind` VARCHAR(255) NOT NULL,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
);
11 changes: 0 additions & 11 deletions server/migrations/2_init_reaction.sql
ras0q marked this conversation as resolved.
Outdated
Show resolved Hide resolved

This file was deleted.