Advertisement
Pedro_Miranda

[MySQL] - Los Santos RPG (Banco de dados)

May 9th, 2012
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.42 KB | None | 0 0
  1. -- Users table
  2. drop table if exists `player_info`;
  3. create table if not exists `player_info`
  4. (
  5.     -- Identificação
  6.     `id` int(11) not null auto_increment,
  7.     `name` varchar(24) not null,
  8.     -- Registro
  9.     `password` varchar(130) not null,
  10.     `password_tip` varchar(64) not null,
  11.     `secret_ask` varchar(64) not null,
  12.     `secret_answer` varchar(64) not null,
  13.     -- Informações pessoais
  14.     `gender` int(11) not null,
  15.     `day` int(11) not null,
  16.     `month` int(11) not null,
  17.     `year` int(11) not null,
  18.     `age` int(11) not null,
  19.     `skin` int(11) not null,
  20.     -- Sistema de nível
  21.     `exp` float not null default '0.0',
  22.     `level` int(11) not null default '1',
  23.     -- Salvar posição após crash
  24.     `leave_reason` int(11) not null default '-1',
  25.     `interior` int(11) not null default '0',
  26.     `world` int(11) not null default '0',
  27.     `x` float not null default '0',
  28.     `y` float not null default '0',
  29.     `z` float not null default '0',
  30.     `angle` float not null default '0',
  31.     `health` float not null default '100',
  32.     `armour` float not null default '100',
  33.     primary key (`id`),
  34.     unique key (`id`)
  35. ) comment = 'Dados dos jogadores do servidor.';
  36.  
  37. -- Ban table
  38. drop table if exists `ban_info`;
  39. create table if not exists `ban_info`
  40. (
  41.     `ban_name` varchar(24) not null,
  42.     `ban_admin` varchar(24) not null,
  43.     `ban_reason` varchar(64) not null,
  44.     `ban_date` varchar(30) not null,
  45.     `ban_ip` varchar(16) not null
  46. ) comment = 'Dados dos banimentos ocorridos no servidor.';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement