|
|
|
@@ -1,41 +1,42 @@ |
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: attachments
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# container_id :integer
|
|
|
|
# container_type :string(30)
|
|
|
|
# filename :string(255) default(""), not null
|
|
|
|
# disk_filename :string(255) default(""), not null
|
|
|
|
# filesize :integer default("0"), not null
|
|
|
|
# content_type :string(255) default("")
|
|
|
|
# digest :string(60) default(""), not null
|
|
|
|
# downloads :integer default("0"), not null
|
|
|
|
# author_id :integer default("0"), not null
|
|
|
|
# created_on :datetime
|
|
|
|
# description :text(65535)
|
|
|
|
# disk_directory :string(255)
|
|
|
|
# attachtype :integer default("1")
|
|
|
|
# is_public :integer default("1")
|
|
|
|
# copy_from :string(255)
|
|
|
|
# quotes :integer default("0")
|
|
|
|
# is_publish :integer default("1")
|
|
|
|
# publish_time :datetime
|
|
|
|
# resource_bank_id :integer
|
|
|
|
# unified_setting :boolean default("1")
|
|
|
|
# cloud_url :string(255) default("")
|
|
|
|
# course_second_category_id :integer default("0")
|
|
|
|
# delay_publish :boolean default("0")
|
|
|
|
# link :string(255)
|
|
|
|
# clone_id :integer
|
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_attachments_on_author_id (author_id)
|
|
|
|
# index_attachments_on_clone_id (clone_id)
|
|
|
|
# index_attachments_on_container_id_and_container_type (container_id,container_type)
|
|
|
|
# index_attachments_on_created_on (created_on)
|
|
|
|
#
|
|
|
|
# == Schema Information |
|
|
|
# |
|
|
|
# Table name: attachments |
|
|
|
# |
|
|
|
# id :integer not null, primary key |
|
|
|
# container_id :integer |
|
|
|
# container_type :string(30) |
|
|
|
# filename :string(255) default(""), not null |
|
|
|
# disk_filename :string(255) default(""), not null |
|
|
|
# filesize :integer default("0"), not null |
|
|
|
# content_type :string(255) default("") |
|
|
|
# digest :string(60) default(""), not null |
|
|
|
# downloads :integer default("0"), not null |
|
|
|
# author_id :integer default("0"), not null |
|
|
|
# created_on :datetime |
|
|
|
# description :text(65535) |
|
|
|
# disk_directory :string(255) |
|
|
|
# attachtype :integer default("1") |
|
|
|
# is_public :integer default("1") |
|
|
|
# copy_from :integer |
|
|
|
# quotes :integer default("0") |
|
|
|
# is_publish :integer default("1") |
|
|
|
# publish_time :datetime |
|
|
|
# resource_bank_id :integer |
|
|
|
# unified_setting :boolean default("1") |
|
|
|
# cloud_url :string(255) default("") |
|
|
|
# course_second_category_id :integer default("0") |
|
|
|
# delay_publish :boolean default("0") |
|
|
|
# |
|
|
|
# Indexes |
|
|
|
# |
|
|
|
# index_attachments_on_author_id (author_id) |
|
|
|
# index_attachments_on_container_id_and_container_type (container_id,container_type) |
|
|
|
# index_attachments_on_course_second_category_id (course_second_category_id) |
|
|
|
# index_attachments_on_created_on (created_on) |
|
|
|
# index_attachments_on_is_public (is_public) |
|
|
|
# index_attachments_on_quotes (quotes) |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|