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

package v1_27

import "xorm.io/xorm"

type userParentOrg341 struct {
	ID          int64 `xorm:"pk autoincr"`
	ParentOrgID int64 `xorm:"INDEX DEFAULT 0"`
}

func (userParentOrg341) TableName() string {
	return "user"
}

// AddParentOrgIDToUser adds the parent_org_id column to the user table
// for enterprise sub-org hierarchy support.
func AddParentOrgIDToUser(x *xorm.Engine) error {
	return x.Sync(new(userParentOrg341))
}
