You are on page 1of 6

Feature

1. Gallery
a. Table Design
Table Name : albums
Relation :
- albums has many photos
- albums belongs to users
Field Data Type Note
id Char(36) Primary Key
name Varchar(100) -
description Varchar(255) Default null
created_by Char(36) Foreign Key to users table
updated_by Char(36) Foreign Key to users table
created_at Timestamp -
updated_at Timestamp -

Table Name : photos


Relation :
- photos belongs to albums
- photos belongs to users
Field Data Type Note
id Char(36) Primary Key
album_id Char(36) Foreign Key to albums table
name Varchar(100) -
path Varchar(255) -
description Varchar(255) Default null
created_by Char(36) Foreign Key to users table
updated_by Char(36) Foreign Key to users table
created_at Timestamp -
updated_at Timestamp -
b. Payment (Kas)
Table Name : balances
Relation :
- balances belongs to users
- balances belongs to transactions
Field Data Type Note
id Char(36) Primary Key
user_id Char(36) Foreign Key to users table
trans_id Char(36) Foreign Key to transactions table
current Double(8,2) -
change Double(8,2) -
final Double(8,2) -
created_by Char(36) Foreign Key to users table
updated_by Char(36) Foreign Key to users table
created_at Timestamp -
updated_at Timestamp -

Table Name : transactions


Relation :
- transactions belongs to users
- transactions has one balances
- transactions has many user_tenors
Field Data Type Note
id Char(36) Primary Key
user_id Char(36) Foreign Key to users table
invoice Varchar(100) -
type Varchar(50) -
description Varchar(255) Default null
status Varchar(15) -
message Varchar(255) Default null
created_by Char(36) Foreign Key to users table
updated_by Char(36) Foreign Key to users table
created_at Timestamp -
updated_at Timestamp -

Table Name : transaction_details


Relation :
- transaction_details belongs to users
- transaction_details belongs to transactions
Field Data Type Note
id Char(36) Primary Key
trans_id Char(36) Foreign Key to transactions table
name Varchar(100) -
description Varchar(50) Default null
price Double(8,2) -
qty Tinyint(3) -
total Double(8,2) -
created_by Char(36) Foreign Key to users table
updated_by Char(36) Foreign Key to users table
created_at Timestamp -
updated_at Timestamp -

Table Name : tenor_periods


Relation :
- tenor_periods belongs to users
- tenor_periods has many users
Field Data Type Note
id Char(36) Primary Key
name Varchar(100) -
date_start Timestamp -
date_end Timestamp -
tenor_total Tinyint(3) -
created_by Char(36) Foreign Key to users table
updated_by Char(36) Foreign Key to users table
created_at Timestamp -
updated_at Timestamp -

Table Name : user_tenors


Relation :
- user_tenors belongs to users
- user_tenors belongs to tenor_periods
- user_tenors belongs to transactions
Field Data Type Note
id Char(36) Primary Key
user_id Char(36) Foreign Key to users table
period_id Char(36) Foreign Key to tenor_periods table
trans_id Char(36) Foreign Key to transactions table
tenor Tinyint(3) -
price Double(8.2) -
pay_date Timestamp Default null
pay_status Tinyint(1) Default 0
created_by Char(36) Foreign Key to users table
updated_by Char(36) Foreign Key to users table
created_at Timestamp -
updated_at Timestamp -
Mockup
Web
1. Gallery
a. Album Index

b. Album Create & Edit


c. Photos Index & Album Selected

d. Photos Create
e. Photos Edit

f. Photos Selected

You might also like