Skip to content

Commit

Permalink
Extend beatmapsets table for beatmap approval logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed May 12, 2024
1 parent 9f0403b commit 3693e38
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion migrations/base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,18 @@ CREATE TABLE beatmapsets
available boolean NOT NULL DEFAULT true,
submission_date timestamp without time zone NOT NULL DEFAULT now(),
approved_date timestamp without time zone,
approved_by int REFERENCES users (id) DEFAULT NULL,
last_updated timestamp without time zone NOT NULL DEFAULT now(),
added_at timestamp without time zone DEFAULT now(),
osz_filesize int NOT NULL DEFAULT 0,
osz_filesize_novideo int NOT NULL DEFAULT 0,
language_id smallint NOT NULL DEFAULT 1,
genre_id smallint NOT NULL DEFAULT 1
genre_id smallint NOT NULL DEFAULT 1,
star_priority int NOT NULL DEFAULT 0,
offset int NOT NULL DEFAULT 0,
meta_hash character(32) DEFAULT NULL,
info_hash character(32) DEFAULT NULL,
body_hash character(32) DEFAULT NULL
);

CREATE TABLE beatmaps
Expand Down

0 comments on commit 3693e38

Please sign in to comment.