dwyl / dwyl/abase

Preliminary JSON Structure

Open
#20 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Decide on the preliminary JSON structure to instantiate our plugin.

**Update:** Proposed for now showing off basic features of our plugin:

```
{
"table":"user",
"fields":{
"email":{
"type":"string",
"email":true,
"required":true
},
"username":{
"type":"string",
"min":3,
"max":20,
"required":true
},
"password":{
"type":"string",
"require":true
},
"dob":{
"type":"date"
},
"gender": {
"type": "string",
"values": ["M", "F", "O", "NA"]
}
},
"pages":{
"register":{
"path":"/signup",
"edit":true,
"contents":[
"email",
"username",
{
"field":"password",
"options":{
"confirmation":true
}
}
]
},
"login":{
"edit":true,
"contents":[
"email",
"password"
]
},
"deets":{
"contents":[
"username",
"name",
"gender"
]
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.