package v1

import (
	"time"

	"gorm.io/gorm"
)

type UserDepartment struct {
	ID               uint64         `json:"id" gorm:"primary_key;AUTO_INCREMENT;column:id"`
	CreatedAt        time.Time      `json:"createdAt" gorm:"column:createdAt"`
	DeletedAt        gorm.DeletedAt `json:"deletedAt" gorm:"column:deletedAt"`
	UserLarkID       string         `json:"userLarkID" gorm:"column:userLarkID"`
	DepartmentLarkID string         `json:"departmentLarkID" gorm:"column:departmentLarkID"`
}

func (u *UserDepartment) TableName() string {
	return "user_department"
}
