source:
src/main/java/com/example/skychasemk/model/Administrator.java
Last change on this file was 3d60932, checked in by , 4 months ago | |
---|---|
|
|
File size: 367 bytes |
Line | |
---|---|
1 | package com.example.skychasemk.model; |
2 | |
3 | import jakarta.persistence.*; |
4 | import lombok.Data; |
5 | |
6 | @Entity |
7 | @Data |
8 | @Table(name="administrator") |
9 | public class Administrator { |
10 | @Id |
11 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
12 | @Column(name = "adminId") |
13 | private Long adminId; |
14 | @Column(name="email", unique=true, nullable = false) |
15 | private String email; |
16 | } |
Note:
See TracBrowser
for help on using the repository browser.