create table gc_board_info (
tblname varchar(30) primary key,
tbltitle varchar(60) not null,
skinname varchar(255) not null,
guestbook_ok int(1) not null default 0,
lattice_ok int(1) not null default 0,
lattice_cols int(2) default 1,
lattice_rows int(2) default 15,
top_file varchar(255),
bottom_file varchar(255),
back_file varchar(255),
top_text text,
row_per_page int(1) unsigned not null default 15,
pagenum_per_view int(1) unsigned not null default 10,
reply_ok int(1) not null default 1,
comment_ok int(1) not null default 1,
upload_ok int(1) not null default 0,
upload_size varchar(20),
write_auth int(1) not null default 11,
comment_auth int(1) not null default 11,
list_auth int(1) not null default 11,
read_auth int(1) not null default 11,
delete_auth int(1) not null default 7);

create table gc_board_main_[tblname] (
maintext_id int unsigned primary key auto_increment,
fsort_id int unsigned not null,
ssort_id varchar(8) not null,
member_id varchar(8),
name varchar(255),
passwd char(41),
subject varchar(60),
email varchar(60),
homepage varchar(255),
content text,
signdate datetime not null,
view_file_name varchar(255),
save_file_name varchar(255),
view_count int unsigned not null default 0,
recommend int unsigned not null default 0,
notice_ok int(1) not null default 0,
text_type char(4) not null default 'text');

create table gc_board_comment_[tblname] (
comment_id int unsigned primary key auto_increment,
maintext_id int unsigned not null,
member_id varchar(8),
name varchar(255),
comment text not null,
signdate datetime not null);

create table gc_board_masters (
tblname varchar(30) not null,
member_id varchar(8) not null);