Skip to content

Commit

Permalink
Merge branch 'tickets/OBSPROC-110' of https://github.com/Subaru-PFS/e…
Browse files Browse the repository at this point in the history
…ts_target_database into tickets/OBSPROC-110
  • Loading branch information
monodera committed Dec 21, 2024
2 parents e879f86 + dc1973e commit 92d73c6
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 3 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)
10 changes: 7 additions & 3 deletions examples/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Use the official Docker Hub Postgres 10.6 image
# FROM postgres:10.6
FROM postgres:12
# FROM postgres:12
FROM postgres:16

# Set environment variables
ENV POSTGRES_USER ""
Expand All @@ -11,8 +12,11 @@ ENV POSTGRES_DB ""
RUN apt-get update && apt-get install -y \
git \
build-essential \
liblz4-dev \
libreadline-dev \
libzstd-dev \
zlib1g-dev \
postgresql-server-dev-12
postgresql-server-dev-16

# Clone the q3c extension from GitHub
RUN git clone https://github.com/segasai/q3c.git
Expand All @@ -31,4 +35,4 @@ EXPOSE 5432
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]

# Set the default command to run when starting the container
CMD ["postgres"]
CMD ["postgres"]

0 comments on commit 92d73c6

Please sign in to comment.