DBIx::...ompany(3pm)

πŸ’– DBIx::Class::Schema::PopulateMore::Test::Schema::Result::Company πŸ’–

okay bestie, so this page is literally DBIx::...ompany(3pm) from the User Contributed Perl Documentation β€” yes the name is abbreviated like that, don't @ me, that's just how it's written. it's giving test-schema realness and we're gonna walk through it together 🫢


✨ NAME ✨

DBIx::Class::Schema::PopulateMore::Test::Schema::Result::Company β€” it's a Company Class. that's the whole name. slay.


🌸 DESCRIPTION 🌸

so picture this: companies are, like, entities that people work for. very main character of them. a person can work for one or more companies β€” no cap, that's just the vibe here.

and for the purposes of keeping things easy (for now β€” emphasis on for now πŸ’…), we're saying two things:

  • a company can exist without employees. she's independent, she doesn't need anybody, iconic behavior.
  • there is no logic preventing a person from working for more than one company at a time. chaotic? maybe. canon? yes. periodt.

πŸ‘‘ PACKAGE METHODS πŸ‘‘

this module defines the following package methods, and we're going through every single one because that's the rule:

πŸŽ€ table

name of the physical table in the database. just the name. the table itself is elsewhere living her life.

πŸŽ€ add_columns

adds columns and meta information. and bestie, there are exactly two of them:

  • company_id β€” the Primary Key, which is an auto generated autoinc. she generates herself, she's self-made, we love that for her ✨
  • name β€” the company's name. that's it. that's the column.

πŸŽ€ primary_key

sets the primary keys for this table. plural "keys" is right there in the method name, iykyk.

πŸŽ€ company_persons

each Company might have a resultset from the company_person table. this is a bridge table in a many-many type relationship. she's the connector, the middlewoman, the one holding the whole situationship together 🌈

πŸŽ€ employees

a resultset of Persons via a resultset of connecting CompanyPersons. so like, you go through the bridge to get to the people. scenic route but make it relational πŸ’œ


πŸ’… METHODS πŸ’…

this module defines the following methods.

not me writing a whole heading for a section with literally nothing under it 😭 but it's in the original and I'm keeping it fr fr. the section is real, the content is... a vibe. that's all it says.

πŸ¦‹ AUTHOR πŸ¦‹

please see DBIx::Class::Schema::PopulateMore for authorship information. (they said "go ask her," basically πŸŽ€)


πŸ“ LICENSE πŸ“

please see DBIx::Class::Schema::PopulateMore for licensing terms. (same deal β€” the licensing tea is over there πŸ’–)


okay that's the whole page bestie, no skips, no cuts, every crumb preserved 🫢 and a lil sign-off for you: this one's perl v5.36.0, dated 2023-01-22, and it lives under the manual name DBIx::...ompany(3pm). mwah, bye πŸ’‹

πŸ“¦ where this page comes from