mirror of
https://forgejo.merr.is/annika/isl-api.git
synced 2025-12-12 12:53:22 -05:00
Mostly Initial Setup And Testing Stuff
This commit is contained in:
parent
8c147b23d8
commit
d52d9968ba
12 changed files with 502 additions and 0 deletions
22
docker/docker-compose.yml
Normal file
22
docker/docker-compose.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Use postgres/example user/password credentials
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
|
||||
db:
|
||||
image: postgres
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: isl
|
||||
POSTGRES_PASSWORD: development
|
||||
POSTGRES_DB: isl
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data
|
||||
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||
ports:
|
||||
- 5432:5432
|
||||
adminer:
|
||||
image: adminer
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:8080
|
||||
12
docker/docker-entrypoint-initdb.d/schema.sql
Normal file
12
docker/docker-entrypoint-initdb.d/schema.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
CREATE TABLE powerItem (
|
||||
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
itemType int NOT NULL,
|
||||
iconURL text NOT NULL,
|
||||
itemName text NOT NULL,
|
||||
minItemPower integer NOT NULL,
|
||||
maxItemPower integer NOT NULL,
|
||||
rarity int NOT NULL,
|
||||
origin text NOT NULL,
|
||||
tooltip text NULL,
|
||||
isEventItem boolean
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue