package com.rera.mss.model

import javax.persistence.*

@Entity
@Table(name = "User_role")
class UserRole(
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        var id: Long = 0,

        @ManyToOne
        @JoinColumn(name = "user_id")
        var user: User,

        @ManyToOne
        @JoinColumn(name = "role_id")
        var role: Role
)


