DB설계 - Mulcam_Proj ( ELCAR )

ERD-Cloud를 통한 DB설계를 진행하였다.
지도 API와 관련한 DB설계는 진행중..


[ ELCAR DB설계 ]

<user>
id(PK) ( varchar ) 
pw ( varchar ) 
name ( varchar )
nickname ( varchar )
email ( varchar )
gender ( int ) ( 남자:1 / 여자:0 )
phone ( varchar )
birth ( varchar )
point ( int )
license ( int ) ( 등록:1 / 미등록:0 / defalut:0 )
type ( int) ( 어드민:1 / 유저:0 / dafault:0 )

<history>
num(PK)(AI) ( int )
user_id(FK) ( varchar )
ta_num(FK) ( int )
talge_num(FK) ( int )
status(int) ( 0=평가전, 1=평가후 )

<point>
user_id(FK) ( varchar )
ta_num(FK) ( int )
talge_num(FK) ( int )
point  ( int )
type ( int ) (1=탈래 / 2=태울래 )

<license>
num(PK)(AI) ( int )
user_id(FK) ( varchar )
img ( varchar )
getdate ( dateTime )
carnum ( varchar )
cartype ( varchar )
status ( int ) (승인:2 / 거절:1 / 대기중:0  / dafalut:0 )
deny ( int ) ( "":0 / 사유1:1 / 사유2:2 / ... / dafalut:0 )

<ta> 태울래 
num(PK)(AI) (int) 
sincheng_id(FK) ( varchar )
surak_id(FK) ( varchar )
date ( dateTime )
person ( int )
request ( varchar )
start ( double )
goal( double )

<talge>
num(PK)(AI) (int) 
sincheng_id(FK) ( varchar )
surak_id(FK) ( varchar )
date ( dateTime )
person ( int )
request ( varchar )
start ( double )
goal( double )

<board>
num(PK)(AI) (int) 
user_id(FK)
location ( varchar )
title ( varchar )
type( int ) (0=자유, 1=후기)
content ( varchar )
img( varchar )

<report>
num(PK)(AI) (int) 
board_num(FK)
history_num(FK)
category( int )
content ( varchar )

좋은 웹페이지 즐겨찾기