aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-04 11:05:30 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-04 11:05:30 -0500
commite5bc336f9586b1f5515be3f1d239d2194489e9c5 (patch)
tree5bcf124dc277f23ee5b812b9f93a385bf9180f1f /src/lib/models
parent2db87acac4fe36baa93db0a8e52d7a83b3ce2998 (diff)
downloadtanzanite-e5bc336f9586b1f5515be3f1d239d2194489e9c5.tar.gz
tanzanite-e5bc336f9586b1f5515be3f1d239d2194489e9c5.tar.bz2
tanzanite-e5bc336f9586b1f5515be3f1d239d2194489e9c5.zip
refactor models
Diffstat (limited to 'src/lib/models')
-rw-r--r--src/lib/models/instance/ActivePunishment.ts (renamed from src/lib/models/ActivePunishment.ts)2
-rw-r--r--src/lib/models/instance/Guild.ts (renamed from src/lib/models/Guild.ts)6
-rw-r--r--src/lib/models/instance/Level.ts (renamed from src/lib/models/Level.ts)2
-rw-r--r--src/lib/models/instance/ModLog.ts (renamed from src/lib/models/ModLog.ts)2
-rw-r--r--src/lib/models/instance/Reminder.ts (renamed from src/lib/models/Reminder.ts)2
-rw-r--r--src/lib/models/instance/StickyRole.ts (renamed from src/lib/models/StickyRole.ts)2
-rw-r--r--src/lib/models/shared/Global.ts (renamed from src/lib/models/Global.ts)2
-rw-r--r--src/lib/models/shared/Shared.ts (renamed from src/lib/models/Shared.ts)4
-rw-r--r--src/lib/models/shared/Stat.ts (renamed from src/lib/models/Stat.ts)2
9 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/models/ActivePunishment.ts b/src/lib/models/instance/ActivePunishment.ts
index 5fae2ac..1d6104f 100644
--- a/src/lib/models/ActivePunishment.ts
+++ b/src/lib/models/instance/ActivePunishment.ts
@@ -1,7 +1,7 @@
import { type Snowflake } from 'discord.js';
import { nanoid } from 'nanoid';
import { type Sequelize } from 'sequelize';
-import { BaseModel } from './BaseModel.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export enum ActivePunishmentType {
diff --git a/src/lib/models/Guild.ts b/src/lib/models/instance/Guild.ts
index 7e67e21..11469d2 100644
--- a/src/lib/models/Guild.ts
+++ b/src/lib/models/instance/Guild.ts
@@ -1,8 +1,8 @@
import { ChannelType, type Snowflake } from 'discord.js';
import { type Sequelize } from 'sequelize';
-import { BadWordDetails } from '../common/AutoMod.js';
-import { type BushClient } from '../extensions/discord-akairo/BushClient.js';
-import { BaseModel } from './BaseModel.js';
+import { BadWordDetails } from '../../common/AutoMod.js';
+import { type BushClient } from '../../extensions/discord-akairo/BushClient.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export interface GuildModel {
diff --git a/src/lib/models/Level.ts b/src/lib/models/instance/Level.ts
index e247779..e18753d 100644
--- a/src/lib/models/Level.ts
+++ b/src/lib/models/instance/Level.ts
@@ -1,6 +1,6 @@
import { type Snowflake } from 'discord.js';
import { type Sequelize } from 'sequelize';
-import { BaseModel } from './BaseModel.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export interface LevelModel {
diff --git a/src/lib/models/ModLog.ts b/src/lib/models/instance/ModLog.ts
index 8d6a08c..bcccbb4 100644
--- a/src/lib/models/ModLog.ts
+++ b/src/lib/models/instance/ModLog.ts
@@ -1,7 +1,7 @@
import { type Snowflake } from 'discord.js';
import { nanoid } from 'nanoid';
import { type Sequelize } from 'sequelize';
-import { BaseModel } from './BaseModel.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export enum ModLogType {
diff --git a/src/lib/models/Reminder.ts b/src/lib/models/instance/Reminder.ts
index d1460bf..9ca78f1 100644
--- a/src/lib/models/Reminder.ts
+++ b/src/lib/models/instance/Reminder.ts
@@ -1,7 +1,7 @@
import { Snowflake } from 'discord.js';
import { nanoid } from 'nanoid';
import { type Sequelize } from 'sequelize';
-import { BaseModel } from './BaseModel.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export interface ReminderModel {
diff --git a/src/lib/models/StickyRole.ts b/src/lib/models/instance/StickyRole.ts
index 4beb4cf..fb1c30d 100644
--- a/src/lib/models/StickyRole.ts
+++ b/src/lib/models/instance/StickyRole.ts
@@ -1,6 +1,6 @@
import { type Snowflake } from 'discord.js';
import { type Sequelize } from 'sequelize';
-import { BaseModel } from './BaseModel.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export interface StickyRoleModel {
diff --git a/src/lib/models/Global.ts b/src/lib/models/shared/Global.ts
index 8e467f6..6dfc36f 100644
--- a/src/lib/models/Global.ts
+++ b/src/lib/models/shared/Global.ts
@@ -1,6 +1,6 @@
import { type Snowflake } from 'discord.js';
import { type Sequelize } from 'sequelize';
-import { BaseModel } from './BaseModel.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export interface GlobalModel {
diff --git a/src/lib/models/Shared.ts b/src/lib/models/shared/Shared.ts
index acb5c1e..642ff85 100644
--- a/src/lib/models/Shared.ts
+++ b/src/lib/models/shared/Shared.ts
@@ -1,7 +1,7 @@
import { Snowflake } from 'discord.js';
import type { Sequelize } from 'sequelize';
-import type { BadWords } from '../common/AutoMod.js';
-import { BaseModel } from './BaseModel.js';
+import type { BadWords } from '../../common/AutoMod.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
export interface SharedModel {
diff --git a/src/lib/models/Stat.ts b/src/lib/models/shared/Stat.ts
index 8f90724..8f77b58 100644
--- a/src/lib/models/Stat.ts
+++ b/src/lib/models/shared/Stat.ts
@@ -1,5 +1,5 @@
import { type Sequelize } from 'sequelize';
-import { BaseModel } from './BaseModel.js';
+import { BaseModel } from '../BaseModel.js';
const { DataTypes } = (await import('sequelize')).default;
type Environment = 'production' | 'development' | 'beta';