Skip to content

Commit

Permalink
Adding entries schema
Browse files Browse the repository at this point in the history
  • Loading branch information
julwrites committed Feb 3, 2024
1 parent fa3a24f commit ebc23f1
Show file tree
Hide file tree
Showing 2 changed files with 10,426 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ export const keys = sqliteTable('user_keys', {
})

export type Keys = InferSelectModel<typeof keys>

export const entries = sqliteTable('entries', {
id: text('id').primaryKey(),
date: text('date'),
category: text('category'),
amount: text('amount'),
description: text('description'),
userId: text('user_id')
.notNull()
.references(() => users.id),
})

export type Entries = InferSelectModel<typeof entries>
Loading

0 comments on commit ebc23f1

Please sign in to comment.