✨ added friendly names to db
This commit is contained in:
parent
feb82b5870
commit
e704f43648
2 changed files with 7 additions and 5 deletions
2
app.js
2
app.js
|
@ -82,7 +82,7 @@ async function loop() {
|
|||
let update = await prisma.space.upsert({
|
||||
where: { id: space.id },
|
||||
update: { open: o },
|
||||
create: { id: space.id, open: o }
|
||||
create: { id: space.id, open: o, name: space.name }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,9 @@ datasource db {
|
|||
}
|
||||
|
||||
model Space {
|
||||
id String @id
|
||||
open Boolean
|
||||
updatedAt DateTime @updatedAt
|
||||
id String @id
|
||||
name String?
|
||||
open Boolean
|
||||
lastChange DateTime?
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
Loading…
Reference in a new issue