refactor ai naming and make omni raw-json first
This commit is contained in:
@@ -123,7 +123,7 @@ async function main() {
|
||||
create: { teamId: team.id, userId: user.id, role: "OWNER" },
|
||||
});
|
||||
|
||||
const conversation = await prisma.chatConversation.upsert({
|
||||
const conversation = await prisma.aiConversation.upsert({
|
||||
where: { id: `pilot-${team.id}` },
|
||||
update: { title: "Пилот" },
|
||||
create: { id: `pilot-${team.id}`, teamId: team.id, createdByUserId: user.id, title: "Пилот" },
|
||||
@@ -136,7 +136,7 @@ async function main() {
|
||||
prisma.deal.deleteMany({ where: { teamId: team.id } }),
|
||||
prisma.calendarEvent.deleteMany({ where: { teamId: team.id } }),
|
||||
prisma.contactMessage.deleteMany({ where: { contact: { teamId: team.id } } }),
|
||||
prisma.chatMessage.deleteMany({ where: { teamId: team.id, conversationId: conversation.id } }),
|
||||
prisma.aiMessage.deleteMany({ where: { teamId: team.id, conversationId: conversation.id } }),
|
||||
prisma.omniMessage.deleteMany({ where: { teamId: team.id } }),
|
||||
prisma.omniThread.deleteMany({ where: { teamId: team.id } }),
|
||||
prisma.omniContactIdentity.deleteMany({ where: { teamId: team.id } }),
|
||||
|
||||
Reference in New Issue
Block a user