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

Fix overarching goals and actions not saving #89

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions docs/db/refactor_platform_rs.dbml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Table refactor_platform.overarching_goals {
coaching_session_id uuid [note: 'The coaching session that an overarching goal is associated with']
title varchar [note: 'A short description of an overarching goal']
body varchar [note: 'Main text of the overarching goal supporting Markdown']
status status [not null]
status refactor_platform.status [not null]
status_changed_at timestamptz
completed_at timestamptz [note: 'The date and time an overarching goal was completed']
created_at timestamptz [not null, default: `now()`]
Expand Down Expand Up @@ -82,13 +82,13 @@ Table refactor_platform.actions {
body varchar [note: 'Main text of the action supporting Markdown']
user_id uuid [not null, note: 'User that created (owns) the action']
due_by timestamptz
status status [not null]
status refactor_platform.status [not null]
status_changed_at timestamptz [not null, default: `now()`]
created_at timestamptz [not null, default: `now()`]
updated_at timestamptz [not null, default: `now()`]
}

enum status {
enum refactor_platform.status {
not_started
in_progress
completed
Expand Down
8 changes: 4 additions & 4 deletions migration/src/refactor_platform_rs.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-- SQL dump generated using DBML (dbml-lang.org)
-- Database: PostgreSQL
-- Generated at: 2024-12-09T16:59:54.815Z
-- Generated at: 2024-12-16T05:18:20.372Z


CREATE TYPE "status" AS ENUM (
CREATE TYPE "refactor_platform"."status" AS ENUM (
'not_started',
'in_progress',
'completed',
Expand Down Expand Up @@ -55,7 +55,7 @@ CREATE TABLE "refactor_platform"."overarching_goals" (
"coaching_session_id" uuid,
"title" varchar,
"body" varchar,
"status" status NOT NULL,
"status" refactor_platform.status NOT NULL,
"status_changed_at" timestamptz,
"completed_at" timestamptz,
"created_at" timestamptz NOT NULL DEFAULT (now()),
Expand Down Expand Up @@ -86,7 +86,7 @@ CREATE TABLE "refactor_platform"."actions" (
"body" varchar,
"user_id" uuid NOT NULL,
"due_by" timestamptz,
"status" status NOT NULL,
"status" refactor_platform.status NOT NULL,
"status_changed_at" timestamptz NOT NULL DEFAULT (now()),
"created_at" timestamptz NOT NULL DEFAULT (now()),
"updated_at" timestamptz NOT NULL DEFAULT (now())
Expand Down