トップ  一覧  単語検索  最終更新  バックアップ  ヘルプ 

*Table 定義 @author Aileron [#s922b81c]
create table room_tbl
(
       room_id char(4) primary key,
       room_name varchar(32) not null,
       message varchar(256),
       room_max int default 8 not null,
       room_type int default 0 not null,
       char_type int default 0 not null,
       update_interval int default 0 not null,
       update_interval_time time default date_trunc('minute',now()) not null,
       active_flag boolean default false not null,
       create_time timestamp default now() not null,
       turn_number int default 0 not null
);
~
発言用テーブル~
CREATE SEQUENCE white_message_0001;~
CREATE SEQUENCE red_message_0001;~
CREATE TABLE message_0001
(
	day     int not null,
	no      int,
	type    int,
	id      varchar(16),
	message varchar(512),
	time    timestamp default date_trunc('second',now()) not null
);
~
キャラクター用テーブル~
create table char_tbl
(
	char_id varchar(16) primary key,
	char_img varchar(64),
	char_name varchar(32),
	char_type int default 0 not null
);
~
ユーザーアカウント用テーブル~
create table user_tbl
(
	user_name varchar(16) not null,
	password  varchar(16) not null,
	user_id   varchar(16) primary key,
	char_id   varchar(16),
	ability   varchar(8),
	room_id   char(4),
	session   varchar(64),
	time      timestamp
);
~
定時更新処理用の登録待ちテーブル~
create table entry_tbl
(
	room_id char(4),
	char_id char(16),
	from_id char(16),
	type varchar(8)
);
色々変更したから一端削除。

*こめんと。 [#sb976939]

#comment

トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS
PukiWiki 1.4.7 Copyright © 2001-2006 PukiWiki Developers Team[外部リンク]. License is GPL[外部リンク].
Based on "PukiWiki" 1.3 by yu-ji[外部リンク] Powered by PHP 5.3.3