想自己做一个外卖平台小项目,基于开源项目改造,语言不限 做好是有管理后台的,类美团的多商户系统
gem "devise" gem "rolify" gem "pundit"
每个商户一个 tenant_id, 然后就是 CRUD, 这不分分钟就搭好了吗?
CRUD
class Tenant < ApplicationRecord has_many :users has_many :shops # 加钱后, 每个商户还能开多个商店
class User < ApplicationRecord belongs_to :tenant, optional: true has_and_belongs_to_many :shops
class Role < ApplicationRecord validates :name, presence: true, uniqueness: true has_and_belongs_to_many :users, :join_table => :users_roles
可以联系,有正在线上运营的项目,156 贰贰陆陆 5682