mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 11:20:37 +09:00
Add touched/unread inbox issue semantics
This commit is contained in:
parent
3369a9e685
commit
38b9a55eab
13 changed files with 6059 additions and 46 deletions
|
|
@ -18,5 +18,16 @@ export const issueComments = pgTable(
|
|||
(table) => ({
|
||||
issueIdx: index("issue_comments_issue_idx").on(table.issueId),
|
||||
companyIdx: index("issue_comments_company_idx").on(table.companyId),
|
||||
companyIssueCreatedAtIdx: index("issue_comments_company_issue_created_at_idx").on(
|
||||
table.companyId,
|
||||
table.issueId,
|
||||
table.createdAt,
|
||||
),
|
||||
companyAuthorIssueCreatedAtIdx: index("issue_comments_company_author_issue_created_at_idx").on(
|
||||
table.companyId,
|
||||
table.authorUserId,
|
||||
table.issueId,
|
||||
table.createdAt,
|
||||
),
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue