package model

import (
	"database/sql"
	"time"

	"gorm.io/gorm"
)

type AuthingDepartment struct {
	Id        uint64         `json:"id" gorm:"primary_key;AUTO_INCREMENT;column:id"`
	Name      string         `json:"name" gorm:"column:name"`
	AuthingId string         `json:"authingId" gorm:"column:authingId"`
	CreatedAt time.Time      `json:"createdAt" gorm:"column:createdAt"`
	UpdatedAt sql.NullTime   `json:"updatedAt" gorm:"column:updatedAt"`
	DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deletedAt"`
}

func (ld *AuthingDepartment) TableName() string {
	return "authing_department"
}
