Skip to content

Commit

Permalink
add ER
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Mar 26, 2024
1 parent ded024f commit 9968306
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
Binary file added db/Entity-Relationship.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion db/migrations/20240325143710_create_activities.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- migrate:up
CREATE TABLE activities (
CREATE TABLE IF NOT EXISTS activities (
guid TEXT PRIMARY KEY,
category TEXT NOT NULL,
description TEXT NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion db/migrations/20240326124253_create_activity_kinds.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- migrate:up
CREATE TABLE activity_kinds (
CREATE TABLE IF NOT EXISTS activity_kinds (
guid TEXT PRIMARY KEY,
kind TEXT NOT NULL
);
Expand Down
2 changes: 1 addition & 1 deletion db/migrations/20240326125555_create_tags.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- migrate:up
CREATE TABLE tags (
CREATE TABLE IF NOT EXISTS tags (
guid TEXT PRIMARY KEY,
tag TEXT NOT NULL
);
Expand Down
2 changes: 1 addition & 1 deletion db/migrations/20240326125630_create_activities_tags.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- migrate:up
CREATE TABLE activities_tags (
CREATE TABLE IF NOT EXISTS activities_tags (
guid TEXT PRIMARY KEY,
tag_guid TEXT NOT NULL,
activity_guid TEXT NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion db/migrations/20240326125819_create_activity_status.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- migrate:up
CREATE TABLE activity_status (
CREATE TABLE IF NOT EXISTS activity_status (
guid TEXT PRIMARY KEY,
status TEXT NOT NULL
);
Expand Down
2 changes: 1 addition & 1 deletion db/migrations/20240326125937_create_categories.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- migrate:up
CREATE TABLE categories (
CREATE TABLE IF NOT EXISTS categories (
guid TEXT PRIMARY KEY,
category TEXT NOT NULL,
description TEXT NULL
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- migrate:up
CREATE TABLE activities_categories (
CREATE TABLE IF NOT EXISTS activities_categories (
guid TEXT PRIMARY KEY,
category_guid TEXT NOT NULL,
activity_guid TEXT NOT NULL,
Expand Down

0 comments on commit 9968306

Please sign in to comment.