Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit 05b24e5

Browse files
committed
Add core models
1 parent 9f556dc commit 05b24e5

25 files changed

Lines changed: 378 additions & 0 deletions

app/models/appropriate_body.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# == Schema Information
2+
#
3+
# Table name: appropriate_bodies
4+
#
5+
# id :bigint not null, primary key
6+
# name :string
7+
# created_at :datetime not null
8+
# updated_at :datetime not null
9+
#
10+
class AppropriateBody < ApplicationRecord
11+
end

app/models/email_address.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# == Schema Information
2+
#
3+
# Table name: email_addresses
4+
#
5+
# id :bigint not null, primary key
6+
# email :string
7+
# created_at :datetime not null
8+
# updated_at :datetime not null
9+
# teacher_id :integer
10+
#
11+
class EmailAddress < ApplicationRecord
12+
end

app/models/induction_period.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# == Schema Information
2+
#
3+
# Table name: induction_periods
4+
#
5+
# id :bigint not null, primary key
6+
# finished_on :date
7+
# started_on :date not null
8+
# created_at :datetime not null
9+
# updated_at :datetime not null
10+
# appropriate_body_id :integer not null
11+
# induction_programme_id :integer not null
12+
# mentorship_id :integer not null
13+
#
14+
class InductionPeriod < ApplicationRecord
15+
end

app/models/induction_programme.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# == Schema Information
2+
#
3+
# Table name: induction_programmes
4+
#
5+
# id :bigint not null, primary key
6+
# created_at :datetime not null
7+
# updated_at :datetime not null
8+
#
9+
class InductionProgramme < ApplicationRecord
10+
end

app/models/mentorship.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# == Schema Information
2+
#
3+
# Table name: mentorships
4+
#
5+
# id :bigint not null, primary key
6+
# created_at :datetime not null
7+
# updated_at :datetime not null
8+
# teacher_id :integer
9+
# tenureship_id :integer
10+
#
11+
class Mentorship < ApplicationRecord
12+
end

app/models/school.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# == Schema Information
2+
#
3+
# Table name: schools
4+
#
5+
# id :bigint not null, primary key
6+
# name :string not null
7+
# created_at :datetime not null
8+
# updated_at :datetime not null
9+
# parent_id :integer
10+
#
11+
class School < ApplicationRecord
12+
end

app/models/teacher.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# == Schema Information
2+
#
3+
# Table name: teachers
4+
#
5+
# id :bigint not null, primary key
6+
# name :string not null
7+
# trn :integer
8+
# created_at :datetime not null
9+
# updated_at :datetime not null
10+
#
11+
class Teacher < ApplicationRecord
12+
end

app/models/tenureship.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# == Schema Information
2+
#
3+
# Table name: tenureships
4+
#
5+
# id :bigint not null, primary key
6+
# finished_on :date
7+
# started_on :date
8+
# created_at :datetime not null
9+
# updated_at :datetime not null
10+
# school_id :integer
11+
# teacher_id :integer
12+
#
13+
class Tenureship < ApplicationRecord
14+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class CreateTeachers < ActiveRecord::Migration[7.0]
2+
def change
3+
create_table :teachers do |t|
4+
t.string :name, null: false
5+
t.integer :trn
6+
7+
t.timestamps
8+
end
9+
end
10+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class CreateEmailAddresses < ActiveRecord::Migration[7.0]
2+
def change
3+
create_table :email_addresses do |t|
4+
t.string :email
5+
t.integer :teacher_id
6+
7+
t.timestamps
8+
end
9+
end
10+
end

0 commit comments

Comments
 (0)