-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
create database equipments_management; | ||
|
||
create table equipment_categories | ||
( | ||
category_id int identity | ||
primary key, | ||
category_name nvarchar(100) not null | ||
unique | ||
) | ||
go | ||
|
||
create table equipments | ||
( | ||
equipment_id int identity | ||
primary key, | ||
equipment_name nvarchar(100) not null | ||
unique, | ||
equipment_color nvarchar(100) not null, | ||
equipment_created_date bigint not null, | ||
equipment_quantity int not null, | ||
equipment_category_id int | ||
references equipment_categories | ||
) | ||
go | ||
|
||
create table roles | ||
( | ||
role_id int not null | ||
primary key, | ||
name varchar(100) not null | ||
unique | ||
) | ||
go | ||
|
||
create table users | ||
( | ||
user_id varchar(100) not null | ||
primary key, | ||
password varchar(100) not null, | ||
fullname nvarchar(100) not null, | ||
email varchar(100) not null | ||
unique, | ||
phone varchar(100) not null, | ||
address varchar(200) not null, | ||
created_date bigint not null, | ||
is_activated bit not null, | ||
role_id int | ||
references roles, | ||
otp varchar(6) not null | ||
) | ||
go | ||
|
||
create table equipments_request | ||
( | ||
equipments_request_id int identity | ||
primary key, | ||
requester varchar(100) | ||
references users, | ||
assignee varchar(100) | ||
references users, | ||
request_status varchar(100) not null, | ||
requested_date bigint not null, | ||
equipment_id int | ||
references equipments | ||
) | ||
go | ||
|
||
create table equipments_request_history | ||
( | ||
equipments_request_history_id int identity | ||
primary key, | ||
equipments_request_id int | ||
references equipments_request | ||
) | ||
go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package bangmaple.jdbc.paging; | ||
|
||
import java.util.Optional; | ||
|
||
public interface Pageable { | ||
|
||
boolean SORT_ASC = true; | ||
|