cyrilleinvalides/choupas/www/admin/app/providers/invalides/Model.users.php

134 lines
2.4 KiB
PHP
Executable File

<?php
return array(
'type' => 'MySQLTable',
'name' => 'users',
'extends' => '_MySQLTable',
'desc' => array(
'gender' => null,
'singular' => 'users',
'plural' => 'users',
),
'children' => array(
'Field' => array(
'id' => array(
'type' => 'MySQLField',
'name' => 'id',
'desc' => array(
'gender' => null,
'singular' => 'id',
'plural' => '',
),
'value' => array(
'min' => 0,
'max' => 4294967296,
'default' => null,
'null' => false,
'type' => 'integer',
),
),
'login' => array(
'type' => 'MySQLField',
'name' => 'login',
'desc' => array(
'gender' => null,
'singular' => 'login',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 15,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'password' => array(
'type' => 'MySQLField',
'name' => 'password',
'desc' => array(
'gender' => null,
'singular' => 'password',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 31,
'default' => null,
'null' => false,
'type' => 'string',
),
),
'level' => array(
'type' => 'MySQLField',
'name' => 'level',
'desc' => array(
'gender' => null,
'singular' => 'level',
'plural' => '',
),
'value' => array(
'values' => array(
0 => 'admin',
1 => 'root',
),
'desc' => array(
0 => 'admin',
1 => 'root',
),
'default' => array(
0 => '',
),
'null' => true,
'type' => 'enum',
),
),
'rootFolder' => array(
'type' => 'MySQLField',
'name' => 'rootFolder',
'desc' => array(
'gender' => null,
'singular' => 'rootFolder',
'plural' => '',
),
'value' => array(
'minlength' => 0,
'maxlength' => 64,
'default' => null,
'null' => false,
'type' => 'string',
),
),
),
'Index' => array(
'PRIMARY' => array(
'type' => 'MySQLIndex',
'model' => 'users',
'name' => 'PRIMARY',
'unique' => true,
'fields' => array(
1 => 'id',
'id' => array(
'position' => 1,
'op' => '=',
),
),
),
'login' => array(
'type' => 'MySQLIndex',
'model' => 'users',
'name' => 'login',
'unique' => true,
'fields' => array(
1 => 'login',
'login' => array(
'position' => 1,
'op' => '=',
),
),
),
),
),
)
?>