images fixing with database saves
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -20,7 +20,8 @@ export const events = sqliteTable('events', {
|
||||
title: text('title').notNull(),
|
||||
date: text('date').notNull(),
|
||||
description: text('description').notNull(),
|
||||
imageUrl: text('image_url').notNull(),
|
||||
imageData: text('image_data').notNull(), // base64 encoded image
|
||||
mimeType: text('mime_type').notNull(), // e.g. 'image/webp', 'image/jpeg'
|
||||
displayOrder: integer('display_order').notNull(),
|
||||
isPublished: integer('is_published', { mode: 'boolean' }).default(true),
|
||||
createdAt: integer('created_at', { mode: 'timestamp' }).default(sql`(unixepoch())`),
|
||||
@ -30,7 +31,8 @@ export const events = sqliteTable('events', {
|
||||
// Gallery images table
|
||||
export const galleryImages = sqliteTable('gallery_images', {
|
||||
id: text('id').primaryKey().$defaultFn(() => crypto.randomUUID()),
|
||||
imageUrl: text('image_url').notNull(),
|
||||
imageData: text('image_data').notNull(), // base64 encoded image
|
||||
mimeType: text('mime_type').notNull(), // e.g. 'image/webp', 'image/jpeg'
|
||||
altText: text('alt_text').notNull(),
|
||||
displayOrder: integer('display_order').notNull(),
|
||||
isPublished: integer('is_published', { mode: 'boolean' }).default(true),
|
||||
@ -59,4 +61,4 @@ export const publishHistory = sqliteTable('publish_history', {
|
||||
commitHash: text('commit_hash'),
|
||||
commitMessage: text('commit_message'),
|
||||
publishedAt: integer('published_at', { mode: 'timestamp' }).default(sql`(unixepoch())`),
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user