|
|
@ -11,11 +11,12 @@ end |
|
|
|
|
|
|
|
class User |
|
|
|
JSON.mapping( |
|
|
|
addresses: {type: Array(Address), nilable: true}, |
|
|
|
invoices: {type: Array(Invoice), nilable: true}, |
|
|
|
tokens: {type: Array(UUID), nilable: true}, |
|
|
|
email: String, |
|
|
|
password_hash: {type: String, nilable: true}, |
|
|
|
type: {type: UserType, default: UserType::Normal}, |
|
|
|
addresses: {type: Array(Address), nilable: true}, |
|
|
|
invoices: {type: Array(Invoice), nilable: true}, |
|
|
|
tokens: {type: Array(UUID), nilable: true}, |
|
|
|
email: String, |
|
|
|
password_hash: {type: String, nilable: true}, |
|
|
|
active: {type: Bool, default: false}, |
|
|
|
type: {type: UserType, default: UserType::Normal}, |
|
|
|
) |
|
|
|
end |