feat: added current user validation to apis
Signed-off-by: Varun Raj <mailme@varunraj.in>
This commit is contained in:
1 parent
12500c9c6e
commit
28d3deabcd
23 files changed
+586
-92
No files matched your search
@@ -3,7 +3,7 @@ import { pgTable, uuid, varchar, timestamp, boolean } from 'drizzle-orm/pg-core'
|
||||
export const assets = pgTable('assets', {
|
||||
id: uuid('id').defaultRandom().primaryKey().notNull(),
|
||||
deviceAssetId: varchar('deviceAssetId').notNull(),
|
||||
// ownerId: uuid('ownerId').notNull().references(() => users.id, { onDelete: 'cascade', onUpdate: 'cascade' }),
|
||||
ownerId: uuid('ownerId').notNull(),
|
||||
deviceId: varchar('deviceId').notNull(),
|
||||
type: varchar('type').notNull(),
|
||||
originalPath: varchar('originalPath').notNull(),
|
||||
|
||||
Reference in new issue
Block a user