feat: add tags to banner

This commit is contained in:
2026-03-03 16:56:58 +07:00
parent ae0830cbe7
commit d858e54fe8
4 changed files with 5 additions and 0 deletions

View File

@ -498,6 +498,7 @@ Table hero_banner {
orderPriority Int [unique]
isClickable Boolean [not null, default: false]
title String
tags String[] [not null]
description String
buttonContent String
buttonLink String

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "hero_banner" ADD COLUMN "tags" TEXT[];

View File

@ -559,6 +559,7 @@ model HeroBanner {
orderPriority Int? @unique
isClickable Boolean @default(false)
title String? @db.VarChar(225)
tags String[]
description String? @db.Text
buttonContent String? @db.VarChar(100)
buttonLink String? @db.Text

View File

@ -5,6 +5,7 @@ import { createHeroBannerService } from "../services/http/createHeroBanner.servi
export interface CreateHeroBannerRequestBody {
isClickable?: boolean;
title?: string;
tags: string[];
description?: string;
buttonContent?: string;
buttonLink?: string;