21 lines
555 B
Ruby
21 lines
555 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../model"
|
|
|
|
class ProjectInvitation < Sequel::Model
|
|
unrestrict_primary_key
|
|
|
|
many_to_one :project
|
|
end
|
|
|
|
# Table: project_invitation
|
|
# Primary Key: (project_id, email)
|
|
# Columns:
|
|
# project_id | uuid |
|
|
# email | citext |
|
|
# inviter_id | uuid | NOT NULL
|
|
# expires_at | timestamp without time zone | NOT NULL
|
|
# policy | text |
|
|
# Indexes:
|
|
# project_invitation_pkey | PRIMARY KEY btree (project_id, email)
|