1 parent
f43b4ce447
commit
e3909847b6
3 files changed
+93
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { pgTable, uuid, varchar, timestamp, boolean, text } from 'drizzle-orm/pg-core';
|
||||
|
||||
export const albums = pgTable('albums', {
|
||||
id: uuid('id').defaultRandom().primaryKey().notNull(),
|
||||
ownerId: uuid('ownerId').notNull(),
|
||||
albumName: varchar('albumName').notNull().default('Untitled Album'),
|
||||
createdAt: timestamp('createdAt', { withTimezone: true }).defaultNow().notNull(),
|
||||
albumThumbnailAssetId: uuid('albumThumbnailAssetId'),
|
||||
updatedAt: timestamp('updatedAt', { withTimezone: true }).defaultNow().notNull(),
|
||||
description: text('description').notNull().default(''),
|
||||
deletedAt: timestamp('deletedAt', { withTimezone: true }),
|
||||
isActivityEnabled: boolean('isActivityEnabled').notNull().default(true),
|
||||
order: varchar('order').notNull().default('desc'),
|
||||
});
|
||||
Reference in new issue
Block a user