feat: schedule next airing episode
happens when new title is saved, or when new episode internal route is run successfully
This commit is contained in:
@@ -34,4 +34,20 @@ export const keyValueTable = sqliteTable("key_value", {
|
||||
value: text("value").notNull(),
|
||||
});
|
||||
|
||||
export const tables = [watchStatusTable, deviceTokensTable, keyValueTable];
|
||||
export const titleMessagesTable = sqliteTable(
|
||||
"title_messages",
|
||||
{
|
||||
titleId: integer("title_id").notNull(),
|
||||
messageId: text("message_id").notNull(),
|
||||
},
|
||||
(table) => ({
|
||||
pk: primaryKey({ columns: [table.titleId, table.messageId] }),
|
||||
}),
|
||||
);
|
||||
|
||||
export const tables = [
|
||||
watchStatusTable,
|
||||
deviceTokensTable,
|
||||
keyValueTable,
|
||||
titleMessagesTable,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user