File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
lesson_25/db/db_app/src/main
java/com/codedifferently/lesson25/models Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .codedifferently .lesson25 .models ;
2+
3+ import jakarta .persistence .Entity ;
4+ import jakarta .persistence .Id ;
5+ import jakarta .persistence .Table ;
6+ @ Entity
7+ @ Table (name ="library_users" )
8+ public class LibraryUserModel {
9+
10+ @ Id
11+ public Integer userId ;
12+
13+ public String email ;
14+
15+ public String firstName ;
16+ public String lastName ;
17+ public String password ;
18+
19+ }
20+
Original file line number Diff line number Diff line change @@ -14,3 +14,11 @@ SELECT
1414guests .name ,checked_out_items.*
1515FROM
1616guests LEFT JOIN checked_out_items on guests .email = checked_out_items .email ;
17+
18+ CREATE TABLE library_users (
19+ user_id UUID PRIMARY KEY ,
20+ email VARCHAR (225 ) NOTNULL,
21+ first_name VARCHAR (225 ) NOTNULL,
22+ last_name VARCHAR (225 ) NOTNULL,
23+ password VARBINARY(32 ) NOT NULL
24+ );
You can’t perform that action at this time.
0 commit comments