feat: added album list

Signed-off-by: Varun Raj <varun@skcript.com>
This commit is contained in:
Varun Raj committed 2024-11-24 11:13:50 +05:30
1 parent f43b4ce447
commit e3909847b6
3 files changed
+93 -1

No files matched your search

+14
View File
@@ -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'),
});