Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Jan 17, 2025
1 parent c747459 commit a6b2295
Show file tree
Hide file tree
Showing 12 changed files with 214 additions and 3 deletions.
7 changes: 7 additions & 0 deletions sample/adjust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

Sample PostgreSQL database document.

## Viewpoints

| Name | Description |
| ------------------------------- | ------------------------- |
| [post](viewpoint-0.md) | for post |
| [administrator](viewpoint-1.md) | administrator schema only |

## Tables

| Name | Columns | Comment | Type |
Expand Down
6 changes: 6 additions & 0 deletions sample/adjust/administrator.blogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ admin blogs
| created | timestamp without time zone | | false | | | |
| updated | timestamp without time zone | | true | | | |

## Viewpoints

| Name | Definition |
| ------------------------------- | ------------------------- |
| [administrator](viewpoint-1.md) | administrator schema only |

## Constraints

| Name | Type | Definition |
Expand Down
6 changes: 6 additions & 0 deletions sample/adjust/public.post_comment_stars.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ CREATE MATERIALIZED VIEW post_comment_stars AS (
| [public.comment_stars](public.comment_stars.md) | 6 | | BASE TABLE |
| [public.users](public.users.md) | 6 | Users table | BASE TABLE |

## Viewpoints

| Name | Definition |
| ---------------------- | ---------- |
| [post](viewpoint-0.md) | for post |

## Relations

![er](public.post_comment_stars.svg)
Expand Down
6 changes: 6 additions & 0 deletions sample/adjust/public.post_comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ CREATE VIEW post_comments AS (
| [public.comments](public.comments.md) | 7 | Comments<br>Multi-line<br>table<br>comment | BASE TABLE |
| [public.users](public.users.md) | 6 | Users table | BASE TABLE |

## Viewpoints

| Name | Definition |
| ---------------------- | ---------- |
| [post](viewpoint-0.md) | for post |

## Relations

![er](public.post_comments.svg)
Expand Down
6 changes: 6 additions & 0 deletions sample/adjust/public.posts.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Posts table
| created | timestamp without time zone | | false | | | |
| updated | timestamp without time zone | | true | | | |

## Viewpoints

| Name | Definition |
| ---------------------- | ---------- |
| [post](viewpoint-0.md) | for post |

## Constraints

| Name | Type | Definition | Comment |
Expand Down
2 changes: 1 addition & 1 deletion sample/adjust/schema.json

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions sample/adjust/viewpoint-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# post

## Description

for post

## Tables

| Name | Columns | Comment | Type |
| --------------------------------------------------------- | ------- | ---------------------------- | ----------------- |
| [public.posts](public.posts.md) | 8 | Posts table | BASE TABLE |
| [public.post_comments](public.post_comments.md) | 7 | post and comments View table | VIEW |
| [public.post_comment_stars](public.post_comment_stars.md) | 5 | | MATERIALIZED VIEW |

## Relations

![er](viewpoint-0.svg)

---

> Generated by [tbls](https://github.com/k1LoW/tbls)
100 changes: 100 additions & 0 deletions sample/adjust/viewpoint-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions sample/adjust/viewpoint-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# administrator

## Description

administrator schema only

## Tables

| Name | Columns | Comment | Type |
| --------------------------------------------- | ------- | ----------- | ---------- |
| [administrator.blogs](administrator.blogs.md) | 6 | admin blogs | BASE TABLE |

## Relations

![er](viewpoint-1.svg)

---

> Generated by [tbls](https://github.com/k1LoW/tbls)
40 changes: 40 additions & 0 deletions sample/adjust/viewpoint-1.svg
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 sample/postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Sample PostgreSQL database document.

| Name | ReturnType | Arguments | Type |
| ---- | ------- | ------- | ---- |
| public.reset_comment | void | IN comment_id integer | PROCEDURE |
| public.uuid_nil | uuid | | FUNCTION |
| public.uuid_ns_dns | uuid | | FUNCTION |
| public.uuid_ns_url | uuid | | FUNCTION |
Expand All @@ -48,6 +47,7 @@ Sample PostgreSQL database document.
| public.uuid_generate_v4 | uuid | | FUNCTION |
| public.uuid_generate_v5 | uuid | namespace uuid, name text | FUNCTION |
| public.update_updated | trigger | | FUNCTION |
| public.reset_comment | void | IN comment_id integer | PROCEDURE |

## Enums

Expand Down
2 changes: 1 addition & 1 deletion sample/postgres/schema.json

Large diffs are not rendered by default.

0 comments on commit a6b2295

Please sign in to comment.