We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f0d73 commit ced09a2Copy full SHA for ced09a2
app/models/team.rb
@@ -0,0 +1,13 @@
1
+class Team < ApplicationRecord
2
+# == Schema Information
3
+#
4
+# Table name: teams
5
6
+# id :bigint(8) not null, primary key
7
+# name :string not null
8
9
+# Indexes
10
11
+# teams_name_idx (name) UNIQUE
12
13
+end
app/models/team_user.rb
@@ -0,0 +1,20 @@
+# Table name: team_user
+# team_id :bigint(8) not null, primary key
+# user_id :bigint(8) not null, primary key
+# team_id_user_id_unique (team_id,user_id) UNIQUE
+# Foreign Keys
14
+# team_id_fkey (team_id => teams.id)
15
+# user_id_fkey (user_id => users.id)
16
17
+class UserToken < ApplicationRecord
18
+ belongs_to :team
19
+ belongs_to :user
20
0 commit comments