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

package v1_27

import (
	"code.mokoconsulting.tech/MokoConsulting/MokoGitea/modules/timeutil"

	"xorm.io/xorm"
)

type updateStreamConfig336 struct {
	ID           int64              `xorm:"pk autoincr"`
	OwnerID      int64              `xorm:"INDEX NOT NULL"`
	RepoID       int64              `xorm:"INDEX NOT NULL DEFAULT 0"`
	StreamMode   string             `xorm:"NOT NULL DEFAULT 'joomla'"`
	CustomStreams string             `xorm:"TEXT"`
	CreatedUnix  timeutil.TimeStamp `xorm:"INDEX CREATED"`
	UpdatedUnix  timeutil.TimeStamp `xorm:"UPDATED"`
}

func (updateStreamConfig336) TableName() string {
	return "update_stream_config"
}

// AddUpdateStreamConfigTable creates the update_stream_config table.
func AddUpdateStreamConfigTable(x *xorm.Engine) error {
	return x.Sync(new(updateStreamConfig336))
}
