aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
committersadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
commit332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 (patch)
tree6ae553317f12a7a6a29c849c8805ffab96436dc2 /app/models
downloadtd-main.tar.gz
td-main.tar.bz2
initial mistakeHEADmain
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb4
-rw-r--r--app/models/application_record.rb3
-rw-r--r--app/models/concerns/.keep0
-rw-r--r--app/models/league.rb2
-rw-r--r--app/models/league_pick_score.rb7
-rw-r--r--app/models/player_score.rb2
6 files changed, 18 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
new file mode 100644
index 0000000..4fcee6f
--- /dev/null
+++ b/app/models/account.rb
@@ -0,0 +1,4 @@
+class Account < ApplicationRecord
+ include Rodauth::Model(RodauthMain)
+ enum :status, unverified: 1, verified: 2, closed: 3
+end
diff --git a/app/models/application_record.rb b/app/models/application_record.rb
new file mode 100644
index 0000000..b63caeb
--- /dev/null
+++ b/app/models/application_record.rb
@@ -0,0 +1,3 @@
+class ApplicationRecord < ActiveRecord::Base
+ primary_abstract_class
+end
diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/models/concerns/.keep
diff --git a/app/models/league.rb b/app/models/league.rb
new file mode 100644
index 0000000..ff967fc
--- /dev/null
+++ b/app/models/league.rb
@@ -0,0 +1,2 @@
+class League < ApplicationRecord
+end
diff --git a/app/models/league_pick_score.rb b/app/models/league_pick_score.rb
new file mode 100644
index 0000000..f7c6521
--- /dev/null
+++ b/app/models/league_pick_score.rb
@@ -0,0 +1,7 @@
+class LeaguePickScore < ApplicationRecord
+ def self.ransackable_attributes(auth_object = nil)
+ ["champion", "conference", "divisional", "league_id", "player", "playoffs", "superbowl", "team", "total", "win"]
+ end
+
+ # private_class_method :ransackable_attributes
+end
diff --git a/app/models/player_score.rb b/app/models/player_score.rb
new file mode 100644
index 0000000..a79e4a7
--- /dev/null
+++ b/app/models/player_score.rb
@@ -0,0 +1,2 @@
+class PlayerScore < ApplicationRecord
+end