fix : remove unused colum in database

This commit is contained in:
2026-09-27 15:33:27 +07:00 Unverified
parent 69b00f50ab
commit b2ffffaa2a
11 changed files with 2814 additions and 31 deletions
@@ -50,7 +50,6 @@ type GuideCard = {
rarity: number | null;
updatedAt: Date;
publishedAt: Date | null;
publishedCatalogVersion: string | null;
};
const elementLabels: Record<string, string> = {
@@ -160,9 +159,6 @@ export function StructuredDirectory({ guides }: { guides: GuideCard[] }) {
<CardDescription className="line-clamp-3">
{guide.overview}
</CardDescription>
<div className="flex flex-wrap gap-2 pt-2">
{guide.publishedCatalogVersion ? <Badge variant="outline">v{guide.publishedCatalogVersion}</Badge> : null}
</div>
</CardHeader>
</Card>
</Link>
-2
View File
@@ -207,12 +207,10 @@ function GuideOverview({
<h1 className="font-heading text-4xl font-bold">{guide.name}</h1>
<p className="text-lg font-semibold">{guide.overview}</p>
<div className="flex flex-wrap justify-center gap-2">
{guide.publishedCatalogVersion ? <Badge variant="outline">เวอร์ชัน {guide.publishedCatalogVersion}</Badge> : null}
<Badge variant="secondary">
อัปเดต {new Date(guide.publishedAt ?? guide.updatedAt).toLocaleDateString("th-TH")}
</Badge>
</div>
{guide.publicationNote ? <p className="text-sm text-muted-foreground">{guide.publicationNote}</p> : null}
</div>
<div className="grid items-start gap-6 lg:grid-cols-2">
<div className="order-1 relative aspect-square w-full overflow-hidden rounded-xl border bg-muted lg:col-start-1 lg:row-start-1">