logo
  • 教程列表
  • SO官方文档
  • Ecto 模型用于凤凰
    • 从命令行生成用户模型
    • 迁移 ecto 模型
  1. StackOverflow 文档
  2. phoenix-framework 教程
  3. Ecto 模型用于凤凰
  4. 从命令行生成用户模型

从命令行生成用户模型

Created: November-22, 2018

To generate json user model with username, password_hash, email_id, created_at, updated_at, type

mix phoenix.gen.json User users username:string email_id:string password_hash:string timestamps()

  • 迁移 ecto 模型
  • Ecto 模型用于凤凰

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明