// Copyright 2026 Moko Consulting <hello@mokoconsulting.tech>
// SPDX-License-Identifier: GPL-3.0-or-later

package v1_27

import "xorm.io/xorm"

type repoHidden342 struct {
	ID       int64 `xorm:"pk autoincr"`
	IsHidden bool  `xorm:"INDEX NOT NULL DEFAULT false"`
}

func (repoHidden342) TableName() string {
	return "repository"
}

// AddIsHiddenToRepository adds the is_hidden column for three-level repo visibility.
func AddIsHiddenToRepository(x *xorm.Engine) error {
	return x.Sync(new(repoHidden342))
}
