mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-10 23:33:07 +00:00
i dont really know what i added
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
parent
e3c09d7f0d
commit
7b563f5c31
24 changed files with 797 additions and 151 deletions
|
@ -27,6 +27,15 @@ export const updates = pgTable("updates", {
|
|||
date: timestamp().notNull()
|
||||
});
|
||||
|
||||
export const journalEntries = pgTable("journal_entries", {
|
||||
id: integer().primaryKey().generatedAlwaysAsIdentity(),
|
||||
user: integer().references(() => users.id, { onDelete: "cascade" }).notNull(),
|
||||
moodChange: integer("mood-change").default(0).notNull(),
|
||||
entry: varchar({ length: 4096 }).default("").notNull(),
|
||||
visibility: integer().default(1).notNull(),
|
||||
date: timestamp().notNull()
|
||||
});
|
||||
|
||||
export const profiles = pgTable("profiles", {
|
||||
user: integer()
|
||||
.references(() => users.id, { onDelete: "cascade" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue