text: const EntitySchema = require("typeorm").EntitySchema;
  
  module.exports = new EntitySchema({
    name: "School",
    columns: {
      id: {
        primary: true,
        unique: true,
        type: "varchar"
      },
      name: {
        type: 'varchar'
      },
      fullName: {
        type: 'varchar'
      },
      homeUrl: {
        type: 'varchar'
      },
      timetableUrl: {
        type: 'varchar',
      },
      added: {
        type: 'date'
      },
      logo: {
        type: 'varchar'
      },
      siteVersion: {
        type: 'varchar'
      }
    },
    relations: {
      'class': {
        target: "Class",
        type: "one-to-many",
        joinColumn: true,
      },
    }
  });
  