chore: rename blocks to artifacts (#793)

This commit is contained in:
Jeremy 2025-02-13 08:25:57 -08:00 committed by GitHub
parent 01f589b603
commit 81f909ac3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 473 additions and 473 deletions

View file

@ -16,7 +16,7 @@ import {
message,
vote,
} from './schema';
import { BlockKind } from '@/components/block';
import { ArtifactKind } from '@/components/artifact';
// Optionally, if not using email/pass login, you can
// use the Drizzle adapter for Auth.js / NextAuth
@ -176,7 +176,7 @@ export async function saveDocument({
}: {
id: string;
title: string;
kind: BlockKind;
kind: ArtifactKind;
content: string;
userId: string;
}) {

View file

@ -10,7 +10,6 @@ import {
foreignKey,
boolean,
} from 'drizzle-orm/pg-core';
import { blockKinds } from '../blocks/server';
export const user = pgTable('User', {
id: uuid('id').primaryKey().notNull().defaultRandom(),