<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="hu">
	<id>https://hu.doc.boardgamearena.com/index.php?action=history&amp;feed=atom&amp;title=Game_database_model%3A_dbmodel.sql</id>
	<title>Game database model: dbmodel.sql - Laptörténet</title>
	<link rel="self" type="application/atom+xml" href="https://hu.doc.boardgamearena.com/index.php?action=history&amp;feed=atom&amp;title=Game_database_model%3A_dbmodel.sql"/>
	<link rel="alternate" type="text/html" href="https://hu.doc.boardgamearena.com/index.php?title=Game_database_model:_dbmodel.sql&amp;action=history"/>
	<updated>2026-09-24T11:21:44Z</updated>
	<subtitle>Az oldal laptörténete a wikiben</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://hu.doc.boardgamearena.com/index.php?title=Game_database_model:_dbmodel.sql&amp;diff=490&amp;oldid=prev</id>
		<title>Sourisdudesert: Created page with &quot;In this file you specify the database schema of your game.  This file contains SQL queries that will be executed during the creation of your game table.  Note: you can&#039;t chang...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hu.doc.boardgamearena.com/index.php?title=Game_database_model:_dbmodel.sql&amp;diff=490&amp;oldid=prev"/>
		<updated>2013-01-11T14:41:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In this file you specify the database schema of your game.  This file contains SQL queries that will be executed during the creation of your game table.  Note: you can&amp;#039;t chang...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Új lap&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In this file you specify the database schema of your game.&lt;br /&gt;
&lt;br /&gt;
This file contains SQL queries that will be executed during the creation of your game table.&lt;br /&gt;
&lt;br /&gt;
Note: you can&amp;#039;t change the database schema during the game.&lt;br /&gt;
&lt;br /&gt;
== Create your schema ==&lt;br /&gt;
&lt;br /&gt;
To build this file, we recommend you to build the tables you need with the PhpMyAdmin tool (see BGA user guide), and then to export them and to copy/paste the content inside this file.&lt;br /&gt;
&lt;br /&gt;
== Default tables ==&lt;br /&gt;
&lt;br /&gt;
Important: by default, BGA creates 4 tables for your game: global, stats, gamelog, and player.&lt;br /&gt;
&lt;br /&gt;
You must not modify the schema of global, stats and gamelog tables (and you must not access them directly with SQL queries in your PHP code).&lt;br /&gt;
&lt;br /&gt;
You may add columns to &amp;quot;player&amp;quot; table. This is very practical to add simple values associated with players.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ALTER TABLE `player` ADD `player_reserve_size` SMALLINT UNSIGNED NOT NULL DEFAULT &amp;#039;7&amp;#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For your information, the useful columns of default &amp;quot;player&amp;quot; table are:&lt;br /&gt;
* player_no: the index of player in natural playing order.&lt;br /&gt;
* player_id&lt;br /&gt;
* player_name: (note: you should better access this date with getActivePlayerName() or loadPlayersBasicInfos() methods)&lt;br /&gt;
* player_score: the current score of the player (displayed in the player panel). You must update this field to update player&amp;#039;s scores.&lt;br /&gt;
* player_score_aux: the secondary score, used as a tie breaker. You must update this field according to tie breaking rules of the game.&lt;/div&gt;</summary>
		<author><name>Sourisdudesert</name></author>
	</entry>
</feed>