Skip to content

Commit

Permalink
feat: add auto play table
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Jun 25, 2024
1 parent 31e439f commit 191457c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nezuchan/schema",
"version": "0.1.2",
"version": "0.1.3",
"description": "A package that contains shared database schema",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
13 changes: 13 additions & 0 deletions packages/schema/src/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ export const Gapless = pgTable("gapless", {
updatedAt: updatedAt()
});

export const AutoPlay = pgTable("auto_play", {
id: uuid("id").primaryKey()
.defaultRandom(),

guildId: uuid("guild_id").references(() => Guild.id),
clientId: text("client_id"),

activatedBy: text("activated_by"),
state: boolean("state").default(false),

createdAt: createdAt(),
updatedAt: updatedAt()
});

export const StayInVc = pgTable("stay_in_vc", {
id: uuid("id").primaryKey()
Expand Down

0 comments on commit 191457c

Please sign in to comment.