Dnevni recept: tabela daily_recipes, API /api/recipes, prikaz na /rezepte
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user