Module project, commit, submission
All checks were successful
Build and Release / release (push) Successful in 1m15s
All checks were successful
Build and Release / release (push) Successful in 1m15s
This commit is contained in:
@@ -2,8 +2,7 @@ CREATE TABLE IF NOT EXISTS projects (
|
||||
id UUID PRIMARY KEY DEFAULT uuidv7(),
|
||||
title TEXT NOT NULL,
|
||||
description TEXT,
|
||||
latest_revision_id UUID,
|
||||
version_count INT NOT NULL DEFAULT 0,
|
||||
latest_commit_id UUID,
|
||||
project_status SMALLINT NOT NULL DEFAULT 1,
|
||||
locked_by UUID,
|
||||
is_deleted BOOLEAN NOT NULL DEFAULT false,
|
||||
@@ -13,8 +12,8 @@ CREATE TABLE IF NOT EXISTS projects (
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX idx_projects_latest_revision_id
|
||||
ON projects (latest_revision_id);
|
||||
CREATE INDEX idx_projects_latest_commit_id
|
||||
ON projects (latest_commit_id);
|
||||
|
||||
CREATE INDEX idx_projects_user_status_updated
|
||||
ON projects (user_id, project_status, updated_at DESC);
|
||||
|
||||
Reference in New Issue
Block a user