This commit is contained in:
2019-11-12 12:17:21 +01:00
parent f82ac6c77a
commit 830fc14d62
27 changed files with 1041 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
//database settings
define ("DB_USER", "sampleuser");
define ("DB_HOST", "localhost");
define ("DB_PW", "samplepassword");
define ("DB_DATABASE", "moanos_gartensia");
//database tables:
define ("TABLE_USER", "lib_user");
define("MODULE_PATH", $_SERVER['DOCUMENT_ROOT']);
?>

View File

@@ -0,0 +1,45 @@
<?php
require_once(__dir__."/config.inc.php");
$aData[TABLE_USER] = array(
'user_ID' => array(
'type' => 'INT',
'size' => 11,
'unique' => 'TRUE',
'standard' => 'NOT NULL',
'extra' => 'AUTO_INCREMENT PRIMARY KEY'
),
'name' => array(
'type' => 'VARCHAR',
'size' => 255,
'standard' => 'NOT NULL'
),
'email' => array(
'type' => 'VARCHAR',
'size' => 255,
'standard' => 'NOT NULL'
),
'signal' => array(
'type' => 'VARCHAR',
'size' => 255,
'standard' => 'NOT NULL'
),
'sms' => array(
'type' => 'VARCHAR',
'size' => 255,
'standard' => 'NOT NULL'
),
'telegram' => array(
'type' => 'VARCHAR',
'size' => 255,
'standard' => 'NOT NULL'
),
'threema' => array(
'type' => 'VARCHAR',
'size' => 255,
'standard' => 'NOT NULL'
)
);