Key Controller + list
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php namespace GermanAirlinesVa\Graphql\Models;
|
||||
|
||||
use Cms\Classes\Theme;
|
||||
use Model;
|
||||
|
||||
class GraphqlKey extends Model
|
||||
{
|
||||
use \October\Rain\Database\Traits\Validation;
|
||||
|
||||
/*
|
||||
* Disable timestamps by default.
|
||||
* Remove this line if timestamps are defined in the database table.
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @var string The database table used by the model.
|
||||
*/
|
||||
public $table = 'graphql_keys';
|
||||
protected $connection = 'germanairlinesva_graphql';
|
||||
|
||||
/**
|
||||
* @var array Validation rules
|
||||
*/
|
||||
public $rules = [
|
||||
'member_id' => 'required',
|
||||
'key' => 'required',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
columns:
|
||||
id:
|
||||
label: id
|
||||
type: number
|
||||
member_id:
|
||||
label: member_id
|
||||
type: number
|
||||
valid_from:
|
||||
label: valid_from
|
||||
type: datetime
|
||||
key:
|
||||
label: key
|
||||
type: text
|
||||
Reference in New Issue
Block a user