mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 05:42:15 +08:00
20 lines
555 B
Ruby
20 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)
|