21 lines
701 B
Ruby
21 lines
701 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "sequel"
|
|
|
|
class DiscountCode < Sequel::Model
|
|
include ResourceMethods
|
|
end
|
|
|
|
# Table: discount_code
|
|
# Columns:
|
|
# id | uuid | PRIMARY KEY
|
|
# created_at | timestamp with time zone | NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
# code | citext | NOT NULL
|
|
# credit_amount | numeric | NOT NULL
|
|
# expires_at | timestamp with time zone | NOT NULL
|
|
# Indexes:
|
|
# discount_code_pkey | PRIMARY KEY btree (id)
|
|
# discount_code_code_key | UNIQUE btree (code)
|
|
# Referenced By:
|
|
# project_discount_code | project_discount_code_discount_code_id_fkey | (discount_code_id) REFERENCES discount_code(id)
|