Created
February 26, 2019 17:57
-
-
Save sirramongabriel/b1e76fad6f2dc9561cf31bed8ed38b82 to your computer and use it in GitHub Desktop.
The model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UserLogin Model | |
import { Model } from '@vuex-orm/core'; | |
export default class UserLogin extends Model { | |
static entity = 'user_logins' | |
static fields() { | |
return { | |
email: this.attr('test@example.com'), | |
password: this.attr('123456'), | |
test_message: 'Happy days!' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment