浏览代码

authentication works

master
Archivist 6 年前
父节点
当前提交
7a2f8e2636
共有 2 个文件被更改,包括 55 次插入14 次删除
  1. +48
    -8
      src/sales_backend.cr
  2. +7
    -6
      src/sales_backend/user.cr

+ 48
- 8
src/sales_backend.cr
文件差异内容过多而无法显示
查看文件


+ 7
- 6
src/sales_backend/user.cr 查看文件

@ -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

正在加载...
取消
保存