OSDN Git Service

プロフィール用の管理モードを追加した
[webchat/WebChat.git] / init.sql
1 CREATE DATABASE IF NOT EXISTS profile;
2 grant select,
3         insert,
4         delete,
5         update on *.* to user identified by 'user';
6 flush privileges;
7 use profile;
8 drop table list;
9 create table list(name VARCHAR(64) NOT NULL,
10         age SMALLINT  UNSIGNED DEFAULT 0,
11         height SMALLINT  UNSIGNED DEFAULT 0,
12         weight SMALLINT  UNSIGNED DEFAULT 0,
13         gender VARCHAR(8),
14         race VARCHAR(64),
15         password VARCHAR(16),
16         lastmodified DATETIME,
17         etc TEXT,
18         PRIMARY KEY(name));