mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 07:41:52 +02:00
add social schema, associations
This commit is contained in:
parent
c0b362ea43
commit
cff94803a9
10 changed files with 139 additions and 0 deletions
9
models/event.rb
Normal file
9
models/event.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class Event < Sequel::Model
|
||||
many_to_one :site
|
||||
many_to_one :follow
|
||||
many_to_one :tip
|
||||
many_to_one :tag
|
||||
many_to_one :changes
|
||||
one_to_many :likes
|
||||
one_to_many :comments
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue