✨ feat: add tags to banner
This commit is contained in:
@ -498,6 +498,7 @@ Table hero_banner {
|
|||||||
orderPriority Int [unique]
|
orderPriority Int [unique]
|
||||||
isClickable Boolean [not null, default: false]
|
isClickable Boolean [not null, default: false]
|
||||||
title String
|
title String
|
||||||
|
tags String[] [not null]
|
||||||
description String
|
description String
|
||||||
buttonContent String
|
buttonContent String
|
||||||
buttonLink String
|
buttonLink String
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "hero_banner" ADD COLUMN "tags" TEXT[];
|
||||||
@ -559,6 +559,7 @@ model HeroBanner {
|
|||||||
orderPriority Int? @unique
|
orderPriority Int? @unique
|
||||||
isClickable Boolean @default(false)
|
isClickable Boolean @default(false)
|
||||||
title String? @db.VarChar(225)
|
title String? @db.VarChar(225)
|
||||||
|
tags String[]
|
||||||
description String? @db.Text
|
description String? @db.Text
|
||||||
buttonContent String? @db.VarChar(100)
|
buttonContent String? @db.VarChar(100)
|
||||||
buttonLink String? @db.Text
|
buttonLink String? @db.Text
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import { createHeroBannerService } from "../services/http/createHeroBanner.servi
|
|||||||
export interface CreateHeroBannerRequestBody {
|
export interface CreateHeroBannerRequestBody {
|
||||||
isClickable?: boolean;
|
isClickable?: boolean;
|
||||||
title?: string;
|
title?: string;
|
||||||
|
tags: string[];
|
||||||
description?: string;
|
description?: string;
|
||||||
buttonContent?: string;
|
buttonContent?: string;
|
||||||
buttonLink?: string;
|
buttonLink?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user