diff options
| author | Max Isom <[email protected]> | 2020-03-09 11:57:39 -0500 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2020-03-09 11:57:39 -0500 |
| commit | eca84c8b6964af29948510a02ebfeb5f23244921 (patch) | |
| tree | ffa8a25a19ea9e57b33db661c28a80104a0087e7 /src/models | |
| parent | afadcb9ee5482c0a1c52b3d55e948e2a8a9ac0cb (diff) | |
| download | muse-eca84c8b6964af29948510a02ebfeb5f23244921.tar.xz muse-eca84c8b6964af29948510a02ebfeb5f23244921.zip | |
Inital commit
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/index.ts | 5 | ||||
| -rw-r--r-- | src/models/settings.ts | 18 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/models/index.ts b/src/models/index.ts new file mode 100644 index 0000000..6898b0e --- /dev/null +++ b/src/models/index.ts @@ -0,0 +1,5 @@ +import Settings from './settings'; + +export { + Settings +}; diff --git a/src/models/settings.ts b/src/models/settings.ts new file mode 100644 index 0000000..29c2b3e --- /dev/null +++ b/src/models/settings.ts @@ -0,0 +1,18 @@ +import {Table, Column, PrimaryKey, Model, Default} from 'sequelize-typescript'; + +@Table +export default class Settings extends Model<Settings> { + @PrimaryKey + @Column + guildId!: string; + + @Column + prefix!: string; + + @Column + channel!: string; + + @Default(false) + @Column + finishedSetup!: boolean; +} |
