package main

import (
	"log"
	"verification-platform-backend/internal/database"
	"verification-platform-backend/internal/model"
)

func main() {
	database.Init()

	log.Println("=== 查看当前所有文档 ===")

	var docs []model.Doc
	if err := database.DB.Find(&docs).Error; err != nil {
		log.Printf("查询文档失败: %v", err)
		return
	}

	for _, doc := range docs {
		log.Printf("ID: %d, Slug: %s, Title: %s", doc.ID, doc.Slug, doc.Title)
	}
}