-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tickets/OBSPROC-110' of https://github.com/Subaru-PFS/e…
…ts_target_database into tickets/OBSPROC-110
- Loading branch information
Showing
3 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters