Dnevni recept: tabela daily_recipes, API /api/recipes, prikaz na /rezepte

This commit is contained in:
sebastjan
2026-08-15 17:06:09 +02:00
parent 001a05fe16
commit b92c39d9f0
4 changed files with 118 additions and 0 deletions
+11
View File
@@ -34,6 +34,17 @@ export const articleViews = pgTable("article_views", {
viewedAt: timestamp("viewed_at").notNull().defaultNow(),
});
export const dailyRecipes = pgTable("daily_recipes", {
id: serial("id").primaryKey(),
dateStr: varchar("date_str", { length: 10 }).notNull(),
name: text("name").notNull(),
intro: text("intro").notNull().default(""),
recipe: text("recipe").notNull().default(""),
seasonNote: text("season_note"),
imageUrl: text("image_url"),
createdAt: timestamp("created_at").notNull().defaultNow(),
});
export const dailyHoroscopes = pgTable("daily_horoscopes", {
id: serial("id").primaryKey(),
signIndex: integer("sign_index").notNull(),