模型类图
2015-08-07 21:02:35 0 举报
网站系统类图
作者其他创作
大纲/内容
Plane
+ id:\t Integer+ type: String+ capacity: Integer+ load: Integer+ range: Integer+ seat: Integer+ bed: Integer+ introdution: Article+ pic: String
Article
+ id: Integer+ column_id: Integer+ title: String+ content: String+ picture: String+ user_id: Integer+ approved: Bool+ approved_at: Time+ approved_by: Integer
+ picture_size()+ changeColumn(column_id: Integer)
Plan
+ id: Integer+ time: Time+ takeoff: Sring+ landing: String+ plane_id:String+ num: Integer+ price: Float
User
+ id: Integer+ group_id: Integer+ name: String+ email: String+ phone: String+ plan_id: String- password_digest: String- remember_digest: String+ priority: Integer
+ digest(String: string)+ new_token()+ remember()+ forget()+authenticated?(String: token)- downcase_email()- has_secure_password?()
ActiveRecord::Base
+ created_at: Time+ update_at: Time
+ has_many()+ attr_accessor()+ before_save()+ before_create()+ belongs_to()+ default_scope()+ validates()+ find_by()+ all()+ first()
Group
+ id: Integer+ members: User+ priority: Integer
+ changeUserPriority(users: User)
0 条评论
下一页