chore: rename blocks to artifacts (#793)
This commit is contained in:
parent
01f589b603
commit
81f909ac3a
41 changed files with 473 additions and 473 deletions
|
|
@ -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;
|
||||
}) {
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue