Skip to content

Commit

Permalink
add tbls schema info
Browse files Browse the repository at this point in the history
  • Loading branch information
monodera committed Dec 21, 2024
1 parent b0ed833 commit dc1973e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/tbls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
| [public.fluxstd](public.fluxstd.md) | 61 | | BASE TABLE |
| [public.target](public.target.md) | 61 | | BASE TABLE |
| [public.cluster](public.cluster.md) | 10 | | BASE TABLE |
| [public.partner](public.partner.md) | 5 | | BASE TABLE |

## Stored procedures and functions

Expand Down Expand Up @@ -310,6 +311,13 @@ erDiagram
timestamp_without_time_zone created_at
timestamp_without_time_zone updated_at
}
"public.partner" {
integer partner_id
varchar partner_name
varchar partner_description
timestamp_without_time_zone created_at
timestamp_without_time_zone updated_at
}
```

---
Expand Down
46 changes: 46 additions & 0 deletions docs/tbls/public.partner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# public.partner

## Description

## Columns

| Name | Type | Default | Nullable | Children | Parents | Comment |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| partner_id | integer | | false | | | Unique identifier of the partner |
| partner_name | varchar | | false | | | Name of the partner (e.g., subaru, gemini, keck, and uh) |
| partner_description | varchar | | true | | | Description of the partner |
| created_at | timestamp without time zone | timezone('utc'::text, CURRENT_TIMESTAMP) | true | | | The date and time in UTC when the record was created |
| updated_at | timestamp without time zone | | true | | | The date and time in UTC when the record was last updated |

## Constraints

| Name | Type | Definition |
| ---- | ---- | ---------- |
| partner_pkey | PRIMARY KEY | PRIMARY KEY (partner_id) |
| partner_partner_name_key | UNIQUE | UNIQUE (partner_name) |

## Indexes

| Name | Definition |
| ---- | ---------- |
| partner_pkey | CREATE UNIQUE INDEX partner_pkey ON public.partner USING btree (partner_id) |
| partner_partner_name_key | CREATE UNIQUE INDEX partner_partner_name_key ON public.partner USING btree (partner_name) |

## Relations

```mermaid
erDiagram
"public.partner" {
integer partner_id
varchar partner_name
varchar partner_description
timestamp_without_time_zone created_at
timestamp_without_time_zone updated_at
}
```

---

> Generated by [tbls](https://github.com/k1LoW/tbls)

0 comments on commit dc1973e

Please sign in to comment.