-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreset_database.yml
More file actions
36 lines (33 loc) · 957 Bytes
/
preset_database.yml
File metadata and controls
36 lines (33 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# JBZoo Toolbox - Csv-Blueprint.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/Csv-Blueprint
#
name: Presets for database columns
description: This schema contains basic rules for database user data.
columns:
- name: id
description: Unique identifier, usually used to denote a primary key in databases.
example: 12345
extra:
custom_key: custom value
rules:
not_empty: true
is_trimmed: true
is_int: true
num_min: 1
aggregate_rules:
is_unique: true
sorted: [ asc, numeric ]
- name: status
description: Status in database
example: active
rules:
not_empty: true
allow_values: [ active, inactive, pending, deleted ]