Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User = new Model({
- name: 'User',
- adaptor: 'best',
- scheme: {
- name: '',
- pw: ''
- },
- 'hasMany notes': {}
- });
- Note = new Model({
- name: 'Note',
- adaptor: 'best',
- scheme: {
- text: '',
- date: ''
- }
- 'hasOne owner': {
- 'class': 'User'
- }
- });
Add Comment
Please, Sign In to add comment