chore: devcontainerで起動できるように

This commit is contained in:
usbharu 2024-06-21 09:10:40 +00:00
parent ab4a346935
commit 830ebc058d
2 changed files with 13 additions and 5 deletions

View File

@ -24,17 +24,17 @@ spring:
default-property-inclusion: always default-property-inclusion: always
datasource: datasource:
driver-class-name: org.postgresql.Driver driver-class-name: org.postgresql.Driver
url: "jdbc:postgresql:hideout3" url: "jdbc:postgresql:postgres"
username: "postgres" username: "postgres"
password: "" password: "postgres"
data: data:
mongodb: mongodb:
auto-index-creation: true auto-index-creation: true
host: localhost host: localhost
port: 27017 port: 27017
database: hideout database: hideout
# username: hideoutuser username: root
# password: hideoutpass password: password
servlet: servlet:
multipart: multipart:
max-file-size: 40MB max-file-size: 40MB

View File

@ -56,6 +56,8 @@ create table if not exists actors
move_to bigint null default null, move_to bigint null default null,
emojis varchar(3000) not null default '', emojis varchar(3000) not null default '',
deleted boolean not null default false, deleted boolean not null default false,
icon bigint null,
banner bigint null,
unique ("name", "domain"), unique ("name", "domain"),
constraint fk_actors_instance__id foreign key ("instance") references instance (id) on delete restrict on update restrict, constraint fk_actors_instance__id foreign key ("instance") references instance (id) on delete restrict on update restrict,
constraint fk_actors_actors__move_to foreign key ("move_to") references actors (id) on delete restrict on update restrict constraint fk_actors_actors__move_to foreign key ("move_to") references actors (id) on delete restrict on update restrict
@ -86,11 +88,17 @@ create table if not exists media
url varchar(255) not null unique, url varchar(255) not null unique,
remote_url varchar(255) null unique, remote_url varchar(255) null unique,
thumbnail_url varchar(255) null unique, thumbnail_url varchar(255) null unique,
"type" varchar(100) not null, "type" varchar(100) not null,
blurhash varchar(255) null, blurhash varchar(255) null,
mime_type varchar(255) not null, mime_type varchar(255) not null,
description varchar(4000) null description varchar(4000) null
); );
alter table actors
add constraint fk_actors_media__icon foreign key ("icon") references media (id) on delete cascade on update cascade;
alter table actors
add constraint fk_actors_media__banner foreign key ("banner") references media (id) on delete cascade on update cascade;
create table if not exists posts create table if not exists posts
( (
id bigint primary key, id bigint primary key,