name TEXT NOT NULL,
course_number TEXT NOT NULL,
section_number TEXT,
- owning_lib INT REFERENCES actor.org_unit (id),
+ owning_lib INT NOT NULL REFERENCES actor.org_unit (id),
- is_archived BOOLEAN DEFAULT false
+ is_archived BOOLEAN DEFAULT false,
+ creator BIGINT NOT NULL
+ REFERENCES actor.usr (id)
+ DEFERRABLE INITIALLY DEFERRED,
+ editor BIGINT NOT NULL
+ REFERENCES actor.usr (id)
+ DEFERRABLE INITIALLY DEFERRED,
+ create_time TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
+ edit_time TIMESTAMP WITH TIME ZONE DEFAULT NOW();
);
CREATE TABLE asset.course_module_role (