-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathormconfig.ts.example
68 lines (64 loc) · 2.24 KB
/
ormconfig.ts.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { DataSource } from "typeorm";
import { AlternateAlbumCover } from "./src/database/entity/AlternateAlbumCover";
import { ArtistCrownBan } from "./src/database/entity/ArtistCrownBan";
import { ArtistRedirect } from "./src/database/entity/ArtistRedirect";
import { ArtistTagCache } from "./src/database/entity/ArtistTagCache";
import { CachedLovedTrack } from "./src/database/entity/CachedLovedTrack";
import { AlbumCard } from "./src/database/entity/cards/AlbumCard";
import { Combo } from "./src/database/entity/Combo";
import { Crown } from "./src/database/entity/Crown";
import { CrownBan } from "./src/database/entity/CrownBan";
import { FishyCatch } from "./src/database/entity/fishy/FishyCatch";
import { FishyProfile } from "./src/database/entity/fishy/FishyProfile";
import { FishyQuest } from "./src/database/entity/fishy/FishyQuest";
import { Friend } from "./src/database/entity/Friend";
import { CommandRun } from "./src/database/entity/meta/CommandRun";
import { CrownEvent } from "./src/database/entity/meta/CrownEvent";
import { Guild } from "./src/database/entity/meta/Guild";
import { NowPlayingConfig } from "./src/database/entity/NowPlayingConfig";
import { Permission } from "./src/database/entity/Permission";
import { Setting } from "./src/database/entity/Setting";
import { SpotifyPlaylistTag } from "./src/database/entity/SpotifyPlaylistTag";
import { TagBan } from "./src/database/entity/TagBan";
import { User } from "./src/database/entity/User";
export const gowonDatabase = new DataSource({
migrationsTableName: "migrations",
type: "postgres",
// Change to localhost to run migrations
host: "host.docker.internal",
port: 5432,
username: "your username here",
password: "your password here",
database: "gowon",
logging: false,
synchronize: false,
name: "default",
migrations: ["src/database/migration/**/*.js"],
entities: [
AlternateAlbumCover,
ArtistCrownBan,
ArtistRedirect,
ArtistTagCache,
CachedLovedTrack,
Combo,
CommandRun,
Crown,
CrownBan,
CrownEvent,
Error,
Guild,
Friend,
NowPlayingConfig,
Permission,
Setting,
SpotifyPlaylistTag,
TagBan,
User,
// Cards
AlbumCard,
// Fishy
FishyCatch,
FishyProfile,
FishyQuest,
],
});