Update Feb 3rd#162
Conversation
…e-management update company document management
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 515f462590
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| export const documentViews = pgTable( | ||
| "document_views", | ||
| { | ||
| id: serial("id").primaryKey(), | ||
| documentId: bigint("document_id", { mode: "bigint" }) |
There was a problem hiding this comment.
Add migration for new document_views table/column
The code adds a new document_views table (and elsewhere a last_active_at column on users) but there is no corresponding SQL migration in drizzle/*.sql for these schema changes. In environments that rely on migrations, the new API routes will error at runtime when they try to insert/query document_views or update users.last_active_at. Please add a migration that creates document_views and adds last_active_at to users (or ensure an equivalent schema update runs in deploy).
Useful? React with 👍 / 👎.
No description provided.