티스토리 뷰

db 생성함.


use RS_Act;


drop table IF EXISTS user_info;

drop table IF EXISTS friends_list;

drop table IF EXISTS inventory;

drop table IF EXISTS item_list;

drop table IF EXISTS ui_log;


create table user_info (

user_id int unsigned not null auto_increment primary key,

nick_name char(30) not null,

password char(30) not null,

gold int unsigned,

potion int unsigned,

note int unsigned,

high_score int unsigned,

weekly_high_score int unsigned

);

create table friends_list (

owner_id int unsigned not null primary key,

friend_id int unsigned

);

create table inventory (

owner int unsigned not null primary key,

item_id int unsigned,

count int unsigned,

get_date timestamp,

start_date datetime default '0000-00-00 00:00:00',

valid_date datetime default '0000-00-00 00:00:00'

);



create table item_list (

item_id int unsigned not null primary key,

item_name char(30) not null,

item_type int unsigned,

valid_date datetime default '0000-00-00 00:00:00',

item_desc text not null

);


create table ui_log (

owner_id int unsigned not null primary key,

log_time timestamp not null,

log_type int unsigned,

log_text text

);


댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함