https://github.com/objectified-framework/objectified-db
Database Layer of Objectified
https://github.com/objectified-framework/objectified-db
Last synced: 25 days ago
JSON representation
Database Layer of Objectified
- Host: GitHub
- URL: https://github.com/objectified-framework/objectified-db
- Owner: objectified-framework
- License: apache-2.0
- Created: 2024-12-15T02:10:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T05:57:00.000Z (about 1 year ago)
- Last Synced: 2024-12-15T06:25:34.378Z (about 1 year ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# objectified-db
Database Layer of Objectified
This project contains the database for Objectified.
## Prerequisites
This database schema is defined for Postgres.
## Running the script
In order to run the loading script, you must have the following environment variables
set:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_HOST
- POSTGRES_PORT
All of these will be used to create a `postgresql://` URL for which the psql command
will use.
To run the script, simply run:
```shell
sh build.sh
```
This will build and execute the SQL commands to generate the schema.
> **NOTE:**\
> If you have already run this script once, and want to back up the data, make sure
> to use `pg_dump` command to dump your schema beforehand.
## Current database visualized
