package backend.model.user

import javax.persistence.DiscriminatorValue
import javax.persistence.Entity

@Entity
@DiscriminatorValue("ADMIN")
class Admin : UserRole {

    /**
     * Private constructor for JPA
     */
    private constructor() : super()

    constructor(account: UserAccount) : super(account)

    override fun getAuthority(): String = "ADMIN"
    override fun getSubRoles(): Iterable<UserRole> = listOf(EventOwner(account), FinanceManager(account))
}
